Communication content security encryption method

By classifying and preprocessing the data flow, dynamically selecting the encryption algorithm and optimizing the encryption strength, the performance problem of encryption algorithms in the prior art on resource-constrained devices is solved, and the high-frequency data transmission and real-time communication scenarios are realized. Decreased latency and improved system performance.

CN119071074APending Publication Date: 2024-12-03DATANG INVESTMENT HOLDING DEVELOPMENT (SHANGHAI) CO LTD
View PDF 0 Cites 11 Cited by

Patent Information

Application Number
CN202411259470.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

When existing communication content secure encryption methods are used to process large amounts of data or high frequency real-time communication, traditional encryption algorithms cause system processing speed to decrease, increase delay, and consume a lot of computing resources and energy. Especially on resource-constrained devices, how to Ensuring data security while optimizing encryption algorithm performance and reducing resource consumption has become a challenge.

Method used

By classifying and preprocessing the data flow, dynamically selecting suitable encryption algorithms, prioritizing the use of lightweight encryption algorithms and automatically adjusting the encryption strength and calculation complexity, and applying data compression and de-redundancy algorithms according to data priority and type, reducing Encrypt the amount of data and select algorithms with lower computational complexity to reduce latency and resource consumption.

Benefits of technology

Effectively optimizes the efficiency of encryption operation, reduces the workload of encryption algorithms, improves system processing speed, reduces CPU and memory consumption, extends device battery life, optimizes system performance, and ensures data integrity and Confidentiality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071074A_ABST
    Figure CN119071074A_ABST
Patent Text Reader

Abstract

The invention discloses a communication content security encryption method, and relates to the technical field of communication content security encryption, and the method comprises the following steps: receiving a to-be-encrypted data stream from a communication device, the data stream comprising a plurality of data packets, and each data packet carrying a to-be-encrypted communication content; the method comprises the following steps: classifying received data streams, dividing the data streams according to priorities and data types of the data streams, and applying a preprocessing algorithm to different types of data so as to optimize encryption operation. According to the method, the data flow is classified and preprocessed, so that the amount of data needing to be encrypted is reduced, and the workload of encryption operation is reduced. A proper encryption algorithm is dynamically selected according to the data priority and the equipment performance, delay is reduced, and the processing speed is increased. The lightweight encryption algorithm is used to automatically adjust encryption strength, reduce CPU and memory consumption, reduce energy consumption, reduce equipment heating, prolong battery life, and optimize system performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of communication content security encryption, and in particular to a communication content security encryption method. Background Art

[0002] Communication content security encryption refers to the encryption of transmitted data during the communication process to protect the confidentiality, integrity and authenticity of the data and prevent unauthorized access and tampering. Encryption technology converts plaintext data into ciphertext, making it unreadable during transmission. Only the recipient with the correct decryption key can restore it to the original information. This method is widely used in network communications, e-mail, instant messaging and other fields to prevent sensitive information from being stolen or tampered with during transmission. Through secure encryption, both parties in communication can ensure that data is not stolen or tampered with during transmission, thereby protecting personal privacy and information security and improving the security and reliability of communication. Communication content security encryption usually combines symmetric encryption and asymmetric encryption technology to improve security while ensuring efficiency. This encryption method is an important means of information security, especially in today's increasingly digital and networked information, it is particularly important to protect the security of communication content.

[0003] The prior art has the following deficiencies:

[0004] In existing communication content security encryption methods, when processing large amounts of data or high-frequency real-time communications, traditional encryption algorithms may cause the system's processing speed to drop significantly, increase latency, and affect user experience. In addition, complex encryption operations may consume a lot of computing resources and energy, especially on resource-constrained devices (such as IoT devices and mobile devices). This situation is even more obvious. Therefore, how to optimize the performance of encryption algorithms and reduce resource consumption while ensuring data security has become a problem that needs to be solved in existing technologies.

[0005] The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure and therefore it may contain information that does not constitute the prior art that is already known to one of ordinary skill in the art. Summary of the invention

[0006] The purpose of the present invention is to provide a communication content security encryption method, which optimizes the efficiency of encryption operations by classifying and preprocessing data streams. Classify data according to priority and type, and use preprocessing algorithms such as data compression and de-redundancy to effectively reduce the amount of data to be encrypted and reduce the workload of the encryption algorithm. At the same time, dynamically select a suitable encryption algorithm, select an algorithm with low computational complexity according to real-time communication requirements and device performance, reduce delays, and improve system processing speed. Prioritize the use of lightweight encryption algorithms and automatically adjust encryption strength, balance data security and device performance, reduce CPU and memory consumption, reduce energy consumption and device heating, extend battery life, and optimize system performance to solve the problems in the above-mentioned background technology.

[0007] In order to achieve the above object, the present invention provides the following technical solution: a communication content security encryption method, comprising the following steps:

[0008] Receiving a data stream to be encrypted from a communication device, wherein the data stream includes a plurality of data packets, each of which carries communication content to be encrypted;

[0009] Classify the received data streams, divide the data streams according to their priority and data type, and apply pre-processing algorithms to different categories of data to optimize encryption operations;

[0010] Dynamically select the most suitable encryption algorithm based on data type, data flow and real-time communication requirements. The encryption algorithm includes symmetric encryption algorithm, asymmetric encryption algorithm or hybrid encryption algorithm.

[0011] For each pre-processed data packet, the selected encryption algorithm is used to perform encryption operations. Lightweight encryption algorithms are preferentially used on resource-constrained devices to reduce the computing burden and energy consumption of the device. During the encryption process, the algorithm automatically adjusts the encryption strength and computing complexity to balance security and device performance.

[0012] The encrypted data packet is encapsulated according to the communication protocol and transmitted to the receiving device through the network. During the data packet transmission process, the transport layer security protocol is used to further ensure the integrity and security of the data packet;

[0013] On the receiving device, the corresponding decryption operation is performed based on the selected encryption algorithm to restore the original data. After decryption, the data packet is verified for integrity and data authentication to ensure that the data has not been tampered with or lost during transmission. The encryption strategy is dynamically adjusted based on the decryption results to continuously optimize system performance and security.

[0014] Preferably, the received data streams are classified and divided according to their priorities and data types. The specific steps are as follows:

[0015] Split the received complete data stream into several independent data packets or frames, each data packet containing one or more communication contents;

[0016] After the data stream is split into individual packets, the attribute information of each packet is extracted;

[0017] After obtaining the attribute information of the data packet, the priority of the data packet is determined according to the predefined priority rules;

[0018] Packets are classified according to priority and data type and placed into the appropriate processing queue.

[0019] Preferably, after data packets are classified, the system will create independent queues for each type of data packet. The processing order and priority of the queues are determined based on the importance and real-time requirements of the data packets. High-priority data packets will be placed in priority queues to ensure priority processing during subsequent encryption and transmission. Low-priority data packets will be delayed or their transmission will be suspended when the network is congested.

[0020] Preferably, the most suitable encryption algorithm is dynamically selected according to the data type, data flow and real-time communication requirements. The specific steps are as follows:

[0021] Perform characteristic analysis on the received data packets to determine the type and characteristics of each data packet;

[0022] After analyzing data characteristics, the current communication conditions are evaluated to help the system flexibly adjust encryption strategies in different network environments to ensure the security and efficiency of communications;

[0023] Based on the results of data characteristic analysis and communication condition evaluation, select the encryption algorithm suitable for the current scenario from the pre-configured encryption algorithm library;

[0024] After the encryption algorithm is screened, the parameters of the encryption algorithm are dynamically configured according to the characteristics of the current data packet and the communication conditions. On the basis of not changing the encryption algorithm, the encryption process is further optimized to meet the needs of real-time communication.

[0025] Preferably, the encrypted data packet is encapsulated according to the communication protocol and transmitted to the receiving device through the network. The specific steps are as follows:

[0026] Before data encapsulation, select a communication protocol based on the characteristics of the communication environment, data transmission requirements, and the type of encrypted data packets;

[0027] After selecting and configuring the communication protocol, the encrypted data packet is encapsulated according to the format of the selected communication protocol;

[0028] The encapsulated data packets are transmitted to the receiving device through the network. During the data transmission process, a variety of technologies are used to select the best transmission path;

[0029] When the encrypted data packet reaches the receiving device, the receiving device performs decapsulation according to the definition of the communication protocol. After decapsulation is completed, the data packet enters the subsequent processing link.

[0030] Preferably, the data encapsulation process includes adding a protocol header, a protocol trailer, and control information, which helps ensure that the data is correctly identified, routed, and reassembled during transmission.

[0031] Preferably, the decapsulation process includes parsing the communication protocol header and tail, extracting the control information and data content therein, and then sending the extracted encrypted data packet to the decryption module for decryption processing. During the decapsulation process, the receiving device will reorganize the order of the data packet according to the protocol header information.

[0032] Preferably, on the receiving device, a corresponding decryption operation is performed based on the selected encryption algorithm to restore the original data. The specific steps are as follows:

[0033] The receiving device first receives the encapsulated data packet from the network and performs a data integrity check to ensure that the data packet has not been tampered with or lost during transmission;

[0034] After completing the data integrity check, the receiving device parses the protocol header information of the data packet and extracts the encrypted data part according to the definition of the communication protocol;

[0035] Before decryption, the receiving device obtains the key and initialization vector required for decryption. The key and initialization vector are negotiated by both parties during the communication initialization phase or transmitted through a secure channel;

[0036] After obtaining the decryption key and selecting the decryption algorithm, the receiving device performs the decryption operation to restore the encrypted data to the original data.

[0037] In the above technical solution, the technical effects and advantages provided by the present invention are:

[0038] The present invention effectively optimizes the efficiency of encryption operations by classifying and preprocessing data streams. By classifying data streams according to data priority and type and adopting corresponding preprocessing algorithms, such as data compression and de-redundancy, the amount of data that needs to be encrypted can be significantly reduced, thereby reducing the workload of the encryption algorithm. In addition, the most suitable data encryption algorithm can be dynamically selected. Under the premise of ensuring data security, an encryption algorithm with lower computational complexity can be selected according to the requirements of real-time communication and the processing capacity of the equipment. This adaptive algorithm selection method can reduce delays in high-frequency data transmission and real-time communication scenarios, improve the overall processing speed of the system, and ensure the smoothness of the user experience.

[0039] The present invention balances the requirements of data security and device performance by giving priority to the use of lightweight encryption algorithms and automatically adjusting the encryption strength and computational complexity in encryption operations. In this way, sufficient security can be ensured while reducing the consumption of hardware resources such as CPU and memory. At the same time, the transport layer security protocol (such as TLS / SSL) is used to further protect the security of the data transmission process, which not only ensures the integrity and confidentiality of the data during transmission, but also avoids unnecessary computing overhead. Through this method, resource-constrained devices can significantly reduce energy consumption when performing encryption tasks, extend the battery life of the device, and reduce device heating and performance degradation caused by excessive computing, thereby optimizing the overall system performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0041] Figure 1 The present invention is a method flow chart of a communication content security encryption method. DETAILED DESCRIPTION

[0042] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these example embodiments are provided so that the description of the present disclosure will be more comprehensive and complete, and the concept of the example embodiments will be fully conveyed to those skilled in the art.

[0043] The present invention provides Figure 1 A communication content security encryption method shown includes the following steps:

[0044] Receiving a data stream to be encrypted from a communication device, wherein the data stream includes a plurality of data packets, each of which carries communication content to be encrypted;

[0045] The data stream can come from data transmission under various communication protocols, aiming to ensure the compatibility and security of multiple data formats.

[0046] Classify the received data streams, divide the data streams according to their priority and data type, and apply pre-processing algorithms to different categories of data to optimize encryption operations;

[0047] Classify the received data streams and divide them according to their priority and data type. The specific steps are as follows:

[0048] Split the received complete data stream into several independent data packets or frames, each data packet containing one or more communication contents;

[0049] The basis for data stream splitting includes data protocol, transport layer encapsulation information, and the size and content format of the data packet. By splitting the data stream, it can be converted into units that can be processed independently, thus laying the foundation for subsequent classification and encryption operations. This splitting process is usually carried out through a dedicated parsing algorithm or hardware acceleration module to ensure real-time performance and accuracy at high data transmission rates.

[0050] After the data stream is split into individual packets, the attribute information of each packet is extracted;

[0051] Attribute information usually includes the source address, destination address, protocol type, packet size, content type (such as text, video, audio), etc. of the data packet. In addition, it is also possible to extract flags or header information in a specific protocol to determine the priority of the data packet. For example, in the IP protocol, the importance of the data packet can be determined by reading the Type of Service (TOS) field, while in the application layer protocol, the content type field can usually be used to distinguish the category of data.

[0052] After obtaining the attribute information of the data packet, the priority of the data packet is determined according to the predefined priority rules;

[0053] These rules can be based on a variety of factors such as communication protocols, importance of data packet content, transmission delay requirements, etc. For example, real-time video call data usually has a higher priority, while batch transmission of log files may have a lower priority. The purpose of priority determination is to give priority to important data packets when resources are limited, ensuring the real-time and reliability of critical communications. Priority can be divided into multiple levels, such as high, higher, normal, and low.

[0054] Classify packets according to priority and data type and place them into the appropriate processing queues;

[0055] After data packets are classified, the system will create independent queues for each type of data packet. The processing order and priority of the queues are determined based on the importance and real-time requirements of the data packets. High-priority data packets will be placed in the priority queue to ensure priority processing in the subsequent encryption and transmission process. Low-priority data packets will be delayed or temporarily suspended in case of network congestion.

[0056] Through this classification and queue management, the system can allocate computing resources more efficiently and optimize overall communication performance.

[0057] Preprocessing includes operations such as data compression and redundancy removal, the purpose of which is to reduce the amount of data and improve the efficiency and processing speed of data encryption.

[0058] Dynamically select the most suitable encryption algorithm based on data type, data flow and real-time communication requirements. The encryption algorithm includes symmetric encryption algorithm, asymmetric encryption algorithm or hybrid encryption algorithm.

[0059] Dynamically select the most suitable encryption algorithm based on the data type, data flow, and real-time communication requirements. The specific steps are as follows:

[0060] Perform characteristic analysis on the received data packets to determine the type and characteristics of each data packet;

[0061] Data types can include text, images, audio, video, etc., and features include the size of the data packet, the sensitivity of the data, and whether high real-time performance is required. The purpose of feature analysis is to evaluate the security and performance requirements of different types of data during transmission. For example, real-time video streaming requires low latency and continuity, and is suitable for lightweight encryption algorithms; while financial transaction data has extremely high security requirements and requires the use of stronger encryption algorithms. Through this analysis, an accurate basis can be provided for the subsequent selection of encryption algorithms.

[0062] After analyzing the data characteristics, evaluate the current communication conditions;

[0063] These include bandwidth, network latency, packet loss rate, and the system's available computing resources. These conditions have a direct impact on the choice of encryption algorithms. For example, in an environment with limited bandwidth but low latency requirements, a more complex encryption algorithm can be selected to enhance security; while in an environment with high bandwidth and low latency, the system can select a relatively lightweight encryption algorithm to ensure transmission speed. Evaluating communication conditions can help the system flexibly adjust encryption strategies in different network environments to ensure the security and efficiency of communication.

[0064] Based on the results of data characteristic analysis and communication condition evaluation, select the encryption algorithm suitable for the current scenario from the pre-configured encryption algorithm library;

[0065] The algorithm library usually contains a variety of symmetric encryption, asymmetric encryption and hybrid encryption algorithms, such as AES (Advanced Encryption Standard), RSA (Rivest-Shamir-Adleman algorithm), ECC (Elliptic Curve Cryptography), etc. During the screening process, the system will consider factors such as the encryption strength, computational complexity, processing speed and resource usage of each algorithm. By comprehensively weighing these factors, the system can determine the encryption algorithm combination that best meets the current communication requirements, ensuring that both data security is met and system performance is not greatly affected.

[0066] After selecting a suitable encryption algorithm, the parameters of the encryption algorithm (such as key length, encryption mode, etc.) are dynamically configured according to the characteristics of the current data packet and communication conditions. Without changing the encryption algorithm, the encryption process is further optimized to meet the needs of real-time communication.

[0067] For example, for low-latency, high-frequency real-time video communications, a shorter key length and stream cipher mode can be selected to reduce the calculation time for encryption and decryption; while for data transmission with high security requirements, a longer key length and complex encryption mode can be selected to ensure data security. Through this dynamic configuration, the system can flexibly respond to various communication needs and improve the efficiency of encryption algorithm usage.

[0068] By selecting an adaptive algorithm, system resource consumption and computing load can be minimized while ensuring data security.

[0069] For each pre-processed data packet, the selected encryption algorithm is used to perform encryption operations. Lightweight encryption algorithms are preferentially used on resource-constrained devices to reduce the computing burden and energy consumption of the device. During the encryption process, the algorithm automatically adjusts the encryption strength and computing complexity to balance security and device performance.

[0070] For each pre-processed data packet, the encryption operation is performed using the selected encryption algorithm. The specific steps are as follows:

[0071] Before the encryption operation begins, the selected encryption algorithm is initialized. The initialization process includes determining the algorithm type (such as symmetric encryption or asymmetric encryption), selecting the key length and encryption mode (such as CBC, CFB, OFB, etc.);

[0072] For resource-constrained devices, such as IoT devices and mobile devices, the system gives priority to lightweight encryption algorithms with low computational overhead, such as RC4 based on stream ciphers or AES-128 with shorter keys, to reduce CPU and memory usage during encryption. Initialization also includes generating or obtaining the necessary keys and initialization vectors (IVs), which are critical to ensuring the security and randomness of encryption. At this stage, the system also makes adaptive adjustments based on the performance indicators of the device to ensure that encryption operations can run efficiently within the resource constraints of the device.

[0073] After the algorithm is initialized, each data packet is divided into several fixed-size data blocks and stored in a buffer for encryption. The size of the data block is determined according to the requirements of the selected encryption algorithm.

[0074] For example, 128-bit or 256-bit block sizes are commonly used in AES encryption. On resource-constrained devices, choosing the right size of data blocks can effectively reduce memory usage and processing time, thereby reducing the overall computing burden. The process of dividing data blocks also needs to take into account the integrity and continuity of the data to ensure that each data block will not be lost or damaged during encryption. The use of buffers further optimizes the encryption process, allowing the system to process data blocks in batches, improving the efficiency and speed of encryption operations.

[0075] Start encrypting each data block in the buffer. During the encryption process, the system monitors the performance status of the device in real time (including CPU load, memory usage, battery power, etc.), and dynamically adjusts the encryption strength and calculation complexity based on this status information;

[0076] For example, when the system detects that the device's CPU load is too high or the battery is low, it can automatically reduce the encryption strength and select a faster but less secure algorithm mode (such as adjusting the block size of AES from 256 bits to 128 bits) to reduce resource consumption. If the device status returns to normal, it can be restored to a higher encryption strength to ensure data security. Through this real-time adjustment mechanism, the system can flexibly respond to performance changes of resource-constrained devices while ensuring data security, balancing the security of encryption operations and device performance.

[0077] After encryption is completed, the encrypted data blocks are reassembled into complete encrypted data packets and output to the next transmission or storage link. Before output, each encrypted data packet will be verified for integrity to ensure that the data is not damaged or lost during the encryption process;

[0078] Integrity verification is usually implemented through checksum or hash algorithms, such as MD5, SHA-256, etc. These algorithms can generate a unique summary value for verifying the integrity of the data. For resource-constrained devices, the system can choose a lighter hash algorithm to reduce additional computing overhead. After the data packet is output, the system will clear the original data in the buffer to further ensure data security and prevent sensitive information from being leaked or illegally accessed.

[0079] The encrypted data packet is encapsulated according to the communication protocol and transmitted to the receiving device through the network. During the data packet transmission process, the transport layer security protocol is used to further ensure the integrity and security of the data packet;

[0080] The encrypted data packet is encapsulated according to the communication protocol and transmitted to the receiving device through the network. The specific steps are as follows:

[0081] Before data encapsulation, select a communication protocol based on the characteristics of the communication environment, data transmission requirements, and the type of encrypted data packets;

[0082] Commonly used communication protocols include Transmission Control Protocol (TCP), User Datagram Protocol (UDP), and higher-level application protocols (such as HTTP, HTTPS, MQTT, etc.). For data transmission that requires high reliability (such as file transfer and financial transaction data), TCP protocol is usually selected because it has error checking and packet loss retransmission mechanism; for data with high real-time requirements (such as video streaming and voice communication), UDP protocol may be selected because of its fast transmission speed and low latency. After selecting the protocol, the system configures the relevant parameters of the protocol according to the specific network environment, such as TCP window size, UDP packet size and timeout settings, etc., to optimize the efficiency and reliability of data transmission.

[0083] After selecting and configuring the communication protocol, the encrypted data packet is encapsulated according to the format of the selected communication protocol;

[0084] The data encapsulation process includes adding a protocol header (such as an IP header, TCP header, or UDP header), a protocol tail, and control information (such as a sequence number, checksum, etc.), which helps ensure that the data is correctly identified, routed, and reassembled during transmission;

[0085] For example, under the TCP protocol, each data packet is encapsulated with information such as the source IP address, destination IP address, source port number, destination port number, data sequence number, and confirmation number; under the UDP protocol, the encapsulated data packet contains the source and destination port numbers as well as the length and checksum fields. This encapsulation information helps the receiving device to correctly decapsulate the data packet and restore the original information, ensuring the correctness and integrity of the communication.

[0086] The encapsulated data packets are transmitted to the receiving device through the network. In order to optimize the data transmission process, a variety of technologies are used to select the best transmission path;

[0087] For example, the system dynamically selects the route with the lowest latency and shortest path through routing protocols (such as OSPF, BGP, etc.); and uses load balancing technology to allocate network resources to avoid network congestion and transmission delays. In addition, the system will dynamically adjust the transmission strategy according to network conditions (such as bandwidth, latency, packet loss rate, etc.), such as adjusting the data packet sending rate, window size, and retransmission strategy, to ensure the stability and efficiency of data transmission. In mobile networks or wireless networks, the system may also consider factors such as signal strength and access point switching to reduce data loss and delay during transmission.

[0088] When the encrypted data packet reaches the receiving device, the receiving device performs the decryption operation according to the definition of the communication protocol;

[0089] The decapsulation process includes parsing the communication protocol header and tail, extracting the control information and data content, and then sending the extracted encrypted data packet to the decryption module for decryption processing. During the decapsulation process, the receiving device will reorganize the order of the data packet according to the protocol header information (especially under the TCP protocol), process the confirmation and retransmission request of the data packet, and ensure the integrity and correctness of the data;

[0090] If data loss or errors occur during transmission, the receiving device will request the sender to resend the data after discovering the problem based on the protocol's error detection mechanism (such as checksum detection). After decapsulation, the data packet enters subsequent processing steps, such as decryption, data verification, and storage, and is finally presented to the user or application for use.

[0091] On the receiving device, the corresponding decryption operation is performed based on the selected encryption algorithm to restore the original data. After decryption, the integrity verification and data authentication of the data packet are performed to ensure that the data has not been tampered with or lost during transmission. The encryption strategy is dynamically adjusted according to the decryption results to continuously optimize system performance and security.

[0092] On the receiving device, perform the corresponding decryption operation based on the selected encryption algorithm to restore the original data. The specific steps are as follows:

[0093] The receiving device first receives the encapsulated data packet from the network and performs a data integrity check to ensure that the data packet has not been tampered with or lost during transmission;

[0094] Usually, this step is achieved by verifying the checksum in the communication protocol (such as the checksum of TCP / UDP). The checksum is calculated by a specific algorithm on the content of the data packet. The receiver will recalculate the checksum and compare it with the checksum provided by the sender. If the checksum matches, it means that the data packet has not been damaged during transmission; if it does not match, it means that the data packet may have been tampered with or damaged, and the receiver will discard the data packet and request retransmission. This step ensures that the decryption operation is performed on the basis of valid data, thereby ensuring the accuracy of the decrypted data.

[0095] After completing the data integrity check, the receiving device parses the protocol header information of the data packet and extracts the encrypted data part according to the definition of the communication protocol;

[0096] The parsing process includes reading the control information such as the source IP address, destination IP address, port number, etc. in the protocol header, and removing the additional information such as the protocol header and tail, so as to obtain the data content that really needs to be decrypted. In the case of the TCP protocol, the data packets also need to be sorted to ensure the correct order and integrity of the data packets. The extracted encrypted data is usually pre-processed ciphertext, which will be further processed by the decryption operation. The correctness of the parsed encapsulation information directly affects the success rate of data decryption and the quality of the decrypted data.

[0097] Before decryption, the receiving device obtains the key and initialization vector (IV) required for decryption. The key and initialization vector are negotiated by both parties during the communication initialization phase or transmitted through a secure channel;

[0098] The way to obtain the key depends on the specific encryption algorithm and key management strategy. For example, symmetric encryption algorithms (such as AES) usually use pre-shared keys, while asymmetric encryption algorithms (such as RSA) use public / private key pairs. According to the encryption method of the transmitted data, the receiver selects the corresponding decryption algorithm, and this process must be exactly the same as the encryption operation of the sender. When selecting a decryption algorithm, the system also needs to consider the efficiency and security of the algorithm. Especially on resource-constrained devices, lightweight decryption algorithms should be used first to reduce computational burden and energy consumption.

[0099] After obtaining the decryption key and selecting the decryption algorithm, the receiving device performs the decryption operation to restore the encrypted data to the original data;

[0100] During the decryption process, the system decrypts the ciphertext block by block according to the requirements of the decryption algorithm, which usually involves mathematical operations or logical transformations. After the decryption is completed, the system verifies the decrypted data to ensure the authenticity and integrity of the data. The verification operation may include checking the data format, calculating the hash value, etc. For example, by verifying the digital signature of the data, it is ensured that the data is indeed from a trusted sender and has not been tampered with. The purpose of this step is to ensure that the decrypted data is correct and secure, laying the foundation for subsequent data processing and use.

[0101] The present invention effectively optimizes the efficiency of encryption operations by classifying and preprocessing data streams. By classifying data streams according to data priority and type and adopting corresponding preprocessing algorithms, such as data compression and de-redundancy, the amount of data that needs to be encrypted can be significantly reduced, thereby reducing the workload of the encryption algorithm. In addition, the most suitable data encryption algorithm can be dynamically selected. Under the premise of ensuring data security, an encryption algorithm with lower computational complexity can be selected according to the requirements of real-time communication and the processing capacity of the equipment. This adaptive algorithm selection method can reduce delays in high-frequency data transmission and real-time communication scenarios, improve the overall processing speed of the system, and ensure the smoothness of the user experience.

[0102] The present invention balances the requirements of data security and device performance by giving priority to the use of lightweight encryption algorithms and automatically adjusting the encryption strength and computational complexity in encryption operations. In this way, sufficient security can be ensured while reducing the consumption of hardware resources such as CPU and memory. At the same time, the transport layer security protocol (such as TLS / SSL) is used to further protect the security of the data transmission process, which not only ensures the integrity and confidentiality of the data during transmission, but also avoids unnecessary computing overhead. Through this method, resource-constrained devices can significantly reduce energy consumption when performing encryption tasks, extend the battery life of the device, and reduce device heating and performance degradation caused by excessive computing, thereby optimizing the overall system performance.

[0103] The above description is only by way of illustration of certain exemplary embodiments of the present invention. It is undoubted that those skilled in the art can modify the described embodiments in various ways without departing from the spirit and scope of the present invention. Therefore, the above drawings and descriptions are illustrative in nature and should not be construed as limiting the scope of protection of the claims of the present invention.

Claims

1. A communication content security encryption method, It is characterized in that The following steps are involved: Receiving a data stream to be encrypted from a communication device, wherein the data stream includes a plurality of data packets, each of which carries communication content to be encrypted; Classify the received data streams, divide the data streams according to their priority and data type, and apply pre-processing algorithms to different categories of data to optimize encryption operations; Dynamically select the most suitable encryption algorithm based on data type, data flow and real-time communication requirements. The encryption algorithm includes symmetric encryption algorithm, asymmetric encryption algorithm or hybrid encryption algorithm. For each pre-processed data packet, the selected encryption algorithm is used to perform encryption operations. Lightweight encryption algorithms are preferentially used on resource-constrained devices to reduce the computing burden and energy consumption of the device. During the encryption process, the algorithm automatically adjusts the encryption strength and computing complexity to balance security and device performance. The encrypted data packet is encapsulated according to the communication protocol and transmitted to the receiving device through the network. During the data packet transmission process, the transport layer security protocol is used to further ensure the integrity and security of the data packet; On the receiving device, the corresponding decryption operation is performed based on the selected encryption algorithm to restore the original data. After decryption, the data packet is verified for integrity and data authentication to ensure that the data has not been tampered with or lost during transmission. The encryption strategy is dynamically adjusted based on the decryption results to continuously optimize system performance and security.

2. A communication content security encryption method according to claim 1, It is characterized in that Classify the received data streams and divide them according to their priority and data type. The specific steps are as follows: Split the received complete data stream into several independent data packets or frames, each data packet containing one or more communication contents; After the data stream is split into individual packets, the attribute information of each packet is extracted; After obtaining the attribute information of the data packet, the priority of the data packet is determined according to the predefined priority rules; Packets are classified according to priority and data type and placed into the appropriate processing queue.

3. A communication content security encryption method according to claim 2, It is characterized in that After data packets are classified, the system will create independent queues for each type of data packet. The processing order and priority of the queues are determined based on the importance and real-time requirements of the data packets. High-priority data packets will be placed in priority queues to ensure priority processing during subsequent encryption and transmission. Low-priority data packets will be delayed or temporarily suspended when the network is congested.

4. A communication content security encryption method according to claim 1, It is characterized in that Dynamically select the most suitable encryption algorithm based on the data type, data flow, and real-time communication requirements. The specific steps are as follows: Perform characteristic analysis on the received data packets to determine the type and characteristics of each data packet; After analyzing data characteristics, the current communication conditions are evaluated to help the system flexibly adjust encryption strategies in different network environments to ensure the security and efficiency of communications; Based on the results of data characteristic analysis and communication condition evaluation, select the encryption algorithm suitable for the current scenario from the pre-configured encryption algorithm library; After the encryption algorithm is screened, the parameters of the encryption algorithm are dynamically configured according to the characteristics of the current data packet and the communication conditions. On the basis of not changing the encryption algorithm, the encryption process is further optimized to meet the needs of real-time communication.

5. A communication content security encryption method according to claim 1, It is characterized in that The encrypted data packet is encapsulated according to the communication protocol and transmitted to the receiving device through the network. The specific steps are as follows: Before data encapsulation, select a communication protocol based on the characteristics of the communication environment, data transmission requirements, and the type of encrypted data packets; After selecting and configuring the communication protocol, the encrypted data packet is encapsulated according to the format of the selected communication protocol; The encapsulated data packets are transmitted to the receiving device through the network. During the data transmission process, a variety of technologies are used to select the best transmission path; When the encrypted data packet arrives at the receiving device, the receiving device performs decapsulation according to the definition of the communication protocol. After decapsulation is completed, the data packet enters the subsequent processing link.

6. A communication content security encryption method according to claim 5, It is characterized in that The data encapsulation process includes adding protocol headers, protocol trailers, and control information, which helps ensure that data is correctly identified, routed, and reassembled during transmission.

7. A communication content security encryption method according to claim 5, It is characterized in that The decapsulation process includes parsing the communication protocol header and tail, extracting the control information and data content, and then sending the extracted encrypted data packet to the decryption module for decryption processing. During the decapsulation process, the receiving device will reorganize the order of the data packet according to the protocol header information.

8. A communication content security encryption method according to claim 1, It is characterized in that On the receiving device, perform the corresponding decryption operation based on the selected encryption algorithm to restore the original data. The specific steps are as follows: The receiving device first receives the encapsulated data packet from the network and performs a data integrity check to ensure that the data packet has not been tampered with or lost during transmission; After completing the data integrity check, the receiving device parses the protocol header information of the data packet and extracts the encrypted data part according to the definition of the communication protocol; Before decryption, the receiving device obtains the key and initialization vector required for decryption. The key and initialization vector are negotiated by both parties during the communication initialization phase or transmitted through a secure channel; After obtaining the decryption key and selecting the decryption algorithm, the receiving device performs the decryption operation to restore the encrypted data to the original data.

Citation Information

Cited By

  • Data security transmission method for edge gateway of Internet of Things

    CN119277365A

  • Network security data transmission and encryption system and method based on privacy protection

    CN119628945A

  • Privacy computing data security aggregation method and system based on artificial intelligence

    CN119961980A

  • An Artificial Intelligence-Based Privacy-Enhanced Data Security Aggregation Method and System

    CN119961980B

  • Dynamic load IPsec optimization module and application method in embedded system

    CN120296762A