Data encryption transmission method and system based on two-dimensional key library

Through the encryption transmission method based on the two-dimensional key store, the payload plaintext and message key are encrypted using the key corresponding to the time and date, which solves the information leakage risk and communication overhead of the plaintext transmission of password synchronization information, and achieves the improvement of security and communication efficiency.

CN120017251AInactive Publication Date: 2025-05-16WUHAN SHIP COMM RES INST (NO 722 RES INST OF CHINA STATE SHIPBUILDING CORP)
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510189894.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-20
Publication Date
2025-05-16
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing encrypted data transmission method, the password synchronization information is transmitted in plain text, which poses a risk of information leakage, and the working key number needs to be transmitted on the channel, which increases communication overhead.

Method used

The encryption transmission method based on the two-dimensional key store is adopted, and the first and second dimension keys corresponding to the time and date are used to encrypt the payload plaintext and message key through the sequence cipher algorithm and the packet cipher algorithm, and the payload ciphertext and message key ciphertext are generated, and transmitted on the channel to reduce the transmission of the working key number.

Benefits of technology

Enhance the confidentiality of password synchronization information, reduce communication overhead, ensure the security of data transmission, and the working key number does not need to be transmitted on the channel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120017251A_ABST
    Figure CN120017251A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of information security, and particularly discloses a data encryption transmission method and system based on a two-dimensional key library, and the method comprises the steps: determining a first-dimensional key and a second-dimensional key corresponding to the current time and date based on the two-dimensional key library, and enabling the first-dimensional key to serve as a working key, the second-dimensional key is used for encrypting or decrypting the message key; based on the first-dimensional key and the message key, encrypting a to-be-transmitted load plaintext through a sequential cryptographic algorithm to obtain a load ciphertext; based on the second-dimensional key, encrypting the message key through a block cipher algorithm to obtain a message key ciphertext; and based on the message key ciphertext and the load ciphertext, determining a data frame and sending the data frame. According to the method and the device, the transmitted data frame does not involve the working key, and the message key in the transmitted data frame exists in the form of the ciphertext, so that the overall confidentiality of the password synchronization information can be effectively enhanced under the condition of reducing the communication overhead.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of information security technology, and more specifically, relates to a data encryption transmission method and system based on a two-dimensional key library. Background Art

[0002] In a confidential communication system, the information sent by the sender at the application layer generally includes cryptographic synchronization information and payload ciphertext information, where the cryptographic synchronization information is plain text and generally includes a working key number and a message key. Since both communicating parties have the same working key library pre-set locally, they can select the same working key through the same working key number. At this time, the working key number in the key library corresponds to the working key one-to-one. The payload ciphertext information is generated by generating a key stream from the working key and the message key, and then encrypting the payload plaintext using a serial cipher algorithm using the key stream. In order to reduce the transmission error of the cryptographic synchronization information, the sender and receiver usually use error correction coding technology to protect the correctness of the cryptographic synchronization information when transmitting on a noisy channel.

[0003] Although the existing encrypted data transmission method uses error correction coding technology to protect the password synchronization information, the password synchronization information is still transmitted in plain text, which has the risk of information leakage. In addition, the working key number needs to be transmitted on the channel, which increases the communication overhead. Summary of the invention

[0004] In view of the defects of the prior art, the purpose of the present application is to effectively enhance the overall confidentiality of cryptographic synchronization information while reducing communication overhead.

[0005] To achieve the above objectives, in a first aspect, the present application provides a data encryption transmission method based on a two-dimensional key library, which is applied to a sending end, and the method includes: Based on the two-dimensional key library, determine the first dimension key and the second dimension key corresponding to the current time and date, the two-dimensional key library includes the first dimension key corresponding to each time and date and the second dimension key corresponding to each time and date, the first dimension key is used as the working key, and the second dimension key is used for encryption or decryption of the message key; Based on the first dimension key and the message key, the payload plaintext to be transmitted is encrypted by a stream cipher algorithm to obtain the payload ciphertext; Based on the second-dimensional key, the message key (plaintext) is encrypted by a block cipher algorithm to obtain the message key ciphertext; Based on the message key ciphertext and the payload ciphertext, the data frame is determined and sent.

[0006] Here, the time date is explained, and the time date is used to indicate the month and the day number of the corresponding month. For example, the time date may be January 1, which is used to indicate the first day of January; for another example, the time date may be December 20, which is used to indicate the 20th day of December.

[0007] In a possible implementation, the two-dimensional key library includes multiple rows of data, and one row of data includes a time date and a first-dimensional key and a second-dimensional key corresponding to the time date; The above-mentioned method of determining the first dimension key and the second dimension key corresponding to the current time and date based on the two-dimensional key library includes: Input the current time and date into the two-dimensional key library, and obtain the target row data output by the two-dimensional key library. The time and date of the target row data is consistent with the current time and date. Extract the first dimension key and the second dimension key corresponding to the current time and date from the target row data.

[0008] In a possible implementation, determining the data frame based on the message key ciphertext and the payload ciphertext includes: Performing error correction coding on the message key ciphertext to obtain error correction coding data corresponding to the message key ciphertext; The error correction coded data and the payload ciphertext are concatenated and framed to determine a data frame.

[0009] In a possible implementation, the transmitting end is configured with a real-time clock circuit and further includes: Get the current time and date through the real-time clock circuit.

[0010] In a second aspect, the present application provides a data encryption transmission method based on a two-dimensional key library, which is applied to a receiving end, and the method includes: Receive a data frame and extract a message key ciphertext and a payload ciphertext from the data frame; Based on the two-dimensional key library, determine the first dimension key and the second dimension key corresponding to the current time and date, the two-dimensional key library includes the first dimension key corresponding to each time and date and the second dimension key corresponding to each time and date, the first dimension key is used as the working key, and the second dimension key is used for encryption or decryption of the message key; Based on the second-dimensional key, the message key ciphertext is decrypted through the block cipher algorithm to obtain the message key (plaintext); Based on the first dimension key and the message key, the payload ciphertext is decrypted using a stream cipher algorithm to obtain the payload plaintext.

[0011] In a possible implementation, the two-dimensional key library includes multiple rows of data, and one row of data includes a time date and a first-dimensional key and a second-dimensional key corresponding to the time date; The above-mentioned method of determining the first dimension key and the second dimension key corresponding to the current time and date based on the two-dimensional key library includes: Input the current time and date into the two-dimensional key library, and obtain the target row data output by the two-dimensional key library. The time and date of the target row data is consistent with the current time and date. Extract the first dimension key and the second dimension key corresponding to the current time and date from the target row data.

[0012] In a possible implementation, the extracting of the message key ciphertext and the payload ciphertext from the data frame includes: Based on the error correction code length of the message key ciphertext and the payload ciphertext length, the data frame is packetized to obtain the error correction code data and the payload ciphertext; Perform error correction decoding on the error correction coded data to obtain the message key ciphertext.

[0013] In a possible implementation, the receiving end is configured with a real-time clock circuit and further includes: Get the current time and date through the real-time clock circuit.

[0014] In a third aspect, the present application provides an electronic device, comprising: at least one memory for storing programs; and at least one processor for executing the programs stored in the memory. When the programs stored in the memory are executed, the processor is used to execute the method described in the first aspect or any possible implementation of the first aspect, or to execute the method described in the second aspect or any possible implementation of the second aspect.

[0015] In a fourth aspect, the present application provides a data encryption transmission system based on a two-dimensional key library, the system comprising a sending end and a receiving end; The sender is used to: Based on the two-dimensional key library, determine the first dimension key and the second dimension key corresponding to the current time and date, the two-dimensional key library includes the first dimension key corresponding to each time and date and the second dimension key corresponding to each time and date, the first dimension key is used as the working key, and the second dimension key is used for encryption or decryption of the message key; Based on the first dimension key and the message key, the payload plaintext to be transmitted is encrypted by a stream cipher algorithm to obtain the payload ciphertext; Based on the second-dimensional key, the message key (plaintext) is encrypted by a block cipher algorithm to obtain the message key ciphertext; Based on the message key ciphertext and the payload ciphertext, determine the data frame and send the data frame; The receiving end is used to: Receive a data frame and extract a message key ciphertext and a payload ciphertext from the data frame; Based on the two-dimensional key library, determine the first dimension key and the second dimension key corresponding to the current time and date, the two-dimensional key library includes the first dimension key corresponding to each time and date and the second dimension key corresponding to each time and date, the first dimension key is used as the working key, and the second dimension key is used for encryption or decryption of the message key; Based on the second-dimensional key, the message key ciphertext is decrypted through the block cipher algorithm to obtain the message key (plaintext); Based on the first dimension key and the message key, the payload ciphertext is decrypted using a stream cipher algorithm to obtain the payload plaintext.

[0016] In general, the above technical solutions conceived by this application have the following beneficial effects compared with the prior art: The message key is encrypted and protected by the second-dimensional key and block cipher algorithm before transmission, which enhances its security and ensures the security of data transmission between the two communicating parties. Based on the current time and date, the first-dimensional key (working key) can be obtained through the two-dimensional key library, and the working key number does not need to be transmitted on the channel, reducing the communication overhead. Therefore, the transmitted data frame does not involve (does not contain) the working key and the message key in the transmitted data frame exists in ciphertext form, which can effectively enhance the overall confidentiality of the cryptographic synchronization information (working key and message key) while reducing the communication overhead. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a schematic diagram of the process of encrypting and transmitting message contents of data provided in an embodiment of the present application; Figure 2 It is a structural diagram of the communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0018] In order to facilitate a clearer understanding of the embodiments of the present application, some relevant background knowledge is first introduced as follows.

[0019] Stream Cipher, also known as stream cipher, is a symmetric encryption algorithm that generates ciphertext by performing bit-by-bit or byte-by-byte XOR operations on a series of random or pseudo-random key streams and plaintext messages. Encryption process: Perform bit-by-bit XOR operations on plaintext data and key streams. Decryption process: The decryption process is the same as the encryption process, using the same key stream to perform XOR operations on ciphertext.

[0020] Block Cipher is a symmetric encryption algorithm that divides plaintext data into fixed-size blocks (usually 64 bits or 128 bits) and then encrypts each block. The main feature of block ciphers is that the same key is used to encrypt and decrypt each data block. Encryption process: Use the same key to encrypt each data block. The encryption process usually includes multiple rounds, each of which includes operations such as substitution, permutation, and mixing to enhance the security of encryption. Decryption process: The decryption process is the opposite of the encryption process, using the same key and rounds, but the order and method of operations are usually opposite.

[0021] In a block cipher, each plaintext block has the same length as its corresponding ciphertext block. The total length of the ciphertext depends on whether the plaintext is padded: if the total length of the plaintext is an integer multiple of the block length, the plaintext does not need to be padded, and the total length is the same; if it is not an integer multiple and needs to be padded, the total length of the ciphertext is equal to the total length of the padded plaintext, resulting in a slightly longer ciphertext. Therefore, the total length of the ciphertext is equal to or slightly greater than the original length of the plaintext, but the input and output lengths of each block are always consistent.

[0022] In order to make the purpose, technical solution and advantages of 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.

[0023] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0024] In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more than two. For example, multiple processing units refer to two or more processing units, etc.; multiple elements refer to two or more elements, etc.

[0025] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application.

[0026] like Figure 1 As shown, the present application provides a data encryption transmission method based on a two-dimensional key library. The sender and receiver preset a two-dimensional key library, in which the first-dimensional key is a working key and the second-dimensional key is an encryption / decryption key for a message key. Both types of keys correspond one-to-one to a time and date.

[0027] Specifically, the receiving party adopts the following processing steps S101 to S103.

[0028] In step S101, the sender generates a message key, obtains the current time and date according to the local RTC (Real-Time Clock) circuit, queries the working key corresponding to the time and date from the preset first-dimensional working key library, and uses the working key and the message key to encrypt the payload plaintext to be transmitted using a serial cipher algorithm to generate a payload ciphertext.

[0029] In step S102, the sender obtains the current time and date according to the local RTC circuit, queries the key corresponding to the time and date from the preset second-dimensional key library (encryption / decryption key for the message key), and uses the key to encrypt the message key plaintext using a block cipher algorithm to generate a message key ciphertext. Optionally, the length of the message key plaintext is configured as an integer multiple of the block length in the block cipher algorithm.

[0030] Step S103, the sender performs error correction encoding on the message key ciphertext, attaches the encoded data to the payload ciphertext data to form a frame, and sends it to the receiver.

[0031] Specifically, the receiving party adopts the following processing steps S201 to S204.

[0032] Step S201, the receiving party packets the received framed data according to the error correction coding length of the message key ciphertext and the payload ciphertext length, and obtains the error correction coding data and payload ciphertext after transmission through the channel; Step S202, performing error correction decoding on the error correction coded data transmitted via the channel to obtain a message key ciphertext transmitted via the channel; Step S203, the receiver obtains the current time and date according to the local RTC circuit, searches for the corresponding key (encryption / decryption key for the message key) in the preset second-dimensional key library, and uses the key to perform a block cipher algorithm decryption operation on the message key ciphertext obtained in the previous step, thereby obtaining the message key plaintext; In step S204, the receiver obtains the current time and date according to the local RTC circuit, queries the preset first-dimensional key library to obtain the working key, and uses the key and the message key plaintext obtained in the previous step to decrypt the payload ciphertext transmitted through the channel using a serial encryption algorithm to obtain the payload plaintext.

[0033] The purpose of this application is to design a two-dimensional key library when both communicating parties have a real-time clock circuit locally, in which the first-dimensional key is a working key, and the second-dimensional key is an encryption / decryption key for a message key. The sender and receiver can select the same working key and encryption / decryption key for the message key through the same time and date. By adding a new one-dimensional key library (the second dimension of the key library represents the correspondence between the time date and the second-dimensional key), the message key is encrypted using a grouping algorithm, and then the subsequent processing flow is completed, so that the message key is transmitted on the channel in the form of ciphertext, which enhances its security, and based on the current time and date, the first-dimensional key (working key) can be obtained through the two-dimensional key library, and the working key number does not need to be transmitted on the channel, reducing communication overhead.

[0034] It should be noted that, for the transmission of a data frame, in most cases, the sender and receiver will perform the transmission on the same day, that is, the current time and date obtained by the sender remains the same as the current time and date obtained by the receiver. In this case, the key (first dimension key and second dimension key) used by the sender for encryption and the key (first dimension key and second dimension key) used by the receiver for decryption remain the same, ensuring that the receiver can correctly decrypt the ciphertext; for the transmission of a data frame, in very rare cases, the time and date corresponding to the data sending operation and the time and date corresponding to the data receiving operation are not on the same day. In this case, the data can be retransmitted after a period of time.

[0035] The following is an example to illustrate the data encryption transmission method based on the two-dimensional key library provided by the present application.

[0036] Table 1 is a two-dimensional key library. The first dimension key ( , , …, ) is the working key, the second dimension key ( , , …, ) is the encryption / decryption key for the message key. Both types of keys correspond to time and date.

[0037] Table 1 Data structure of two-dimensional key library

[0038] The sender obtains the time and date (January 4) based on the local RTC circuit and selects the working key with sequence number 3 from the first dimension key library. , obtain the message key MK of this transmission from the noise source to ensure the randomness of the message key MK, and use the working key The payload plaintext information PT to be transmitted is encrypted by a serial cipher algorithm using the message key MK to obtain the payload ciphertext information CT, where .

[0039] Select the key with sequence number 3 from the second dimension key library (encryption / decryption key for the message key), using the key The message key MK is encrypted by a block cipher algorithm to obtain the message key ciphertext information CMK, where .

[0040] After error correction encoding of CMK, we get , attach the encoded data to the frame , and sent to the receiver as data transmitted through the channel.

[0041] The receiver receives the framed data ,in yes The accuracy of the data obtained after demodulation and judgment after transmission through a noisy channel depends on the signal-to-noise ratio of the channel transmission. The receiving party handles it as follows: (1) Yes Perform error correction decoding to obtain the message key ciphertext information ; (2) The receiver obtains the time and date (January 4) based on the local RTC circuit and selects the key with serial number 3 from the second dimension key library. (encryption / decryption key for the message key), using the key Perform block cipher algorithm decryption operation on the message key ciphertext information CMKi to obtain the message key plaintext information ,in .

[0042] (3) The receiver selects the working key with sequence number 3 from the first dimension key library , using the key and the plaintext message key obtained in the previous step , the ciphertext of the payload information transmitted through the channel Perform serial cipher algorithm decryption operation to obtain the payload message plaintext ,in .

[0043] When the signal-to-noise ratio of the channel transmission is above the threshold for correct decoding of the error correction codec, the following conclusions can be drawn: , At this time, the ciphertext of the payload message transmitted through the channel is and the plaintext of the payload message after decryption by the receiving end The bit errors remain consistent.

[0044] The present application also provides a data encryption transmission system based on a two-dimensional key library, the system comprising a sending end and a receiving end. The sending end is used to: determine the first dimension key and the second dimension key corresponding to the current time and date based on the two-dimensional key library, the two-dimensional key library includes the first dimension key corresponding to each time and date and the second dimension key corresponding to each time and date, the first dimension key is used as the working key, and the second dimension key is used to encrypt or decrypt the message key; based on the first dimension key and the message key, encrypt the payload plaintext to be transmitted by the sequence cipher algorithm to obtain the payload ciphertext; based on the second dimension key, encrypt the message key (plaintext) by the block cipher algorithm to obtain the message key ciphertext; based on the message key ciphertext and the payload ciphertext, determine the data frame and send the data frame; The receiving end is used to: receive data frames and extract message key ciphertext and payload ciphertext from the data frames; determine the first dimension key and the second dimension key corresponding to the current time and date based on the two-dimensional key library, the two-dimensional key library includes the first dimension key corresponding to each time and date and the second dimension key corresponding to each time and date, the first dimension key is used as the working key, and the second dimension key is used for encryption or decryption of the message key; based on the second dimension key, decrypt the message key ciphertext through the block cipher algorithm to obtain the message key (plaintext); based on the first dimension key and the message key, decrypt the payload ciphertext through the sequence cipher algorithm to obtain the payload plaintext.

[0045] It can be understood that the present application utilizes the second-dimensional key and block cipher algorithm to encrypt and protect the message key before transmission, which can enhance its security without changing the original system processing flow, ensure the security of data transmission between the communicating parties, and based on the current time and date, can obtain the first-dimensional key (working key) through the two-dimensional key library, and the working key number does not need to be transmitted on the channel, reducing communication overhead.

[0046] Therefore, the transmitted data frame does not involve the working key and the message key in the transmitted data frame exists in the form of ciphertext, which can effectively enhance the overall confidentiality of the cryptographic synchronization information (working key and message key) while reducing communication overhead.

[0047] Based on the method in the above embodiment, the embodiment of the present application provides a communication device, such as Figure 2 As shown, the communication device may include: a processor (Processor) 810, a communication interface (Communications Interface) 820, a memory (Memory) 830 and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the method in the above embodiment.

[0048] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.

[0049] Based on the method in the above embodiment, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the method in the above embodiment.

[0050] Based on the method in the above embodiment, an embodiment of the present application provides a computer program product. When the computer program product runs on a processor, the processor executes the method in the above embodiment.

[0051] It is understandable that the processor in the embodiment of the present application 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, transistor logic devices, hardware components or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.

[0052] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.

[0053] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

[0054] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.

[0055] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A data encryption transmission method based on a two-dimensional key library, characterized in that: Applied to the sending end, including: Based on the two-dimensional key library, determine the first dimension key and the second dimension key corresponding to the current time and date, the two-dimensional key library includes the first dimension key corresponding to each time and date and the second dimension key corresponding to each time and date, the first dimension key is used as the working key, and the second dimension key is used for encryption or decryption of the message key; Based on the first dimension key and the message key, the payload plaintext to be transmitted is encrypted by a stream cipher algorithm to obtain the payload ciphertext; Based on the second dimension key, the message key is encrypted by a block cipher algorithm to obtain the message key ciphertext; Based on the message key ciphertext and the payload ciphertext, the data frame is determined and sent.

2. The data encryption transmission method based on the two-dimensional key library according to claim 1 is characterized in that: The two-dimensional key library includes multiple rows of data, and one row of data includes a time date and a first-dimensional key and a second-dimensional key corresponding to the time date; The method of determining the first dimension key and the second dimension key corresponding to the current time and date based on the two-dimensional key library includes: Input the current time and date into the two-dimensional key library, and obtain the target row data output by the two-dimensional key library. The time and date of the target row data is consistent with the current time and date. Extract the first dimension key and second dimension key corresponding to the current time and date from the target row data.

3. The data encryption transmission method based on the two-dimensional key library according to claim 1 is characterized in that: The step of determining a data frame based on a message key ciphertext and a payload ciphertext includes: Performing error correction coding on the message key ciphertext to obtain error correction coding data corresponding to the message key ciphertext; The error correction coded data and the payload ciphertext are concatenated and framed to determine a data frame.

4. The data encryption transmission method based on a two-dimensional key library according to any one of claims 1 to 3, characterized in that: The transmitter is equipped with a real-time clock circuit and also includes: Get the current time and date through the real-time clock circuit.

5. A data encryption transmission method based on a two-dimensional key library, characterized in that: Applied to the receiving end, including: Receive a data frame and extract a message key ciphertext and a payload ciphertext from the data frame; Based on the two-dimensional key library, determine the first dimension key and the second dimension key corresponding to the current time and date, the two-dimensional key library includes the first dimension key corresponding to each time and date and the second dimension key corresponding to each time and date, the first dimension key is used as the working key, and the second dimension key is used for encryption or decryption of the message key; Based on the second dimension key, the message key ciphertext is decrypted by a block cipher algorithm to obtain the message key; Based on the first dimension key and the message key, the payload ciphertext is decrypted using a stream cipher algorithm to obtain the payload plaintext.

6. The data encryption transmission method based on the two-dimensional key library according to claim 5 is characterized in that: The two-dimensional key library includes multiple rows of data, and one row of data includes a time date and a first-dimensional key and a second-dimensional key corresponding to the time date; The method of determining the first dimension key and the second dimension key corresponding to the current time and date based on the two-dimensional key library includes: Input the current time and date into the two-dimensional key library, and obtain the target row data output by the two-dimensional key library. The time and date of the target row data is consistent with the current time and date. Extract the first dimension key and second dimension key corresponding to the current time and date from the target row data.

7. The data encryption transmission method based on the two-dimensional key library according to claim 5 is characterized in that: The extracting of the message key ciphertext and the payload ciphertext from the data frame comprises: Based on the error correction code length of the message key ciphertext and the payload ciphertext length, the data frame is packetized to obtain the error correction code data and the payload ciphertext; Perform error correction decoding on the error correction coded data to obtain the message key ciphertext.

8. The data encryption transmission method based on a two-dimensional key library according to any one of claims 5 to 7, characterized in that: The receiving end is equipped with a real-time clock circuit and also includes: Get the current time and date through the real-time clock circuit.

9. A communication device, characterized in that: include: at least one memory for storing a computer program; At least one processor is used to execute the program stored in the memory. When the program stored in the memory is executed, the processor is used to execute the method according to any one of claims 1 to 4 or execute the method according to any one of claims 5 to 8.

10. A data encryption transmission system based on a two-dimensional key library, characterized in that: Includes: a sending end and a receiving end; The sender is used to: Based on the two-dimensional key library, determine the first dimension key and the second dimension key corresponding to the current time and date, the two-dimensional key library includes the first dimension key corresponding to each time and date and the second dimension key corresponding to each time and date, the first dimension key is used as the working key, and the second dimension key is used for encryption or decryption of the message key; Based on the first dimension key and the message key, the payload plaintext to be transmitted is encrypted by a stream cipher algorithm to obtain the payload ciphertext; Based on the second dimension key, the message key is encrypted by a block cipher algorithm to obtain the message key ciphertext; Based on the message key ciphertext and the payload ciphertext, determine the data frame and send the data frame; The receiving end is used to: Receive a data frame and extract a message key ciphertext and a payload ciphertext from the data frame; Based on the two-dimensional key library, determine the first dimension key and the second dimension key corresponding to the current time and date, the two-dimensional key library includes the first dimension key corresponding to each time and date and the second dimension key corresponding to each time and date, the first dimension key is used as the working key, and the second dimension key is used for encryption or decryption of the message key; Based on the second dimension key, the message key ciphertext is decrypted by a block cipher algorithm to obtain the message key; Based on the first dimension key and the message key, the payload ciphertext is decrypted using a stream cipher algorithm to obtain the payload plaintext.

Citation Information

Patent Citations

  • Data decryption method

    CN113452654A

  • Audio and video stream data encryption method and device based on RTP, UDP and IP protocols

    CN114826748A

  • Encryption and decryption method and device and medium

    CN114884716A

  • Data sending method, data receiving method and network equipment

    CN115277049A

  • Data transmission method and related device

    WO2022142038A1