Data encryption transmission method and system based on Polar code
By adopting a Polar code-based data encryption transmission method in wireless devices and using a disturbance encryption of the encoding parameters in combination with key information, the problem of difficulty in achieving high security and low power consumption in traditional methods is solved, and higher data confidentiality and anti-interference ability are achieved.
Patent Information
- Application Number
- CN202510358060.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-25
- Publication Date
- 2025-06-27
AI Technical Summary
Data transmission of existing wireless devices is susceptible to signal interference, eavesdropping and hijacking, and traditional encryption methods and encoding methods are difficult to achieve high security while ensuring low power consumption.
The data encryption transmission method based on Polar code is adopted, and the data to be processed is converted into a bit stream, timing analysis and preprocessing is performed, and the encoding parameters are disturbed and encrypted in combination with key information.
It improves data confidentiality and anti-interference capabilities, enhances the security of wireless device data, and reduces the risk of eavesdropping and tampering.
Smart Images

Figure CN120224178A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a data encryption transmission method and system based on Polar codes. Background Art
[0002] Currently, the data transmission of wireless devices is vulnerable to signal interference, eavesdropping, and hijacking. Traditional wireless peripherals use simple encryption methods or low-complexity coding methods, making it difficult to achieve high-security data transmission while ensuring low power consumption.
[0003] The simple encryption methods used by traditional wireless peripherals, such as static key encryption and simple stream encryption, have low security. These encryption methods are easily cracked, and attackers can find ways to crack the keys by analyzing the characteristics of the encryption algorithm and the pattern of encrypted data. For example, some early wireless keyboards and mice used fixed-key encryption, and attackers could crack the keys and obtain the information input by users by listening to the wireless signals and analyzing the rules of the encrypted data.
[0004] While traditional low-complexity coding methods can reduce the computational overhead, they often have weak anti-interference capabilities. For example, some traditional wireless devices use simple parity check codes or cyclic redundancy check codes (CRC), and these coding methods can only detect some errors and cannot effectively correct the errors. In an environment with strong signal interference, the bit error rate of data transmission will increase significantly, resulting in a decrease in the reliability of data transmission.
[0005] In summary, the wireless peripheral encryption schemes in the related art are often independent of the channel coding process, resulting in additional computational overhead and possibly affecting real-time performance. Therefore, there is an urgent need to design a new technical solution to solve the above technical problems. Summary of the Invention
[0006] In view of the technical problems existing in the prior art, the present invention provides a data encryption transmission method and system based on Polar codes, which are used to perturb and encrypt the Polar code coding parameters by combining key information, so that the encrypted data stream has higher confidentiality, increasing the difficulty of data eavesdropping and tampering, and effectively protecting the security of data in wireless devices.
[0007] In a first aspect, an embodiment of the present application provides a data encryption transmission method based on Polar codes. The data encryption transmission method is applied to a sending end, and the method at least includes:
[0008] Convert the data to be processed in the wireless device into a bit stream format to obtain first data;
[0009] Perform a timing analysis on the first data to obtain the potential change rules contained in the first data;
[0010] Preprocess the first data based on the potential change rule; wherein, the preprocessing method is associated with at least one of the data sending frequency, data block interval, and redundant data in the potential change rule;
[0011] Encode the preprocessed first data using a Polar code to obtain second data;
[0012] Combine the key information to perturb and encrypt the encoding parameters in the second data to obtain third data;
[0013] Send the encrypted third data to the receiving end through a wireless transmission module.
[0014] In a second aspect, an embodiment of the present application provides a data encryption transmission method based on a Polar code. The data encryption transmission method is applied to the receiving end and at least includes:
[0015] Receive third data from the sending end; the third data is obtained by the sending end using a Polar code and key information for processing;
[0016] Use the same key information as the sending end to decrypt the third data, and combine the key information to perform a perturbation restoration process on the decrypted encoded data to obtain fourth data.
[0017] In a third aspect, an embodiment of the present application provides a data encryption transmission system based on a Polar code. The system is applied to the sending end, and the sending end at least includes the following units:
[0018] A conversion unit for converting the data to be processed in the wireless device into a bit stream format to obtain first data;
[0019] An encoding unit for performing a timing analysis on the first data to obtain the potential change rule contained in the first data; preprocessing the first data based on the potential change rule; wherein, the preprocessing method is associated with at least one of the data sending frequency, data block interval, and redundant data in the potential change rule; encoding the preprocessed first data using a Polar code to obtain second data;
[0020] An encryption unit for combining the key information to perturb and encrypt the encoding parameters in the second data to obtain third data;
[0021] A transceiver unit for sending the encrypted third data to the receiving end through a wireless transmission module.
[0022] Fourthly, an embodiment of the present application provides a data encryption transmission system based on Polar codes, which is applied to a receiving end. The receiving end at least includes the following units:
[0023] A receiving unit, configured to receive third data from a sending end; the third data is processed by the sending end using Polar codes and key information;
[0024] A decoding unit, configured to use the same key information as the sending end to decrypt the third data, and perform a perturbation restoration process on the encoded data obtained by decryption in combination with the key information to obtain fourth data.
[0025] Fifthly, an embodiment of the present application provides an electronic device, which includes:
[0026] At least one processor, a memory, and an input / output unit;
[0027] Wherein, the memory is used to store a computer program, and the processor is used to call the computer program stored in the memory to execute the data encryption transmission method based on Polar codes in the first aspect.
[0028] Sixthly, a computer-readable storage medium is provided, which includes instructions. When the instructions are run on a computer, the computer is caused to execute the data encryption transmission method based on Polar codes in the first aspect.
[0029] The beneficial effects of the present invention are:
[0030] The data encryption transmission method of the present invention converts the data to be processed in a wireless device into a bit stream format to obtain first data; performs a timing analysis on the first data to obtain the potential change rule included in the first data; preprocesses the first data based on the potential change rule; wherein, the preprocessing method is associated with at least one of the data sending frequency, data block interval, and redundant data in the potential change rule; encodes the preprocessed first data using Polar codes to obtain second data; perturbs and encrypts the encoding parameters in the second data in combination with key information to obtain third data; and sends the encrypted third data to the receiving end through a wireless transmission module.
[0031] In the embodiment of the present application, by perturbing and encrypting the Polar code encoding parameters in combination with key information, the encrypted data stream has higher confidentiality, making it more difficult for the data to be eavesdropped and tampered with, and effectively protecting the security of the data in the wireless device. Description of the Drawings
[0032] Figure 1It is a schematic flowchart of a data encryption transmission method based on Polar code according to an embodiment of the present application;
[0033] Figure 2 It is a schematic structural diagram of a data encryption transmission system based on Polar code according to an embodiment of the present application;
[0034] Figure 3 It is a schematic structural diagram of an electronic device according to an embodiment of the present application;
[0035] Figure 4 It is a schematic structural diagram of a medium device according to an embodiment of the present application. Specific embodiments
[0036] Next, the technical solutions in the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present application.
[0037] The embodiment of the present application provides a data encryption transmission method and system based on Polar code. In this technical solution, the data to be processed in the wireless device is converted into a bit stream format to obtain the first data; the first data is subjected to timing analysis to obtain the potential change law contained in the first data; the first data is preprocessed based on the potential change law; wherein, the preprocessing method is associated with at least one of the data sending frequency, data block interval, and redundant data in the potential change law; the preprocessed first data is encoded using Polar code to obtain the second data; the encoding parameters in the second data are perturbed and encrypted in combination with the key information to obtain the third data; the encrypted third data is sent to the receiving end through the wireless transmission module.
[0038] In the embodiment of the present application, by perturbing and encrypting the Polar code encoding parameters in combination with the key information, the encrypted data stream has higher confidentiality, increases the difficulty of data eavesdropping and tampering, and effectively protects the security of the data in the wireless device.
[0039] The data encryption and transmission solution based on Polar codes provided by the embodiments of the present application can also be executed by an electronic device, which can be a server, a server cluster, or a cloud server. The electronic device can also be a terminal device such as a mobile phone, a computer, a tablet computer, a wearable device, or a dedicated device (such as a dedicated terminal device with a data encryption and transmission system based on Polar codes, etc.). The above-mentioned chips introduced in the above embodiments can also be installed in these electronic devices. Alternatively, these electronic devices can also install a service program for executing the data encryption and transmission solution based on Polar codes.
[0040] Figure 1 It is a schematic diagram of a data encryption and transmission method based on Polar codes provided by the embodiments of the present application. As Figure 1 shown, the method includes the following steps:
[0041] 101. Convert the data to be processed in the wireless device into a bitstream format to obtain the first data;
[0042] 102. Perform a timing analysis on the first data to obtain the potential change law contained in the first data;
[0043] 103. Preprocess the first data based on the potential change law; wherein, the preprocessing method is associated with at least one of the data transmission frequency, data block interval, and redundant data in the potential change law;
[0044] 104. Encode the preprocessed first data using Polar codes to obtain the second data;
[0045] 105. Perturb and encrypt the encoding parameters in the second data by combining key information to obtain the third data;
[0046] 106. Send the encrypted third data to the receiving end through a wireless transmission module.
[0047] In the embodiments of the present application, by perturbing and encrypting the Polar code encoding parameters by combining key information, the encrypted data stream has higher confidentiality, making it more difficult for the data to be eavesdropped and tampered with, and effectively protecting the security of the data in the wireless device.
[0048] As an alternative embodiment, in step 101, the data to be processed in the wireless device is converted into a bitstream format to obtain the first data. Specifically, in step 101, the peripheral data acquisition module is used to collect the raw data from wireless peripherals (such as mice, keyboards, sensors, etc.). The types and formats of these data may vary, such as the analog signals collected by sensors, the character information input by keyboards, etc. The collected data is subjected to preliminary preprocessing, such as the digital conversion of analog signals, the unification of data formats, etc., to convert it into a form suitable for subsequent processing. Furthermore, in step 101, the preprocessed peripheral data is converted into a binary bitstream format. This step is to facilitate the subsequent Polar code encoding operation because Polar codes are encoded based on binary data. Depending on the type and length of the data, a suitable encoding method can be used to convert the data into a bitstream, such as using ASCII encoding to convert characters into binary representations.
[0049] As an alternative embodiment, in step 102, a timing analysis is performed on the first data to obtain the potential change patterns contained in the first data, including:
[0050] Identifying the device type and device function to which the wireless device belongs; adopting a data acquisition method matching the device type and device function to obtain the parameters to be analyzed in the first data; the parameters to be analyzed at least include: data transmission frequency, interval time; based on the parameters to be analyzed, performing data change pattern recognition on the first data to obtain the potential change patterns.
[0051] For example, in step 102, the device type and device function to which the wireless device belongs are identified. For example, the type is determined by analyzing the characteristics such as the hardware interface and communication protocol of the wireless device. For example, a device with a USB interface and following the HID (Human Interface Device) protocol may be input devices such as wireless mice and keyboards; a device using the ZigBee protocol for communication and having a sensor interface may be an Internet of Things sensor device, such as a temperature and humidity sensor, a light sensor, etc.
[0052] Alternatively, in another example, in step 102, the wireless device includes device identification information in the transmitted data, such as device model, manufacturer code, etc. By parsing this identification information, the device type can be accurately identified. For example, some smart bracelets include brand and model information in a specific field of the data packet, and the device type can be determined by reading this field.
[0053] In step 102, analyze the content of the data transmitted by the device to understand its function. For example, if the data transmitted by the device is temperature and humidity values, it can be determined that the device is an environmental monitoring device; if the transmitted data is related to the number of steps and heart rate during exercise, it can be determined as a sports health monitoring device.
[0054] Alternatively, in step 102, the communication behavior of the device, such as communication frequency, communication object, etc., can also be observed to infer its function. For example, if a device regularly sends data to a specific server and the data content is related to the device status information, it can be speculated that the device has the functions of remote monitoring and status reporting.
[0055] Furthermore, in step 102, for input devices such as wireless mice and keyboards, an event-triggered acquisition method can be adopted, that is, whenever an event such as a key press or mouse movement occurs, the corresponding data block is acquired. For sensor devices that send data periodically, such as temperature sensors, a timed acquisition method can be adopted to regularly acquire data according to the sending period of the sensor.
[0056] Optimize the acquisition method according to the specific function of the device. For example, for devices with real-time monitoring functions, the data acquisition frequency can be increased to ensure that data changes can be captured in time; for devices with lower real-time requirements, the acquisition frequency can be appropriately reduced to reduce the amount of data processing.
[0057] Within a certain time window, count the number of times the data block is sent to obtain the data sending frequency. For example, for a wireless mouse, within a 1-second time window, a counter is used to record the number of data blocks it sends. Whenever a data block is received, the counter is incremented by 1. At the end of the time window, record the value of the counter and reset the counter. By taking the average of multiple statistics, the approximate sending frequency of the mouse data can be obtained.
[0058] Measure the time interval between two adjacent data blocks. Use the system's high-precision clock to record the arrival time of each data block, and then calculate the difference between adjacent timestamps to obtain the interval time. For peripherals that send data periodically, such as temperature sensors that send temperature data at a fixed period, it can be determined whether the sensor is working properly by analyzing the interval time.
[0059] Next, in step 102, by long-term statistics of the data sending frequency and interval time, the autocorrelation function is used to determine whether the data is periodic. The autocorrelation function is a function that measures the similarity between a signal and itself after a certain time delay. If obvious peaks appear in the autocorrelation function at certain delays, it indicates that the data is periodic. For example, for a device that sends heartbeat packets at a fixed period, the autocorrelation function will have peaks at integer multiples of the period delay. Determine the period parameter of the data according to the peak position of the autocorrelation function.
[0060] For example, if the autocorrelation function has peaks at delays of T, 2T, 3T, etc., the period of the data can be determined to be T. According to the normal data transmission frequency and interval time, corresponding thresholds are set. When the actually measured parameter value exceeds the threshold range, it is determined to be an abnormal mode. For example, for a device that normally transmits data at a frequency of 1 Hz, if its transmission frequency suddenly becomes 10 Hz, it can be considered that an abnormality has occurred.
[0061] Based on the characteristics of the abnormality occurrence, the type of the abnormality is judged. For example, if the data transmission frequency suddenly increases, it may be that the device has a fault or is affected by external interference; if the interval time becomes unstable, it may be that the device's clock has a deviation. In 102, methods such as linear regression and polynomial fitting are used to fit the data transmission frequency and interval time to discover the changing trend of the data. For example, if the data transmission frequency shows a gradually increasing trend, it may mean that the device's workload is gradually increasing. According to the trend model obtained by fitting, the future data changes are predicted. For example, if it is predicted that the data transmission frequency will continue to increase, corresponding measures can be taken in advance, such as adjusting the device's working mode or increasing communication resources.
[0062] Through the above steps, a comprehensive time series analysis of the first data can be carried out, and the potential changing rules contained therein can be mined, providing strong support for subsequent data processing and decision-making.
[0063] As an optional embodiment, in step 103, preprocessing the first data based on the potential changing rules includes: performing anomaly detection and redundant data deletion on the first data based on the potential changing rules to obtain first intermediate data; grouping the first intermediate data based on the potential changing rules to obtain the preprocessed first data.
[0064] Specifically, in step 103, according to the previous statistical analysis of time series characteristics such as data transmission frequency and interval time, the mean and standard deviation of these characteristics are calculated. For example, through long-term data monitoring of a certain device, the mean data transmission frequency is obtained as 15 times per second, and the standard deviation is 2 times per second; the mean data interval time is 0.06 seconds, and the standard deviation is 0.005 seconds.
[0065] During the data transmission process, characteristic values such as the sending frequency and the interval time of the real-time measurement data are measured. When the measured characteristic values exceed the range of the normal data model (for example, the sending frequency is greater than the mean plus several times the standard deviation, or less than the mean minus several times the standard deviation), it is determined as abnormal. For example, if the abnormal range is set as the mean ± 3 times the standard deviation, when the measured sending frequency of the device is 21 times per second (greater than 15 + 3×2 = 21 times per second), it is determined that an abnormality has occurred. For the detected abnormal data, it can be processed according to the specific situation. For example, record the time when the abnormality occurs and the relevant characteristic information for subsequent analysis; or directly discard the abnormal data to avoid its impact on subsequent processing.
[0066] Analyze the first data based on the data change rules obtained from the timing analysis, such as characteristics like periodicity and repeatability. For example, it is found that a certain peripheral device sends the same configuration information data block at regular intervals, and this part of the data has repeatability.
[0067] Judge whether the data is duplicate by comparing the contents of adjacent data blocks. The hash algorithm can be used to calculate the hash value of the data block. If the hash values of adjacent data blocks are the same, it is considered that they have the same content and are duplicate data. Or directly compare the contents of the data blocks bit by bit.
[0068] For the determined duplicate data, only keep the data block that appears for the first time and delete the subsequent duplicate data blocks. For example, for the periodically sent same initialization data, only keep the part of the data sent for the first time, and delete the rest of the same initialization data blocks.
[0069] Thus, through anomaly detection, abnormal values in the data can be discovered and processed in a timely manner, avoiding the interference of abnormal data on subsequent analysis and applications, and ensuring the accuracy and reliability of the data. Redundant data deletion reduces the duplicate information in the data, improves the purity of the data, makes the data more valuable. After removing the redundant data, the amount of data to be transmitted is reduced, the load on the wireless channel is reduced, the data transmission efficiency is improved, and at the same time, transmission resources are saved, which is particularly important for some wireless devices or network environments with limited bandwidth. The first intermediate data obtained after anomaly detection and redundant data deletion has higher data quality and better meets the requirements of subsequent processing. Whether it is for data analysis, storage or further coding processing, etc., it can be carried out more efficiently and accurately.
[0070] As an optional embodiment, in step 104, the preprocessed first data is encoded using a Polar code to obtain the second data, including:
[0071] Select coding parameters based on the potential variation rules; the coding parameters at least include: code length parameter, code rate parameter; according to the coding parameters, perform polar channel processing on the first data to respectively configure the first data into a first channel and a second channel; wherein, the first channel is used to carry the bit data to be encoded in the first data, and the second channel is used to carry the bit data to be frozen in the first data; adopt a hybrid coding method to perform coding operations on the bit data of the first channel and the second channel respectively to obtain the encoded second data.
[0072] Specifically, in step 104, deeply study the potential variation rules of the first data after preprocessing, including aspects such as the data sending frequency, interval time, periodicity, data volume size, and data importance. For example, if the data sending frequency is high and the data volume is large, it indicates a high requirement for transmission efficiency; if the data has strong periodicity, it may be necessary to consider adopting different coding strategies in different periods.
[0073] Select a suitable code length parameter according to the specific situation of the data. If the data volume is large and there is a high requirement for error correction ability, a longer code length can be selected, such as 1024 or 2048, etc., to improve the error correction performance of the coding; if the data volume is small and there is a high requirement for real-time performance, a shorter code length can be selected, such as 256 or 512, etc., to reduce the complexity of coding and decoding and reduce the processing time. For example, for sensor data with high real-time requirements, a shorter code length can be selected to quickly process the data.
[0074] Determine the code rate parameter by comprehensively considering the data transmission efficiency and error correction ability. If the data has extremely high requirements for accuracy, a lower code rate can be selected, such as 1 / 2 or 1 / 3, to increase redundant information and improve the error correction ability; if the data has high requirements for transmission speed, a higher code rate can be selected, such as 3 / 4 or 4 / 5, to reduce redundant information and improve the transmission efficiency. For example, for the transmission of some unimportant status information, a higher code rate can be adopted to speed up the transmission.
[0075] Then, in step 104, according to the selected code length parameter, generate a corresponding number of polar channels using the channel polarization principle. These channels will be divided into "good channels" (the first channel) and "bad channels" (the second channel) according to their reliability. Analyze the characteristics of the bit data in the first data, and configure the important bit data to be encoded onto the first channel ("good channel") because these channels have high reliability and can ensure the accurate transmission of data; configure the bit data to be frozen (usually some fixed values or unimportant bits) onto the second channel ("bad channel"). For example, for key control instruction data, place its bit data on the first channel, while for some unimportant data such as default initialization parameters, place them on the second channel.
[0076] Combined with the characteristics of Polar codes and the requirements of data, select an appropriate hybrid coding method. For example, the successive cancellation (SC) decoding algorithm can be combined with other auxiliary algorithms, or an improved successive cancellation list (SC-List) decoding algorithm can be adopted, etc. According to the complexity of the data and the requirements for error correction performance, flexibly adjust the parameters of the coding method. Perform coding operations on the bit data in the first channel and the second channel respectively. According to the selected hybrid coding method, process the bit data to be coded in the first channel, and at the same time perform corresponding coding processing on the frozen bit data in the second channel, and finally obtain the coded second data.
[0077] Therefore, select coding parameters based on the potential change law, so that the coding process can better adapt to the characteristics and transmission requirements of the data. Different data types and application scenarios can achieve the best coding effect by adjusting the code length and code rate parameters, improving the flexibility and versatility of the coding scheme. Reasonably select the code length and code rate parameters, and accurately allocate the data to different channels, which can make full use of the error correction ability of Polar codes. Placing important bit data on the first channel with high reliability can effectively reduce the bit error rate, improve the accuracy of data transmission, and ensure the reliability of data during wireless channel transmission. Selecting an appropriate code rate parameter according to the characteristics of the data can improve the data transmission efficiency on the premise of ensuring a certain error correction ability.
[0078] For data with high requirements for real-time performance, selecting a higher code rate can reduce the data transmission time; for data with high requirements for accuracy, selecting a lower code rate can increase redundant information and improve the error correction ability, thereby optimizing the data transmission efficiency as a whole.
[0079] It can be understood that adopting a hybrid coding method and adjusting according to the data characteristics can meet the requirements of error correction performance while reducing the complexity of coding and decoding. It avoids the waste of computing resources and the increase in processing time caused by adopting overly complex coding methods, and is especially suitable for wireless devices with limited resources, such as Internet of Things sensors, smart wearable devices, etc. Through polarization channel processing, the data is divided into bits to be coded and frozen bits for separate processing, increasing the confidentiality of the data. It is difficult for attackers to obtain the original data through simple analysis because they do not know the specific configuration of the data on different channels, thus ensuring the security of the data to a certain extent.
[0080] As an optional embodiment, in step 105, perturb and encrypt the coding parameters in the second data in combination with the key information to obtain the third data, including:
[0081] Generate a random binary sequence as the key information; wherein, the generation method of the key information is associated with the potential change rule; perform perturbation encryption processing on the corresponding coding positions in the second data according to the positions of the bits to be frozen indicated by the key information to obtain second intermediate data; recombine the encrypted channel combination mode in the second intermediate data according to the channel perturbation mode indicated by the key information to obtain the third data; wherein, the channel perturbation mode is associated with the data change mode in the potential change rule.
[0082] Specifically, in step 105, determine the key generation method according to the potential change rule of the data (such as the change mode of data sending frequency, interval time, periodicity of data, etc.). For example, if the data sending frequency shows periodic changes, relevant parameters of the period (such as period length, period start time, etc.) can be used as the seed or input parameters of the random number generator, so as to generate a random binary sequence associated with the potential change rule as the key information. Furthermore, use a hardware random number generator or a cryptographically secure pseudo-random number generator to generate the key. In an embedded device, use a hardware random number generator to generate a high-quality random key to ensure the randomness and unpredictability of the key; in software implementation, call the pseudo-random number generation function provided by the cryptographic library and combine the parameters related to the potential change rule to generate the required key information. Furthermore, according to the generated key information, determine the positions of the bits to be frozen on the "bad channels". For example, perform an exclusive OR operation on the binary sequence of the key and the initial position information of the bits to be frozen, and calculate to obtain the new positions of the bits to be frozen. Furthermore, process the corresponding coding positions in the second data according to the newly determined positions of the bits to be frozen. Set the bits at the corresponding positions to frozen bits (usually 0 or other fixed values) to implement perturbation encryption of the second data and obtain second intermediate data. Furthermore, according to the data change mode (such as periodicity, trend, etc.) in the potential change rule, determine the channel perturbation mode associated with the key information. For example, if the data has obvious periodic changes, the channel perturbation mode can be related to the period, and different channel combination modes are adopted within each period. Finally, recombine the encrypted channel combination mode in the second intermediate data according to the determined channel perturbation mode. During the channel polarization transformation process, change the combination order or mode of different channels, so that the distribution of "good channels" and "bad channels" changes, thereby obtaining the third data.
[0083] Further optionally, in the above steps, in addition to the exclusive OR operation introduced above, a perturbation mode based on a feedback mechanism, a multi-round perturbation mode, and / or a perturbation mode based on a hash function can be introduced to obtain the second intermediate data.
[0084] Assume the second data D endcded= [d1, d2, …, d N , d i represents the i-th coding position in the second data. The set of bit positions to be frozen indicated by the key K is P = {p1, p2, …, p M}, where M is less than or equal to N. For bit data, it can be taken as 0 or 1. First, in the XOR operation, assume that the binary sequence k = [k1, k2, …, kM] corresponding to the key K, where kj corresponds to the perturbation value at position p j . Then, the perturbation function can be defined as where represents the XOR operation. Based on this, the calculation process of the second intermediate data D mid can be expressed as:
[0085]
[0086] Further optionally, the perturbation operation can be performed through multiple iterations, which can increase the security of encryption. Different keys are used in each round.
[0087] Based on the foregoing example formula, assume there are r rounds of perturbation, and the key k r = [k r 1, k r 2, …, k r M corresponding to the r-th round, where r = 1, 2, …, R. Based on this, the intermediate result D r of the r-th round is calculated as follows:
[0088] The final second intermediate data D mid [i] = D r [i].
[0089] In addition, in an optional example, since the hash function has one-wayness and collision resistance, the hash function can be combined to increase the complexity of the perturbation. Further optionally, for the bit position to be perturbed, the bit at this position, the key bit, and a fixed salt value are concatenated, and then the hash value is calculated. The least significant bit of the hash value is taken as the perturbation result. Based on the foregoing example formula, assume that the hash function is represented by H and s is the fixed salt value. Then, the second intermediate data is expressed by the following formula:
[0090]
[0091] where || represents the concatenation operation, and the LSB(x) function represents the least significant bit of x.
[0092] In another alternative example, in the perturbation mode based on the feedback mechanism, a feedback mechanism is introduced during the perturbation process, such that the perturbation of subsequent bits depends on the perturbation results of previous bits. For the first bit to be perturbed, a simple exclusive OR (XOR) operation is used. For subsequent bits to be perturbed, the previous perturbation result is XORed with the current key bit, and then XORed with the current bit.
[0093] In this way, the generation of the key information is associated with the potential change pattern, making the key have higher complexity and unpredictability. It is difficult for an attacker to guess or crack the key by conventional means, increasing the strength of data encryption protection. At the same time, the perturbation of the positions of the bits to be frozen and the recombination of the channel combination methods further increase the uncertainty of the coding parameters. Even if the attacker understands the basic principle of the Polar code, it is impossible to easily determine the correct coding parameters, effectively preventing data from being eavesdropped and cracked. Combining the potential change pattern for key generation and channel perturbation enables the encryption process to better adapt to the change pattern of the data.
[0094] It should be noted that for data with different characteristics (such as periodicity, trendiness, etc.), corresponding encryption processing can be performed according to its characteristics, improving the flexibility and adaptability of the encryption scheme. For example, when the data transmission frequency changes, the encryption scheme can automatically adjust to adapt to the new frequency characteristics, ensuring the security of the data. The Polar code itself has anti-interference ability. After the data stream is encrypted with key perturbation, while maintaining the encryption characteristics, it can still effectively resist noise and interference in the wireless channel. The recombined channel combination method can optimize the transmission characteristics of the data in the channel, further improving the reliability of data transmission and ensuring that the data can reach the receiving end accurately and error-free. The channel perturbation mode is associated with the data change pattern, making it more difficult for an attacker to analyze the encrypted data stream. The attacker not only needs to crack the key, but also needs to understand the potential change pattern of the data and the associated channel perturbation mode in order to accurately restore the original data, greatly increasing the difficulty and cost of the attack.
[0095] In step 106, the encrypted third data is sent to the receiving end through the wireless transmission module.
[0096] Suppose the wireless device is an environmental monitoring sensor in a smart home. It is responsible for collecting data such as indoor temperature, humidity, and air quality, and sending this data to the home control center. At the sending end, the sensor has completed a series of processing on the collected data, including converting it into a bitstream format, timing analysis, preprocessing, Polar code encoding, and perturbation encryption combined with key information, resulting in the encrypted third data. When preparing to send the data, the wireless transmission module starts to work. For example, the sensor uses Bluetooth Low Energy (BLE) technology for data transmission. The BLE module first initializes and sets the parameters required for communication with the receiving end (the Bluetooth receiver of the home control center), such as communication frequency, channel configuration, etc. Then, the BLE module packs the encrypted third data, adding necessary header information. The header contains the length of the data, the identifier of the sending device, etc. This header information helps the receiving end correctly identify and process the received data. Then, the BLE module sends the packed data through a radio frequency signal with a certain power. During the sending process, to ensure reliable data transmission, the BLE module will adopt some technologies, such as the Automatic Repeat reQuest (ARQ) mechanism. If the confirmation signal from the receiving end is not received within the specified time, the BLE module will automatically re-send the data.
[0097] For example, at a certain moment, the sensor collects a new set of environmental data and generates the encrypted third data after processing. The BLE module packs it into 10 data packets, each packet containing a part of the encrypted data and the header information. It first sends the first packet and then waits for the confirmation from the receiving end. If the receiving end successfully receives and correctly parses the packet, it will return a confirmation signal. After receiving the confirmation, the BLE module continues to send the next packet. If the first packet still does not receive a confirmation after multiple retransmissions, the BLE module will record this situation and, after completing the current data sending, report the transmission error to the microcontroller of the sensor for subsequent processing, such as adjusting the sending power or re-performing data collection and processing. Finally, through the continuous operation of the BLE module, the encrypted third data is successfully sent to the receiving end, that is, the home control center, providing a basis for subsequent data analysis and smart home control.
[0098] A data encryption and transmission method based on Polar codes provided by an embodiment of this application is applied to the receiving end. This method at least includes the following steps:
[0099] 107. Receive the third data from the sending end; the third data is obtained by the sending end using Polar codes and key information for processing;
[0100] 108. Use the same key information as the sending end to decrypt the third data;
[0101] 109. Perform perturbation restoration processing on the decoded encoded data in combination with the key information to obtain the fourth data.
[0102] Specifically, in step 107, the wireless transmission module at the receiving end needs to be initialized and configured in advance to ensure that its parameters such as working frequency band and communication protocol match those of the sending end. For example, if the sending end uses the Bluetooth Low Energy (BLE) protocol to transmit data in the 2.4 GHz frequency band, the BLE module at the receiving end should also be set to the same frequency band and protocol mode.
[0103] The wireless transmission module continuously monitors the wireless channel and waits to receive the third data sent by the sending end. When a signal is detected, it starts receiving the data and converts the received radio frequency signal into a digital signal. During the receiving process, technologies such as automatic gain control (AGC) are used to adjust the intensity of the received signal to ensure signal quality. At the same time, error detection mechanisms such as cyclic redundancy check (CRC) are used to perform preliminary error detection on the received data to filter out potentially incorrect data packets. The correctly received third data is stored in the cache at the receiving end and waits for subsequent processing. For easy management and processing, the data can be numbered or marked, and information such as the receiving time of the data can be recorded.
[0104] Thus, it is ensured that the receiving end can accurately and stably obtain the third data from the sending end, providing a basis for subsequent data decryption and processing. Through preliminary error detection and signal processing technologies, the reliability of data reception is improved, and the possibility of incorrect data entering the subsequent processing flow is reduced.
[0105] In step 108, the receiving end needs to obtain the same key information as the sending end through a secure method, such as performing key exchange through a symmetric key distribution protocol or asymmetric key encryption technology during the device initialization phase. Before using the key for decryption, verify the integrity and correctness of the key, for example, by calculating the hash value of the key and comparing it with the expected value.
[0106] According to the encryption method of the third data, select the corresponding decryption algorithm. Since the third data is obtained by perturbing and encrypting the Polar code encoding parameters in combination with the key information, the decryption process needs to reverse these perturbations. For example, if the sending end changes the position of the frozen bits by performing an exclusive OR operation on the binary sequence of the key and the initial position information of the frozen bits, the receiving end uses the same key and exclusive OR operation to restore the position of the frozen bits. Adjust the encoding parameters in the third data to remove the encryption effect and obtain the preliminarily decrypted data.
[0107] Thus, decryption is performed using the same key information as the sender, ensuring that only legitimate receivers can correctly restore the data and effectively preventing the data from being illegally decrypted. By accurately restoring the encryption parameters, a foundation is laid for subsequent processing of the encoded data, ensuring that the decrypted data can be further correctly processed.
[0108] In step 109, the relationship between the key information and the perturbation method of the encoding parameters by the sender is analyzed in depth. For example, if the key controls the perturbation of the channel combination method, the receiver needs to clarify how the key changes the channel combination order or method. According to the analysis results, corresponding perturbation restoration processing is performed on the encoded data obtained by decryption. For the perturbation of the channel combination method, the channel combination is restored to the original state according to the key information, so that the distribution of "good channels" and "bad channels" is restored. For the perturbation of other encoding parameters, such as the position of frozen bits, corresponding adjustments are also made to ensure that the encoded data is restored to the original Polar code encoding form, obtaining the fourth data.
[0109] In this way, through the perturbation restoration processing of the decrypted encoded data, the receiver can accurately restore the original Polar code encoded data, providing accurate input for subsequent Polar code decoding and data recovery. It ensures that although the data has undergone various processes during transmission and encryption, it can ultimately be correctly restored, realizing reliable transmission and processing of the data.
[0110] Further optionally, after performing the perturbation restoration processing on the encoded data obtained by decryption in step 109 to obtain the fourth data, the data change pattern of the fourth data can be detected to obtain the data change pattern in the fourth data; based on the data change pattern in the fourth data, the constellation encoding corresponding to the fourth data is obtained; the data to be detected in the fourth data corresponds one-to-one with the constellation encoding, and the distribution rule of the constellation symbols in the constellation encoding corresponds to the data change trend of the fourth data in the data space; based on the constellation encoding, error detection of the fourth data is performed, and the fourth data is corrected based on the detection result to obtain the fifth data.
[0111] For example, assume that the device at the sender is an intelligent environmental monitoring sensor that collects data such as indoor temperature, humidity, and light intensity, and processes and sends this data to the smart home control center at the receiver. The receiver receives the third data from the sender, which is processed by the sender using Polar codes and key information. The receiver uses the same key information as the sender to decrypt the third data and performs perturbation restoration processing on the encoded data obtained by decryption in combination with the key information to obtain the fourth data, that is, the original Polar code encoded data is restored.
[0112] Analyze the fourth data. For example, within a certain period of time, the temperature data shows periodic fluctuations, the humidity data is relatively stable but has a slow upward trend, and the light intensity data has obvious differential changes between day and night. By analyzing these data characteristics, data change patterns in the fourth data are obtained, such as the periodic change pattern of temperature, the slow upward trend pattern of humidity, and the day-night differential pattern of light intensity, etc.
[0113] Based on the data change patterns in the fourth data, corresponding constellation diagram encodings are assigned to different types of data. For example, for temperature data, according to the amplitude and frequency of its periodic changes, it is mapped to a specific area on the constellation diagram so that the distribution of constellation diagram symbols can reflect the change trend of temperature data. Suppose the temperature data varies between 20°C and 30°C. One symbol on the constellation diagram corresponds to 20°C, another symbol corresponds to 30°C, and intermediate temperature values correspond to different positions between these two symbols on the constellation diagram. Similarly, corresponding constellation diagram encodings are also assigned to humidity and light intensity data, so that the data to be detected in the fourth data is in one-to-one correspondence with the constellation diagram encodings.
[0114] Based on the obtained constellation diagram encodings, error detection is performed on the fourth data. If the constellation diagram symbol corresponding to a certain received temperature data deviates significantly from the symbol position predicted according to the data change pattern and exceeds a certain threshold, it is determined that the data may have an error. For example, normally the constellation diagram symbol corresponding to temperature data should be within a certain area, but if the actual received symbol position deviates from this area, it is considered that there may be an error. Then, according to the distribution law of constellation diagram symbols in the constellation diagram encoding and the data change trend, the error data is corrected. For example, according to the periodic change law of temperature data, the correct temperature value is inferred, thereby correcting the fourth data to obtain the fifth data.
[0115] Thus, by detecting the data change pattern of the fourth data and performing error detection and correction based on constellation coding, errors that may occur during data transmission can be discovered and corrected, improving the accuracy of the data. For the intelligent environmental monitoring system, accurate data can provide a more reliable basis for the control of smart homes. For example, the operating state of the air conditioner can be automatically adjusted according to accurate temperature data. Obtaining constellation coding based on the data change pattern enables the error detection method to better adapt to the characteristics and change trends of the data. Different types of data may have different change patterns. In this way, more accurate error detection and correction can be performed for the characteristics of each type of data, improving the system's processing ability for various data. This method adds an error detection and correction link to the data processing flow, can timely discover and handle errors in the data, and avoid the adverse effects of incorrect data on the subsequent system operation, thereby enhancing the reliability of the entire system. For the smart home system, reliable data transmission and processing can ensure the stable operation of the system and improve the user experience. The distribution of constellation symbols in the constellation coding corresponds to the change trend of the data in the data space, enabling finer-grained error detection. Compared with traditional simple error detection methods, this method can more accurately determine whether there are errors in the data and the degree of the errors, thereby more effectively correcting the data and improving the data quality.
[0116] In the embodiments of the present application, first, the Polar code encoding parameters are perturbed and encrypted by combining key information, so that the encrypted data stream has higher confidentiality. Even if an attacker intercepts the data, without knowing the key, it is impossible to determine the correct encoding parameters and it is difficult to crack the data content. Compared with traditional simple encryption methods, the difficulty of data eavesdropping and tampering is greatly increased, effectively protecting the security of data in wireless devices. By performing timing analysis on the data, potential change patterns in the data can be discovered, and preprocessing based on these patterns is carried out to make the data have a certain degree of concealment before transmission. For example, removing redundant data can reduce the characteristic information of the data, making it more difficult for attackers to obtain valuable clues from the data, further enhancing the security of data transmission. Secondly, the Polar code itself is based on the principle of channel polarization and has good error correction ability. When there are problems such as signal interference and noise in the wireless channel, the Polar code can correct the errors generated during transmission to a certain extent, ensuring the reliable transmission of data. Using the Polar code to encode the preprocessed data enables the data to accurately reach the receiving end in a complex wireless environment. The preprocessing based on timing analysis, such as reasonable grouping according to the data sending frequency and data block interval, can make the data better adapt to the channel conditions during transmission. Reasonable grouping can reduce the influence range of data loss or errors caused by interference, improving the anti-interference performance of data transmission. Thirdly, by discovering and removing redundant data through timing analysis, the amount of data to be transmitted is reduced. This not only reduces the burden on the wireless channel but also shortens the data transmission time, improving the transmission efficiency. In the case of limited wireless resources, the channel bandwidth can be more effectively utilized to achieve the fast transmission of more data. The encoding and decoding complexity of the Polar code is relatively low, especially in the case of long codes, the advantage is more obvious. Compared with some traditional coding methods, using the Polar code for encoding can reduce the computational burden of the device and speed up the data processing speed, thereby improving the efficiency of the entire data transmission system. Finally, the preprocessing, encoding, and encryption processes of the data are organically combined, avoiding the additional computational overhead and time delay caused by the separation of encryption and encoding in traditional solutions. During the data transmission process, each link is closely connected, enabling the data to be processed and sent more quickly, meeting application scenarios with high real-time requirements, such as real-time monitoring and industrial automation control. Based on the potential change patterns of the data obtained through timing analysis, the system can dynamically adjust the preprocessing method and encoding parameters according to the actual situation. For example, when the data sending frequency changes, the data grouping and encoding method can be adjusted in a timely manner to ensure that the data can be efficiently and real-time transmitted under different conditions. Removing redundant data reduces the amount of data transmission and the energy consumption of the wireless transmission module. At the same time, the low-complexity encoding characteristic of the Polar code reduces the computational amount during the encoding and decoding processes of the device, reducing the power consumption of the processor.For wireless devices powered by batteries, such as Internet of Things sensors, wearable devices, etc., it can significantly extend the battery life of the devices and improve the usage efficiency of the devices. The embodiments of the present application can perform perturbation encryption on the Polar code encoding parameters by combining key information, so that the encrypted data stream has higher confidentiality, increasing the difficulty of data eavesdropping and tampering, and effectively protecting the security of the data in the wireless devices.
[0117] Figure 2 FIG. is a schematic structural diagram of a data encryption and transmission system based on Polar code provided by an embodiment of the present application. As Figure 2 shown, this system is applied to the sending end, and the sending end at least includes the following units including the following steps:
[0118] A conversion unit, configured to convert the data to be processed in the wireless device into a bit stream format to obtain first data;
[0119] An encoding unit, configured to perform timing analysis on the first data to obtain the potential change rule included in the first data; preprocess the first data based on the potential change rule; wherein, the preprocessing method is associated with at least one of the data sending frequency, data block interval, and redundant data in the potential change rule; encode the preprocessed first data using Polar code to obtain second data;
[0120] An encryption unit, configured to perform perturbation encryption on the encoding parameters in the second data by combining key information to obtain third data;
[0121] A transceiver unit, configured to send the encrypted third data to the receiving end through a wireless transmission module.
[0122] Further optionally, the encoding unit performs timing analysis on the first data to obtain the potential change rule included in the first data, specifically:
[0123] Identify the device type and device function to which the wireless device belongs;
[0124] Adopt a data acquisition method matching the device type and device function to obtain the parameters to be analyzed in the first data; the parameters to be analyzed at least include: data sending frequency, interval time;
[0125] Perform data change pattern recognition on the first data based on the parameters to be analyzed to obtain the potential change rule.
[0126] Further optionally, the encoding unit preprocesses the first data based on the potential change rule, specifically:
[0127] Based on the potential change law, perform anomaly detection and redundant data deletion on the first data to obtain first intermediate data;
[0128] Based on the potential change law, group the first intermediate data to obtain preprocessed first data.
[0129] Further optionally, an encoding unit encodes the preprocessed first data using a Polar code to obtain second data, specifically for:
[0130] Select encoding parameters based on the potential change law; the encoding parameters at least include: a code length parameter, a code rate parameter;
[0131] According to the encoding parameters, perform polarization channel processing on the first data to allocate the first data to a first channel and a second channel respectively; wherein, the first channel is used to carry the bit data to be encoded in the first data, and the second channel is used to carry the bit data to be frozen in the first data;
[0132] Perform encoding operations on the bit data of the first channel and the second channel respectively using a hybrid encoding method to obtain the encoded second data.
[0133] Further optionally, an encryption unit perturbs and encrypts the encoding parameters in the second data in combination with key information to obtain third data, specifically for:
[0134] Generate a random binary sequence as the key information; wherein, the generation method of the key information is associated with the potential change law;
[0135] Perform perturbation encryption processing on the corresponding encoding positions in the second data according to the bit positions to be frozen indicated by the key information to obtain second intermediate data; the calculation process of the second intermediate data at the i-th encoding position in the second intermediate data D mid is expressed as:
[0136]
[0137] wherein, d i represents the i-th encoding position in the second data, kj belongs to the j-th element in the binary sequence corresponding to the key K, and the bit position corresponding to kj is p j , represents the exclusive OR operation;
[0138] Recombine the encryption channel combination method in the second intermediate data according to the channel perturbation mode indicated by the key information to obtain the third data;
[0139] Among them, the channel perturbation pattern is associated with the data change pattern in the potential change rule.
[0140] In the system provided by the embodiment of the present application, the data to be processed in the wireless device is converted into a bit stream format to obtain first data; the first data is subjected to timing analysis to obtain the potential change rule contained in the first data; the first data is preprocessed based on the potential change rule;
[0141] Among them, the preprocessing method is associated with at least one of the data sending frequency, data block interval, and redundant data in the potential change rule; the preprocessed first data is encoded using a Polar code to obtain second data; the encoding parameters in the second data are perturbed and encrypted by combining key information to obtain third data; the encrypted third data is sent to the receiving end through a wireless transmission module. The sending end perturbs and encrypts the Polar code encoding parameters by combining key information, so that the encrypted data stream has higher confidentiality, increases the difficulty of data eavesdropping and tampering, and effectively protects the security of the data in the wireless device.
[0142] A schematic structural diagram of a data encryption transmission system based on a Polar code provided by an embodiment of the present application. This system is applied to the receiving end, and the receiving end at least includes the following units:
[0143] A receiving unit, configured to receive third data from the sending end; the third data is obtained by the sending end using a Polar code and key information for processing;
[0144] A decoding unit, configured to use the same key information as the sending end to decrypt the third data, and perform a perturbation restoration process on the decoded data obtained by decryption by combining the key information to obtain fourth data.
[0145] Further optionally, after the decoding unit performs a perturbation restoration process on the decoded data obtained by decryption by combining the key information to obtain fourth data, it is further configured to:
[0146] Detect the data change pattern in the fourth data to obtain the data change pattern in the fourth data;
[0147] Based on the data change pattern in the fourth data, obtain the constellation encoding corresponding to the fourth data; the data to be detected in the fourth data corresponds one-to-one with the constellation encoding, and the distribution rule of the constellation symbols in the constellation encoding corresponds to the data change trend of the fourth data in the data space;
[0148] Perform error code detection on the fourth data based on the constellation encoding, and correct the fourth data based on the detection result to obtain fifth data.
[0149] Please refer to Figure 3 , Figure 3 , which is a schematic diagram of an embodiment of an electronic device provided by an embodiment of the present application. As Figure 3 shown, an embodiment of the present application provides an electronic device 500, including a memory 510, a processor 520, and a computer program 511 stored on the memory 510 and executable on the processor 520. When the processor 520 executes the computer program 511, the foregoing embodiments are implemented.
[0150] Please refer to Figure 4 , Figure 4 , which is a schematic diagram of an embodiment of a computer-readable storage medium provided by an embodiment of the present application. As Figure 4 shown, this embodiment provides a computer-readable storage medium 600, on which a computer program 611 is stored. When the computer program 611 is executed by a processor, the foregoing embodiments are implemented.
[0151] It should be noted that in the above embodiments, the descriptions of the respective embodiments have their own emphases. For parts not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0152] Those skilled in the art should understand that the embodiments of the present invention may be provided as a method, a system, or a computer program product. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0153] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in the Figure 1 one or more flows or multiple flows and / or blocks Figure 1 one or more blocks or multiple blocks.
[0154] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to work in a particular manner, such that the instructions stored in the computer-readable memory produce a manufacture including an instruction device that implements the functions specified in one or more of the flows Figure 1 and / or boxes. Figure 1 The functions specified in one or more boxes.
[0155] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus, such that a series of operational steps are performed on the computer or other programmable apparatus to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable apparatus provide steps for implementing the functions specified in one or more of the flows Figure 1 and / or boxes. Figure 1 The functions specified in one or more boxes.
[0156] Although the preferred embodiments of the present invention have been described, additional changes and modifications can be made to these embodiments by those skilled in the art once they learn of the basic inventive concept. Therefore, the appended claims are intended to be construed to include the preferred embodiments as well as all changes and modifications that fall within the scope of the present invention.
[0157] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.
Claims
1. A data encryption transmission method based on Polar code, characterized in that: The data encryption transmission method is applied to the sending end, and the data encryption transmission method at least includes: Convert the data to be processed in the wireless device into a bit stream format to obtain first data; Performing time series analysis on the first data to obtain potential change rules contained in the first data; Preprocessing the first data based on the potential change rule; wherein the preprocessing method is associated with at least one of the data transmission frequency, data block interval, and redundant data in the potential change rule; Encoding the preprocessed first data using a Polar code to obtain second data; Performing perturbation encryption on the encoding parameters in the second data in combination with the key information to obtain third data; The encrypted third data is sent to the receiving end through the wireless transmission module.
2. The method for data encryption and transmission based on Polar code according to claim 1, characterized in that: The performing time series analysis on the first data to obtain potential change rules contained in the first data includes: Identify the type of device and function of the wireless device; Using a data collection method that matches the device type and device function, obtaining the parameters to be analyzed in the first data; the parameters to be analyzed include at least: data sending frequency and interval time; Data change pattern recognition is performed on the first data based on the parameter to be analyzed to obtain the potential change rule.
3. The method for data encryption and transmission based on Polar code according to claim 2, characterized in that: The preprocessing of the first data based on the potential change rule includes: Based on the potential change rule, perform anomaly detection and redundant data deletion on the first data to obtain first intermediate data; Based on the potential change rule, the first intermediate data is grouped to obtain preprocessed first data.
4. The method for data encryption and transmission based on Polar code according to claim 1, characterized in that: The method of encoding the preprocessed first data by using the Polar code to obtain the second data includes: Selecting encoding parameters based on the potential change rule; the encoding parameters at least include: code length parameters and code rate parameters; Performing polarization channel processing on the first data according to the coding parameter, so as to configure the first data to a first channel and a second channel respectively; wherein the first channel is used to carry bit data to be encoded in the first data, and the second channel is used to carry bit data to be frozen in the first data; A hybrid coding method is used to perform coding operations on respective bit data of the first channel and the second channel to obtain the encoded second data.
5. The method for data encryption and transmission based on Polar code according to claim 1, characterized in that: The step of performing perturbation encryption on the encoding parameter in the second data in combination with the key information to obtain the third data comprises: Generate a random binary sequence as the key information; wherein the key information is generated in a manner associated with the potential change rule; The bit position to be frozen indicated by the key information is disturbed and encrypted on the corresponding coding position in the second data to obtain the second intermediate data; the second intermediate data D mid The calculation process of the second intermediate data of the i-th encoding position in is expressed as: Among them, d i represents the i-th encoding position in the second data, kj belongs to the j-th element in the binary sequence corresponding to the key K, and the bit position corresponding to kj is p j , Represents the exclusive OR operation; Recombining the encrypted channel combination mode in the second intermediate data according to the channel perturbation mode indicated by the key information to obtain the third data; The channel disturbance pattern is associated with the data change pattern in the potential change rule.
6. A data encryption transmission method based on Polar code, characterized in that: The data encryption transmission method is applied to the receiving end, and the data encryption transmission method at least includes: receiving third data from the transmitting end; the third data is obtained by the transmitting end using the Polar code and key information; Decrypting the third data using key information consistent with the sending end; The decrypted coded data is subjected to disturbance recovery processing in combination with the key information to obtain fourth data.
7. The method for data encryption and transmission based on Polar code according to claim 6, characterized in that: After performing disturbance recovery processing on the coded data obtained by decryption in combination with the key information to obtain fourth data, the method further includes: Performing data change pattern detection on the fourth data to obtain a data change pattern in the fourth data; Based on the data change pattern in the fourth data, a constellation code corresponding to the fourth data is obtained; the data to be detected in the fourth data corresponds to the constellation code one by one, and the distribution pattern of the constellation symbols in the constellation code corresponds to the data change trend of the fourth data in the data space; Based on the constellation diagram encoding, error detection is performed on the fourth data, and the fourth data is corrected based on the detection result to obtain fifth data.
8. A data encryption transmission system based on Polar code, characterized in that: The data encryption transmission system is applied to a sending end, and the sending end at least includes the following units: A conversion unit, configured to convert the data to be processed in the wireless device into a bit stream format to obtain first data; an encoding unit, configured to perform a time series analysis on the first data to obtain a potential change rule contained in the first data; preprocess the first data based on the potential change rule; wherein the preprocessing method is associated with at least one of a data transmission frequency, a data block interval, and redundant data in the potential change rule; and encode the preprocessed first data using a Polar code to obtain second data; an encryption unit, configured to perform perturbation encryption on the encoding parameters in the second data in combination with the key information to obtain third data; The transceiver unit is used to send the encrypted third data to the receiving end through the wireless transmission module.
9. A data encryption transmission system based on Polar code, characterized in that: The data encryption transmission system is applied to a receiving end, and the receiving end at least includes the following units: A receiving unit, configured to receive third data from a transmitting end; the third data is obtained by the transmitting end using a Polar code and key information; The decoding unit is used to use the key information consistent with the sending end to decrypt the third data, and perform disturbance recovery processing on the decrypted coded data in combination with the key information to obtain fourth data.
10. An electronic device, characterized in that: including a memory for storing a computer software program; A processor, used to read and execute the computer software program, thereby implementing the data encryption transmission method based on Polar code as described in any one of claims 1-7.