Encryption algorithm dynamic selection method and system, and cloud computing-based secure communication method and system
By dynamically selecting encryption algorithms and adjusting encryption parameters in cloud computing and edge computing environments, the problem that the existing technology cannot flexibly adjust encryption policies is solved, and efficient and secure communication and data protection in dynamic network environments are achieved.
Patent Information
- Application Number
- CN202411161901.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2044-08-22
AI Technical Summary
In the face of dynamically changing network environments and diversified security threats, existing secure communication technologies cannot flexibly adjust encryption algorithms and cannot provide optimal security protection.
The dynamic selection method of encryption algorithm is adopted, by calculating the score of each available encryption algorithm, selecting the optimal encryption algorithm based on trade-off parameters of security and efficiency, and dynamically adjusting the encryption parameters and policies in cloud computing and edge computing environments.
It realizes the dynamic selection of the most appropriate encryption algorithm based on real-time requirements and network conditions, ensuring security and efficiency, reducing latency and computing overhead, improving system performance and user experience, and ensuring data confidentiality and security.
Smart Images

Figure CN119051936A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method and device for dynamically selecting an encryption algorithm, and a secure communication method and system based on cloud computing. Background Art
[0002] With the continuous development of network technology, secure communication has become a key challenge in the field of information technology. Especially in the cloud computing environment, due to the centralization of data storage and processing, it is particularly important to ensure the security of data transmission. However, existing security technologies mainly rely on static security monitoring and encryption strategies. This approach often cannot provide the best security protection when facing dynamically changing network environments and diverse security threats. In particular, when it is necessary to flexibly adjust the encryption algorithm according to the sensitivity of the communication content, the security level of the participants, or changes in network conditions, the limitations of static strategies are more obvious. Summary of the invention
[0003] The technical problem to be solved by the present invention is to address the above-mentioned deficiencies in the prior art and propose a method and device for dynamically selecting an encryption algorithm, and a secure communication method and system based on cloud computing. The dynamic selection method of the encryption algorithm can select the optimal encryption algorithm, so that data can be effectively protected under different environments and conditions.
[0004] In a first aspect, the present invention provides a method for dynamically selecting an encryption algorithm, the method comprising the following steps:
[0005] Get current network conditions;
[0006] Calculate the score of each available encryption algorithm based on the current network conditions;
[0007] The calculation formula of the score of the available encryption algorithm is as follows:
[0008] E i =θ*S i +(1-θ)*e i *C 当前 (1)
[0009] in,
[0010] E i represents the score of the i-th available encryption algorithm;
[0011] θ represents the trade-off parameter between security and efficiency, and its value range is [0,1], where 0 represents a complete preference for efficiency and 1 represents a complete preference for security;
[0012] S i Indicates the security level of the i-th available encryption algorithm;
[0013] e i represents the efficiency of the i-th available encryption algorithm;
[0014] C 当前 Indicates the current network conditions;
[0015] Select the available encryption algorithm with the highest score as the target encryption algorithm, thereby completing the dynamic selection of the encryption algorithm;
[0016] The target encryption algorithm is selected as follows:
[0017] f=argmaxE i =argmax(θ*S i +(1-θ)*e i *C Current) (2)
[0019] in,
[0020] f represents the target encryption algorithm;
[0021] argmaxE i Indicates that the encryption algorithm with the highest score is selected from all available encryption algorithms.
[0022] Furthermore, the current network condition C in step S1 当前 , is obtained based on the effective data size and network delay, and its calculation formula is as follows:
[0023]
[0024] Among them, S data Indicates the effective data size;
[0025] L represents network delay;
[0026] According to the calculation formula of the current network condition, substitute it into formula (2) to obtain the calculation formula of the target encryption algorithm as shown in formula (4):
[0027]
[0028] In a second aspect, the present invention provides a secure communication method based on cloud computing, the method is applied to a client device, and the method comprises the following steps:
[0029] Step A1: Acquire target data to be sent; and, acquire current network status; the current network status includes network bandwidth, network delay and current network traffic status;
[0030] Step A2: according to the current network state, adopt the dynamic selection method of the encryption algorithm described in the first aspect to obtain a target encryption algorithm; and, according to the target encryption algorithm, perform encryption parameter configuration and key negotiation;
[0031] Step A3: Encrypting the target data according to the target encryption algorithm, the encryption parameter configuration and the key negotiation;
[0032] Step A4: sending the encrypted target data to the edge computing node, so that the edge computing node pre-processes the encrypted target data before sending it to the cloud computing platform;
[0033] Step A5: receiving the encrypted processing data returned by the edge computing node, wherein the encrypted processing data is obtained by encrypting the original processing data by the cloud computing platform;
[0034] The original processed data is generated after the cloud computing platform performs deep processing on the target data; the encrypted processed data is returned by the cloud computing platform to the edge computing node;
[0035] Step A6: Decrypt the encrypted processed data to restore the original processed data, thereby completing secure communication based on cloud computing.
[0036] Furthermore, the current network status includes current network bandwidth, current network delay and current network traffic status;
[0037] The current network bandwidth is measured by initiating multiple parallel data requests from the client to a predefined server and counting the rate of the returned data;
[0038] The current network delay is obtained by sending a small network packet to the target server and recording the round-trip time;
[0039] The current network traffic status is obtained by real-time monitoring of the input and output of data packets of the network interface and using the Wireshark tool or a built-in operating system tool to perform statistics.
[0040] In a third aspect, the present invention provides a secure communication method based on cloud computing, the method being applied to an edge computing node, the method comprising the following steps:
[0041] Step B1: receiving encrypted target data sent by the client device; the encrypted target data is obtained by the client device using the dynamic selection method of the encryption algorithm described in the first aspect to obtain the target encryption algorithm, and then encrypting the target data to be sent according to the target encryption algorithm;
[0042] Step B2: decrypting and verifying the encrypted target data to restore the target data;
[0043] Step B3: performing data preprocessing on the target data;
[0044] Step B4: sending the preprocessed target data to the cloud computing platform, so that the cloud computing platform performs deep processing on the preprocessed target data and generates original processed data;
[0045] Step B5: receiving the encrypted processed data returned by the cloud computing platform; the encrypted processed data is obtained by encrypting the original processed data by the cloud computing platform;
[0046] Step B6: Transmit the encrypted processed data to the client device so that the client device decrypts the data to obtain the original processed data, thereby completing secure communication based on cloud computing.
[0047] Furthermore, in step B3, data preprocessing is performed on the target data, specifically comprising the following steps:
[0048] Step B3.1: Performing a data quality check on the target data; the data quality check includes identifying and correcting erroneous data formats and removing redundant information;
[0049] Step B3.2: Perform sensitivity analysis and classification on the target data using a predetermined data classification rule or machine learning model;
[0050] Step B3.3: locally encrypting and marking the target data;
[0051] Step B3.4: compress and encapsulate the target data.
[0052] In a fourth aspect, the present invention provides a secure communication method based on cloud computing, which is applied to a cloud computing platform, and the method comprises the following steps:
[0053] Step C1: receiving pre-processed target data sent by the edge computing node;
[0054] The preprocessed target data is obtained by the edge computing node receiving, decrypting and preprocessing the encrypted target data sent by the client device;
[0055] The encrypted target data is obtained by encrypting the target data to be sent according to the target encryption algorithm after the client device obtains the target encryption algorithm using the dynamic selection method of the encryption algorithm described in the first aspect;
[0056] Step C2: deep processing the preprocessed target data to obtain original processed data;
[0057] Step C3: using a second encryption algorithm to encrypt the original processed data to obtain encrypted processed data;
[0058] Wherein, the second encryption algorithm is obtained by using the dynamic selection method of the encryption algorithm described in claim 1 or 2;
[0059] Step C4: Send the encrypted processed data to the edge computing node, so that the edge computing node sends the encrypted processed data to the client device, and then the client device decrypts and obtains the original processed data, thereby completing secure communication based on cloud computing.
[0060] Further, after step C4, the method further comprises step C5;
[0061] Step C5: Synchronizing the security policies of the edge computing node and the cloud computing platform;
[0062] The step C5 specifically comprises:
[0063] updating the security policy and sending the security policy to the edge computing node; and / or receiving the security processing measures sent by the edge computing node.
[0064] In a fifth aspect, the present invention provides a device for dynamically selecting an encryption algorithm, the device comprising:
[0065] An acquisition unit, used to acquire current network conditions;
[0066] a calculation unit, connected to the acquisition unit, for calculating a score of each available encryption algorithm according to current network conditions;
[0067] The calculation formula of the score of the available encryption algorithm is as follows:
[0068] E i =θ*S i +(1-θ)*e i *C 当前 ;
[0069] in,
[0070] E i represents the score of the i-th available encryption algorithm;
[0071] θ represents the trade-off parameter between security and efficiency, and its value range is [0,1], where 0 represents a complete preference for efficiency and 1 represents a complete preference for security;
[0072] S i Indicates the security level of the i-th available encryption algorithm;
[0073] e i represents the efficiency of the i-th available encryption algorithm;
[0074] C 当前 Indicates the current network conditions;
[0075] A selection unit, connected to the calculation unit, for selecting the highest-scoring available encryption algorithm as the target encryption algorithm, thereby completing the dynamic selection of the encryption algorithm;
[0076] The target encryption algorithm selection formula is as follows:
[0077] f=argmaxE i =argmax(θ*S i +(1-θ)*e i *C 当前 );
[0078] in,
[0079] f represents the target encryption algorithm;
[0080] argmaxE i Indicates that the encryption algorithm with the highest score is selected from all available encryption algorithms.
[0081] In a sixth aspect, the present invention provides a secure communication system based on cloud computing, the system comprising:
[0082] The dynamic selection device of the encryption algorithm described in the fifth aspect is used to obtain a target encryption algorithm;
[0083] A client device, connected to the dynamic selection device, for executing the steps of the method in the second aspect;
[0084] An edge computing node, connected in communication with the client device, for executing the steps of the method in the third aspect;
[0085] A cloud computing platform, which is in communication connection with the edge computing node, is used to execute the steps of the method in the fourth aspect.
[0086] Beneficial effects of the present invention:
[0087] 1. The present invention can dynamically select the most appropriate encryption algorithm based on real-time requirements, data sensitivity, and the security level of available encryption algorithms.
[0088] 2. The present invention can dynamically select the optimal encryption algorithm according to the real-time network status and resource usage, and can reduce system delay and computing overhead while ensuring security, thereby improving system performance.
[0089] 3. The present invention can select an algorithm that consumes less computing resources according to system load and performance requirements, thereby optimizing resource utilization.
[0090] 4. The present invention introduces a trade-off parameter between security and efficiency, so that when selecting an encryption algorithm, it can be flexibly adjusted according to specific needs and network status, ensuring that the optimal balance between security and efficiency is found.
[0091] 5. The present invention reduces the delay of the encryption and decryption process, optimizes network performance and improves user experience by selecting a highly efficient encryption algorithm while ensuring security.
[0092] 6. The present invention ensures the confidentiality of data during communication and storage by encrypting target data and deeply processed data, thereby preventing unauthorized access and data leakage.
[0093] 7. The present invention can quickly respond to changing network environments and security threats, automatically adjust encryption parameters and algorithms, and make the system highly flexible and adaptable.
[0094] 8. The present invention uses a method combining cloud computing and edge computing to optimize the data processing and encryption process, especially the specific implementation details of how to delegate some encryption tasks to edge computing nodes for execution, so as to reduce the delay in the data transmission process and improve the real-time performance of communication. On the one hand, through the pre-processing of edge computing, data can be quickly transmitted and processed, the response speed of the system can be improved, and the needs of real-time communication can be met; on the other hand, the cloud platform can centrally manage and monitor the data transmission process, quickly discover and respond to potential security incidents, and improve the overall security protection level.
[0095] 9. The cloud computing platform of the present invention has data analysis and machine learning capabilities, can conduct in-depth analysis of data processing results, and optimize subsequent data processing and decision-making.
[0096] 10. The present invention can intelligently distribute encryption and data processing tasks to the cloud and edge nodes, thereby improving the resource utilization efficiency and processing capacity of the entire system. BRIEF DESCRIPTION OF THE DRAWINGS
[0097] Figure 1 A system architecture diagram in an embodiment of the present invention;
[0098] Figure 2 is a flowchart of secure communication based on cloud computing in an embodiment of the present invention;
[0099] Figure 3 A schematic diagram of a method for dynamically selecting an encryption algorithm in an embodiment of the present invention;
[0100] Figure 4A schematic diagram of a dynamic selection device for an encryption algorithm in an embodiment of the present invention;
[0101] Among them, the figure marks are: 10, acquisition unit, 20, calculation unit, 30, selection unit. DETAILED DESCRIPTION
[0102] In order to enable those skilled in the art to better understand the technical solution of the present invention, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0103] It should be understood that the specific embodiments and drawings described herein are only used to explain the present invention rather than to limit the present invention.
[0104] It can be understood that, in the absence of conflict, the various embodiments of the present invention and the various features in the embodiments can be combined with each other.
[0105] It can be understood that, for the convenience of description, the drawings of the present invention only show the parts related to the present invention, while the parts irrelevant to the present invention are not shown in the drawings.
[0106] It can be understood that each unit and module involved in the embodiments of the present invention may correspond to only one physical structure, or may be composed of multiple physical structures, or multiple units and modules may be integrated into one physical structure.
[0107] It can be understood that, without conflict, the functions and steps marked in the flowcharts and block diagrams of the present invention may occur in an order different from that marked in the drawings.
[0108] It is understood that the flowcharts and block diagrams of the present invention illustrate the possible architectures, functions, and operations of the systems, devices, equipment, and methods according to the various embodiments of the present invention. Each box in the flowchart or block diagram may represent a unit, module, program segment, or code, which contains executable instructions for implementing the specified functions. Moreover, each box or combination of boxes in the block diagram and flowchart may be implemented by a hardware-based system that implements the specified functions, or may be implemented by a combination of hardware and computer instructions.
[0109] It can be understood that the units and modules involved in the embodiments of the present invention can be implemented by software or hardware. For example, the units and modules can be located in a processor.
[0110] Embodiment 1:
[0111] like Figure 1 and Figure 3 As shown, this embodiment provides a method for dynamically selecting an encryption algorithm, the method comprising the following steps:
[0112] Step S1: Obtain current network conditions.
[0113] The current network condition refers to the state and performance characteristics of the network during data transmission and communication at the current specific time and environment. In this embodiment, the current network condition is obtained based on the effective data size and network delay, and its calculation formula is as follows:
[0114]
[0115] Among them, S data Indicates the effective data size;
[0116] L represents network delay.
[0117] Reasons for obtaining current network conditions based on valid data size and network latency:
[0118] (1) Directly reflects network performance:
[0119] The actual performance of the network can be directly reflected by the effective data size and network latency. The effective data size indicates the amount of data that can be successfully transmitted within a specific time, while the network latency affects the data transmission speed and response time. The combination of the two can provide a practical reference for the selection of encryption algorithms.
[0120] (2) Dynamic response capability:
[0121] By monitoring the effective data size and network latency in real time, it is possible to quickly adapt to changes in network conditions. For example, when the network is congested, the encryption strategy can be adjusted to improve efficiency and ensure smooth data transmission.
[0122] (3) Optimize data transmission:
[0123] This method can help the system find the optimal data packet size and encryption algorithm, reduce the probability of data retransmission, thereby improving the utilization of network bandwidth and optimizing overall transmission performance.
[0124] (4) Objectivity and quantifiability:
[0125] Effective data size and network latency are quantitative indicators that are easy to monitor and analyze, making it easier for the system to make decisions based on these objective data.
[0126] In addition to this method, other methods for obtaining current network conditions include:
[0127] (1) Bandwidth measurement:
[0128] By measuring actual bandwidth usage (such as using a bandwidth measurement tool to perform upload and download tests), you can assess the current network capabilities and make encryption strategy choices accordingly.
[0129] (2) Packet loss rate monitoring:
[0130] Monitor the percentage of data packets lost during transmission. A high packet loss rate may indicate an unstable network, and it is appropriate to select a more efficient encryption algorithm to reduce the data size and ensure the reliability of data transmission.
[0131] (3) Network delay statistical analysis:
[0132] By performing statistical analysis on the delay of multiple communications and constructing the average, maximum, and minimum values of the delay, network conditions can be evaluated more accurately.
[0133] (4) Real-time traffic monitoring:
[0134] Monitoring real-time network traffic changes, including current traffic load, rates of sent and received packets, etc., can provide a reference for encryption strategies.
[0135] (5) Network topology change detection:
[0136] By detecting changes in network topology (such as routing changes, node addition or reduction), network conditions can be obtained so that strategies can be adjusted in a timely manner.
[0137] (6) User feedback and perception evaluation:
[0138] Collect user feedback during use, such as network lag, slow transmission, etc., and combine these subjective feelings with technical indicators to evaluate network conditions.
[0139] Step S2: Calculate the score of each available encryption algorithm according to the current network conditions.
[0140] The calculation formula of the score of the available encryption algorithm is as follows:
[0141] E i =θ*S i +(1-θ)*e i *C 当前
[0142] in,
[0143] E i represents the score of the i-th available encryption algorithm;
[0144] θ represents the trade-off parameter between security and efficiency, and its value range is [0,1], where 0 represents a complete preference for efficiency and 1 represents a complete preference for security;
[0145] S i Indicates the security level of the i-th available encryption algorithm;
[0146] e irepresents the efficiency of the i-th available encryption algorithm;
[0147] C 当前 Indicates the current network conditions;
[0148] Step S3: Select the available encryption algorithm with the highest score as the target encryption algorithm, thereby completing the dynamic selection of the encryption algorithm.
[0149] The target encryption algorithm selection formula is as follows:
[0150] f=argmaxE i =argmax(θ*S i +(1-θ)*e i *C Current)
[0151] in,
[0152] f represents the target encryption algorithm;
[0153] argmaxE i Indicates that the encryption algorithm with the highest score is selected from all available encryption algorithms.
[0154] Substituting the current network conditions above, we get
[0155]
[0156] Embodiment 2:
[0157] like Figure 1 As shown, this embodiment provides a secure communication method based on cloud computing, the method is applied to a client device, and the method includes the following steps:
[0158] Step A1: Obtain target data to be sent; and obtain the current network status.
[0159] Specifically, the current network status includes current network bandwidth, current network delay and current network traffic status;
[0160] The current network bandwidth is measured by initiating multiple parallel data requests from the client to a predefined server and counting the rate of the returned data;
[0161] The current network delay is obtained by sending a small network packet to the target server and recording the round-trip time;
[0162] The current network traffic status is obtained by real-time monitoring of the input and output of data packets of the network interface and using the Wireshark tool or a built-in operating system tool to perform statistics.
[0163] Step A2: According to the current network status, the dynamic selection method of the encryption algorithm described in Example 1 is used to obtain the target encryption algorithm; and, according to the target encryption algorithm, encryption parameter configuration and key negotiation are performed.
[0164] Step A3: Encrypt the target data according to the target encryption algorithm, the encryption parameter configuration and the key negotiation.
[0165] Step A4: Send the encrypted target data to the edge computing node, so that the edge computing node pre-processes the encrypted target data before sending it to the cloud computing platform.
[0166] Step A5: receiving the encrypted processing data returned by the edge computing node, wherein the encrypted processing data is obtained by encrypting the original processing data by the cloud computing platform;
[0167] Among them, the original processed data is generated after the cloud computing platform performs deep processing on the target data; the encrypted processed data is returned by the cloud computing platform to the edge computing node.
[0168] Step A6: Decrypt the encrypted processed data to restore the original processed data, thereby completing secure communication based on cloud computing.
[0169] like Figure 2 As shown, the implementation process of this embodiment is specifically as follows:
[0170] Step 1. Client request initialization
[0171] Step 1.1 Environmental perception and parameter acquisition
[0172] The client device monitors the network status in real time through built-in sensors and network monitoring tools, including but not limited to network bandwidth, latency, and current network traffic status. The measurement methods for each parameter definition are as follows:
[0173] A. Network bandwidth:
[0174] Definition: Network bandwidth refers to the maximum amount of data that a network connection can transmit per unit time.
[0175] Unit: Mbps (megabits per second).
[0176] Measurement method: The client initiates multiple parallel data requests to a predefined server and measures the rate at which data is sent back.
[0177] Data source: Real-time data provided by the built-in network interface card or obtained through dedicated network testing software.
[0178] Network bandwidth affects data transmission speed, which in turn affects the choice of encryption algorithm and data compression ratio.
[0179] B. Network delay:
[0180] Definition: Network latency refers to the time it takes for data to travel from the sender to the receiver.
[0181] Unit: millisecond (ms).
[0182] Measurement method: Send a small network packet to the target server and record the round-trip time.
[0183] Data source: Using ICMP (Internet Control Message Protocol) echo request, or using the response time of TCP / UDP connection.
[0184] Latency is an important factor to consider when choosing an encryption algorithm, especially in application scenarios that require real-time performance.
[0185] C. Current network traffic status:
[0186] Definition: The current network traffic status refers to the amount of data traffic passing through the network interface within a specific period of time.
[0187] Unit: MB / s (megabytes per second).
[0188] Measurement method: Monitor the packet input and output of the network interface in real time, and use tools such as Wireshark or built-in operating system tools to collect statistics.
[0189] Data source: network statistics tools provided by the client operating system or third-party network monitoring software.
[0190] The level of network traffic can affect data encryption and transmission strategies. High traffic conditions may require optimized data processing strategies to alleviate network congestion.
[0191] Step 1.2 Dynamic selection of encryption algorithm
[0192] The client uses the encryption algorithm selection function to dynamically select the most appropriate encryption method based on the real-time network status parameters, data security level, predetermined security protocol, and data packet size. Suppose there is a set of encryption algorithms {E1, E2, ..., E n}, each encryption algorithm E i There is a corresponding safety level S i and efficiency i , where S i Indicates the security strength of the algorithm, e iIndicates the encryption efficiency of the algorithm (Bytes / ms). The specific values of the security level and efficiency of the encryption algorithm are evaluated by experts and experience, and the dimensions considered are as follows:
[0193] A. Safety level S i
[0194] a. Key length:
[0195] Evaluation Criteria: Generally, as the key length increases, the time required to crack the key increases exponentially.
[0196] Quantitative approach: For example, an algorithm with a key length of less than 128 bits may have a lower score (such as 10 points), an algorithm between 128-256 bits may have a higher score (such as 20 points), and an algorithm with more than 256 bits may have the highest score (such as 30 points).
[0197] b. Ability to resist known attacks:
[0198] Evaluation criteria: What types of known attacks can the algorithm resist (such as differential attacks, linear attacks, time attacks, etc.).
[0199] Quantitative method: Assign a score to each type of attack that is resisted, and the total score is the score of the algorithm in this dimension.
[0200] a.Processing speed:
[0201] Test conditions: The algorithm is subjected to encryption and decryption operations in a standardized test environment, using a standard data set.
[0202] Quantification method: record the time (ms) required to process the same amount of data, calculate the amount of data that can be processed per unit time (Bytes / ms), this value is e i .
[0203] The security-efficiency trade-off parameter θ represents the preference for security and efficiency, and its value range is [0,1], where 0 completely prefers efficiency and 1 completely prefers security. The selection function of the encryption algorithm is:
[0204]
[0205] in:
[0206] argmax Ei Represents a specific algorithm in the encryption algorithm set, that is, to find an algorithm from all available encryption algorithms, which considers the security-efficiency trade-off parameter θ and the security level S i , encryption efficiency of encryption algorithm i and network conditions In the case of , the algorithm that can provide the maximum weighted score; θ represents the security-efficiency trade-off parameter, which adjusts the relative importance of security and efficiency in the selection of encryption methods, 0,1, and the value range is [0,1], where 0 completely prefers efficiency and 1 completely prefers security; S i Indicates the security level of the encryption algorithm, reflecting the strength index of the encryption algorithm security. It is determined based on the design characteristics of the encryption algorithm and the security test results. A score can be given based on the security test of the algorithm, such as key length, known vulnerabilities, etc. i Indicates the rate at which the encryption algorithm processes data, in Bytes / ms; S data Indicates the size of the data packet, in bytes; L indicates network delay, that is, the transmission time of data from the sending point to the receiving point, in milliseconds.
[0207] Step 1.3 Encryption parameter configuration and key negotiation
[0208] The client sets the necessary encryption parameters according to the characteristics of the selected algorithm. This includes key length, block size (for block encryption algorithms), initial vector (IV), and working mode (such as CBC, GCM, etc.). The key length and working mode usually depend on the design and security requirements of the algorithm. For example, for AES encryption, a key length of 128 bits, 192 bits, or 256 bits may be selected. A lightweight key negotiation process may be performed with the server to ensure that both parties are capable of subsequent encrypted communications. This process takes into account the requirements of the encryption algorithm for key length and type, as well as the current security policy.
[0209] Step 1.4 Data encryption and request initiation
[0210] The client device encrypts the data to be sent using the dynamically selected encryption algorithm and the negotiated key. The client then encapsulates the encrypted data and related security parameters (such as the selected encryption algorithm identifier, encryption parameters, etc.) in a secure communication request and sends it to the nearest edge computing node.
[0211] Step 2. Edge node preprocessing
[0212] Edge computing nodes not only perform basic data decryption and verification, but also perform real-time security checks and preprocessing based on the latest security policies issued by the cloud computing platform. This real-time synchronization of security policies strengthens the security of data before transmission.
[0213] Step 2.1 Data decoding and verification
[0214] The edge node first decodes the received encrypted data packet. The decoding process includes verifying the integrity of the data packet and the legitimacy of the source, using technologies such as HMAC (Hash-Based Message Authentication Code) to ensure that the data has not been tampered with and confirm the identity of the sender.
[0215] Step 2.2 Preliminary decryption
[0216] The edge node uses the key agreed upon with the client to perform a preliminary decryption of the data. This step ensures that the data is parsed and processed under the premise of security.
[0217] Step 2.3 Data quality check
[0218] Perform quality checks on the decrypted data, including identifying and correcting incorrect data formats, removing redundant information, etc. This process uses automated scripts and rule engines to improve the accuracy and efficiency of data processing.
[0219] Step 2.4 Sensitivity analysis and classification
[0220] The edge node performs sensitivity analysis and classification on the data through predetermined data classification rules or machine learning models. This step evaluates the sensitivity level of the data based on the data content and context, and determines the subsequent processing flow accordingly.
[0221] Step 2.5 Preprocessing and data labeling
[0222] Perform local encryption on data of a specific sensitivity level and tag all data, including sensitivity level and pre-processing information, for subsequent processing
[0223] Step 2.6 Data compression and packaging
[0224] To optimize transmission efficiency, compression is performed on the pre-processed data. Data compression selects the most suitable compression algorithm based on the type and characteristics of the data, aiming to reduce the data volume without losing information. The compressed data will be packaged and prepared for secure transmission to the cloud computing platform.
[0225] Step 2.7 Logging and Monitoring
[0226] While processing data, the edge node records detailed operation logs, including timestamps and status information of data reception, decryption, processing, and transmission.
[0227] Step 3. Deep processing on cloud computing platform
[0228] Step 3.1 Advanced Data Encryption
[0229] The cloud computing platform selects a suitable encryption algorithm according to the sensitivity tag of the data. The selection method adopts the method described in step 1.2., and sets the security-efficiency trade-off parameter θ according to the sensitivity tag result. The two are positively correlated. For example, for highly sensitive data, the security-efficiency trade-off parameter θ can be set close to 1 to select a more secure encryption algorithm in the encryption algorithm library.
[0230] Step 3.2 Data storage and backup
[0231] End-to-end encryption technology is used to ensure data security during storage and transmission. At the same time, data backup is performed regularly, and distributed storage and multi-location backup strategies are adopted to enhance data disaster resistance and reliability.
[0232] Step 4 Automatically update security policies
[0233] Step 4.1 Real-time synchronization of security policies
[0234] The cloud computing platform dynamically updates security policies based on the latest threat intelligence and system operation status. These updates include adjustments to encryption parameters, modifications to access control rules, and new security rules. These policies are synchronized to edge computing nodes and communication management modules in real time through secure channels to ensure that the security configuration of the entire system is always up to date.
[0235] Step 4.2 Security incident response and adjustment
[0236] The cloud computing platform monitors and analyzes security events in the system, such as unauthorized access attempts, suspicious traffic patterns, etc. Based on the analysis results, the security policy is automatically adjusted to respond to current threats, including but not limited to adjusting encryption strength, changing communication protocols, and blocking suspicious IP addresses.
[0237] Step 5. Network optimization and secure channel maintenance
[0238] Step 5.1 Dynamic Network Routing Optimization
[0239] The communication management module dynamically adjusts network routing and bandwidth allocation according to the current network status and data transmission requirements, optimizes data transmission paths, reduces delays, and improves data transmission efficiency.
[0240] Step 5.2 Establishment and maintenance of secure communication channels
[0241] Manage and maintain secure communication channels, such as TLS / SSL connections, to ensure encryption and integrity of data during transmission. Regularly update keys and certificates to prevent security breaches.
[0242] Step 6: Policy update and application of edge computing nodes
[0243] Step 6.1 Receive and apply new security policy
[0244] Edge computing nodes receive security policy updates synchronized from the cloud computing platform in real time and apply these updates immediately, such as adjusting encryption methods, updating access control lists, etc.
[0245] Step 6.2 Local security incident handling
[0246] Quickly respond to and handle detected local security incidents (such as data tampering, abnormal access, etc.). Take corresponding security measures according to the severity and type of the incident, such as isolation processing, reporting to the cloud computing platform, etc.
[0247] Step 7: Data transmission and client processing
[0248] Step 7.1 Secure Data Transfer
[0249] The encrypted and security policy-processed data is transmitted back to the client device securely and efficiently through the network path optimized by the communication management module.
[0250] Step 7.2 Client data reception and decryption
[0251] The client device receives the data and decrypts it using the key negotiated with the edge computing node to obtain the original data content, completing the entire secure communication process.
[0252] Embodiment 3:
[0253] like Figure 1 As shown, this embodiment provides a secure communication method based on cloud computing, which is applied to an edge computing node and includes the following steps:
[0254] Step B1: Receive the encrypted target data sent by the client device; the encrypted target data is obtained by encrypting the target data to be sent according to the target encryption algorithm after the client device obtains the target encryption algorithm using the dynamic selection method of the encryption algorithm described in Example 1.
[0255] Step B2: decrypt and verify the encrypted target data to restore the target data.
[0256] Step B3: performing data preprocessing on the target data.
[0257] Specifically, in step B3, data preprocessing is performed on the target data, which specifically includes the following steps:
[0258] Step B3.1: Performing a data quality check on the target data; the data quality check includes identifying and correcting erroneous data formats and removing redundant information;
[0259] Step B3.2: Perform sensitivity analysis and classification on the target data using a predetermined data classification rule or machine learning model;
[0260] Step B3.3: locally encrypting and marking the target data;
[0261] Step B3.4: compress and encapsulate the target data.
[0262] Step B4: Send the preprocessed target data to the cloud computing platform, so that the cloud computing platform performs deep processing on the preprocessed target data and generates original processed data.
[0263] Step B5: receiving the encrypted processed data returned by the cloud computing platform; the encrypted processed data is obtained by encrypting the original processed data by the cloud computing platform.
[0264] Step B6: Transmit the encrypted processed data to the client device so that the client device decrypts the data to obtain the original processed data, thereby completing secure communication based on cloud computing.
[0265] This embodiment corresponds to Embodiment 2, except that the application objects are different. The application object of Embodiment 2 is a client device, while the application object of this embodiment is an edge computing node.
[0266] Embodiment 4:
[0267] like Figure 1 As shown, this embodiment provides a secure communication method based on cloud computing, which is applied to a cloud computing platform. The method includes the following steps:
[0268] Step C1: receiving the pre-processed target data sent by the edge computing node;
[0269] The preprocessed target data is obtained by the edge computing node receiving the encrypted target data sent by the client device and decrypting and preprocessing it. The encrypted target data is obtained by the client device encrypting the target data to be sent according to the target encryption algorithm; the target encryption algorithm is obtained by the client device according to the current network status using the dynamic selection method of the encryption algorithm described in the first aspect. That is, the target encryption algorithm is obtained first, and then the target data to be sent is encrypted according to the target encryption algorithm to obtain the encrypted target data.
[0270] Step C2: Perform deep processing on the preprocessed target data to obtain original processed data.
[0271] Step C3: using a second encryption algorithm to encrypt the original processed data to obtain encrypted processed data. The second encryption algorithm is obtained by using the dynamic selection method of the encryption algorithm according to claim 1 or 2.
[0272] Step C4: Send the encrypted processed data to the edge computing node, so that the edge computing node sends the encrypted processed data to the client device, and then the client device decrypts and obtains the original processed data, thereby completing secure communication based on cloud computing.
[0273] Step C5: Synchronizing the security policies of the edge computing node and the cloud computing platform;
[0274] The step C5 specifically comprises:
[0275] updating the security policy and sending the security policy to the edge computing node; and / or receiving the security processing measures sent by the edge computing node.
[0276] Embodiment 5:
[0277] like Figure 4 As shown, this embodiment provides a device for dynamically selecting an encryption algorithm, the device comprising:
[0278] An acquisition unit 10 is used to acquire current network conditions;
[0279] The calculation unit 20 is connected to the acquisition unit 10 and is used to calculate the score of each available encryption algorithm according to the current network conditions;
[0280] The calculation formula of the score of the available encryption algorithm is as follows:
[0281] E i =θ*S i +(1-θ)*e i *C 当前 ;
[0282] in,
[0283] E i represents the score of the i-th available encryption algorithm;
[0284] θ represents the trade-off parameter between security and efficiency, and its value range is [0,1], where 0 represents a complete preference for efficiency and 1 represents a complete preference for security;
[0285] S i Indicates the security level of the i-th available encryption algorithm;
[0286] e i represents the efficiency of the i-th available encryption algorithm;
[0287] C 当前 Indicates the current network conditions;
[0288] A selection unit 30, connected to the calculation unit 20, is used to select the available encryption algorithm with the highest score as the target encryption algorithm, thereby completing the dynamic selection of the encryption algorithm;
[0289] The target encryption algorithm selection formula is as follows:
[0290] f=argmaxE i =argmax(θ*S i +(1-θ)*e i *C 当前 );
[0291] in,
[0292] f represents the target encryption algorithm;
[0293] argmaxE i Indicates that the encryption algorithm with the highest score is selected from all available encryption algorithms.
[0294] This embodiment can execute the method in Embodiment 1.
[0295] Embodiment 6:
[0296] like Figure 1 As shown, this embodiment provides a secure communication system based on cloud computing, the system comprising:
[0297] The dynamic selection device of the encryption algorithm described in Example 5 is used to obtain the target encryption algorithm;
[0298] A client device, connected to the dynamic selection device, and configured to execute the steps of the method in Embodiment 2;
[0299] An edge computing node, connected to the client device for communication, for executing the steps of the method in Embodiment 3;
[0300] A cloud computing platform is communicatively connected to the edge computing node and is used to execute the steps of the method in Example 4.
[0301] In fact, the system also includes a communication management module, which is responsible for the network configuration and optimization of the system, including dynamic routing adjustment and maintenance of secure communication channels to ensure safe and efficient transmission of data.
[0302] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A method for dynamically selecting an encryption algorithm, characterized in that: The method comprises the following steps: Get current network conditions; Calculate the score of each available encryption algorithm based on the current network conditions; The calculation formula of the score of the available encryption algorithm is as follows: E i =θ*S i +(1-θ)*e i *C 当前 (1) in, E i represents the score of the i-th available encryption algorithm; θ represents the trade-off parameter between security and efficiency, and its value range is [0,1], where 0 represents a complete preference for efficiency and 1 represents a complete preference for security; S i Indicates the security level of the i-th available encryption algorithm; e i represents the efficiency of the i-th available encryption algorithm; C 当前 Indicates the current network conditions; Select the available encryption algorithm with the highest score as the target encryption algorithm, thereby completing the dynamic selection of the encryption algorithm; The selection formula of the target encryption algorithm is as follows: f = argmax E i = argmax(θ * S i + (1 - θ) * e i * C current) (2) in, f represents the target encryption algorithm; argmaxE i Indicates that the encryption algorithm with the highest score is selected from all available encryption algorithms.
2. The method for dynamically selecting an encryption algorithm according to claim 1, characterized in that: The current network condition C 当前 , is obtained based on the effective data size and network delay, and its calculation formula is as follows: Among them, S data Indicates the effective data size; L represents network delay.
3. A secure communication method based on cloud computing, the method being applied to a client device, characterized in that: The method comprises the following steps: Step A1: Acquire target data to be sent; and, acquire current network status; the current network status includes network bandwidth, network delay and current network traffic status; Step A2: according to the current network status, adopt the dynamic selection method of the encryption algorithm described in claim 1 or 2 to obtain the target encryption algorithm; and, according to the target encryption algorithm, perform encryption parameter configuration and key negotiation; Step A3: Encrypting the target data according to the target encryption algorithm, the encryption parameter configuration and the key negotiation; Step A4: sending the encrypted target data to the edge computing node, so that the edge computing node pre-processes the encrypted target data before sending it to the cloud computing platform; Step A5: receiving the encrypted processing data returned by the edge computing node, wherein the encrypted processing data is obtained by encrypting the original processing data by the cloud computing platform; The original processed data is generated after the cloud computing platform performs deep processing on the target data; the encrypted processed data is returned by the cloud computing platform to the edge computing node; Step A6: Decrypt the encrypted processed data to restore the original processed data, thereby completing secure communication based on cloud computing.
4. The secure communication method based on cloud computing according to claim 3, characterized in that: The current network status includes the current network bandwidth, the current network delay and the current network traffic status; The current network bandwidth is measured by initiating multiple parallel data requests from the client to a predefined server and counting the rate of the returned data; The current network delay is obtained by sending a small network packet to the target server and recording the round-trip time; The current network traffic status is obtained by real-time monitoring of the input and output of data packets of the network interface and using the Wireshark tool or a built-in operating system tool to perform statistics.
5. A secure communication method based on cloud computing, the method being applied to edge computing nodes, characterized in that: The method comprises the following steps: Step B1: receiving encrypted target data sent by a client device; the encrypted target data is obtained by encrypting the target data to be sent according to the target encryption algorithm after the client device obtains the target encryption algorithm using the dynamic selection method of the encryption algorithm described in claim 1 or 2; Step B2: decrypting and verifying the encrypted target data to restore the target data; Step B3: performing data preprocessing on the target data; Step B4: sending the preprocessed target data to the cloud computing platform, so that the cloud computing platform performs deep processing on the preprocessed target data and generates original processed data; Step B5: receiving the encrypted processed data returned by the cloud computing platform; the encrypted processed data is obtained by encrypting the original processed data by the cloud computing platform; Step B6: Transmit the encrypted processed data to the client device so that the client device decrypts the data to obtain the original processed data, thereby completing secure communication based on cloud computing.
6. The secure communication method based on cloud computing according to claim 5, characterized in that: In step B3, data preprocessing is performed on the target data, which specifically includes the following steps: Step B3.1: Performing a data quality check on the target data; the data quality check includes identifying and correcting erroneous data formats and removing redundant information; Step B3.2: Perform sensitivity analysis and classification on the target data using a predetermined data classification rule or machine learning model; Step B3.3: locally encrypting and marking the target data; Step B3.4: compress and encapsulate the target data.
7. A secure communication method based on cloud computing, applied to a cloud computing platform, characterized in that: The method comprises the following steps: Step C1: receiving the pre-processed target data sent by the edge computing node; The preprocessed target data is obtained by receiving the encrypted target data sent by the client device by the edge computing node and decrypting and preprocessing the encrypted target data; Wherein, the encrypted target data is obtained by the client device using the dynamic selection method of the encryption algorithm described in claim 1 or 2 to obtain the target encryption algorithm, and then encrypting the target data to be sent according to the target encryption algorithm; Step C2: deep processing the preprocessed target data to obtain original processed data; Step C3: using a second encryption algorithm to encrypt the original processed data to obtain encrypted processed data; Wherein, the second encryption algorithm is obtained by using the dynamic selection method of the encryption algorithm described in claim 1 or 2; Step C4: Send the encrypted processed data to the edge computing node, so that the edge computing node sends the encrypted processed data to the client device, and then the client device decrypts and obtains the original processed data, thereby completing secure communication based on cloud computing.
8. The secure communication method based on cloud computing according to claim 7, characterized in that: After step C4, the method further comprises step C5; Step C5: Synchronizing the security policies of the edge computing node and the cloud computing platform; The step C5 specifically comprises: Update the security policy and send the security policy to the edge computing node; And / or, receiving security processing measures sent by the edge computing node.
9. A device for dynamically selecting an encryption algorithm, characterized in that: The device comprises: An acquisition unit, used to acquire current network conditions; a calculation unit, connected to the acquisition unit, for calculating a score of each available encryption algorithm according to current network conditions; The calculation formula of the score of the available encryption algorithm is as follows: E i =θ*S i +(1-θ)*e i *C 当前 ; in, E i represents the score of the i-th available encryption algorithm; θ represents the trade-off parameter between security and efficiency, and its value range is [0,1], where 0 represents a complete preference for efficiency and 1 represents a complete preference for security; S i Indicates the security level of the i-th available encryption algorithm; e i represents the efficiency of the i-th available encryption algorithm; C 当前 Indicates the current network conditions; A selection unit, connected to the calculation unit, for selecting the highest-scoring available encryption algorithm as the target encryption algorithm, thereby completing the dynamic selection of the encryption algorithm; The target encryption algorithm selection formula is as follows: f = argmax E i = argmax(θ * S i + (1 - θ) * e i * C current); in, f represents the target encryption algorithm; argmaxE i Indicates that the encryption algorithm with the highest score is selected from all available encryption algorithms.
10. A secure communication system based on cloud computing, characterized in that: The system comprises: The dynamic selection device of the encryption algorithm as claimed in claim 9 is used to obtain the target encryption algorithm; A client device, connected to the dynamic selection device, for executing the steps of the method of claim 3 or 4; An edge computing node, communicatively connected to the client device, for executing the steps of the method of claim 5 or 6; A cloud computing platform, communicatively connected to the edge computing node, for executing the steps of the method in claim 7 or 8.
Citation Information
Patent Citations
Data encryption processing method and device based on flow adaptive control adjustment
CN116094815A
Dynamic encryption method and system, computer equipment and storage medium
CN117131484A
Data encryption transmission method and device of cloud side end, and storage medium
CN118200039A
Encryption selection
GB202219032D0
Context-based cryptography selection
US20240244091A1
Cited By
Secure programmable in-band network telemetering method and system based on programmable switch P4
CN119945778A
Sensitive data import and export system and method based on substrate management controller
CN120408685A
Sensitive data import and export system and method based on baseboard management controller
CN120408685B
Network security big data processing system and method based on artificial intelligence
CN120528707A
Multi-algorithm dynamic encryption paperless conference file protection method
CN120602088A
