A multi-level data encryption transmission method and system for group enterprise intranet

By adopting a combination mechanism of asymmetric and symmetric encryption algorithms in the intranet of large enterprise groups, the key length is dynamically calculated, and the problem of insufficient or excessive encryption strength in traditional encryption methods is solved, and the balance of security and efficiency is achieved, and the adaptability is achieved. Complex network environment.

CN118300898BActive Publication Date: 2024-11-26BEIJING QINGZHONG SHENZHOU BIG DATA CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410719737.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-11-26
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

In the intranet of large enterprise groups, traditional encryption methods ignore differentiated security needs of nodes in different regions and levels, resulting in insufficient or excessive encryption strength, inability to effectively resist external attacks and cause performance losses.

Method used

The combination mechanism of asymmetric encryption algorithm and symmetric encryption algorithm is adopted to dynamically calculate the key length according to the characteristics of different regions and levels, and the asymmetric and symmetric key lengths are determined through the first encryption formula and the second encryption formula to realize dynamic encryption strength adjustment. , and periodically detect and update the key when the node changes.

Benefits of technology

It realizes dynamic adjustment of security strength between different nodes, meets the security needs of various nodes, improves encryption efficiency, ensures the security and integrity of data during transmission, and adapts to complex network environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118300898B_ABST
    Figure CN118300898B_ABST
Patent Text Reader

Abstract

A multi-level data encryption transmission method and system for a group enterprise intranet, relating to the field of network security technology. The method comprises: obtaining project information of the group intranet, determining the relevant working nodes in the project information; determining the key length of the asymmetric encryption algorithm according to the region and level where each working node is located; obtaining project data, determining the target working node to be transmitted for the project data, and determining the key length of the symmetric encryption algorithm according to the project data and the target working node; encrypting the project data according to the key length of the symmetric encryption algorithm, encrypting the key of the symmetric encryption algorithm using the key length of the asymmetric encryption algorithm, obtaining encrypted data, and transmitting the encrypted data to the target working node. The implementation of the technical solution provided in this application can provide differentiated encryption protection for working nodes in different regions and levels.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security technology, and in particular to a multi-level data encryption transmission method and system for a group enterprise intranet. Background Art

[0002] With the continuous development of enterprise informatization, more and more large enterprises need to conduct business collaboration on a global scale. In order to achieve efficient internal communication and resource sharing, these large enterprises usually build their own internal enterprise network, namely the group intranet, to connect branches and production bases in different regions.

[0003] When collaborating on a project in such a large distributed network environment, it is necessary to frequently transmit sensitive project-related data between branches in different regions and between departments at different levels within the company. However, due to the complexity and distributed characteristics of the group intranet, these sensitive data face high security risks during transmission, such as data theft and tampering. Therefore, how to ensure the security of sensitive project data during transmission in the group intranet has become a key issue that enterprises urgently need to solve.

[0004] Traditional encryption methods usually use fixed encryption algorithms and key lengths to provide the same level of encryption protection for all data. However, this "one-size-fits-all" data encryption method ignores the differentiated security needs of different areas and nodes at different levels in the group's intranet, which may result in insufficient encryption strength for some data and make it difficult to resist external attacks, while the encryption strength of some data is too high, causing unnecessary performance loss. Summary of the invention

[0005] The present application provides a multi-level data encryption transmission method and system for a group enterprise intranet, which can perform differentiated encryption protection on working nodes in different areas and levels.

[0006] In a first aspect of the present application, the present application provides a multi-level data encryption transmission method for a group intranet, comprising:

[0007] Acquire project information of a group intranet, and determine relevant working nodes in the project information, wherein the group intranet includes company intranets in different regions, each of the company intranets includes a multi-level hierarchical intranet, and each of the hierarchical intranets includes at least one working node;

[0008] Determine the key length of the asymmetric encryption algorithm according to the region and level of each of the working nodes;

[0009] Acquire project data, determine a target working node to which the project data is to be transmitted, and determine a key length of a symmetric encryption algorithm based on the project data and the target working node;

[0010] The project data is encrypted according to the key length of the symmetric encryption algorithm, the key of the symmetric encryption algorithm is encrypted using the key length of the asymmetric encryption algorithm to obtain encrypted data, and the encrypted data is transmitted to the target working node.

[0011] By adopting the above technical solution, we can obtain the project information of the group intranet, determine the working nodes of different regions and levels participating in the project, and achieve the adaptation to the intranet of large enterprise groups. According to the regional and hierarchical characteristics of the nodes, a combination of asymmetric encryption algorithms and symmetric encryption algorithms is used to dynamically calculate the reasonable key length for communication between different nodes. Compared with traditional static keys, this solution can realize the dynamic adjustment of the transmission security strength between different nodes, which not only meets the security requirements of various nodes, but also improves encryption efficiency.

[0012] It provides a reliable, flexible and intelligent data transmission protection solution for large internal networks of enterprises. Data transmission between companies in different regions and between different departments can be encrypted and securely controlled, effectively protecting the security and integrity of internal enterprise data and preventing data from being stolen or damaged during transmission. At the same time, the solution also improves encryption efficiency, reduces resource consumption, and better adapts to the characteristics of large data volumes and complex network environments within modern enterprises.

[0013] Optionally, determining the key length of the asymmetric encryption algorithm according to the region and level at which each of the working nodes is located includes:

[0014] Substituting the number of each of the working nodes, and the region and level at which each of the working nodes is located into the first encryption formula to obtain the key length of the asymmetric encryption algorithm;

[0015] Among them, the first encryption formula is:

[0016] ;

[0017] Where K represents the key length of the asymmetric encryption algorithm, K 0 represents the basic key length of the asymmetric encryption algorithm, m represents the total number of regions, n represents the total number of levels, C ij represents the adjustment coefficient of the i-th region and the j-th level, A i represents the security level weight of the ith area, L ij N represents the security level weight of the j-th level intranet in the i-th area. ij Indicates the number of working nodes in the j-th level intranet of the i-th region.

[0018] By adopting the above technical solution, when determining the key length of the asymmetric encryption algorithm, multiple factors such as the number of working nodes, the region and level are comprehensively considered. The number of working nodes reflects the complexity and security requirements of the network, and the region and level reflect the business sensitivity of different nodes. The first encryption formula introduces the regional security level weight and the level security level weight, which can distinguish the security sensitivity of different regional levels. An adjustable coefficient is also set to balance the effects of various influencing factors. The asymmetric encryption key length suitable for communication between different nodes can be dynamically obtained through calculation.

[0019] Compared with traditional static key distribution, the first encryption formula can adjust the security strength according to the actual situation of the node, set longer keys for important areas and levels, and shorten keys for insensitive areas to improve encryption efficiency. At the same time, it also provides flexible adjustment coefficients to adjust the key strength distribution according to security policy needs. It realizes the refined control of asymmetric encryption key length, which not only ensures the security of key data, but also improves transmission efficiency.

[0020] By introducing this formula to calculate the asymmetric encryption key length, hierarchical security control can be achieved in the multi-level data transmission process for the group intranet, so that the communication between nodes in different departments and regions can reach the required security strength, preventing data leakage and attacks. At the same time, it also avoids the waste of resources caused by excessive encryption and achieves a balance between security and efficiency.

[0021] Optionally, after transmitting the encrypted data to the target working node, the method further includes:

[0022] The project information is detected periodically, and when it is determined that the number of working nodes that have changed in the project information is greater than a preset number, the key length of the asymmetric encryption algorithm is recalculated according to the first encryption formula.

[0023] By adopting the above technical solution, a technical means for periodically detecting changes in project information is set up. When the project participating nodes change significantly, it will trigger the recalculation of the key length of the asymmetric encryption algorithm. Compared with the traditional static key distribution, this mechanism realizes dynamic adjustment in the encrypted transmission process for the group's intranet. As the project progresses, the number of participating nodes in different regions and levels may change. If the old key length distribution continues to be used, it may cause the new nodes to use keys that are too weak or too strong. This solution calls the original key generation formula to recalculate the asymmetric encryption key length based on the node changes, so that the key strength of each node adapts to the latest project information.

[0024] It realizes dynamic adjustment in the multi-level data encryption transmission process for the group intranet. When there are major changes in project participants, it can automatically trigger the recalculation of key length, generate and issue new keys to adapt to the changes in network structure and security requirements caused by the progress of the project. It avoids the security risks caused by outdated key configuration and reduces the system overhead of repeated calculation and redeployment. It enables the encrypted transmission system to flexibly respond to dynamic changes in the progress of intranet projects.

[0025] Optionally, determining a key length of a symmetric encryption algorithm according to the project data and the target working node includes:

[0026] Substituting the data volume of the project data, the confidentiality of the project data, the transmission mode of the project data and the network delay of each target working node into the second encryption formula to obtain the key length of the symmetric encryption algorithm, wherein the transmission mode includes serial transmission and parallel transmission;

[0027] Wherein, the second encryption formula includes:

[0028] S=K 1 +a*P+b*log(D)+d*I*Tc*L(T);

[0029] Where S represents the key length of the symmetric encryption algorithm, K 1 represents the basic key length of the symmetric encryption algorithm, a, b, c, d represent the corresponding adjustment coefficients respectively, P represents the confidentiality of the project data, D represents the data volume of the project data, I represents the data interaction duration when the project data is transmitted in the transmission mode, T represents the transmission mode of the project data, T is 1 in the case of serial transmission, and T is 0 in the case of parallel transmission, and L(T) represents the delay factor function;

[0030] Wherein, the delay factor function is:

[0031] L(T)=T*L avg + (1-T)*L max ;

[0032] Where, L avg represents the average network delay of each target working node, L max Indicates the maximum network delay of each target working node.

[0033] By adopting the above technical solution, the second encryption formula sets different weight coefficients for each influencing factor, which can balance the effect of each factor on the key length. As the amount of data or confidentiality increases, the key length is automatically increased to meet higher security requirements. During serial transmission, the impact of interaction time on security is considered. Network delay is reflected in the key length through the delay factor function, automatically compensating for the impact of network conditions on secure transmission.

[0034] The dynamic adjustment of the symmetric encryption key length is realized, and the reasonable key strength is set according to the specific data and network conditions, which not only ensures security but also improves transmission efficiency. Compared with static key allocation, this solution can intelligently adapt to different application scenarios and reduce resource consumption. At the same time, it has the ability to flexibly adjust the weight coefficient, which can be easily optimized according to actual needs.

[0035] Optionally, after transmitting the encrypted data to the target working node, the method further includes:

[0036] When the transmission mode of the project data is the serial transmission, determining the key update frequency according to the data interaction duration when the project data is transmitted in the transmission mode;

[0037] The encryption data of the project data is updated according to the key update frequency.

[0038] By adopting the above technical solution, a technical means of dynamically updating the encryption key is set for the scenario where the project data is transmitted serially for a long time. Before transmission, a reasonable key update frequency is calculated based on the expected interaction time. Then, during the data transmission process, the encryption key is periodically regenerated and updated according to the predetermined frequency.

[0039] Compared with the traditional transmission method that uses the same key, this solution reduces the exposure time and the risk of cracking of a single key, and enhances the security of data transmission. As the interaction time increases, the update frequency will automatically increase, making key updates more timely. At the same time, this solution also avoids the system overhead caused by too frequent updates. It allows a high security strength to be maintained even when a large amount of data is transmitted serially for a long time. Dynamically adjusting the key update frequency not only ensures the confidentiality of the data, but also improves the transmission efficiency.

[0040] Optionally, after transmitting the encrypted data to the target working node, the method further includes:

[0041] When it is determined that the project has ended and / or there is a target working node that exits the project, the key of the corresponding target working node is destroyed.

[0042] By adopting the above technical solution, a technical means is set up to automatically destroy the corresponding key when the project ends or the node exits. By monitoring the project progress or node participation status, once the project ends or the node exits, the corresponding key destruction operation is immediately executed. In the traditional key management mechanism, the key is easily leaked if it is stored for too long. This solution realizes dynamic key destruction in the multi-level data encryption transmission process for the group intranet. When the encrypted communication link is no longer needed, the relevant key is cleared in time, effectively shortening the life cycle of the key.

[0043] Optionally, the method further includes:

[0044] Before the encrypted data is transmitted to the target working node, a summary calculation is performed on the encrypted data based on a hash algorithm to obtain summary information, and the summary information is attached to the encrypted data for transmission;

[0045] After the target working node receives the encrypted data and the summary information, the encrypted data is decrypted to obtain the project data, and a hash operation is performed on the decrypted project data to obtain a verification summary;

[0046] Determining whether the verification summary is consistent with the summary information;

[0047] If the verification summary is consistent with the summary information, it is determined that the project data has not been tampered with during the transmission process;

[0048] If the verification summary is inconsistent with the summary information, it is determined that the project data has been tampered with during transmission.

[0049] By adopting the above technical solution, a hash algorithm is used to generate a data signature before encrypted transmission; after transmission, the receiver compares the signature to verify the data integrity. Compared with traditional transmission that only relies on encryption, this technical means provides an infrared verification mechanism for the transmission link. The sender calculates the original data summary, and the receiver calculates the received data summary and verifies the consistency, which can effectively prevent the data from being destroyed during transmission.

[0050] When the original digest and the received digest are consistent, the data is verified to be intact during transmission. If they are inconsistent, it can be determined that the data has been illegally modified. Compared with traditional transmission, which cannot detect transmission risks, this solution can identify data tampering. This verification mechanism improves security, reduces transmission risks, makes multi-level encrypted transmission for the group intranet more reliable, and avoids the impact of erroneous data. It also allows transmission anomalies to be quickly identified and located.

[0051] In a second aspect of the present application, a multi-level data encryption transmission system for a group intranet is provided, comprising:

[0052] A project information acquisition module, used to acquire project information of a group intranet and determine relevant working nodes in the project information, wherein the group intranet includes company intranets in different regions, each of which includes a multi-level intranet, and each of which includes at least one working node;

[0053] A first key length determination module, used to determine the key length of the asymmetric encryption algorithm according to the region and level of each of the working nodes;

[0054] A second key length determination module is used to obtain project data, determine a target working node to which the project data is to be transmitted, and determine a key length of a symmetric encryption algorithm based on the project data and the target working node;

[0055] The project data encryption module is used to encrypt the project data according to the key length of the symmetric encryption algorithm, encrypt the key of the symmetric encryption algorithm using the key length of the asymmetric encryption algorithm, obtain encrypted data, and transmit the encrypted data to the target working node.

[0056] In a third aspect of the present application, a computer storage medium is provided, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above method steps.

[0057] In a fourth aspect of the present application, an electronic device is provided, comprising: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.

[0058] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0059] By adopting the technical solution of this application, the project information of the group intranet is obtained, and the working nodes of different regions and levels participating in the project are determined, so as to achieve the adaptation to the intranet of large enterprise groups. According to the regional and hierarchical characteristics of the nodes, a combined encryption mechanism of asymmetric encryption algorithms and symmetric encryption algorithms is used to dynamically calculate the reasonable key length for communication between different nodes. Compared with traditional static keys, this solution can realize the dynamic adjustment of the transmission security strength between different nodes, which not only meets the security requirements of various nodes, but also improves the encryption efficiency.

[0060] The data transmission between companies in different regions and between different departments can be encrypted and securely controlled, effectively protecting the security and integrity of internal enterprise data and preventing data from being stolen or damaged during transmission. At the same time, the solution also improves encryption efficiency, reduces resource consumption, and better adapts to the characteristics of large data volumes and complex network environments within modern enterprises. The solution provides a reliable, flexible and intelligent data transmission protection solution for large internal networks of enterprises. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 It is a flowchart of a multi-level data encryption transmission method for a group intranet provided in an embodiment of the present application;

[0062] Figure 2 It is a structural diagram of a multi-level data encryption transmission system for a group intranet provided by an embodiment of the present application;

[0063] Figure 3 It is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application.

[0064] Description of reference numerals: 300, electronic device; 301, processor; 302, communication bus; 303, user interface; 304, network interface; 305, memory. DETAILED DESCRIPTION

[0065] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0066] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.

[0067] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0068] Please refer to Figure 1 , Figure 1 This is a flowchart of a multi-level data encryption transmission method for a group intranet provided by an embodiment of the present application. The method can be implemented by a computer program, can be implemented by a single-chip microcomputer, or can be run on a multi-level data encryption transmission system for a group intranet based on a von Neumann system. The computer program can be integrated into an application or run as an independent tool application. Specifically, the multi-level data encryption transmission method for a group intranet can include the following steps:

[0069] Step 101: Obtain project information of the group intranet and determine relevant working nodes in the project information. The group intranet includes company intranets in different regions. Each company intranet includes multi-level hierarchical intranets. Each level of intranet includes at least one working node.

[0070] Among them, the group intranet refers to an internal dedicated computer network built by a large cross-regional enterprise group, which is used to connect offices, production bases, etc. in different regions of the group. In the embodiments of this application, the group intranet can be understood as a global internal network built by a large enterprise group, which connects the corporate headquarters and branches, production plants, and R&D centers in various regions, and is used to provide a unified digital office and collaborative work environment to support information sharing and business collaboration within the enterprise.

[0071] The group intranet is composed of internal company networks (company intranets) in different geographical areas. Each company intranet can be further divided into multi-level hierarchical intranets, and each hierarchical intranet contains at least one working node. Regionalization and stratification are the main characteristics of the group intranet. This application improves the confidentiality and integrity of internal data transmission by realizing encryption and security control of data transmission between different regions and levels of the intranet in the environment of such a large group intranet.

[0072] Among them, work nodes in different regions and at different levels refer to the terminals and servers participating in the project. These nodes are distributed in different geographical companies and staff of departments at different levels in the group's intranet.

[0073] Further, project information refers to relevant data and details about a project. In the embodiment of the present application, project information can be understood as relevant information about cooperation between different regional companies and departments in the same group intranet to achieve a certain business goal.

[0074] In a feasible implementation, the project information may include: project name, project phase, estimated schedule; work nodes involved in the project, including regional companies and hierarchical departments; data and resources required for the project, etc.

[0075] Specifically, in order to achieve multi-level encrypted data transmission for the group intranet, it is necessary to first obtain the project information of the group intranet to determine the various work nodes involved in the project. The project information includes the project name, participating nodes, resource requirements, etc. Obtaining project information is the first step in implementing multi-level encrypted transmission.

[0076] Specifically, the existing project management system can be used to extract detailed information about the project, analyze the work nodes involved in the project information, and determine in which regional companies and hierarchical departments these nodes are distributed in the group's intranet, so as to clarify the data and information that need to be encrypted and transmitted between nodes. This will clarify the work nodes involved in the project and the distribution of these nodes in the group's network, and also establish the relationship between the project nodes and the network topology structure, so as to facilitate the rapid update of relevant node information when the project changes.

[0077] Step 102: Determine the key length of the asymmetric encryption algorithm based on the region and level of each working node.

[0078] Among them, an asymmetric encryption algorithm refers to an encryption algorithm that uses different key pairs for encryption and decryption. It requires a pair of keys - a public key (public key) and a private key (private key), where the public key is used for encryption and the private key is used for decryption. In the embodiments of the present application, an asymmetric encryption algorithm can be understood as a cryptographic mechanism that provides confidentiality, authentication, integrity and non-repudiation by using paired keys.

[0079] Asymmetric encryption algorithms are used in this application to securely exchange session keys used for symmetric encryption between working nodes. The sending node encrypts the session key using the public key of the receiving node and sends it to the receiving node. The receiving node decrypts the session key using its own private key. Since only the node itself holds the private key, the confidentiality of the session key can be improved.

[0080] Further, the key length of an asymmetric encryption algorithm refers to the binary bit length of the key constituting the algorithm key pair. In an embodiment of the present application, the key length of an asymmetric encryption algorithm can be understood as the bit length of the public key and the private key, which reflects the security strength that the key pair can provide.

[0081] The longer the key length, the more difficult it is to crack and the higher the security strength it provides. However, a key that is too long will also reduce the efficiency of encryption and decryption. The key length of the asymmetric encryption algorithm is used in this application to dynamically adjust the security strength of the communication link between nodes in different regions and levels. Determining the key length based on the importance of the node, the data sensitivity requirements, and the complexity of the network can balance security and efficiency.

[0082] Specifically, in order to achieve multi-level data encryption transmission for the group's intranet, it is necessary to dynamically determine the key length of the asymmetric encryption algorithm for working nodes in different areas and levels to adapt to the security strength required by each node.

[0083] Based on the above embodiment, as an optional embodiment, in step 102: determining the key length of the asymmetric encryption algorithm according to the region and level of each working node may further include the following steps:

[0084] Substituting the number of each working node, and the region and level of each working node into the first encryption formula to obtain the key length of the asymmetric encryption algorithm;

[0085] Among them, the first encryption formula is:

[0086] ;

[0087] In the formula, K represents the key length of the asymmetric encryption algorithm, K 0 represents the basic key length of the asymmetric encryption algorithm, m represents the total number of regions, n represents the total number of levels, C ij represents the adjustment coefficient of the i-th region and the j-th level, A i represents the security level weight of the ith area, L ij N represents the security level weight of the j-th level intranet in the i-th area. ij Indicates the number of working nodes in the j-th level intranet of the i-th region.

[0088] Among them, the number of working nodes refers to the number of nodes such as terminals and servers participating in the project. In the embodiments of the present application, the number of working nodes can be understood as the total number of working nodes (including terminals, servers, etc.) in the company intranet in different areas and levels of the network in the same project.

[0089] The number of working nodes is used in the first encryption formula to calculate the key length of the asymmetric encryption algorithm, reflecting the complexity of data interaction. The more working nodes there are, the larger the interaction path and the amount of information, and a longer key is required to ensure security. The number of working nodes is a parameter of the first encryption formula, combined with the parameters of the region and level, and can dynamically calculate the asymmetric encryption key length suitable for the communication of each node of the project, achieving a balance between security and efficiency.

[0090] The region and level of each work node refers to the geographical area of ​​the company intranet where the work nodes participating in the project are located and the department level to which they belong. In the embodiment of the present application, it can be understood as which geographical regional branches of the group intranet the work nodes involved in the project are located and which department levels in these branches.

[0091] The region and level information of each working node is used to calculate the key length of the asymmetric encryption algorithm in the first encryption formula, reflecting the security sensitivity of different regions and levels. Different regions and levels have different business sensitivities and require different security strengths. Taking the region and level of the working node as parameters, the asymmetric encryption key length that meets the communication security requirements of the node can be dynamically calculated to achieve security control of transmission between regions and levels.

[0092] Specifically, in a large network environment, different areas and levels may face different security threats and protection requirements. The traditional one-size-fits-all key length setting method cannot flexibly respond to such diverse security requirements, which may lead to excessive data protection in some areas, increasing computing and management costs, while some areas may face security risks due to insufficient protection. Therefore, the technical problem lies in how to design a method that can dynamically adjust the key length according to the specific security requirements of different areas and levels.

[0093] When designing the first encryption formula, the main goal is to ensure that the asymmetric encryption key length can adapt to the security requirements of different regions and levels of the intranet, thereby providing a flexible and secure encryption environment. This design idea takes into account the following key factors:

[0094] The basic key length ensures that all areas and levels have at least basic encryption protection. It provides a safe starting point to ensure basic encryption security of data even in environments with minimal security requirements.

[0095] The regional security level weight reflects the degree of security threats and required security levels that different regions may face. Different geographical or logical regions may face different security challenges due to different policies, regulations or network environments. The regional security level weight allows the key length to be adjusted according to the actual security needs of the region.

[0096] The security level weights of the hierarchical intranet can take into account the specific security requirements of different network layers in each region. Within a region, networks at different levels (such as management network and production network) may have different security requirements due to their different functions and external connections. The security level weights of the hierarchical intranet can ensure that the key length of each layer is appropriate for its security level.

[0097] The number of working nodes, taking into account the impact that the number of nodes may have on the overall security of the network. The more nodes there are, the more potential points of intrusion there are, so stronger encryption measures are needed to protect the wider network structure.

[0098] The adjustment factor can provide a flexible parameter to adapt to rapidly changing security environments or special situations. It allows the key length to be flexibly adjusted to respond to actual conditions based on the latest security analysis, technological developments, or risks observed in actual operations.

[0099] By applying the first encryption formula, the key length can be dynamically adjusted according to actual security needs to better adapt to the specific environment and risks of different regions and levels; through the detailed weight and adjustment coefficient settings, it ensures that each region and level is properly protected, reducing the waste of resources caused by over-encryption and the security risks caused by insufficient encryption. Reasonable key length settings reduce unnecessary computing burdens and optimize overall system performance and management costs.

[0100] In summary, the first encryption formula provides an efficient and flexible method to adjust the key length according to different security levels and actual needs, thereby ensuring data security while effectively managing resources and costs. This method can cope with complex and changing network environments and ensure the security and efficiency of the entire system.

[0101] Based on the above embodiment, as an optional implementation method, in order to adapt to the changes in project nodes, it is necessary to establish a periodic detection mechanism. When the project nodes undergo significant changes, the key length of the asymmetric encryption algorithm is recalculated.

[0102] Specifically, this step can be performed: periodically checking the project information, and when it is determined that the number of working nodes that have changed in the project information is greater than a preset number, recalculating the key length of the asymmetric encryption algorithm according to the first encryption formula.

[0103] Specifically, the current project information is checked regularly, the number of working nodes participating in the project is extracted, and compared with the number of recorded nodes. If the number of changed nodes exceeds the preset threshold, the key length is recalculated. The first encryption formula is called again, the number of working nodes after the change and their region and level information are entered, and the asymmetric encryption key length of each working node is recalculated.

[0104] According to the newly calculated key length, the asymmetric key pair is regenerated and sent to each relevant node to replace the key pair currently used. Subsequent data transmission will be encrypted with the new key pair to adapt to the new situation after the project node changes.

[0105] Therefore, the key length can be dynamically updated according to the changes in the project nodes, so that the security strength can adapt to the latest situation. It avoids the security risks caused by continuing to use inappropriate key lengths after project changes, and also prevents the system overhead caused by unnecessary recalculation and redeployment of keys. By establishing a periodic detection and dynamic update mechanism, the automation and intelligence of key management can be achieved, making the entire multi-level encryption transmission system more flexible and efficient.

[0106] Step 103: Acquire the project data, determine the target working node to which the project data is to be transmitted, and determine the key length of the symmetric encryption algorithm based on the project data and the target working node.

[0107] Among them, the target working node refers to the receiving node of the project data transmission. In the embodiment of the present application, the target working node can be understood as the network node participating in the project that needs to receive encrypted data, including terminals, servers, etc. The information of the target working node is used to calculate the key length of the symmetric encryption algorithm. Because the network conditions of the target node will affect the data transmission time, thereby affecting the security strength requirements. Taking into account parameters such as the network delay of the target node, the symmetric encryption key length that meets both security requirements and the target node network environment can be calculated to achieve safe and efficient project data transmission.

[0108] Based on the above embodiment, as an optional embodiment, in step 103: Step 103: obtaining project data, determining the target working node to which the project data is to be transmitted, and determining the key length of the symmetric encryption algorithm according to the project data and the target working node, this step may specifically include the following steps:

[0109] Substituting the data volume of the project data, the confidentiality of the project data, the transmission mode of the project data and the network delay of each target working node into the second encryption formula, the key length of the symmetric encryption algorithm is obtained, and the transmission mode includes serial transmission and parallel transmission;

[0110] The second encryption formula includes:

[0111] S=K 1 +a*P+b*log(D)+d*I*Tc*L(T);

[0112] In the formula, S represents the key length of the symmetric encryption algorithm, K 1represents the basic key length of the symmetric encryption algorithm, a, b, c, and d represent the corresponding adjustment coefficients, P represents the confidentiality of the project data, D represents the amount of project data, I represents the data interaction duration when the project data is transmitted in a transmission mode, T represents the transmission mode of the project data, T is 1 for serial transmission and 0 for parallel transmission, and L(T) represents the delay factor function;

[0113] Among them, the delay factor function is:

[0114] L(T)=T*L avg + (1-T)*L max ;

[0115] Where, L avg represents the average network delay of each target working node, L max Indicates the maximum network delay of each target worker node.

[0116] The data volume of the target data refers to the size or capacity of the project-related data that needs to be encrypted and transmitted. In the embodiment of the present application, the data volume of the project data can be understood as the total size of various types of digital data such as text, images, and videos that need to be transmitted between different working nodes in the same project.

[0117] The data volume information of the project data is used to calculate the key length of the symmetric encryption algorithm in the second encryption formula. The larger the data volume, the longer the transmission time, and a longer key is required to prevent the risk of being cracked during transmission. By adding the data volume as a parameter to the calculation of the second encryption formula, the symmetric encryption key length that meets the current transmission data size can be dynamically obtained, thereby ensuring the security of data transmission.

[0118] The confidentiality of project data refers to the sensitivity of project data and the degree of protection required. In the embodiments of the present application, the confidentiality of project data can be understood as the evaluation result of the importance and risk level of data to be transmitted within the same project. The confidentiality of project data is used to calculate the key length of the symmetric encryption algorithm in the second encryption formula. The higher the confidentiality, the higher the encryption protection required. Thus, the symmetric encryption key length that meets the sensitivity of the data can be dynamically obtained, thereby ensuring the secure transmission of data of different sensitivity levels.

[0119] The transmission mode of project data refers to the transmission mode of project data in the network. In the embodiments of the present application, the transmission mode of project data can be understood as whether the project data is transmitted between working nodes in a serial or parallel manner. Serial transmission refers to the transmission of data to target nodes one by one in sequence, and parallel transmission refers to the transmission of data to multiple target nodes at the same time. The transmission mode of project data is used in the second encryption formula to calculate the interaction duration of data to determine the appropriate key length. Different transmission modes have different interaction complexity and security requirements.

[0120] For example, in the application scenario of the multi-level encrypted transmission technology solution, for data with small data volume and high transmission speed requirements, it is recommended to use parallel transmission. For example, information such as project weekly reports and project change notifications that need to be quickly distributed to multiple regional nodes can establish transmission channels at the same time and push data in parallel without blocking. This can improve transmission efficiency.

[0121] For project data with large data volumes, such as large documents, large model files for machine learning, source code containing key business logic, etc., serial transmission is recommended. Serial transmission can be transmitted from one node to the next in sequence, completing the entire data transmission process in batches and stages. This can avoid the impact of bandwidth limitations on a single node. In addition, for some sensitive data, sequential transmission is also conducive to data security control.

[0122] Among them, the network delay of each target working node refers to the network communication delay between the target nodes of the project data transmission. In an embodiment of the present application, the network delay of each target working node can be understood as the time required for data transmission between different working nodes participating in the project. Network delay affects the total duration of data transmission, thereby affecting the security of transmission. The network delay of each target node is used to calculate the delay factor in the second encryption formula to dynamically determine the key length of the symmetric encryption algorithm that meets the network environment. Taking the network delay into account, a symmetric encryption key length that is both secure and suitable for the network status of the target node can be calculated to achieve efficient data transmission.

[0123] The second encryption formula is designed to solve the balance problem between data security and transmission efficiency in modern encryption systems. This balance is particularly critical because it is necessary to ensure that data is both secure and efficient during transmission or storage to cope with changes in various networks and data volumes.

[0124] In the second encryption formula, the key length of the symmetric encryption algorithm is the final result of the calculation. It should be long enough to ensure data security, but not too long to avoid unnecessary processing delays and resource consumption. The basic key length of the symmetric encryption algorithm provides a starting security baseline to ensure basic security even without other security enhancements.

[0125] The adjustment factor a is used to amplify or reduce the impact of the amount of data on the key length. The confidentiality of project data is usually set according to the sensitivity and confidentiality requirements of the data. The higher the confidentiality, the longer the corresponding key length should be to provide stronger protection.

[0126] The adjustment factor b is used to amplify or reduce the effect of the amount of data on the key length. The larger the amount of project data, the higher the potential security risks and processing complexity, so a longer key is required to protect more data.

[0127] The adjustment factor d is used to adjust the impact of the interaction time on the key length. The interaction time of the project data is the duration of the data during the transmission process when the project data is transmitted in a transmission mode. When serial transmission is , it means that continuous encryption processing is required, so a longer key may be required; when parallel transmission is used, the impact of the interaction time is not considered.

[0128] The adjustment coefficient c is used to indicate the degree of influence of delay on the key length. The delay factor function selects the average delay or the maximum delay according to different transmission modes. It can compensate for the influence of network delay in the calculation of key length to avoid additional delay caused by excessively long keys.

[0129] The design of the second encryption formula not only improves data security, but also optimizes the transmission efficiency of the encryption process by dynamically adjusting the key length to adapt to different security requirements, ensuring that the encryption operation will not consume too many resources or cause unnecessary delays due to the key being too long. In addition, the high flexibility and adaptability of the second encryption formula enables it to adjust the encryption strategy according to the real-time network conditions and data characteristics, and adapt to complex and changing application scenarios.

[0130] Therefore, the second encryption formula effectively solves the contradiction between security and efficiency through its comprehensive design method, providing a solution for modern encryption systems that is both secure and efficient. This method not only protects data from unauthorized access and tampering, but also ensures that the system can still operate efficiently in the face of large amounts of data and undesirable network conditions.

[0131] Based on the above embodiment, as an optional implementation, because the data interaction time is long under serial transmission, using the same key for too long will increase the risk of being cracked. When it is determined that the transmission mode of the project data is serial transmission, the following steps may also be included:

[0132] Step 301: When the transmission mode of the project data is serial transmission, the key update frequency is determined according to the data interaction duration when the project data is transmitted in the transmission mode.

[0133] Step 302: Update the encryption data of the project data according to the key update frequency.

[0134] Among them, the key update frequency refers to the frequency of regularly switching to a new symmetric encryption key during data transmission. In the embodiment of the present application, the key update frequency can be understood as the frequency of switching to a newly generated key every once in a while when a large amount of data is transmitted serially for a long time. The key update frequency is used to regularly update the symmetric encryption key used according to the transmission duration during the data serial transmission process. Taking the key update frequency into account can ensure that the use time of a single key will not be too long, reduce the risk of being cracked, and improve the security of data under long-term transmission.

[0135] Specifically, when it is determined that the project data adopts a serial transmission mode, in order to reduce the security risks of long-term transmission, it is necessary to determine a reasonable key update frequency. Specifically, the project data interaction time information obtained by the second encryption formula and a preset key update time threshold, such as 5 hours, are used to obtain the number of key updates required for this transmission by dividing the interaction time by this time threshold, and then this number is converted into a frequency value as the frequency of periodic key updates during this transmission. In this way, the key update frequency required for this transmission can be determined in advance according to the interaction time before the data transmission begins. This method of regularly updating keys can prevent a single key from being used for a long time, reduce the risk of being cracked, and improve the security of serial transmission data.

[0136] Step 104: Encrypt the project data according to the key length of the symmetric encryption algorithm, encrypt the key of the symmetric encryption algorithm using the key length of the asymmetric encryption algorithm to obtain encrypted data, and transmit the encrypted data to the target working node.

[0137] Specifically, first, according to the determined key length of the asymmetric encryption algorithm, the public key is used to asymmetrically encrypt the project data, and the first layer of encrypted data is output. Then, according to the determined key length of the symmetric encryption algorithm, a symmetric key is randomly generated. The symmetric key is used to symmetrically encrypt the data in the previous step to generate the second layer of encryption result. Next, the asymmetric encryption algorithm and the public key are used to encrypt the symmetric key generated in the previous step to obtain the doubly encrypted project data. Finally, the doubly encrypted project data is transmitted to the target work node. The receiver uses its own asymmetric private key to first decrypt to obtain the symmetric key, and then uses the key to decrypt the project data.

[0138] The use of a dual encryption mechanism can fully utilize the advantages of two encryption algorithms to ensure the confidentiality and integrity of project data and prevent it from being stolen or tampered with during transmission.

[0139] Based on the above embodiment, as an optional embodiment, in order to prevent data from being stolen further, it is necessary to destroy the key of the corresponding node. The process may further include the following steps:

[0140] When it is determined that the project has ended and / or there is a target working node that exits the project, the key of the corresponding target working node is destroyed.

[0141] Specifically, a key lifecycle can be set to correspond to the project cycle and node participation time. When the project is monitored to end or the target node exits, or the key reaches the end of its lifecycle, the asymmetric key and symmetric key of the node are immediately destroyed. During destruction, the key file is completely deleted from the key storage area, and the remaining space is shredded to prevent the key from being recovered. At the same time, the access rights of the node are cancelled to ensure that it can no longer use the old key for decryption. The active destruction strategy can prevent the theft of expired keys, avoid further data leakage, and ensure that the information of the completed project will not continue to be threatened.

[0142] Based on the above embodiment, as an optional embodiment, during the project data transmission process, a verification mechanism may be added to the project data. The process may specifically include the following steps:

[0143] Step 401: Before the encrypted data is transmitted to the target working node, a summary calculation is performed on the encrypted data based on a hash algorithm to obtain summary information, and the summary information is attached to the encrypted data for transmission.

[0144] Specifically, in order to verify the integrity of the data during transmission, a digest algorithm needs to be used to generate a signature for the data before transmission. After the project data is double encrypted, the preset digest calculation function is called, and the project data is used as input to calculate a fixed-length summary information. The summary information is then sent to the target node together with the encrypted project data in the form of additional data.

[0145] After receiving the data, the receiving end can use the same summary calculation function to summarize the received encrypted data and generate signature information. By comparing the signature with the original signature attached to the transmission, if they are consistent, it means that the data is complete, otherwise it means that the data has been modified during transmission. The use of the summary mechanism can effectively verify the integrity of the encrypted data and prevent the data from being tampered with or lost during the transmission process.

[0146] Step 402: After the target working node receives the encrypted data and summary information, it decrypts the encrypted data to obtain the project data, and performs a hash operation on the decrypted project data to obtain the verification summary.

[0147] Specifically, after receiving the encrypted data and the original summary signature, the target node first uses its own asymmetric private key to perform the first-level decryption on the encrypted data to obtain the symmetric key. Then, the symmetric key is used to perform the second-level decryption on the data to restore the original data of the project. Next, the same summary algorithm is executed on the decrypted original data to calculate a verification signature. Finally, the calculated verification signature is compared with the original signature included in the transmission. If the two are consistent, it means that the data is complete and the verification is passed. Otherwise, it means that the data has been modified and there is a security risk.

[0148] The receiving-end verification method can ensure the reliability of the transmission link, prevent data from being tampered with or damaged during transmission, and ensure the authenticity of the data.

[0149] Step 403: Determine whether the verification summary is consistent with the summary information.

[0150] Step 404: If the verification summary is consistent with the summary information, it is determined that the project data has not been tampered with during the transmission process.

[0151] Step 405: If the verification summary is inconsistent with the summary information, it is determined that the project data has been tampered with during the transmission process.

[0152] Specifically, to ensure that the received data is authentic, the summary signature needs to be compared and verified. Specifically, after the target node calculates the verification summary, it directly compares it with the original summary information attached in the transmission.

[0153] If the two are exactly the same, it means that the received encrypted data is the same as when it was sent, has not been tampered with, and the verification is passed. It can be determined that the project data is complete during the transmission process.

[0154] If the checksum and original summary information are inconsistent, it means that the received data is different from the data sent, and the verification fails. It can be judged that the project data has been tampered with or accidentally modified during transmission.

[0155] By directly comparing and verifying the signature, the integrity of the data transmission process can be automatically detected. If it is modified, it can be discovered in time, thus avoiding the use of erroneous data.

[0156] Reference Figure 2 The present application also provides a multi-level data encryption transmission system for a group intranet, including:

[0157] A project information acquisition module, used to acquire project information of a group intranet and determine relevant working nodes in the project information, wherein the group intranet includes company intranets in different regions, each of which includes a multi-level intranet, and each of which includes at least one working node;

[0158] A first key length determination module, used to determine the key length of the asymmetric encryption algorithm according to the region and level of each of the working nodes;

[0159] A second key length determination module is used to obtain project data, determine a target working node to which the project data is to be transmitted, and determine a key length of a symmetric encryption algorithm based on the project data and the target working node;

[0160] The project data encryption module is used to encrypt the project data according to the key length of the symmetric encryption algorithm, encrypt the key of the symmetric encryption algorithm using the key length of the asymmetric encryption algorithm, obtain encrypted data, and transmit the encrypted data to the target working node.

[0161] Based on the above embodiment, as an optional embodiment, the first key length determination module is further used to substitute the number of each of the working nodes, and the region and level where each of the working nodes is located into the first encryption formula to obtain the key length of the asymmetric encryption algorithm;

[0162] Among them, the first encryption formula is:

[0163] ;

[0164] Where K represents the key length of the asymmetric encryption algorithm, K 0 represents the basic key length of the asymmetric encryption algorithm, m represents the total number of regions, n represents the total number of levels, C ij represents the adjustment coefficient of the i-th region and the j-th level, A i represents the security level weight of the ith area, L ij N represents the security level weight of the j-th level intranet in the i-th area. ij Indicates the number of working nodes in the j-th level intranet of the i-th region.

[0165] Based on the above embodiment, as an optional embodiment, the first key length determination module is also used to periodically detect the project information, and when it is determined that the number of working nodes that have changed in the project information is greater than a preset number, the key length of the asymmetric encryption algorithm is recalculated according to the first encryption formula.

[0166] Based on the above embodiment, as an optional embodiment, the second key length determination module is further used to substitute the data volume of the project data, the confidentiality of the project data, the transmission mode of the project data and the network delay of each target working node into the second encryption formula to obtain the key length of the symmetric encryption algorithm, and the transmission mode includes serial transmission and parallel transmission;

[0167] Wherein, the second encryption formula includes:

[0168] S=K 1 +a*P+b*log(D)+d*I*Tc*L(T);

[0169] Where S represents the key length of the symmetric encryption algorithm, K 1 represents the basic key length of the symmetric encryption algorithm, a, b, c, d represent the corresponding adjustment coefficients respectively, P represents the confidentiality of the project data, D represents the data volume of the project data, I represents the data interaction duration when the project data is transmitted in the transmission mode, T represents the transmission mode of the project data, T is 1 in the case of serial transmission, and T is 0 in the case of parallel transmission, and L(T) represents the delay factor function;

[0170] Wherein, the delay factor function is:

[0171] L(T)=T*L avg + (1-T)*L max ;

[0172] Where, L avg represents the average network delay of each target working node, L max Indicates the maximum network delay of each target working node.

[0173] On the basis of the above embodiment, as an optional embodiment, the second key length determination module is also used to determine the key update frequency when the transmission mode of the project data is the serial transmission, according to the data interaction duration when the project data is transmitted in the transmission mode; and update the encrypted data of the project data according to the key update frequency.

[0174] On the basis of the above embodiment, as an optional embodiment, the multi-level data encryption transmission system for the group intranet also includes: a key destruction module, which is used to destroy the key of the corresponding target working node when it is determined that the project has ended and / or there is a target working node that exits the project.

[0175] On the basis of the above embodiment, as an optional embodiment, the multi-level data encryption transmission system for the group intranet also includes: a key verification module, which is used to perform summary calculation on the encrypted data based on a hash algorithm before the encrypted data is transmitted to the target working node, to obtain summary information, and attach the summary information to the encrypted data for transmission; after the target working node receives the encrypted data and the summary information, decrypt the encrypted data to obtain project data, and perform a hash operation on the decrypted project data to obtain a verification summary; determine whether the verification summary is consistent with the summary information; if the verification summary is consistent with the summary information, it is determined that the project data has not been tampered with during transmission; if the verification summary is inconsistent with the summary information, it is determined that the project data has been tampered with during transmission.

[0176] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0177] An embodiment of the present application also provides a computer storage medium, which can store multiple instructions. The instructions are suitable for being loaded by a processor and executed by a multi-level data encryption transmission method for a group intranet such as the above-mentioned embodiment. The specific execution process can refer to the specific description of the embodiment shown, which will not be repeated here.

[0178] The present application also discloses an electronic device. Figure 3 , Figure 3 The electronic device 300 may include: at least one processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .

[0179] The communication bus 302 is used to realize the connection and communication between these components.

[0180] The user interface 303 may include a display interface and a camera interface. Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.

[0181] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0182] Among them, the processor 301 may include one or more processing cores. The processor 301 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the processor 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 301 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface diagrams and applications, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 301, and it can be implemented separately through a chip.

[0183] Among them, the memory 305 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may optionally also be at least one storage device located away from the aforementioned processor 301. Refer to Figure 3 , as a computer storage medium, the memory 305 may include an operating system, a network communication module, a user interface module, and an application program of a multi-level data encryption transmission method for a group intranet.

[0184] exist Figure 3In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 301 can be used to call the application program stored in the memory 305 for a multi-level data encryption transmission method for the group intranet. When executed by one or more processors 301, the electronic device 300 executes one or more of the methods described in the above embodiments. It should be noted that for the aforementioned method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.

[0185] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0186] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0187] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0188] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0189] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.

[0190] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure.

[0191] This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art not described in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A multi-level data encryption transmission method for a group intranet, characterized in that: include: Acquire project information of a group intranet, and determine relevant working nodes in the project information, wherein the group intranet includes company intranets in different regions, each of the company intranets includes a multi-level hierarchical intranet, and each of the hierarchical intranets includes at least one working node; Determine the key length of the asymmetric encryption algorithm according to the region and level of each of the working nodes; Acquire project data, determine a target working node to which the project data is to be transmitted, and determine a key length of a symmetric encryption algorithm based on the project data and the target working node; Encrypting the project data according to the key length of the symmetric encryption algorithm, encrypting the key of the symmetric encryption algorithm using the key length of the asymmetric encryption algorithm to obtain encrypted data, and transmitting the encrypted data to the target working node; The step of determining the key length of the asymmetric encryption algorithm according to the region and level of each of the working nodes includes: Substituting the number of each of the working nodes, and the region and level at which each of the working nodes is located into the first encryption formula to obtain the key length of the asymmetric encryption algorithm; Among them, the first encryption formula is: ; Wherein, K represents the key length of the asymmetric encryption algorithm, K0 represents the basic key length of the asymmetric encryption algorithm, m represents the total number of regions, n represents the total number of levels, and C ij represents the adjustment coefficient of the i-th region and the j-th level, A i represents the security level weight of the ith area, L ij N represents the security level weight of the j-th level intranet in the i-th area. ij represents the number of working nodes in the j-th level intranet of the i-th region; Wherein, determining the key length of the symmetric encryption algorithm according to the project data and the target working node includes: Substituting the data volume of the project data, the confidentiality of the project data, the transmission mode of the project data and the network delay of each target working node into the second encryption formula to obtain the key length of the symmetric encryption algorithm, wherein the transmission mode includes serial transmission and parallel transmission; Wherein, the second encryption formula includes: S=K1+a*P+b*log(D)+d*I*Tc*L(T); In the formula, S represents the key length of the symmetric encryption algorithm, K1 represents the basic key length of the symmetric encryption algorithm, a, b, c, and d represent the corresponding adjustment coefficients, P represents the confidentiality of the project data, D represents the data volume of the project data, I represents the data interaction duration when the project data is transmitted in the transmission mode, T represents the transmission mode of the project data, T is 1 for serial transmission, and T is 0 for parallel transmission, and L(T) represents the delay factor function; Wherein, the delay factor function is: L(T)=T*L avg +(1-T)*L max ; Where, L avg represents the average network delay of each target working node, L max Indicates the maximum network delay of each target working node.

2. The multi-level data encryption transmission method for the group intranet according to claim 1 is characterized in that: After transmitting the encrypted data to the target working node, the method further includes: The project information is detected periodically, and when it is determined that the number of working nodes that have changed in the project information is greater than a preset number, the key length of the asymmetric encryption algorithm is recalculated according to the first encryption formula.

3. The multi-level data encryption transmission method for the group intranet according to claim 1 is characterized in that: After transmitting the encrypted data to the target working node, the method further includes: When the transmission mode of the project data is the serial transmission, determining the key update frequency according to the data interaction duration when the project data is transmitted in the transmission mode; The encryption data of the project data is updated according to the key update frequency.

4. The multi-level data encryption transmission method for the group intranet according to claim 1 is characterized in that: After transmitting the encrypted data to the target working node, the method further includes: When it is determined that the project has ended and / or there is a target working node that exits the project, the key of the corresponding target working node is destroyed.

5. The multi-level data encryption transmission method for the group intranet according to claim 1 is characterized in that: The method further comprises: Before the encrypted data is transmitted to the target working node, a summary calculation is performed on the encrypted data based on a hash algorithm to obtain summary information, and the summary information is attached to the encrypted data for transmission; After the target working node receives the encrypted data and the summary information, the encrypted data is decrypted to obtain the project data, and a hash operation is performed on the decrypted project data to obtain a verification summary; Determining whether the verification summary is consistent with the summary information; If the verification summary is consistent with the summary information, it is determined that the project data has not been tampered with during the transmission process; If the verification summary is inconsistent with the summary information, it is determined that the project data has been tampered with during transmission.

6. A multi-level data encryption transmission system for a group intranet for implementing the multi-level data encryption transmission method for a group intranet as claimed in claim 1, characterized in that: include: A project information acquisition module, used to acquire project information of a group intranet and determine relevant working nodes in the project information, wherein the group intranet includes company intranets in different regions, each of which includes a multi-level intranet, and each of which includes at least one working node; A first key length determination module, used to determine the key length of the asymmetric encryption algorithm according to the region and level of each of the working nodes; A second key length determination module is used to obtain project data, determine a target working node to which the project data is to be transmitted, and determine a key length of a symmetric encryption algorithm based on the project data and the target working node; The project data encryption module is used to encrypt the project data according to the key length of the symmetric encryption algorithm, encrypt the key of the symmetric encryption algorithm using the key length of the asymmetric encryption algorithm, obtain encrypted data, and transmit the encrypted data to the target working node.

7. An electronic device, characterized in that: It includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes the method as described in any one of claims 1-5.

8. A computer storage medium, characterized in that: The computer storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 5 is performed.