Communication encryption method, communication decryption method, device and non-volatile storage medium

By using the target bandwidth frequency for dynamic encryption in communication, the security problem caused by fixed communication keys is solved, and high security and reliability of communication encryption are achieved.

CN114301664BActive Publication Date: 2024-09-03CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111617026.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-27
Publication Date
2024-09-03
Estimated Expiration
2041-12-27

AI Technical Summary

Technical Problem

In existing communication encryption technology, communication keys are fixed and cannot be changed dynamically, which may lead to insecure communication due to key leakage.

Method used

By obtaining the target bandwidth frequency of the communication sending end, encrypting it and the communication content, generating encrypted transmission data, using different keys for encryption in each communication, and sending the target bandwidth frequency and encrypted transmission data to the communication receiving end.

Benefits of technology

It improves the security and reliability of communication encryption, prevents communication insecurity caused by key leakage, and enhances communication security through the use of dynamic keys.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114301664B
    Figure CN114301664B
Patent Text Reader

Abstract

The present invention discloses a communication encryption method, a communication decryption method, a device and a non-volatile storage medium. The method comprises: obtaining a target bandwidth frequency of a communication transmitting end; encrypting the target bandwidth frequency and the communication content to obtain encrypted transmission data; and sending the target bandwidth frequency and the encrypted transmission data to a communication receiving end. The present invention solves the technical problem that the key is easily leaked during the communication process, resulting in insecure communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication security, and in particular to a communication encryption method, a communication decryption method, a device and a non-volatile storage medium. Background Art

[0002] With the rapid development of the Internet, the number of Internet users has exploded. While the Internet brings convenience to people, it also brings hidden dangers. When users use the Internet to communicate, once the transmitted data is stolen, the consequences will be disastrous. How to ensure the safe transmission of confidential information and how to effectively identify the identities of both parties to the transaction are one of the problems facing network security. Data encryption technology is the most important means to ensure information security. In order to prevent the leakage of sensitive data and realize the value of data security protection, the development of a data encryption algorithm is of great significance to the protection of sensitive data. In related technologies, the communication key used to encrypt the communication content is usually a fixed key that cannot be changed dynamically at any time. This may be hacked, resulting in communication security issues.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present invention provide a communication encryption method, a communication decryption method, a device and a non-volatile storage medium, so as to at least solve the technical problem that the key is easily leaked during the communication process, resulting in insecure communication.

[0005] According to one aspect of an embodiment of the present invention, a communication encryption method is provided, comprising: acquiring a target bandwidth frequency of a communication sending end; encrypting the target bandwidth frequency and communication content to obtain encrypted transmission data; and sending the target bandwidth frequency and the encrypted transmission data to the communication receiving end.

[0006] Optionally, obtaining the target bandwidth frequency of the communication transmitting end includes: obtaining a predetermined bandwidth frequency and an average bandwidth frequency of the communication transmitting end, wherein the target bandwidth frequency includes the average bandwidth frequency; comparing the predetermined bandwidth frequency with the average bandwidth frequency to obtain a comparison result, and according to the comparison result, obtaining one of an uplink bandwidth frequency and a downlink bandwidth frequency of the communication transmitting end, wherein the target bandwidth frequency includes the uplink bandwidth frequency and the downlink bandwidth frequency.

[0007] Optionally, based on the comparison result, the first bandwidth frequency of the communication sending end is obtained, including: when the predetermined bandwidth frequency is greater than the average bandwidth frequency, obtaining the uplink bandwidth frequency of the communication sending end; when the predetermined bandwidth frequency is less than the average bandwidth frequency, obtaining the downlink bandwidth frequency of the communication sending end.

[0008] Optionally, encrypting the target bandwidth frequency and the communication content to obtain encrypted transmission data includes: obtaining a predetermined encryption constant; and encrypting the encryption constant, the target bandwidth frequency and the communication content to obtain the encrypted transmission data.

[0009] Optionally, the target bandwidth frequency and the communication content are encrypted to obtain encrypted transmission data, including: taking the modulus of the target bandwidth frequency and the communication content respectively to obtain multiple groups of modulus values; and converting the multiple groups of modulus values ​​into the encrypted transmission data in a string format.

[0010] According to another aspect of an embodiment of the present invention, a communication decryption method is also provided, comprising: receiving a target bandwidth frequency and encrypted transmission data sent by a communication sending end; based on the target bandwidth frequency, decrypting the portion of the encrypted transmission data corresponding to the target bandwidth frequency to obtain a communication key; and using the communication key to decrypt the encrypted transmission data to obtain communication content.

[0011] Optionally, in the case that the encrypted transmission data is also generated according to a predetermined encryption constant, decrypting the portion of the encrypted transmission data corresponding to the target bandwidth frequency based on the target bandwidth frequency to obtain the communication key includes: decrypting the portion of the encrypted transmission data corresponding to the target bandwidth frequency and the encryption constant based on the target bandwidth frequency to obtain the communication key.

[0012] According to another aspect of an embodiment of the present invention, a communication encryption device is also provided, including: an acquisition module, used to acquire the target bandwidth frequency of the communication sending end; an encryption module, used to encrypt the target bandwidth frequency and the communication content to obtain encrypted transmission data; and a sending module, used to send the target bandwidth frequency and the encrypted transmission data to the communication receiving end.

[0013] According to another aspect of an embodiment of the present invention, a communication decryption device is also provided, including: a receiving module, used to receive a target bandwidth frequency and encrypted transmission data sent by a communication sending end; a first decryption module, used to decrypt the part of the encrypted transmission data corresponding to the target bandwidth frequency based on the target bandwidth frequency to obtain a communication key; and a second decryption module, used to decrypt the encrypted transmission data using the communication key to obtain communication content.

[0014] According to another aspect of an embodiment of the present invention, a non-volatile storage medium is also provided, wherein the non-volatile storage medium includes a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute any one of the above-mentioned communication encryption methods or any one of the above-mentioned communication decryption methods.

[0015] According to another aspect of the embodiments of the present invention, a processor is provided, wherein the processor is used to run a program, wherein when the program is run, any one of the above-mentioned communication encryption methods or any one of the above-mentioned communication decryption methods is executed.

[0016] In the embodiment of the present invention, the communication content is encrypted according to the bandwidth frequency of the communication sending end. By obtaining the target bandwidth frequency of the communication sending end, the target bandwidth frequency and the communication content are encrypted to obtain encrypted transmission data, and the target bandwidth frequency and the encrypted transmission data are sent to the communication receiving end, so as to achieve the purpose of using different keys for encryption each time communication is achieved, thereby achieving the technical effect of improving the security and reliability of communication encryption, and further solving the technical problem that the key is easily leaked during the communication process, resulting in insecure communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0018] Figure 1 A hardware structure block diagram of a computer terminal for implementing a communication encryption method and a communication decryption method is shown;

[0019] Figure 2 is a flow chart of a communication encryption method provided according to an embodiment of the present invention;

[0020] Figure 3 is a flow chart of a communication decryption method provided according to an embodiment of the present invention;

[0021] Figure 4 is a flowchart of encrypted communication based on bandwidth frequency provided according to an optional embodiment of the present invention;

[0022] Figure 5 is a schematic diagram of encrypted communication based on bandwidth frequency provided according to an optional embodiment of the present invention;

[0023] Figure 6 is a structural block diagram of a communication encryption device provided according to an embodiment of the present invention;

[0024] Figure 7 It is a structural block diagram of a communication decryption device provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] According to an embodiment of the present invention, an embodiment of a communication encryption method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0028] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal for implementing a communication encryption method and a communication decryption method is shown. Figure 1 As shown, the computer terminal 10 may include one or more (102a, 102b, ..., 102n are used to illustrate) processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1Different configurations shown.

[0029] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10. As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0030] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the communication encryption method and communication decryption method in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the communication encryption method and communication decryption method of the above-mentioned application are realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0031] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 .

[0032] Figure 2 is a flow chart of a communication encryption method according to an embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:

[0033] Step S202, obtaining the target bandwidth frequency of the communication sending end.

[0034] In this step, the target bandwidth frequency may be a value that fluctuates at any time, rather than a fixed bandwidth frequency value. A three-party interface may be set at the communication sending end to receive the communication content of the communication sending end and monitor the target bandwidth frequency of the communication sending end.

[0035] Step S204, encrypting the target bandwidth frequency and communication content to obtain encrypted transmission data.

[0036] In this step, the target bandwidth frequency and the communication content are encrypted using the same encryption method, and the ciphertext of the target bandwidth frequency and the ciphertext of the communication content can be obtained respectively. Then, the two ciphertexts are combined to obtain the encrypted transmission data.

[0037] Step S206, sending the target bandwidth frequency and encrypted transmission data to the communication receiving end.

[0038] In this step, sending the target bandwidth frequency to the communication receiving end can help the communication receiving end to decrypt the communication key. After the communication receiving end obtains the key, it can decrypt the encrypted transmission data to obtain the communication content that the communication sending end wants to transmit. Optionally, the communication receiving end can first determine the encrypted target bandwidth frequency from the encrypted transmission data according to the pre-agreed encrypted transmission data format, and then perform the inverse operation of encryption based on the encrypted target bandwidth frequency to decrypt the key. After obtaining the key, the communication receiving end can decrypt the encrypted transmission data to obtain the communication content.

[0039] Through the above steps, the purpose of using different keys for encryption each time communication is achieved, thereby achieving the technical effect of improving the security and reliability of communication encryption, and thus solving the technical problem of insecure communication caused by easy leakage of keys during communication. Since the target bandwidth frequency fluctuates, the keys used by both parties to encrypt the communication content each time are different, and it is difficult for the outside world to obtain the communication content through brute force cracking, which ensures the security of communication.

[0040] As an optional embodiment, the target bandwidth frequency and communication content are encrypted to obtain encrypted transmission data. A predetermined encryption constant can be first obtained; then the encryption constant, the target bandwidth frequency and communication content are encrypted to obtain encrypted transmission data.

[0041] Optionally, the encryption constant can be pre-agreed by the communication transmitting end and the communication receiving end. For example, the gravitational constant can be used as the encryption constant. The communication transmitting end can first calculate the encryption constant and the target bandwidth frequency, and then encrypt it using the encryption algorithm. During communication, only the target bandwidth frequency is sent to the communication receiving end without sending the encryption constant. Since the communication receiving end knows the agreed encryption constant in advance, it can obtain the key through inverse operation, but the communication content intercepted by the interceptor does not include the encryption constant, so the key cannot be cracked. In this embodiment, selecting a complex encryption constant can increase the difficulty of cracking and improve communication security.

[0042] As an optional embodiment, the target bandwidth frequency and the communication content are encrypted to obtain encrypted transmission data, which can be obtained by the following method: taking the module of the target bandwidth frequency and the communication content respectively to obtain multiple groups of module values; converting the multiple groups of module values ​​into encrypted transmission data in string format. Optionally, in the process of converting the multiple groups of module values ​​into encrypted transmission data in string format, the multiple groups of module values ​​can also be multiplied by the target bandwidth frequency to convert into a byte array, and then the byte array is converted into a String string, and the formed string is used as the encryption result, that is, the encrypted transmission data for transmission, to further improve the security of communication.

[0043] As an optional embodiment, the target bandwidth frequency of the communication transmitting end can be obtained by the following steps: obtaining a predetermined bandwidth frequency and an average bandwidth frequency of the communication transmitting end, wherein the target bandwidth frequency includes the average bandwidth frequency; comparing the predetermined bandwidth frequency and the average bandwidth frequency to obtain a comparison result, and according to the comparison result, obtaining one of the uplink bandwidth frequency and the downlink bandwidth frequency of the communication transmitting end, wherein the target bandwidth frequency includes the uplink bandwidth frequency and the downlink bandwidth frequency. As an optional embodiment, according to the comparison result, the first bandwidth frequency of the communication transmitting end is obtained, and when the predetermined bandwidth frequency is greater than the average bandwidth frequency, the uplink bandwidth frequency of the communication transmitting end can be obtained; when the predetermined bandwidth frequency is less than the average bandwidth frequency, the downlink bandwidth frequency of the communication transmitting end can be obtained.

[0044] In this optional embodiment, the average bandwidth frequency can be the average value of the current uplink bandwidth frequency and downlink bandwidth frequency of the communication sending end, or the average bandwidth of the communication sending end within a predetermined time period. The target bandwidth frequency can be the uplink bandwidth frequency of the communication sending end, or the downlink bandwidth frequency of the communication sending end, and one of them is specifically selected for encryption each time communication is performed. The predetermined bandwidth frequency can be a pre-agreed custom bandwidth frequency. When the predetermined bandwidth frequency is greater than the average bandwidth frequency, the uplink bandwidth frequency is used together with the communication content to encrypt the encrypted transmission data; when the predetermined bandwidth frequency is less than the average bandwidth frequency, the downlink bandwidth frequency is used together with the communication content to encrypt the encrypted transmission data. The judgment rule can be pre-agreed, and only the communication sending end and the communication receiving end are mastered. Optionally, the communication sending end can send the uplink bandwidth frequency, the downlink bandwidth frequency, and the average bandwidth frequency to the communication receiving end. The communication receiving end determines whether the communication sending end uses the uplink bandwidth frequency for encryption or the downlink bandwidth frequency for encryption based on the predetermined bandwidth frequency it has mastered, and decrypts the key accordingly. This method can further increase the difficulty of cracking by attackers and ensure the security of communication.

[0045] Figure 3 is a flow chart of a communication decryption method provided according to an embodiment of the present invention. Figure 3As shown, the method comprises the following steps:

[0046] Step S302, receiving the target bandwidth frequency and encrypted transmission data sent by the communication sending end.

[0047] In this step, the target bandwidth frequency may be the bandwidth frequency of the communication sending end and may be a value that fluctuates at any time. A three-party interface may be set at the communication sending end to receive the communication content of the communication sending end and monitor the target bandwidth frequency of the communication sending end.

[0048] Step S304: based on the target bandwidth frequency, decrypt the portion of the encrypted transmission data corresponding to the target bandwidth frequency to obtain a communication key.

[0049] In this step, the communication receiving end can determine the part corresponding to the target bandwidth frequency from the encrypted transmission data based on the composition format of the encrypted transmission data agreed with the communication sending end, that is, the ciphertext obtained after the communication sending end encrypts the target bandwidth frequency, and then perform the inverse encryption operation based on the ciphertext and the received target bandwidth frequency to obtain the communication key.

[0050] Step S306, using the communication key to decrypt the encrypted transmission data to obtain the communication content. The communication key is used to decrypt the portion of the encrypted transmission data corresponding to the communication content to obtain the communication content.

[0051] Through the above steps, the purpose of using different keys for encryption in each communication is achieved, thereby achieving the technical effect of improving the security and reliability of communication encryption, and further solving the technical problem of insecure communication caused by easy leakage of keys during communication.

[0052] As an optional embodiment, when the encrypted transmission data is also generated according to a predetermined encryption constant, based on the target bandwidth frequency, the part of the encrypted transmission data corresponding to the target bandwidth frequency is decrypted to obtain a communication key, including: based on the target bandwidth frequency and the encryption constant, decrypting the part of the encrypted transmission data corresponding to the target bandwidth frequency and the encryption constant to obtain the communication key.

[0053] In an optional embodiment, the encryption constant may be a complex constant pre-agreed by the communication sending end and the receiving end, such as the gravitational constant, which does not need to be transmitted through the channel. After receiving the encrypted transmission data and the target bandwidth frequency, the communication receiving end processes the encryption constant and the target bandwidth frequency based on the same operation as the communication sending end, such as adding or multiplying the two, and then obtaining the part corresponding to the operation result from the encrypted transmission data, and performing the inverse operation of encryption according to the operation result to obtain the communication key.

[0054] Figure 4is a flowchart of encrypted communication based on bandwidth frequency provided according to an optional embodiment of the present invention, Figure 5 is a schematic diagram of encrypted communication based on bandwidth frequency provided according to an optional embodiment of the present invention, such as Figure 4 and Figure 5 As shown, encrypted communication based on bandwidth frequency may include the following process:

[0055] Step 1: obtain the plaintext to be encrypted, that is, the communication content, add the first character of the plaintext to the UUID of the communication sender as a unique identifier, encrypt the plaintext to be encrypted and the bandwidth frequency obtained by real-time monitoring, and obtain encrypted transmission data.

[0056] Step 2. Obtain the uplink, downlink and average bandwidth frequency of the communication sending end, and match different encryption algorithms with different bandwidth transmission frequencies.

[0057] Step 2.1: When the predetermined bandwidth frequency is less than the current average bandwidth frequency, the communication transmitter performs a modulo operation on the gravitational constant, the downlink bandwidth frequency, the average bandwidth frequency, the current bandwidth frequency, and the plaintext.

[0058] Step 2.2: When the predetermined bandwidth frequency is greater than the current average bandwidth frequency, the communication transmitter performs a modulo operation on the gravitational constant, the uplink bandwidth frequency, the average bandwidth frequency, the current bandwidth frequency, and the plaintext.

[0059] Step 3. Multiply the obtained modulus value with the corresponding bandwidth frequency to convert it into a byte array, and then convert the byte array into a String. The new string formed is the encrypted transmission data.

[0060] Step 4. Send the encrypted transmission data, uplink, downlink, and average bandwidth frequency to the communication receiving end.

[0061] Step 5. The communication receiving end obtains the encrypted transmission data, uplink, downlink, and average bandwidth frequency through the unique identifier, and then performs reverse operation processing of taking the modulus through the obtained bandwidth frequency and universal gravitational constant to generate a communication key, and then identifies the string to be decrypted through the communication key to obtain the plaintext and complete the decryption.

[0062] According to an embodiment of the present invention, a communication encryption device for implementing the above communication encryption method is also provided. Figure 6 is a structural block diagram of a communication encryption device provided according to an embodiment of the present invention, such as Figure 6 As shown, the communication encryption device includes: an acquisition module 62, an encryption module 64 and a sending module 66. The communication encryption device is described below.

[0063] An acquisition module 62 is used to acquire a target bandwidth frequency of a communication transmitting end;

[0064] The encryption module 64 is used to encrypt the target bandwidth frequency and the communication content to obtain encrypted transmission data;

[0065] The sending module 66 is used to send the target bandwidth frequency and encrypted transmission data to the communication receiving end.

[0066] It should be noted that the acquisition module 62, encryption module 64 and sending module 66 correspond to steps S202 to S206 in the embodiment, and the three modules and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the above embodiment. It should be noted that the above modules, as part of the device, can be run in the computer terminal 10 provided in the embodiment.

[0067] According to an embodiment of the present invention, a communication decryption device for implementing the above communication decryption method is also provided. Figure 7 is a structural block diagram of a communication decryption device provided according to an embodiment of the present invention. Figure 7 As shown, the communication decryption device includes: a receiving module 72, a first decryption module 74 and a second decryption module 76. The communication decryption device is described below.

[0068] A receiving module 72, used for receiving the target bandwidth frequency and encrypted transmission data sent by the communication sending end;

[0069] A first decryption module 74 is used to decrypt the portion of the encrypted transmission data corresponding to the target bandwidth frequency based on the target bandwidth frequency to obtain a communication key;

[0070] The second decryption module 76 is used to decrypt the encrypted transmission data using the communication key to obtain the communication content.

[0071] It should be noted that the above-mentioned receiving module 72, the first decryption module 74 and the second decryption module 76 correspond to steps S302 to S306 in the embodiment, and the three modules and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the above-mentioned embodiment. It should be noted that the above-mentioned modules as part of the device can be run in the computer terminal 10 provided in the embodiment.

[0072] An embodiment of the present invention may provide a computer device. Optionally, in this embodiment, the computer device may be located in at least one network device among multiple network devices of a computer network. The computer device includes a memory and a processor.

[0073] Among them, the memory can be used to store software programs and modules, such as the communication encryption method, communication decryption method and program instructions / modules corresponding to the device in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, the communication encryption method and communication decryption method mentioned above are realized. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.

[0074] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain the target bandwidth frequency of the communication sending end; encrypt the target bandwidth frequency and the communication content to obtain encrypted transmission data; send the target bandwidth frequency and the encrypted transmission data to the communication receiving end.

[0075] The processor can also call the information and application stored in the memory through the transmission device to execute the following steps: receiving the target bandwidth frequency and encrypted transmission data sent by the communication sending end; based on the target bandwidth frequency, decrypting the part of the encrypted transmission data corresponding to the target bandwidth frequency to obtain the communication key; using the communication key to decrypt the encrypted transmission data to obtain the communication content.

[0076] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a non-volatile storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0077] The embodiment of the present invention further provides a non-volatile storage medium. Optionally, in this embodiment, the non-volatile storage medium can be used to store the program code executed by the communication encryption method and the communication decryption method provided in the first embodiment.

[0078] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0079] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: obtaining the target bandwidth frequency of the communication sending end; encrypting the target bandwidth frequency and the communication content to obtain encrypted transmission data; sending the target bandwidth frequency and the encrypted transmission data to the communication receiving end.

[0080] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: receiving a target bandwidth frequency and encrypted transmission data sent by a communication sending end; based on the target bandwidth frequency, decrypting a portion of the encrypted transmission data corresponding to the target bandwidth frequency to obtain a communication key; and using the communication key to decrypt the encrypted transmission data to obtain communication content.

[0081] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

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

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

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

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

[0086] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0087] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A communication encryption method, characterized in that: include: Obtain the target bandwidth frequency of the communication sending end; Encrypting the target bandwidth frequency and communication content to obtain encrypted transmission data; Sending the target bandwidth frequency and the encrypted transmission data to a communication receiving end, wherein the communication receiving end determines the encrypted target bandwidth frequency from the encrypted transmission data according to a pre-agreed encrypted transmission data format, and performs an inverse operation of encryption based on the encrypted target bandwidth frequency to decrypt a communication key; The acquiring of the target bandwidth frequency of the communication transmitting end includes: acquiring a predetermined bandwidth frequency and an average bandwidth frequency of the communication transmitting end, wherein the target bandwidth frequency includes the average bandwidth frequency; comparing the predetermined bandwidth frequency with the average bandwidth frequency to obtain a comparison result, and acquiring one of an uplink bandwidth frequency and a downlink bandwidth frequency of the communication transmitting end according to the comparison result, wherein the target bandwidth frequency includes the uplink bandwidth frequency and the downlink bandwidth frequency.

2. The method according to claim 1, characterized in that Acquiring the first bandwidth frequency of the communication transmitting end according to the comparison result includes: When the predetermined bandwidth frequency is greater than the average bandwidth frequency, acquiring the uplink bandwidth frequency of the communication transmitting end; When the predetermined bandwidth frequency is less than the average bandwidth frequency, the downlink bandwidth frequency of the communication transmitting end is acquired.

3. The method according to claim 1, characterized in that The target bandwidth frequency and communication content are encrypted to obtain encrypted transmission data, including: Obtaining a predetermined encryption constant; The encryption constant, the target bandwidth frequency and the communication content are encrypted to obtain the encrypted transmission data.

4. The method according to claim 1, characterized in that: The target bandwidth frequency and communication content are encrypted to obtain encrypted transmission data, including: Taking modulos of the target bandwidth frequency and the communication content respectively to obtain multiple groups of modulo values; The multiple groups of module values ​​are converted into the encrypted transmission data in a character string format.

5. A communication decryption method, characterized in that: include: Receive the target bandwidth frequency and encrypted transmission data sent by the communication sending end; Based on the target bandwidth frequency and a pre-agreed encrypted transmission data format, decrypt the portion of the encrypted transmission data corresponding to the target bandwidth frequency, perform an inverse operation of encryption, and obtain a communication key; Decrypt the encrypted transmission data using the communication key to obtain the communication content; The target bandwidth frequency is obtained by the communication transmitting end in the following manner: obtaining a predetermined bandwidth frequency and an average bandwidth frequency of the communication transmitting end, wherein the target bandwidth frequency includes the average bandwidth frequency; comparing the predetermined bandwidth frequency with the average bandwidth frequency to obtain a comparison result, and according to the comparison result, obtaining one of an uplink bandwidth frequency and a downlink bandwidth frequency of the communication transmitting end, wherein the target bandwidth frequency includes the uplink bandwidth frequency and the downlink bandwidth frequency.

6. The method according to claim 5, characterized in that In the case where the encrypted transmission data is also generated according to a predetermined encryption constant, decrypting a portion of the encrypted transmission data corresponding to the target bandwidth frequency based on the target bandwidth frequency to obtain a communication key includes: Based on the target bandwidth frequency and the encryption constant, the portion of the encrypted transmission data corresponding to the target bandwidth frequency and the encryption constant is decrypted to obtain the communication key.

7. A communication encryption device, characterized in that: include: An acquisition module, used to acquire a target bandwidth frequency of a communication sending end; An encryption module, used for encrypting the target bandwidth frequency and communication content to obtain encrypted transmission data; A sending module, used for sending the target bandwidth frequency and the encrypted transmission data to a communication receiving end, wherein the communication receiving end determines the encrypted target bandwidth frequency from the encrypted transmission data according to a pre-agreed encrypted transmission data format, and performs an inverse operation of encryption based on the encrypted target bandwidth frequency to decrypt a communication key; The acquisition module is further used to: acquire a predetermined bandwidth frequency and an average bandwidth frequency of the communication sending end, wherein the target bandwidth frequency includes the average bandwidth frequency; compare the predetermined bandwidth frequency and the average bandwidth frequency to obtain a comparison result, and acquire one of an uplink bandwidth frequency and a downlink bandwidth frequency of the communication sending end according to the comparison result, wherein the target bandwidth frequency includes the uplink bandwidth frequency and the downlink bandwidth frequency.

8. A communication decryption device, characterized in that: include: A receiving module, used for receiving the target bandwidth frequency and encrypted transmission data sent by the communication sending end; A first decryption module, configured to decrypt a portion of the encrypted transmission data corresponding to the target bandwidth frequency based on the target bandwidth frequency and a pre-agreed encrypted transmission data format, perform an inverse operation of encryption, and obtain a communication key; A second decryption module, used to decrypt the encrypted transmission data using the communication key to obtain the communication content; The target bandwidth frequency is obtained by the communication transmitting end in the following manner: obtaining a predetermined bandwidth frequency and an average bandwidth frequency of the communication transmitting end, wherein the target bandwidth frequency includes the average bandwidth frequency; comparing the predetermined bandwidth frequency with the average bandwidth frequency to obtain a comparison result, and according to the comparison result, obtaining one of an uplink bandwidth frequency and a downlink bandwidth frequency of the communication transmitting end, wherein the target bandwidth frequency includes the uplink bandwidth frequency and the downlink bandwidth frequency.

9. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the communication encryption method described in any one of claims 1 to 4 or the communication decryption method described in any one of claims 5 to 6.