Encryption communication system and method, electronic equipment and computer readable storage medium

By using the random number generation module and frequency adjustment module in the encrypted communication system, the information security problem in IoT data transmission is solved, efficient encrypted communication is realized, and the security of data transmission is ensured.

CN119254502APending Publication Date: 2025-01-03SHENZHEN TIANXINGRUI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411400086.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

In the environment of Internet of Things technology, data transmission between industrial equipment and users is prone to face information security issues, and traditional data transmission is difficult to effectively ensure information security.

Method used

Design an encrypted communication system, including a random number generation module, an encryption module, a transmitting module, a receiving module and a decryption module, encrypt and decrypt communication data by generating random numbers, and adjust the transmission and reception frequency parameters according to the random numbers to ensure that each The signal frequency of the second transmission is unpredictable, which increases the difficulty of cracking encrypted data packets.

Benefits of technology

By constantly updating the key and adjusting the signal frequency, the security of encrypted data packets is significantly improved, reducing the difficulty of third parties in obtaining encrypted data packets, thereby avoiding information leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254502A_ABST
    Figure CN119254502A_ABST
Patent Text Reader

Abstract

The invention discloses an encryption communication system and method, electronic equipment and a computer readable storage medium, and the encryption communication system is characterized in that the encryption communication system comprises a random number generation module, an encryption module, a transmitting module, a receiving module and a decryption module, the random number generation module is used for generating a random number within a preset range; the encryption module is used for encrypting the communication data, the random number and the second key based on the first key to obtain an encrypted data packet; the encryption module is also used for controlling the transmitting module to transmit the encrypted data packet at a preset transmitting frequency and adjusting parameters of the preset transmitting frequency according to the random number; the receiving module is used for receiving the encrypted data packet according to a preset receiving frequency; the decryption module is used for decrypting the encrypted data packet according to the first key, and the receiving module adjusts the parameters of the preset receiving frequency according to the random number obtained through decryption. The signal frequency of the next communication is controlled through the random number, so that the signal frequency is difficult to predict, and the information security is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication security technology, and in particular, relates to an encrypted communication system, method, electronic device and computer-readable storage medium. Background Art

[0002] At present, with the emergence of industrial Internet of Things, new generation information technologies such as the Internet, big data, and artificial intelligence have accelerated innovative applications in the manufacturing field. The key to achieving online connection and real-time interaction between industrial equipment and users is data transmission. In the context of Internet of Things technology, the data transmission process is highly dependent on computer information networks. Therefore, the data transmission process is prone to information security issues. Summary of the invention

[0003] The purpose of this application is to provide an encrypted communication system, method, electronic device and computer-readable storage medium, aiming to solve the information security problem of traditional data transmission.

[0004] The first aspect of an embodiment of the present application provides an encrypted communication system, including: a random number generation module, the random number generation module is used to generate a random number within a preset range; an encryption module, the encryption module is used to encrypt communication data, the random number and the second key based on a first key to obtain an encrypted data packet; wherein the second key is used for the next encryption; a transmitting module, the encryption module is also used to control the transmitting module to send the encrypted data packet at a preset sending frequency, and adjust the parameters of the preset sending frequency according to the random number; a receiving module, the receiving module is used to receive the encrypted data packet according to a preset receiving frequency; a decryption module, the decryption module is used to decrypt the encrypted data packet according to the first key, and the receiving module adjusts the parameters of the preset receiving frequency according to the random number obtained by decryption.

[0005] In one embodiment, the transmitting module includes a first analog-to-digital conversion unit and a transmitting unit; the first analog-to-digital conversion unit is used to generate a first driving voltage corresponding to the random number provided by the encryption module based on the random number provided by the encryption module; the transmitting unit is used to send the encrypted data packet based on the first driving voltage at a frequency corresponding to the first driving voltage.

[0006] In one embodiment, the receiving module includes a second analog-to-digital conversion unit and a receiving unit; the second analog-to-digital conversion unit is used to generate a second driving voltage corresponding to the random number provided by the decryption module based on the random number provided by the decryption module; the receiving unit is used to receive the encrypted data packet based on the second driving voltage at a frequency corresponding to the second driving voltage.

[0007] In one embodiment, the output range of the first driving voltage is the same as the output range of the second driving voltage, and the first mapping relationship between the first driving voltage and the random number provided by the encryption module is the same as the second mapping relationship between the second driving voltage and the random number provided by the decryption module; the third mapping relationship between the first driving voltage and the operating frequency of the transmitting unit is the same as the fourth mapping relationship between the second driving voltage and the operating frequency of the receiving unit.

[0008] In one embodiment, a first device and a second device are included, wherein the first device includes the random number generation module, the encryption module and the transmission module, and the second device includes the receiving module and the decryption module.

[0009] In one embodiment, the transmitting unit includes a radio frequency chip and a transmitting antenna, and the radio frequency chip is respectively connected to the transmitting antenna, the first analog-to-digital conversion unit and the encryption module, and the radio frequency chip is used to transmit the encrypted data packet through the transmitting antenna based on a first driving voltage provided by the first analog-to-digital conversion unit.

[0010] A second aspect of an embodiment of the present application provides an encrypted communication method, which is applied to wireless communication between smart devices, and the encrypted communication method includes: generating a random number within a preset range; encrypting communication data, the random number and the second key based on a first key to obtain an encrypted data packet; wherein the second key is used for the next encryption; sending the encrypted data packet at a preset sending frequency, and adjusting the parameters of the preset sending frequency according to the random number; receiving the encrypted data packet according to a preset receiving frequency; decrypting the encrypted data packet according to the key corresponding to the encrypted data packet, and adjusting the parameters of the preset receiving frequency according to the random number.

[0011] In one embodiment, before the first device generates a random number within a preset range, the process further includes: initializing each of the smart devices.

[0012] A third aspect of an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method when executing the computer program.

[0013] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and wherein the computer program implements the above method when executed by a processor.

[0014] Compared with the prior art, the embodiments of the present application have the following beneficial effects: each time an encrypted data packet is transmitted, the decryption module can obtain the second key for the next encryption, and the difficulty of cracking the encrypted data packet can be increased by continuously changing the key. Since the random number is randomly generated, each generated random number is unpredictable. Therefore, by generating a random number during encryption, and after completing the transmission of the encrypted data packet, the parameters of the preset transmission frequency and the preset reception frequency for the next communication can be configured based on the random number, so that the signal frequency of each encrypted data packet transmission is unpredictable. When sending data next time, since it is difficult to predict the signal frequency of the encrypted data packet, it will greatly increase the difficulty for a third party to obtain the encrypted data packet, thereby avoiding information leakage.

[0015] At the same time, by adjusting the driving voltage based on random numbers, "encryption" can be achieved at the physical level. Only when the transmitting module matches the receiving module can the decryption module obtain the signal frequency of the next transmission based on the random number, thereby determining the parameters of the preset receiving frequency. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic diagram of an encrypted communication system provided by an embodiment of the present application;

[0017] Figure 2 Another schematic diagram of an encrypted communication system provided by an embodiment of the present application;

[0018] Figure 3 A flowchart of an encryption communication method provided by an embodiment of the present application;

[0019] Figure 4 A schematic diagram of an electronic device provided in accordance with an embodiment of the present application. DETAILED DESCRIPTION

[0020] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0021] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.

[0022] It should be understood that the orientation or position relationship indicated by terms such as "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0023] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0024] Figure 1 A schematic diagram of an encrypted communication system provided by an embodiment of the present application is shown. For ease of explanation, only the parts related to the present embodiment are shown, which are described in detail as follows:

[0025] An encryption communication system 10 includes: a random number generation module 100, an encryption module 200, a transmission module 300, a receiving module 400 and a decryption module 500.

[0026] The random number generation module 100 is used to generate random numbers within a preset range. The encryption module 200 is connected to the random number generation module 100, and the encryption module 200 is used to encrypt the communication data, the random number and the second key based on the first key to obtain an encrypted data packet. Among them, the second key is used for the next encryption of the encryption module 200. The transmitting module 300 is connected to the encryption module 200, and the encryption module 200 is also used to control the transmitting module 300 to send the encrypted data packet at a preset sending frequency, and adjust the parameters of the preset sending frequency according to the random number. The receiving module 400 can wirelessly communicate with the transmitting module 300, and the receiving module 400 is used to receive the encrypted data packet according to the preset receiving frequency. The decryption module 500 is connected to the receiving module 400, and the decryption module 500 is used to decrypt the encrypted data packet according to the first key, and the receiving module 400 adjusts the parameters of the preset receiving frequency according to the random number obtained by decryption.

[0027] The first key is the key used for encryption and decryption when the encrypted data packet is transmitted this time, and the second key is the newly generated key. When the encrypted data packet is transmitted next time, the second key transmitted this time will become the first key used for encryption and decryption of the encrypted data packet next time, and a new second key will be generated at the same time.

[0028] Each time an encrypted data packet is transmitted, the decryption module can obtain the second key for the next encryption. By continuously updating the key, the difficulty of cracking the encrypted data packet can be increased.

[0029] It should be noted that the communication data is the data that needs to be encrypted and transmitted between the transmitter and the receiver. Each time the communication data is transmitted, the random number generation module 100 can randomly select a value within a preset range and provide it to the encryption module 200. The value is the random number transmitted with the communication data this time. Among them, the preset range can be set according to actual needs. For example, a suitable preset range can be selected according to the adjustable range of the preset transmission frequency and the preset reception frequency. For ease of implementation, the random number can be limited to an integer within the preset range. Exemplarily, the preset range can be [0, 1024], and the random number generated by the random number generation module 100 each time can be any integer therein, for example, the random number can be any one of 10, 150 or 750.

[0030] Since random numbers are randomly generated, each generated random number is unpredictable. Therefore, by generating a random number during encryption, and after completing the transmission of the encrypted data packet, the parameters of the preset sending frequency and the preset receiving frequency for the next communication can be configured based on the random number, so that the signal frequency of each encrypted data packet transmission is unpredictable. Even if a third party obtains an encrypted data packet, it is difficult for the third party to crack the obtained encrypted data packet without obtaining the previous encrypted data packet. Even if a third party cracks an encrypted data packet, the next time data is sent, it is difficult to predict the signal frequency of the encrypted data packet, which greatly increases the difficulty for the third party to obtain the encrypted data packet, thereby avoiding information leakage.

[0031] It can be understood that after completing the transmission of an encrypted data packet, the preset sending frequency and the preset receiving frequency at this time are obtained by the same random number, so that when the encrypted data packet is transmitted next time, the preset sending frequency of the signal can be matched with the preset receiving frequency, and the receiving module 400 can receive the corresponding encrypted data packet according to the preset receiving frequency, realize the transmission of the encrypted data packet, and can again complete the reconfiguration of the preset sending frequency and the preset receiving frequency according to the random number in the newly received encrypted data packet.

[0032] In one embodiment, if Figure 2 As shown, the transmitting module 300 includes a first analog-to-digital conversion unit 310 and a transmitting unit 320. Specifically, the input end of the first analog-to-digital conversion unit 310 is connected to the encryption module 200, the output end of the first analog-to-digital conversion unit 310 is connected to the transmitting unit 320, and the input end of the transmitting unit 320 is also connected to the encryption module 200.

[0033] The first analog-to-digital conversion unit 310 is used to generate a first driving voltage corresponding to the random number provided by the encryption module 200 according to the random number provided by the encryption module 200. The transmitting unit 320 is used to send an encrypted data packet at a frequency corresponding to the first driving voltage based on the first driving voltage. Among them, the first analog-to-digital conversion unit 310 may specifically include a digital-to-analog converter (DAC). The transmitting unit 320 may identify the first driving voltage through a corresponding chip to determine the corresponding frequency, or may obtain a corresponding frequency signal based on the first driving voltage through a device or circuit such as a voltage-controlled oscillator, which is not limited in the embodiments of the present application.

[0034] It should be noted that the preset transmission frequency is the frequency of the signal sent by the transmitting unit 320 when receiving the first driving voltage. The transmitting module 300 can adjust the parameters of the preset transmission frequency according to the random number, that is, the first analog-to-digital conversion unit 310 adjusts the first driving voltage according to the random number, thereby affecting the frequency of the signal sent by the transmitting unit 320. At this time, adjusting the parameters of the preset transmission frequency is used to adjust the signal frequency of the encrypted data packet sent by the transmitting module 300 next time.

[0035] Since the random number changes each time an encrypted data packet is transmitted, it is difficult for a third party to determine the specific value of the first driving voltage output by the first analog-to-digital conversion unit 310 each time an encrypted data packet is transmitted. It is also difficult to determine the frequency of the signal emitted by the transmitting unit 320 each time an encrypted data packet is transmitted, thereby reducing the probability of a third party obtaining the encrypted data packet.

[0036] In one embodiment, if Figure 2 As shown, the receiving module 400 includes a second analog-to-digital conversion unit 410 and a receiving unit 420. Specifically, the input end of the second analog-to-digital conversion unit 410 is connected to the decryption module 500, the output end of the second analog-to-digital conversion unit 410 is connected to the receiving unit 420, and the output end of the receiving unit 420 is also connected to the decryption module 500.

[0037] The second analog-to-digital conversion unit 410 is used to generate a second driving voltage corresponding to the random number provided by the decryption module 500 according to the random number provided by the decryption module 500. The receiving unit 420 is used to receive an encrypted data packet at a frequency corresponding to the second driving voltage based on the second driving voltage. The working principle of the receiving unit 420 corresponds to that of the transmitting unit 320, and will not be described in detail in this embodiment.

[0038] It should be noted that the preset receiving frequency is the frequency of the signal that the receiving unit 420 can receive when receiving the second driving voltage. The receiving module 400 adjusts the parameters of the preset receiving frequency according to the random number obtained by decryption, that is, the second analog-to-digital conversion unit 410 adjusts the second driving voltage according to the random number, thereby affecting the frequency of the signal that the receiving unit 420 can receive. At this time, the parameters of the preset receiving frequency are adjusted to receive the encrypted data packet sent by the transmitting module 300 next time.

[0039] It is understandable that by adjusting the driving voltage based on the random number through the analog-to-digital conversion unit, "encryption" can be achieved at the physical level, that is, the model and working parameters of the analog-to-digital conversion unit will affect the obtained driving voltage, and different analog-to-digital conversion units will output different driving voltages when receiving the same random number. Only when the transmitting module 300 matches the receiving module 400, the decryption module 500 can obtain the signal frequency of the next transmission based on the random number, thereby determining the parameters of the preset receiving frequency.

[0040] For example, if the receiving unit 420 does not match the transmitting unit 320, even if the second driving voltage received by the receiving unit 420 is the same as the first driving voltage, the signal frequency of the encrypted data packet to be sent next time cannot be determined, and the encrypted data packet to be sent next time cannot be obtained. Once any encrypted data packet cannot be obtained, it is even more difficult to obtain an encrypted data packet with a constantly changing frequency again.

[0041] In one embodiment, the output range of the first driving voltage is the same as the output range of the second driving voltage, and the first mapping relationship between the first driving voltage and the random number provided by the encryption module 200 is the same as the second mapping relationship between the second driving voltage and the random number provided by the decryption module 500. The third mapping relationship between the first driving voltage and the operating frequency of the transmitting unit 320 is the same as the fourth mapping relationship between the second driving voltage and the operating frequency of the receiving unit 420.

[0042] It is understandable that only when the transmitting module 300 matches the receiving module 400, can the transmitting module 300 and the receiving module 400 obtain the preset sending frequency and the preset receiving frequency with the same value based on the same random number.

[0043] For example, in some embodiments, the preset range of the random number is [X, Y], the output range of the first driving voltage and the output range of the second driving voltage are both aV to bV, then when the random number is M, the first driving voltage and the second driving voltage are both cV. The relationship between the random number and the driving voltage can be formula (1):

[0044]

[0045] It is also possible to correspond each integer within the preset range to each driving voltage one by one.

[0046] In one embodiment, the encryption communication system 10 includes a first device 11 and a second device 12, the first device 11 includes the above-mentioned random number generation module 100, encryption module 200 and transmission module 300, and the second device 12 includes the above-mentioned receiving module 400 and decryption module 500.

[0047] The first device 11 can communicate wirelessly with the second device 12 , and perform encrypted communication through the random number generation module 100 , the encryption module 200 , the transmission module 300 , the receiving module 400 and the decryption module 500 .

[0048] In one embodiment, the transmitting unit 320 includes a radio frequency chip and a transmitting antenna. The radio frequency chip is respectively connected to the transmitting antenna, the first analog-to-digital conversion unit 310 and the encryption module 200. The radio frequency chip is used to transmit an encrypted data packet through the transmitting antenna based on the first driving voltage provided by the first analog-to-digital conversion unit 310.

[0049] It should be noted that the RF chip may be provided with a voltage input terminal, a signal input terminal and a signal output terminal, the voltage input terminal of the RF chip is connected to the first analog-to-digital conversion unit 310, the signal input terminal of the RF chip is connected to the encryption module 200, and the signal output terminal of the RF chip is connected to the transmitting antenna. The RF chip may output the signal received by the signal input terminal from the signal output terminal at a frequency corresponding to the magnitude of the first driving voltage received by the voltage input terminal.

[0050] The radio frequency chip can also perform conventional processing such as amplifying the signal. Similarly, the receiving unit 420 can also include a corresponding antenna and chip, which will not be described in detail in this embodiment.

[0051] Figure 3 A flowchart of an encryption communication method provided by an embodiment of the present application is shown. For ease of explanation, only the part related to the present embodiment is shown, which is described in detail as follows:

[0052] An encryption communication method can be applied to wireless communication between smart devices, wherein the smart devices include a first device 11 and a second device 12, that is, an encryption communication system 10 that can be applied to any of the above-mentioned embodiments. The first device 11 can specifically include a random number generation module 100, an encryption module 200 and a transmission module 300, and the second device 12 can specifically include a receiving module 400 and a decryption module 500. The encryption communication method includes steps S100 to S500.

[0053] Step S100: Generate a random number within a preset range.

[0054] The first device 11 may perform step S100 through the random number generation module 100 .

[0055] Step S200: encrypt the communication data, the random number and the second key based on the first key to obtain an encrypted data packet, wherein the second key is used for the next encryption of the encryption module.

[0056] The first device 11 may perform step S200 through the encryption module 200 .

[0057] Step S300: Sending an encrypted data packet at a preset sending frequency, and adjusting parameters of the preset sending frequency according to a random number.

[0058] The first device 11 may perform step S300 through the transmitting module 300 .

[0059] It can be understood that the preset sending frequency after executing step S300 can be used for sending the next encrypted data packet.

[0060] Step S400: receiving an encrypted data packet according to a preset receiving frequency.

[0061] The second device 12 may perform step S400 through the receiving module 400 .

[0062] Step S500: decrypting the encrypted data packet according to the first key, and adjusting the parameters of the preset receiving frequency according to the random number.

[0063] The second device 12 may perform step S500 through the receiving module 400 .

[0064] By executing steps S100 to S500 multiple times, data transmission between the first device 11 and the second device 12 can be achieved.

[0065] Each time step S100 to step S500 is executed, the key of the encrypted data packet to be transmitted next time can be informed to the second device 12. At the same time, the preset sending frequency and the preset receiving frequency for the next data transmission can be set by the random number, so that the preset sending frequency and the preset receiving frequency are constantly changed, thereby greatly reducing the probability of a third party obtaining communication data and reducing the risk of information leakage.

[0066] In one embodiment, before the first device 11 generates a random number within a preset range, step S600 is further included.

[0067] Step S600: Initialize each smart device.

[0068] It is understandable that the smart device includes a first device 11 and a second device 12. Step S600 can be used to initialize the first device 11 and the second device 12 so that the first device 11 and the second device 12 can complete the first communication. After executing step S600, steps S100 to S500 can be executed repeatedly.

[0069] Exemplarily, in some embodiments, after the first device 11 and the second device 12 complete initialization, the first device 11 can set the parameters of the preset sending frequency to the initial frequency, and the second device 12 can also set the parameters of the preset receiving frequency to the initial frequency. The first device 11 encrypts the communication data, the random number and the second key with the initial key, and the second device 12 can decrypt the encrypted data packet according to the initial key to obtain the random number and the second key for the next data transmission.

[0070] It is understandable that the initial frequency and the initial key can be set according to the actual situation. Even if a third party cracks the encrypted data packet once to obtain the random number and the second key, it is impossible to know the signal frequency of the next data transmission.

[0071] Figure 4 A schematic diagram of an electronic device provided by an embodiment of the present application is shown. For the sake of convenience, only the parts related to the present embodiment are shown, which are described in detail as follows:

[0072] The electronic device 20 includes: at least one processor 21 ( Figure 4 Only one is shown in the figure), a memory 22, and a computer program 23 stored in the memory 22 and executable on at least one processor 21, wherein the processor 21 implements the steps of the above-mentioned encryption communication method when executing the computer program 23.

[0073] The electronic device 20 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The electronic device may include, but is not limited to, a processor 21 and a memory 22. Those skilled in the art will appreciate that Figure 4 It is only an example of the electronic device 20 and does not constitute a limitation of the electronic device 20. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

[0074] The processor 21 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0075] In some embodiments, the memory 22 may be an internal storage unit of the electronic device 20, such as a hard disk or memory of the electronic device 20. In other embodiments, the memory 22 may also be an external storage device of the electronic device 20, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 20. Further, the memory 22 may also include both an internal storage unit of the electronic device 20 and an external storage device. The memory 22 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of a computer program, etc. The memory 22 may also be used to temporarily store data that has been output or is to be output.

[0076] In one embodiment, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a computer program 23, and when the computer program 23 is executed by the processor 21, the encryption communication method as described in any of the above embodiments is implemented.

[0077] Computer-readable storage media may include semiconductor memory, magnetic memory, and disk storage, among others.

[0078] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0079] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

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

[0081] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. An encrypted communication system, characterized in that: include: A random number generation module, wherein the random number generation module is used to generate a random number within a preset range; An encryption module, the encryption module is used to encrypt the communication data, the random number and the second key based on the first key to obtain an encrypted data packet; wherein the second key is used for the next encryption; The transmitting module, the encryption module is further used to control the transmitting module to send the encrypted data packet at a preset sending frequency, and adjust the parameters of the preset sending frequency according to the random number; A receiving module, the receiving module is used to receive the encrypted data packet according to a preset receiving frequency; A decryption module is used to decrypt the encrypted data packet according to the first key, and the receiving module adjusts the parameters of the preset receiving frequency according to the random number obtained by decryption.

2. The encrypted communication system according to claim 1, characterized in that: The transmitting module includes a first analog-to-digital conversion unit and a transmitting unit; The first analog-to-digital conversion unit is used to generate a first driving voltage corresponding to the random number provided by the encryption module according to the random number provided by the encryption module; The transmitting unit is used for sending the encrypted data packet based on the first driving voltage at a frequency corresponding to the first driving voltage.

3. The encrypted communication system according to claim 2, characterized in that: The receiving module includes a second analog-to-digital conversion unit and a receiving unit; The second analog-to-digital conversion unit is used to generate a second driving voltage corresponding to the random number provided by the decryption module according to the random number provided by the decryption module; The receiving unit is configured to receive the encrypted data packet based on the second driving voltage at a frequency corresponding to the second driving voltage.

4. The encrypted communication system according to claim 3, characterized in that: The output range of the first driving voltage is the same as the output range of the second driving voltage, and the first mapping relationship between the first driving voltage and the random number provided by the encryption module is the same as the second mapping relationship between the second driving voltage and the random number provided by the decryption module; The third mapping relationship between the first driving voltage and the operating frequency of the transmitting unit is the same as the fourth mapping relationship between the second driving voltage and the operating frequency of the receiving unit.

5. The encrypted communication system according to any one of claims 1 to 4, characterized in that: The system comprises a first device and a second device, wherein the first device comprises the random number generating module, the encryption module and the transmitting module, and the second device comprises the receiving module and the decryption module.

6. The encrypted communication system according to claim 3 or 4, characterized in that: The transmitting unit includes a radio frequency chip and a transmitting antenna. The radio frequency chip is respectively connected to the transmitting antenna, the first analog-to-digital conversion unit and the encryption module. The radio frequency chip is used to transmit the encrypted data packet through the transmitting antenna based on a first driving voltage provided by the first analog-to-digital conversion unit.

7. An encrypted communication method, characterized in that: Applied to wireless communication between smart devices, the encrypted communication method includes: Generate random numbers within a preset range; Encrypt the communication data, the random number and the second key based on the first key to obtain an encrypted data packet; wherein the second key is used for the next encryption; Sending the encrypted data packet at a preset sending frequency, and adjusting a parameter of the preset sending frequency according to the random number; receiving encrypted data packets according to a preset receiving frequency; The encrypted data packet is decrypted according to the key corresponding to the encrypted data packet, and the parameters of the preset receiving frequency are adjusted according to the random number.

8. The encryption communication method according to claim 7, characterized in that: Before generating a random number within a preset range, the method further includes: Initialize each of the smart devices.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 7 to 8 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 7 to 8 is implemented.