Key generation and distribution method, key generation device, and key management system

Through the combination of master key and timestamp, a one-way data conversion algorithm is used to generate an independent key, which solves the security risks of key management and secure transmission in existing encryption schemes and realizes an efficient and secure key distribution and encryption system. .

CN113726512BActive Publication Date: 2024-10-18蔡利锋
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111016098.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-31
Publication Date
2024-10-18
Estimated Expiration
2041-08-31

AI Technical Summary

Technical Problem

Existing encryption schemes have security risks in key management and secure transmission. In particular, reusing the same key will bring attack risks, and the generation and exchange of one-time keys are cumbersome, making it difficult to design a convenient and universal encryption that is provably secure. plan.

Method used

By obtaining or generating the master key and timestamp, using a one-way data conversion algorithm to generate an independent key, and associating it with the timestamp, the secure distribution and update of the key is achieved, ensuring the independence and security of the key.

Benefits of technology

It achieves efficient and safe distribution of keys, meets the generation of any required number of independent keys with a key strength equal to the number of bits of the master key, builds an encryption system that is provably secure in informatics theory, and reduces key collisions. Risk of attack.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113726512B_ABST
    Figure CN113726512B_ABST
Patent Text Reader

Abstract

The present invention provides a key generation and distribution method, a key generation device, a key management system, and an information security transmission system. The key generation and distribution method comprises: obtaining or / and generating system information of a key generation device, the system information at least comprising a master key and at least one one-way data conversion algorithm, the master key being composed of undisclosed random information, the one-way data conversion algorithm generating output information determined by the input information according to input information, and it is not feasible to infer or / and deduce the input information from the output information; according to the master key, relying on a timestamp composed of non-repeating arbitrary information, by adopting at least one one-way data conversion algorithm, generating a key jointly determined by the timestamp and information in the master key, and associating the key with the timestamp information; and sending the timestamp to a paired key generation device, wherein the paired key generation device stores second system information corresponding to the system information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security, and more specifically, to a key generation and distribution method, a key generation device, a key management system, an encryption and decryption device, a file security system and an information security transmission system. Background Art

[0002] The rapid development of computer and communication technology, as well as the popularization and application of the Internet of Things, cloud computing, and cloud storage, have brought new challenges to information security and also provided new development opportunities. The secure transmission and storage of information is the core of information security, and information encryption is an important means to achieve information security.

[0003] Preserving or sharing a key for continuous encryption and decryption provides a great convenience to users and is also a common method in cryptography. However, reusing the same key will bring many security risks, which has led to many attack strategies for specific encryption algorithms. Using a one-time key to encrypt files can effectively avoid most cryptographic attacks on encryption algorithms, but the generation and exchange of a large number of one-time keys is usually difficult and cumbersome. Currently, it is still a challenge to design a provably secure, convenient and universal encryption scheme. In addition, since the communication subject needs different keys for different communication objects, key management is usually a problem. The problem is particularly serious in institutions and organizations that need to manage a large number of keys. In these organizations, the number of keys involved is proportional to the square of the number of members.

[0004] Since the amount of plaintext information is usually larger than the amount of key information during encryption, information larger than the amount of key information can be safely transmitted through ciphertext, so the shared key can be designed as a dynamic key, and the key information that needs to be updated is transmitted to the other party along with the communication information through ciphertext, and the shared key is dynamically updated during the communication process between the two parties to achieve practical one-time key encryption, thereby avoiding corresponding attacks. The dynamic key scheme is more suitable for real-time communication, but lacks advantages in information storage and key management.

[0005] Therefore, a method that can generate the required number of independent keys with a certain key strength based on a master key and can distribute these keys conveniently and securely will hopefully overcome the limitations of existing encryption schemes and solve the fundamental problems of cryptography and information security. Summary of the invention

[0006] The present invention will solve the problem of generating and securely distributing the required number of independent keys with the required key strength, and on this basis construct an encryption scheme that can be proven to be secure in informatics theory, and then construct an information security transmission scheme and an information security system.

[0007] According to an embodiment described herein, a key generation and distribution method is provided, comprising:

[0008] Acquire or / and generate system information of a key generation device, the system information comprising at least a master key and at least one one-way data conversion algorithm, the master key being composed of undisclosed random information, the one-way data conversion algorithm generating output information determined by the input information based on input information, and it is not feasible to infer or / and derive the input information from the output information;

[0009] According to the master key, relying on a timestamp composed of non-repeating arbitrary information, by adopting at least one of the one-way data conversion algorithms, generating a key determined by the timestamp and information in the master key, and associating the key with the timestamp information; and

[0010] The timestamp is sent to a paired key generation device, wherein the paired key generation device stores second system information corresponding to the system information.

[0011] In some embodiments, generating the key includes:

[0012] Generate the timestamp by the key generating device;

[0013] Performing calculation on the timestamp and the master key to generate an intermediate key;

[0014] Taking the intermediate key as input information, converting the intermediate key through the one-way data conversion algorithm to generate secondary information;

[0015] Extracting information from the secondary information to generate a key; and

[0016] The key is associated with a timestamp corresponding to the key.

[0017] In some embodiments, operating the timestamp and the master key to generate an intermediate key includes:

[0018] The intermediate key is generated using a non-degenerate combination of the timestamp and the master key.

[0019] In some embodiments, operating the timestamp and the master key to generate an intermediate key includes:

[0020] The intermediate key is generated by a second one-way data conversion algorithm using the timestamp and the master key as input information, where the second one-way data conversion algorithm is the same as or different from the one-way data conversion algorithm.

[0021] In some embodiments, the one-way data conversion algorithm uses input information as control information to perform data conversion to generate output information.

[0022] The system information also includes a public database configured to store public data, wherein the number of bits contained in the public data is much larger than the number of bits contained in the master key, and

[0023] The one-way data conversion algorithm uses the input information as control information and performs data conversion on the common data to generate secondary information.

[0024] In some embodiments, the data conversion uses combined modular operations.

[0025] The public data is configured to consist of N number sequences of the same length, each number sequence contains the same number of bits, is identified by a number indicating 0 to N-1 with the same number of bits, and is called a seed;

[0026] The input information is configured as a sequence of M numbers sequentially pointing to M seeds identified by the numbers;

[0027] The one-way data conversion algorithm is configured as follows:

[0028] Using the input information as control information, sequentially extracting M seeds pointed to by the numbers in the input information from the public data;

[0029] A modular operation is performed on the M seeds to generate secondary information with the same format as the seed, wherein N and M are positive integers.

[0030] In some embodiments, the common data is configured as a circular sequence of N*M elements connected end to end, the circular sequence is divided into N units of length M, and each unit is identified by a number from 0 to N-1;

[0031] The seed is configured to start from one of the units and extend in the same direction across the entire annular sequence to form a sequence with a length of N*M, with the starting unit number being used as the seed number.

[0032] In some embodiments, generating the key includes:

[0033] Using the master key as control information, and under the control of the master key, converting the public data into private data through a third one-way data conversion algorithm;

[0034] Using the timestamp as control information, and under the control of the timestamp, generating an intermediate key from the private data by a fourth one-way data conversion algorithm;

[0035] Using the intermediate key as control information, and under the control of the intermediate key, converting the public data into secondary information through the one-way data conversion algorithm;

[0036] Extracting information from the secondary information to generate a key; and

[0037] associating the key with a corresponding timestamp,

[0038] The one-way data conversion algorithm, the third one-way data conversion algorithm and the fourth one-way data conversion algorithm use the same or different one-way algorithms.

[0039] In some embodiments, the method further comprises:

[0040] receiving a second timestamp sent from a paired key generation device;

[0041] According to the master key and relying on the second timestamp, a second key determined by the master key and information in the second timestamp is generated through the one-way data conversion algorithm as the second key corresponding to the second timestamp.

[0042] In one embodiment, three prerequisites are proposed to meet the security of the key generation and distribution system:

[0043] Premise 1. The master key is always kept secure and cannot be detected from any information output from the system, including keys generated and distributed from the system and information used for key distribution.

[0044] Premise 2. The generated keys are independent of each other, and all the keys output from the system combined with known public information and methods are of no substantial help in deriving the next newly generated key.

[0045] Premise 3. Key distribution is safe and feasible, that is, the key can be securely sent to the legitimate recipient through a public channel, and an attacker who does not have the master key information cannot obtain the essential information of the key through the key sending channel.

[0046] An information security system that meets the above three prerequisites can rely on a master key to achieve the generation and secure distribution of the required number of independent keys with a key strength equivalent to the number of bits of the master key, thereby building an encryption system that can be proven secure in informatics theory.

[0047] In another embodiment, it is proved that when the one-way data conversion algorithm has the following four characteristics, the key generation system using the method satisfies the above three prerequisites during operation and application, so that the method can be used to generate and securely distribute any required number of independent keys with a key strength equivalent to the number of bits of the master key by relying on a master key.

[0048] Feature 1: The input information can be easily converted into secondary information determined by the input information through a one-way data conversion algorithm, that is, it is certain and feasible to derive the secondary information from the input information;

[0049] Feature 2: It is computationally impossible to transform the generated secondary information into the corresponding input information, that is, no substantive content of the input information can be inferred from the secondary information;

[0050] Feature 3: The conversion from input information to secondary information is non-degenerate and nonlinear, that is, the value space of secondary information is not smaller than the value space of input information, so that different input information can statistically correspond to different secondary information, and a slight change in the input information can lead to global changes in the secondary information that cannot be predicted by the change amount alone. Under strict one-way data conversion, a change in a single bit in the input information can cause unpredictable global changes in the generated secondary information.

[0051] Feature 4: The one-way data conversion algorithm can perform one-way data conversion on any input information that can be converted into an input format to generate the secondary information. Specifically, in the present invention, if the number of bits contained in the input information is N, and the value space is 2 N , then it satisfies 0 to 2 N Any information value between -1 can be used as valid input information to implement the one-way data conversion and generate secondary information.

[0052] In some embodiments, the timestamp and the master key can be operated through a one-way data conversion algorithm to generate the intermediate key; the information in the timestamp and the master key is used as input information to generate the intermediate key through the one-way data conversion algorithm.

[0053] In one embodiment, it is proved that by introducing a one-way data conversion algorithm in the intermediate key generation process, the encryption system using the method described in the present invention can effectively resist key collision attacks, while reducing the requirements of the method on the one-way data conversion algorithm and expanding the scope of application of the method.

[0054] In some of the following embodiments, some one-way data conversion algorithms with the above four features that can be used in the method of the present invention are introduced, including square root operations, division operations, and some hash functions.

[0055] In some embodiments, the one-way data conversion algorithm adopts public data conversion under the control of input information; the system information of the key generation device further adds a public database, which is configured to store public data composed of non-degenerate information that does not contain a large number of repeated units, and the number of bits contained in the public data can be much larger than the number of bits contained in the master key and the input information; the one-way data conversion algorithm is configured to convert the public data into secondary information under the control of the input information.

[0056] In some embodiments, it is shown that the public data conversion under the control of the input information can take various forms; the plain text can be used as the public data, the encryption key can be used as the input information, and the public data conversion under the control of the input information can be achieved using a commonly used encryption algorithm; in addition, some data conversion methods that are not suitable for conventional encryption algorithms because the data generated by one-way conversion cannot be restored by a suitable algorithm can also be used in the method described in the present invention.

[0057] In some embodiments, the public data conversion under the control of the input information adopts combination modular operation; the public database is configured to be composed of N number series of the same length, each of which contains the same number of bits and is identified by a number from 0 to N-1, called a seed; the input information is configured to be a number series composed of M number sequences, sequentially pointing to M seeds identified by the numbers; the combination modular operation is configured to sequentially extract the M seeds pointed to by the numbers in the input information from the public database, perform modular operation on the M seeds, and generate secondary information with the same format as the seed.

[0058] In some embodiments, the above-mentioned combined modular operation is adopted, and the public database is configured as a circular sequence containing N*M elements connected end to end, and the circular sequence is divided into N units of length M, and each of the units is identified by a number from 0 to N-1; the seed is configured to start from one of the units and extend in the same direction across the entire circular sequence to form a sequence with a length of N*M, and the starting unit number is used as the seed number.

[0059] In some embodiments, the one-way data conversion algorithm uses the public data conversion under the control of the above input information, and the key can be generated by the following process:

[0060] Using a master key as input information, and under the control of the master key, converting public data into private data; generating a timestamp consisting of non-repetitive arbitrary information, and using the timestamp as input information, and under the control of the timestamp, generating an intermediate key from the private data; using the intermediate key as input information, and under the control of the intermediate key, converting the public data into secondary information; extracting information from the secondary information to generate a key, and associating the key with the corresponding timestamp.

[0061] By adopting the above process, an encryption algorithm with a key strength of 1024 bits or higher, which can be proven to be secure in information theory, can be easily implemented on common communication equipment, so that unconditionally secure information exchange in the real physical world can be achieved through the method.

[0062] In some embodiments, the one-way data conversion algorithm may adopt more than one one-way algorithm, so that different one-way algorithms are adopted in different one-way data conversion steps.

[0063] In some embodiments, the key generation device using the method is also configured to receive a timestamp sent from a paired key generation device, and based on the information in the timestamp, generate a key corresponding to the timestamp through the key generation device, using the single data conversion algorithm and relying on the master key.

[0064] According to another embodiment described herein, there is provided a key generation device, comprising:

[0065] a system information module configured to store or / and generate system information of the key generation device, the system information comprising at least a master key and at least one one-way data conversion algorithm, the master key being composed of undisclosed random information, the one-way data conversion algorithm generating output information determined by the input information based on input information, and it is not feasible to infer or / and derive the input information from the output information;

[0066] a key generation module configured to generate a key determined by the timestamp and information in the master key based on the master key and relying on a timestamp composed of non-repeating arbitrary information by adopting at least one of the one-way data conversion algorithms, and to associate the key with the timestamp information; and

[0067] The transmission module is configured to send the timestamp to a paired key generation device, wherein the paired key generation device stores second system information corresponding to the system information.

[0068] In some embodiments, the key generation module is further configured to:

[0069] Generate the timestamp consisting of non-repetitive arbitrary information;

[0070] Performing calculation on the timestamp and the master key to generate an intermediate key;

[0071] Taking the intermediate key as input information, converting the intermediate key through the one-way data conversion algorithm to generate secondary information;

[0072] Extracting information from the secondary information to generate a key; and

[0073] The key is associated with a timestamp corresponding to the key.

[0074] In some embodiments, the key generation module is further configured to:

[0075] The intermediate key is generated using a non-degenerate combination of the timestamp and the master key.

[0076] In some embodiments, the key generation module is further configured to:

[0077] The intermediate key is generated by a second one-way data conversion algorithm using the timestamp and the master key as input information, where the second one-way data conversion algorithm is the same as or different from the one-way data conversion algorithm.

[0078] In some embodiments, the apparatus further comprises:

[0079] The public database is configured to store public data, wherein the number of bits contained in the public data is much larger than the number of bits contained in the master key.

[0080] In some embodiments, the system information further includes a public database configured to store public data, wherein the number of bits contained in the public data is much greater than the number of bits contained in the master key.

[0081] The one-way data conversion algorithm uses input information as control information to perform data conversion to generate output information.

[0082] The key generation module is further configured as follows:

[0083] Using the input information as control information, data conversion is performed on the common data by the one-way data conversion algorithm to generate secondary information.

[0084] In some embodiments, the data conversion uses combined modular operations.

[0085] The public data is configured to consist of N number sequences of the same length, each number sequence contains the same number of bits, is identified by a number indicating 0 to N-1 with the same number of bits, and is called a seed;

[0086] The input information is configured as a sequence of M numbers sequentially pointing to M seeds identified by the numbers;

[0087] The one-way data conversion algorithm is configured as follows:

[0088] Using the input information as control information, sequentially extracting M seeds pointed to by the numbers in the input information from the public data;

[0089] A modular operation is performed on the M seeds to generate secondary information with the same format as the seed, wherein N and M are positive integers.

[0090] In some embodiments, the common data is configured as a circular sequence of N*M elements connected end to end, the circular sequence is divided into N units of length M, and each unit is identified by a number from 0 to N-1;

[0091] The seed is configured to start from one of the units and extend in the same direction across the entire annular sequence to form a sequence with a length of N*M, with the starting unit number being used as the seed number.

[0092] In some embodiments, the key generation module is further configured to:

[0093] Using the master key as control information, and under the control of the master key, converting the public data into private data through a second one-way data conversion algorithm;

[0094] Using the timestamp as control information, and generating an intermediate key from the private data by a third one-way data conversion algorithm under the control of the timestamp;

[0095] Using the intermediate key as control information, and under the control of the intermediate key, converting the public data into secondary information through the one-way data conversion algorithm;

[0096] Extracting information from the secondary information to generate a key; and

[0097] The key is associated with a corresponding timestamp.

[0098] In some embodiments, the one-way data conversion algorithm, the second one-way data conversion algorithm and the third one-way data conversion algorithm use the same or different one-way algorithms.

[0099] In some embodiments, the transmission unit is further configured to receive a second timestamp sent from a paired key generation device;

[0100] The key generation unit is further configured to use the master key and the second timestamp as input information to generate a key through the one-way data conversion algorithm, and the key is associated with the second timestamp information.

[0101] According to another embodiment described herein, there is provided a key management system, comprising:

[0102] A management terminal device, the management terminal device comprising:

[0103] Control module: configured to generate, for each of a plurality of users, any information identifying the user's identity as a user identification code of the user;

[0104] A user information module configured to store the user identification code;

[0105] The key generation module includes the key generation device as described in the previous embodiment and stores a master key, and is configured to generate a corresponding user key for each of multiple users, and transmit the user identification code and the corresponding key to the corresponding user terminal device as the user key of the user.

[0106] In some embodiments, the key generation module responds to the user identification code sent from the user information module, uses the user identification code as a timestamp, generates a key corresponding to the user identification code, and passes the user identification code and the corresponding key to the corresponding user terminal device as the user key of the user.

[0107] In some embodiments, the control module is further configured to:

[0108] When the user keys of one or more users are lost, the control module receives the corresponding user identification code from the user terminal device,

[0109] The user information module is further configured to verify the received user identification code to confirm that the user identification code is a stored user identification code,

[0110] The key generation module uses the user identification code as a timestamp, generates a user key corresponding to the user identification code, and feeds the user key back to the user terminal device.

[0111] In some embodiments, the key generation module is further configured to:

[0112] The information in the user identification codes of different user terminal devices is combined to generate a timestamp, and a key used for communication between the different users is generated.

[0113] In some embodiments, the system further comprises:

[0114] One or more intermediate management nodes of different levels are arranged between the management terminal device and the user terminal device.

[0115] In some embodiments, the system further comprises:

[0116] One or more user terminal devices, wherein the user terminal device stores a user identification code of a corresponding user.

[0117] According to another embodiment described herein, there is provided an encryption and decryption device, comprising:

[0118] The key generation device as described in the previous embodiment is configured to generate a one-time key;

[0119] An input port configured to read or input data to be encrypted;

[0120] a formatting unit configured to convert the data to be encrypted inputted from the input port into formatted plain text matching the one-time key format;

[0121] an encryption module configured to generate a timestamp during encryption, generate a master ciphertext by using the one-time key generated by the key generation module and the formatted plaintext according to information in the timestamp, use the timestamp corresponding to the one-time key as a ciphertext title, and combine the master ciphertext and the ciphertext title to generate a ciphertext;

[0122] The sending port is configured to send the generated ciphertext to a paired decryption device.

[0123] In some embodiments, the encryption and decryption device further includes:

[0124] a receiving port configured to receive ciphertext sent from a paired encryption device;

[0125] a decryption module configured to parse the received ciphertext to extract the master ciphertext and the timestamp in the ciphertext header, generate a one-time key corresponding to the timestamp as a decryption key using the key generation module according to the information in the timestamp, and decrypt the master ciphertext using the decryption key to generate a decrypted plaintext;

[0126] The formatting unit is further configured to convert the decrypted plaintext into restored data;

[0127] An output port is configured to output the restored data.

[0128] According to another embodiment described herein, there is provided a file management system, including a management terminal device and one or more user terminal devices.

[0129] The management terminal device comprises:

[0130] A key management module, using the key management system as described in the previous embodiment, configured to store the system master key, and to generate and distribute a user master key for each user of the system;

[0131] The system encryption and decryption module adopts the encryption and decryption device as described in the previous embodiment, and is configured to encrypt and decrypt the file information exchanged between the user terminal device and the management terminal device;

[0132] A system file module, configured to store system files of the file management system,

[0133] The user terminal device comprises:

[0134] The user encryption and decryption module adopts the encryption and decryption device as described in the previous embodiment, and is configured to encrypt and decrypt the file information exchanged between the user terminal device and the management terminal device.

[0135] In some embodiments, the management end device generates and stores a user identification code for each user of the user end device through the key management module, generates a user master key corresponding to the user identification code, and distributes the user master key and the corresponding user identification code to each user end device;

[0136] The user terminal device generates a timestamp through the user encryption and decryption module, generates a one-time key corresponding to the timestamp by relying on the user master key, encrypts the file information with the one-time key to generate a master ciphertext, uses the timestamp and the user identification code of the user as the ciphertext title, combines the master ciphertext and the ciphertext title to generate a ciphertext, and sends the ciphertext to the management terminal device through a public channel as proof of the file submitted by the user to the management terminal device;

[0137] The management end device receives the ciphertext sent from the user end, parses the ciphertext through the system encryption and decryption module, extracts the master ciphertext and the user identification code and timestamp in the ciphertext header; the key management module generates a corresponding user master key according to the user identification code; the system encryption and decryption module generates a corresponding decryption key based on the information in the timestamp and the user master key, decrypts the master ciphertext, and confirms the file information;

[0138] The management end device stores the ciphertext of the confirmed file information into the system file module.

[0139] In some embodiments, the management end device is further configured to generate a user master key of the target user through the key management module as the master key of the system encryption and decryption module, encrypt the file information through the system encryption and decryption module to generate ciphertext, and send it to the target user end device through the public channel;

[0140] The target user terminal device is further configured to receive the ciphertext sent from the management terminal device through the user encryption and decryption module, decrypt the ciphertext, and restore the file information.

[0141] In some embodiments, the system further comprises:

[0142] One or more intermediate management nodes of different levels are arranged between the management terminal device and the user terminal device.

[0143] According to another embodiment described herein, there is provided a system for secure information transmission, comprising a paired first communication device and a second communication device, wherein

[0144] The first communication device comprises:

[0145] A first key generating device, which uses the key generating device as described in the previous embodiment and is configured to generate a one-time key as a first key;

[0146] A first input port, configured to read or input a first file to be sent;

[0147] A first formatting unit, configured to convert a first file to be sent inputted from an input port into a first formatted plain text having the same format as the key;

[0148] a first encryption module, configured to convert the first formatted plaintext into a first master ciphertext by using a first key generated by a first key generating device, use a first timestamp corresponding to the first key as a first ciphertext header, and merge the first master ciphertext and the first ciphertext header to generate a first ciphertext;

[0149] A first sending port is configured to send the generated first ciphertext to a second communication device,

[0150] The second communication device comprises:

[0151] A second key generating device, which uses the key generating device as described in the previous embodiment and is configured to generate a one-time key as a second key;

[0152] a second receiving port, configured to receive the first ciphertext sent by the first sending port;

[0153] a second decryption module, configured to parse the received first ciphertext to extract a first master ciphertext and a first timestamp in a first ciphertext header, generate a second decryption key corresponding to the first timestamp by the second key generation module according to the first timestamp, and decrypt the first master ciphertext using the second decryption key to generate a second decrypted plaintext;

[0154] a second formatting module, configured to convert the second decrypted plaintext into second restored data;

[0155] The second output port is configured to output the second restored data as a second received file.

[0156] In some embodiments, the second communication device further comprises:

[0157] A second input port, configured to read or input a second file to be sent;

[0158] The second formatting module is also configured to convert the second file to be sent into a second formatted plain text having the same format as the key;

[0159] a second encryption module, configured to convert the second formatted plaintext into a second master ciphertext by using a second key generated by the second key generation module, use a second timestamp corresponding to the second key as a second ciphertext header, and combine the second master ciphertext and the second ciphertext header to generate a second ciphertext;

[0160] a second sending port, configured to send the second ciphertext to the first communication device;

[0161] The first communication device further comprises:

[0162] A first receiving port, configured to receive the second ciphertext sent by the second sending port;

[0163] a first decryption module, configured to parse the received second ciphertext to extract a second master ciphertext and a second timestamp in a header of the second ciphertext, generate a first decryption key corresponding to the second timestamp by the first key generation module according to the second timestamp, and decrypt the second master ciphertext using the first decryption key to generate a first decrypted plaintext;

[0164] The first formatting unit is also configured to convert the first decrypted plaintext into first restored data;

[0165] The first output port is configured to output the first restored data as a first received file.

[0166] According to the key generation and distribution method, key generation device, key management system, encryption and decryption device, file management system, and information security transmission system of the embodiments of the present invention, it is possible to rely on a master key to generate any required number of independent keys with a key strength equivalent to the number of bits of the master key, and to conveniently and securely distribute the keys among legitimate communicators who exclusively share the master key, thereby constructing a general and efficient encryption system that is provably secure in informatics theory, solving the fundamental problems of cryptography.

[0167] Furthermore, the disclosed techniques may be directly adaptable to many other communication systems and information security environments.

[0168] With the help of the accompanying drawings and the detailed description of the following specific embodiments, other features and advantages of the key generation and secure distribution method and application of the present invention will become more obvious. BRIEF DESCRIPTION OF THE DRAWINGS

[0169] Figure 1 is a schematic diagram showing a method for generating a key according to an embodiment of the present invention.

[0170] Figure 2 is another schematic diagram showing the method for generating a key according to an embodiment of the present invention.

[0171] Figure 3 is a schematic diagram illustrating a combined modular operation according to an embodiment of the present invention.

[0172] Figure 4 FIG. 4 is a schematic diagram showing a specific example of generating a key according to the method of an embodiment of the present invention.

[0173] Figure 5 is a schematic diagram showing a key generating device according to an embodiment of the present invention.

[0174] Figure 6 is a schematic diagram showing a key management system according to an embodiment of the present invention.

[0175] Figure 7 FIG. 4 is a schematic diagram showing an encryption and decryption device according to an embodiment of the present invention.

[0176] Figure 8 FIG. 4 is a schematic diagram showing a file management system according to an embodiment of the present invention.

[0177] Fig. 9 FIG. 4 is a schematic diagram showing a system for secure information transmission according to an embodiment of the present invention. DETAILED DESCRIPTION

[0178] The present invention discloses a key generation method, by which a required number of independent keys with key strength equivalent to the number of bits of the master key can be generated and securely distributed by relying on a master key; the method can be used to build an efficient, reliable and universal key management system, relying on the keys of multiple users in a master key management system, and the multiple users can be an unlimited number of users in the real world; the generated key is used as a one-time key to encrypt plaintext information with the same number of bits, so that a universal and efficient encryption system that can be proven to be secure in informatics theory can be built to meet various information security requirements.

[0179] The system using the method should meet the following prerequisites during application to achieve system security.

[0180] Premise 1: The master key is always kept secure and cannot be detected from any information output by the system, whether public or confidential during use; the output information of the system includes keys generated and distributed from the system and information used for key distribution.

[0181] In cryptographic applications, ciphertext is considered public, and plaintext may also be disclosed in the future. When using a one-time key to encrypt file information, the one-time key information can usually be relatively easily derived based on the ciphertext and the file information disclosed in the future. Therefore, in password decryption, it can be considered that the one-time key becomes public information after the information transmission is completed; in a key management system, the system administrator usually does not want users to detect the master key information through the distributed keys; therefore, in the premise, the key output from the system is regarded as information that can be used to attack the system master key.

[0182] Premise 2: The generated keys are independent of each other. Based on all the keys output from the system, combined with known public information and methods, there is no substantial help in deriving the next newly generated key. In other words, there is no relationship between the essential information of the keys generated by the key generation method that can be determined by existing and future foreseeable methods, that is, the keys contain independent information determined by the key strength.

[0183] Premise 3: Key distribution is safe and feasible, that is, the key can be securely distributed to the legitimate recipient through the public channel, and the illegal recipient who does not have the master key information cannot obtain the essential information of the key through the key sending path; in specific cryptographic applications, the legitimate recipient with the master key can conveniently generate the key to be transmitted based on the key distribution information and the master key, while the attacker who does not have the master key cannot obtain the essential information about the distributed key from the key distribution information and any public information and knowledge.

[0184] An information security system that meets prerequisites 1, 2, and 3 can rely on a master key to achieve the generation and secure distribution of the required number of independent keys with the same strength as the master key, thereby building an encryption system that can be proven secure in informatics theory.

[0185] In modern cryptography practice, in addition to some system parameter information that can be encoded into a key, other system information, including but not limited to algorithms, processes, data formats, control parameters, etc., in the encryption system, must be disclosed. Therefore, in the key generation method described in the present invention and the information security system constructed thereby, unless otherwise specified, the master key is the only private information of the system, and the key strength of the system is determined by the number of bits of the master key, the key generation method, and the encryption and decryption process. Therefore, the specific definitions of undetectable, underivable, unknowable, and unobtainable described in the above premise all depend on the key strength of the adopted system.

[0186] Here, we define key strength as the difficulty of successfully guessing the information encrypted by a key using public information and prior knowledge, which is equivalent to the difficulty of guessing an N-bit undisclosed random information. The possible values ​​of the N-bit random information are uniformly distributed in a space of size 2. N The success rate of randomly guessing a key with a key strength of N bits is 1 / 2 N Therefore, the above premise of being unable to detect, deduce, know, and obtain, etc., can be defined in practice as follows: when using an N-bit key strength encryption method to encrypt information, relying on information and knowledge other than the key, the success rate of each detection, deduction, and acquisition of the target information is not significantly greater than 1 / 2 N , or the number of attempts required to successfully obtain the file information encrypted by an encryption method with a key strength of N bits is not significantly less than 2 N .

[0187] The above-mentioned substantial information is a specific arrangement of bits contained in the key, so as to distinguish it from the information that needs to be disclosed according to cryptographic practice, such as the length and format of the key, to avoid confusion. The bit is a basic unit of information familiar to people in the field of information science, and multiple bits of information can be determined by a corresponding number of 0s or 1s in a specific arrangement order.

[0188] This specification mainly discusses digital information, the basic form of which is a binary number sequence consisting of 0 or 1. Other number sequences, such as but not limited to octal, decimal, and hexadecimal, can be used to facilitate manual reading and recognition. There is a one-to-one conversion relationship between the number sequence and the binary number sequence. In this specification, these number sequences with a one-to-one conversion relationship can be considered equivalent.

[0189] Many forms of physical signals that can be detected and repeatedly generated are digitizable, including but not limited to light waves, radio waves, current pulses, sound waves, nuclear radiation, graphics, symbols, etc., which can all be digitized and ultimately converted into binary coded information that can be recognized and processed by a computer processor; at the same time, digital information can also be transmitted, processed, or cause a response by converting it into appropriate physical signals and symbols; these digitizable physical signal and symbol combinations can also be considered equivalent to number series in the field of informatics, and are therefore included in the information category discussed in this specification.

[0190] Below, the key generation method, key generation device, key management system, encryption and decryption device, file management system, and information security transmission system according to the embodiments of the present invention will be described in detail with reference to the accompanying drawings.

[0191] By introducing the key generation method of the present invention and various devices or systems using the method, examples of implementation schemes of the claimed subject matter are provided. The embodiments described below do not limit any claimed subject matter, and any claimed subject matter may cover methods or systems different from those described below. The claimed subject matter is not limited to a system or method having all the features of any one system or method described below, nor is it limited to the features common to multiple or all of the devices or methods described below. It is possible that the system or method described below is not an implementation scheme stated in any claimed subject matter. Any subject matter disclosed in the system or method described below but not claimed in this document may be the subject of another protection tool, such as a continuing patent application, and the applicant, inventor or owner does not intend to abandon, deny or dedicate them to the public by disclosing any such subject matter in this document.

[0192] In the description of the embodiments of the present invention, some optimization, evaluation and analysis demonstrations are usually used to facilitate the technical personnel in the relevant field to better understand the present invention. It should be understood that many of the specific details are described in order to provide a thorough understanding of the embodiments described herein and should not be used as a limitation on the claims claimed in the present invention. In actual implementation, the specific processes and algorithms can be optimized by existing knowledge and means commonly used in the art to improve efficiency and facilitate use. The technical personnel in the relevant field optimize the specific schemes in the embodiments in the manner well known in the art, give optional parameters or suggestions to improve efficiency and expand the scope of application, or on the basis of the evaluation and analysis described in this article, through strict scientific demonstration, it may be possible to find or make up for the deficiencies of the evaluation and analysis provided in this article, and lead to some technical improvements; these possible technical improvements and beneficial suggestions should not interfere with the claims claimed by the present invention without exceeding the novel teaching and creative spirit of the present invention. However, it can be understood by ordinary technicians in the art that in some cases, the embodiments described herein can also be practiced without these specific details. In other cases, the known methods, processes and modules are not described in detail to avoid confusing the embodiments described herein. Moreover, the drawings and their descriptions should not be regarded as limiting the scope of the embodiments described herein.

[0193] Described herein are various embodiments of methods, systems, computer-readable media, and devices for providing data protection. Generally, the embodiments described herein provide methods for generating encryption keys, the generated encryption keys are used to securely encrypt files. The embodiments described herein also provide methods for generating corresponding decryption keys, i.e., key security distribution, the generated corresponding decryption keys are used to decrypt the encrypted files. Generally, the embodiments described herein fall into the category of symmetric encryption, wherein the encryption key and the decryption key are the same. Generally, the features of the various embodiments described herein may be used in any combination with each other, unless otherwise indicated.

[0194] The embodiments described herein can address issues associated with key generation and management. In particular, the embodiments described herein can be used to provide one-time key data encryption, i.e., encrypting a plaintext having the same number of bits as the one-time key using a one-time key, so that the corresponding ciphertext and the encryption system are provably secure in information theory, while ensuring that the key can be securely generated and distributed by the method described in the present invention.

[0195] <First Embodiment>

[0196] Figure 1 A schematic diagram showing the generation of a key by the method of the present invention is shown. Figure 1This embodiment describes a method for implementing a method of using the method of the present invention, with the help of a timestamp that can be composed of any information, at least through a one-way data conversion algorithm, relying on a master key to generate and securely distribute the required number of independent keys with a key strength equivalent to the number of bits of the master key.

[0197] The method of the embodiment of the present invention can generally be implemented through a key generation module; the key generation module can be used in a variety of systems, including but not limited to key generation devices, key management systems, encryption and decryption devices, file management systems, information security transmission systems, etc., and can be used as a component of a communication device in the system, in the form of hardware and / or software, using the method described in the embodiment of the present invention to generate keys, which are applied to these communication devices to achieve secure key distribution and / or secure communication.

[0198] To implement the method of the present invention, the master key and the one-way data conversion algorithm may be generated and / or stored in the key generation module by common technical methods as system information of the key generation module.

[0199] like Figure 1 First, the system information stored in the key generation device is obtained. The system information includes at least a master key 101 and a one-way data conversion algorithm 102. The master key is composed of undisclosed random information and is the only private information in the system; the one-way data conversion algorithm is configured to convert input information into secondary information determined by the input information, but it is impossible or computationally difficult to detect the corresponding input information from the secondary information. In other words, the one-way data conversion algorithm is used to perform irreversible data conversion on the input information to generate output information.

[0200] In another embodiment, the system information can also be flexibly generated according to the usage scenario. For example, two or more devices can flexibly set various parameters in the one-way data conversion algorithm. Two or more devices can also generate the same master key.

[0201] In order to achieve secure key distribution, the method introduces a timestamp that can adopt arbitrary information.

[0202] Then, using the master key and the timestamp as input information, a key is generated through the one-way data conversion algorithm, and the key is associated with the timestamp information.

[0203] Finally, the timestamp is sent to a paired key generation device, wherein the paired key generation device stores second system information corresponding to the system information.

[0204] The information in the timestamp is extensive and can adopt any information that does not appear repeatedly.

[0205] In one embodiment, the timestamp is generated by the key generation device. The time when the key is generated can be used as the timestamp; using the time as the timestamp can ensure that the value space of the timestamp is open and the information in the timestamp does not repeat.

[0206] In another embodiment, some redundant random information may be added to the time of encryption as a timestamp. By using the above-mentioned timestamp, the redundant random information may be used as a buffer while keeping the timestamp value space open and the information in the timestamp non-repeating, so that the timestamp has better scalability while maintaining a fixed format. For example, the lower limit of the time code may be expanded as the encryption frequency increases, and the year code may be expanded as the system service life increases.

[0207] Specifically, Figure 1 As shown, the key generation module generates the key in the following manner:

[0208] Generate timestamp 111; combine timestamp 111 with master key 101 to generate intermediate key 112; use intermediate key 112 as input information and generate secondary information 113 through one-way data conversion algorithm 102; extract information from secondary information 113 to generate key 114, and associate key 114 with corresponding timestamp 111.

[0209] The one-way data conversion algorithm has the following characteristics:

[0210] Feature 1: The input information can be easily converted into secondary information determined by the input information through a one-way data conversion algorithm, that is, it is certain and feasible to derive the secondary information from the input information;

[0211] Feature 2: It is computationally impossible to transform the generated secondary information into the corresponding input information, that is, no substantive content of the input information can be inferred from the secondary information;

[0212] Feature 3: The conversion from input information to secondary information is non-degenerate and nonlinear, i.e. the value space of the secondary information is not less than the value space of the input information, so that different input information can correspond to different secondary information statistically, and a small change in the input information can lead to a global change in the secondary information that cannot be predicted by the change alone. Under strict one-way data conversion, a change in a single bit in the input information can cause an unpredictable global change in the generated secondary information. In practice, the number of bits of the secondary information can be significantly larger than the number of bits of the input information and a nonlinear algorithm or nonlinear transformation can be introduced.

[0213] Feature 4: The one-way data conversion algorithm can perform one-way data conversion on any input information that can be converted into an input format to generate the secondary information. Specifically, in the present invention, if the input information is N bits and the value space is 2 N , then it satisfies 0 to 2 N Any information value between -1 can be used as valid input information to implement the one-way data conversion and generate secondary information.

[0214] The key generation module sends the timestamp A corresponding to the key 114 to the paired key generation module, and the paired key generation module uses the same system information;

[0215] After receiving the timestamp A, the paired key generation module generates the key A corresponding to the timestamp A through the method described above, according to the same system information, and adopts the same steps to realize key transmission.

[0216] During the entire key generation and transmission process, the intermediate key only appears in the calculation and exists in the computer's memory or cache. The system's output information does not include the intermediate key information.

[0217] In the key generation and distribution system, the master key is the only private information, and other system information, including but not limited to system structure, key format, timestamp format, process, etc., can be kept public.

[0218] The following proves that when the one-way data conversion algorithm 102 possesses the above characteristics 1, 2, 3, and 4 at the same time, the key generation and distribution system using the method can meet the above premises 1, 2, and 3 during operation and application, so that the method can be used to generate and securely distribute the required number of independent keys with the same key strength and number of bits of the master key by relying on a master key.

[0219] The proof is as follows:

[0220] All information output by the system includes timestamps and keys that may be used to encrypt file information or assign to objects belonging to the system. Apart from these, there is no other information that can be used to detect the master key. Using a one-way data conversion algorithm that meets feature 2, the substantive information of the intermediate key cannot be detected from the secondary information. Therefore, even if the information in the generated key is completely exposed for various reasons after use, the intermediate key information cannot be inferred from part or even all of the secondary information inferred from the exposed key information, and thus the substantive information of the master key cannot be obtained; since the timestamp is composed of arbitrary, universal information that is completely independent of the key generation method and system information, the timestamp does not expose system information and master key information. Therefore, the master key can remain secure during the operation of the key generation system, and premise 1 is met.

[0221] In the key generation device, the master key and system information are fixed, and what ultimately determines the output of different secondary information and keys is the timestamp that can take different values. A timestamp that can be composed of any non-repetitive information is used, the value space of the timestamp is open, and the information in the timestamp can be independent. The intermediate key is generated by combining the timestamp and the master key, and a non-degenerate combination is used, so that the intermediate key can inherit the independent information in the timestamp. Using a one-way data conversion algorithm that meets characteristics 3 and 4, any intermediate key can be converted into valid input information to generate independent secondary information that can inherit the independent information in the intermediate key, so that an independent key can be selected from the independent secondary information. Prerequisite 2 is met.

[0222] An intermediate key is generated by using a non-degenerate combination, and the intermediate key can inherit the key strength of the master key. Therefore, even if a short timestamp is used, the key strength of the master key can be transferred to the secondary information through the intermediate key, and then an independent key with the same key strength as the master key can be generated from the secondary information.

[0223] If necessary, a timestamp with the same number of bits as the master key can be used. Figure 1 The method shown generates the intermediate key, secondary information, and key in sequence; the use of a long timestamp is also easy to implement in the key generation system; when the number of bits of the secondary information is significantly larger than the number of bits of the key, the use of a long timestamp has no significant effect on the amount of calculation required to generate the secondary information and the corresponding key and the information processing efficiency of the system. The openness of the timestamp value space also ensures that any desired number of keys can be generated through the timestamp.

[0224] It is obvious that the method can generate a key that can be easily distributed through a timestamp. Using a one-way data conversion algorithm that meets characteristics 2 and 3, a change in a single bit of the intermediate key will cause an unpredictable global change in the generated secondary information. Therefore, without exposing the actual information of the intermediate key, it is impossible to infer the change of the corresponding secondary information based on the change of the timestamp; therefore, using Figure 1 The key generation process shown ensures that the actual information of the intermediate key is not exposed, and the corresponding secondary information and the key generated therefrom cannot be inferred based on the information in the timestamp, so that the key can be securely distributed through the timestamp. Premise 3 is met.

[0225] Therefore, a one-way data conversion algorithm that meets characteristics 1, 2, 3, and 4 is adopted to ensure that the essential information of the master key is not exposed through any means other than the above-mentioned key generation and distribution process, and the essential information of the intermediate key is kept from being exposed during the application process. Through the method described in the embodiment of the present invention, with the help of the timestamp, one master key can be relied upon to generate and securely distribute any required number of independent keys with a key strength equivalent to the number of bits of the master key.

[0226] In another embodiment, the timestamp and the master key may be combined in a simple non-degenerate combination manner, such as a modular operation or simple information addition, to generate an intermediate key.

[0227] According to the previous analysis, when using a one-way data conversion algorithm that meets characteristics 1, 2, 3, and 4 and without disclosing the intermediate key information, the above simple combination can also ensure that any desired number of independent keys can be generated based on the information in the timestamp by relying on the master key, and the master key information remains secure during the key generation and distribution process, and the secondary information generated by the intermediate key through the one-way data conversion algorithm cannot be detected from the information in the timestamp, thereby achieving the generation and secure distribution of any desired number of independent keys.

[0228] In cryptographic practice, key collisions may occur, that is, two independently selected or independently generated keys are the same; key collisions can usually be avoided by expanding the key space, that is, increasing the key strength; under the same key strength, random keys can be used to avoid using known and easy-to-remember information as keys, thereby maintaining an effective key space and reducing key collisions.

[0229] In the embodiment of the present invention, as in the commonly used encryption method, direct collision of the master key is not considered; since the embodiment of the present invention usually generates a large number of one-time keys through a master key, collisions between these one-time keys can be considered during the application process to prevent attackers from attacking the system through colliding one-time keys. Although, as will be described later, key generation using the method of the present invention is very efficient and a very high key strength can be selected, for example, according to the description in the second embodiment, it is relatively easy to implement a 1024-bit or higher strength key on a commonly used communication device, thereby statistically ensuring that random collisions between these one-time keys are impossible to occur in the real world.

[0230] Assuming the worst case scenario, a powerful attacker can obtain all the one-time keys and corresponding timestamps output by the key generation system using the method described above through the ciphertext and the decrypted plaintext, and use his own master key to generate a large number of one-time keys using the same method, hoping to collide with the obtained one-time keys, and detect the other party's master key information from the collided one-time keys. However, as mentioned above, this attack has little effect on high-strength keys and is unlikely to occur in the real world.

[0231] If a key collision is observed, the attacker can easily derive the intermediate key information used to generate the corresponding key from the colliding key in his own system.

[0232] The above-mentioned intermediate key generation method by a simple combination of timestamp and key is vulnerable to the above-mentioned key collision attack. For example, an attacker can relatively easily derive the master key information from the intermediate key information and the corresponding timestamp information, thereby cracking the entire system.

[0233] In another embodiment, to avoid the above-mentioned collision attack, the master key and the timestamp are used to generate an intermediate key through a one-way data conversion algorithm.

[0234] Below, a specific example of key generation and distribution will be described with reference to a specific example:

[0235] In this example, a fixed 6-digit master key 763403 is set, and the one-way data conversion algorithm uses the square root algorithm.

[0236] The timestamp is the date when it was encrypted, for example 0803 (August 3)

[0237] Use the following steps to generate and distribute keys:

[0238] Generation timestamp: 0803

[0239] The timestamp and the master key are combined to obtain the remainder less than 1 million, that is, the last six digits, as the intermediate key:

[0240] 763403*0803=613012609, take the last six digits and get the intermediate key 012609

[0241] The intermediate key is used as input information to generate secondary information through a one-way data conversion algorithm (square root operation):

[0242] Take the square root of the input information 012609 and you get 112.28980363327740720570916632036. Take the 18 digits after the 6th decimal point and you get a: 633277407205709166

[0243] Add 1 to the input information 012609, that is, 012610 and then take the square root, and we get 112.2942563090383532372986924121. Take the 18 digits after the 6th decimal point and we get b: 309038353237298692

[0244] Perform bit-by-bit modulo operation on a and b to obtain secondary information.

[0245] a:633277407205709166

[0246] b:309038353237298692

[0247] Add them digit by digit and take the unit digit of the sum

[0248] Secondary information 932205750432997758

[0249] Extract information from the secondary information, such as the middle six digits, 750432, as a key, and mark the key 750432 with a timestamp 0803;

[0250] The timestamp 0803 is sent to the paired key generation device. The paired key generation device relies on the same master key 763403 and adopts the same steps to generate the key 750432 corresponding to the timestamp 0803 to realize key transfer.

[0251] Furthermore, when the date is 0804 (August 4), the key generation and distribution steps for date 0804 are:

[0252] Generation timestamp: 0804

[0253] The combination of timestamp and master key: 763403*0804=613776012, take the last six digits to get the intermediate key 776012;

[0254] Use the intermediate key 776012 as input information;

[0255] Take the square root of the input information 776012 and you get 880.91543294461585905541320952872. Take the 18 digits after the 6th decimal point and you get a: 944615859055413209

[0256] Add 1 to the input information 776012, that is, 776013 and then take the square root, and we get 880.9160005358059109568403944211. Take the 18 digits after the 6th decimal point and we get b: 535805910956840394

[0257] Perform bit-by-bit modulo operation on a and b to obtain secondary information.

[0258] a:944615859055413209

[0259] b:535805910956840394

[0260] Secondary information 479410769901253593

[0261] Extract information from the secondary information, such as the middle six digits, 769901, as a key, and mark the key 769901 with a timestamp 0804;

[0262] The timestamp 0804 is sent to the paired key generation device. The paired key generation device relies on the same master key 763403 and adopts the same steps to generate the key 769901 corresponding to the timestamp 0804 to realize key transfer.

[0263] The above process has the following characteristics:

[0264] 1. The timestamp format and content can be completely unrelated to the master key and key generation scheme, so the master key information is not exposed.

[0265] 2. The timestamp can be combined with the master key to generate an intermediate key, and then generate certain secondary information and keys through one-way data conversion. It is impossible to infer the corresponding intermediate key from the secondary information and key, and it is impossible to infer the master key. Therefore, the generated key does not expose the master key information.

[0266] 3. Without combining with the master key to generate an intermediate key, it is impossible to infer the corresponding key from the timestamp and the change of the timestamp. Therefore, the key can be distributed securely through the timestamp. The key values ​​corresponding to the timestamps 0803 and 0804, which are very similar in form, are very different.

[0267] A required number of non-repetitive keys can be generated by using a timestamp of appropriate length. For example, 100 million keys can be generated by using an 8-digit timestamp.

[0268] Figure 2 The figure shows a usable process of generating an intermediate key from a master key and a timestamp through a one-way data conversion algorithm, and then generating secondary information and a key. Figure 1 The difference between the examples is that Figure 2 In the example, the intermediate key is generated through a one-way transformation algorithm.

[0269] Specifically, the master key 201 and timestamp 211 are used as input information, and the intermediate key 212 is generated through the one-way data conversion algorithm 202; the intermediate key 212 is used as input information, and the secondary information 213 is generated through the one-way data conversion algorithm 203, and the information is extracted from the secondary information 213 to generate the key 214, and the key 214 is associated with the corresponding timestamp.

[0270] In the above embodiment, since a one-way data conversion algorithm is used to generate the intermediate key, the transformation from the master key and the timestamp to the intermediate key is nonlinear, and the change of a single bit in the timestamp will cause an unpredictable global change in the generated intermediate key information. Therefore, even if the attacker can obtain a small amount of intermediate key information through the above key collision attack, it is impossible to effectively detect the essential information of the master key from the intermediate key and the corresponding timestamp information. Therefore, the generation of the intermediate key in the above manner can effectively resist the above key collision-based attack.

[0271] In some embodiments, some one-way data conversion algorithms that can be used in the method of the present invention are described. It should be understood that these embodiments are only used to show that the one-way data conversion algorithms that can be used in the method of the present invention are ubiquitous, and are not used as a limitation to the claims advocated in the present invention. Any one-way data conversion algorithm that can be applied to the key generation method and related information security system described in the present invention and constructed by anyone should not hinder the novelty of the present invention and the claims advocated by the present invention.

[0272] One-way data conversion algorithms that meet the above characteristics 1, 2, 3, and 4 are ubiquitous.

[0273] In one embodiment, for example, through a square root operation or other operations that can generate an irrational number determined by an input value, the secondary information that can be determined by the input value and meets any required length can be generated.

[0274] Specifically, for example, the following steps may be taken:

[0275] The input information is digitized, and the digitized information is converted into a non-negative integer N as an input value.

[0276] calculate The value that meets the required length after the decimal point is accurate, and the integer part and the decimal part next to the decimal point that is at least as long as N are discarded, and the value a of the determined length of the latter part is selected;

[0277] calculate The value that meets the required length after the decimal point is accurate, and the integer part and the decimal part next to the decimal point that is at least as long as N are discarded, and the value b of the determined length of the latter part is selected;

[0278] Perform a modulo operation on a and b bit by bit with base N as the modulus to generate secondary information.

[0279] The following uses a decimal number, N = 1889, to demonstrate the specific calculation process. The corresponding input information is 1-8-8-9, and the length of the secondary information is 24 bits. In actual applications, N will be a very large number, and the number of bits of the secondary information will also be very long.

[0280] calculate Discard the integer part and the 4 digits after the decimal point to get 2762420146175670116696808. Take 24 digits and get a as 276242014617567011669680.

[0281] calculate Discard the integer part and the 4 digits after the decimal point to get 1713900185020498627353631. Take 24 digits and get b as 171390018502049862735363.

[0282] Perform a modulo operation on a and b bit by bit with modulo 10 to generate secondary information. The specific operation is as follows:

[0283] a:276242014617567011669680

[0284] b:171390018502049862735363

[0285] Modulo arithmetic modulo 10

[0286] Secondary information: 347532022119506873394943

[0287] In the above modular operation with 10 as the modulus, the digits in the corresponding positions of a and b are added bit by bit. If the sum of the two is less than the modulus 10, the calculation result is the sum of the two. If the sum of the two is greater than the modulus, the modulus 10 or an integer multiple of 10 is subtracted from the sum of the two, and the non-negative integer less than the modulus 10 is taken as the calculation result. The above method can be extended to modular operations of all bases.

[0288] The above square root operation is a one-way data conversion algorithm with characteristics 1, 2, 3, and 4, as shown below:

[0289] It is computationally feasible to generate the determined secondary information by performing a square root operation on the input numerical value, and feature 1 is met.

[0290] Obviously, through modular operation, the above a and b can select any sequence of the same length to generate the target secondary information; for example, the first digit of the secondary information is 3, and the first digit of a or b can be any number from 0 to 9. Through pairing, such as 0 and 3, 1 and 2, 2 and 1, 3 and 0, 4 and 9, 5 and 8, 6 and 7, 7 and 6, 8 and 5, 9 and 4, 3 is obtained by the above modular operation, and the numbers in other positions are the same; therefore, it is impossible to infer a and b from the secondary information, and thus N and the input information cannot be obtained; in addition, since the integer and high decimal parts are discarded, a single value change in the input value N can cause a global change in the generated a or b and the secondary information, so the above data conversion is nonlinear. Feature 2 is available.

[0291] Obviously, any input information can be converted into a definite non-negative integer that is smaller than its value space, and thus can be used as a legal input; the above calculation utilizes the common sense that N and N+10 cannot be perfect square numbers at the same time, ensuring that non-zero secondary information of any desired length can be output, and features 3 and 4 are met.

[0292] From the above calculations, it can be seen that it is also difficult to infer N from a or b, and the above algorithm can be further optimized.

[0293] The decimal operation is used in the above demonstration and the following demonstrations to facilitate the relevant technical personnel in a wider range of fields to better understand the present invention. In actual calculations, it is more convenient to use binary and octal or hexadecimal systems that can be easily converted to binary; after using binary, the above modular operation can be completed by XOR operation which is more suitable for computers.

[0294] In another embodiment, with the help of common data, an efficient one-way data conversion algorithm can be constructed through division operation.

[0295] Convert the input information into numerical form, such as x 1 x 2 x 3 …x i-2 x i-1 x i y 1 y 2 y 3 …y i-2 y i-1 y i ;

[0296] Public data in numerical form, such as z 1 z 2 z 3 …z k-2 z k-1 z k ;

[0297] Advantageously, k is much larger than 2i;

[0298] Calculate 1z 1 z 2 z 3 …z k-2 z k-1 z k 1 / 1x 1 x 2 x 3 …x i-2 x i-1 x i 1, coming soon 1 z 2 z 3 …zk-2 z k-1 z k 1 divided by 1x 1 x 2 x 3 …x i-2 x i-1 x i 1. Calculate to a sufficient number of digits after the decimal point, discard the high-order digits of the integer part of the calculation result that are equal to the length of the input information, and select the value a of the subsequent part that is equal to the length of the public data;

[0299] When calculating, adding a non-zero digit before and after the value can effectively avoid large changes in the format of the calculation result due to a large number of zero values ​​appearing before and after the input information and public data.

[0300] Calculate 1z 1 z 2 z 3 …z k-2 z k-1 z k 1 / 1y 1 y 2 y 3 …y i-2 y i-1 y i 1 to the number of digits after the decimal point that is long enough, discard the high-order digits of the integer part of the calculation result that are equal to the length of the input information, and select the value b of the subsequent part that is equal to the length of the public data;

[0301] Perform a and b bit by bit modular operation modulo the numerical base used to generate secondary information.

[0302] The following uses the 8-digit decimal value input information 3-7-2-8-1-5-9-6 to demonstrate the calculation process. The converted input information format is 3728-1596, and the public data is a 24-digit number 367368971209437083569112. In actual application, the length of input information and public data is much longer than the above example;

[0303] Calculate 13673689712094370835691121 / 137281, and get 99603657549802018019.180520246793. Discard the 8 high-order digits of the integer part to get 549802018019.180520246793. Select the 24-bit value and get a as 549802018019180520246793.

[0304] Calculate 13673689712094370835691121 / 115961, and get 117916279715545492326.65396986918. Discard the 8 high-order digits of the integer part and get 9715545492326.65396986918. Select the 24-bit value and get b as 971554549232665396986918.

[0305] Perform a modulo operation on a and b bit by bit with modulo 10 to generate secondary information. The specific operation is as follows:

[0306] a:549802018019180520246793

[0307] b:971554549232665396986918

[0308] Modulo 10 arithmetic

[0309] Secondary information: 410356557241745816122601

[0310] The above division operation is a one-way data conversion algorithm with characteristics 1, 2, 3, and 4, as shown below:

[0311] It is computationally feasible to generate certain secondary information from the input information by division operation, and feature 1 is met.

[0312] Since modular arithmetic is used in the process of generating secondary information, it is impossible to infer a and b from the secondary information, and thus the input information cannot be inferred either. Feature 2 is met.

[0313] From the above division operation, effective secondary information that is significantly larger than the input information length and determined by the common data length can be output, ensuring a non-degenerate transformation from the input information to the secondary information; since the high-order digits of the division result are discarded, a single value change of the input information can cause a global change in the calculated value, so the above data conversion is nonlinear. Feature 3 is available.

[0314] Obviously, any input information can be converted into a certain non-negative integer smaller than its value space value, so it can be used as a legal input. Feature 4 is available.

[0315] From the above calculation, it can be seen that it is difficult to infer the input information from a or b before the decimal part is repeated.

[0316] The calculation speed of the key generated by the above-mentioned division one-way data conversion algorithm is inversely proportional to the key length, which is comparable to the speed of the fastest encryption algorithm currently available.

[0317] The public data can be commonly used in the method using different master keys. As the public information of the system, it can be publicly stored and transmitted. The master key is still the only variable private information in the system that needs to be shared with different legal communicators. Under the existing information and computer technology conditions, the introduction of the public data does not increase the additional information storage burden of the communication equipment using the method of the present invention.

[0318] In the division operation used in this embodiment and other one-way data conversion algorithms described in the following embodiments, the randomness requirements for the public data are not high. As long as there are no large numbers of repeated fragments of digital information, it can be used as qualified public data. For example, the random number generator in the computer accessory can be used to generate public data.

[0319] In addition, except for extremely special keys, such as those composed entirely of 0, in the division operation of this embodiment, when the length of the secondary information is much larger than the length of the input information but not close to the non-negative integer value corresponding to the input information, 1 or other simple numerical values ​​can be used as default values ​​to replace the public data. The above premise is easily met. For example, using the above 8-digit input information 3-7-2-8-1-5-9-6, the length of the secondary information that meets the above premise can reach thousands of digits.

[0320] In some embodiments, the one-way data conversion algorithm may employ a common data conversion under the control of input information.

[0321] The system information of the key generation module adds a public database based on the master key and the one-way data conversion algorithm, and is configured to store public data. The public data can be configured to use random numbers generated by a random number generator in a common computer accessory.

[0322] The common data conversion under the control of the input information is configured to convert the common data into secondary information under the control of the input information.

[0323] The common data conversion under the control of the input information can be constructed with the help of a commonly used encryption algorithm, or the commonly used encryption algorithm can be directly used as the common data conversion under the control of the input information.

[0324] Common encryption algorithms, such as DES, AES, etc., have the basic function of converting plaintext into ciphertext under the control of a key, and usually the number of bits of plaintext and converted ciphertext is much larger than the number of bits of the key; if the key of the common encryption algorithm is used as input information, the plaintext to be encrypted is used as public data, and the ciphertext generated by the encryption algorithm is used as secondary information, then the encryption process of the common encryption algorithm is a one-way data conversion algorithm with characteristics 1, 2, 3, and 4. The proof is as follows:

[0325] The basic function of all encryption algorithms is to easily convert plaintext into ciphertext through a key. Therefore, these encryption algorithms can easily convert public data (plaintext) into secondary information (ciphertext) under the control of input information (key). Feature 1 is available.

[0326] The usual encryption algorithm requires that it is impossible or computationally infeasible to deduce the plaintext from the ciphertext. The difficulty of the computation determines the key strength of the encryption method. In the common encryption algorithm that uses the same key to encrypt different plaintexts multiple times, it is also infeasible to infer the key from the ciphertext and the corresponding plaintext. Feature 2 is available.

[0327] An effective encryption algorithm also requires that the transformation from key and plaintext to ciphertext is nonlinear, requiring that a small change in the key or information in the plaintext can cause a global change in the generated ciphertext that cannot be predicted based on the amount of change in the key or information in the plaintext; using a key to encrypt plaintext data with a number of bits far greater than the number of key bits to generate a ciphertext with a number of bits far greater than the number of key bits is also a basic requirement of common encryption algorithms, ensuring a non-degenerate transformation from input information to output information. Feature 3 is available.

[0328] In addition to the public key algorithm, in the commonly used encryption algorithms, any bit combination that conforms to the key format can be used as a key and become valid input information, and feature 4 is possessed.

[0329] Different from the application scenarios of commonly used encryption algorithms, in the method described in the present invention, the intermediate key is used as a one-time input information to participate in the public data conversion to generate secondary information and keys. Therefore, attacks against commonly used encryption algorithms are usually ineffective against the encryption method and information security system constructed using the method described in the present invention.

[0330] Therefore, many existing encryption algorithms can be used as one-way data conversion algorithms for the method described in the present invention.

[0331] In other embodiments, a one-way data conversion algorithm having characteristics 1, 2, 3, and 4 may be selected from a number of hash functions.

[0332] In another embodiment, the public data conversion under the control of the input information adopts a combination modular operation. The public database can be configured to consist of N sequences of the same length, identified by numbers from 0 to N-1, called seeds, each of which contains the same number of bits; accordingly, the input information is configured to consist of a sequence of M numbers in sequence, each of which sequentially points to M seeds identified by the numbers.

[0333] The one-way data conversion algorithm can be implemented as follows:

[0334] Sequentially extract the M seeds pointed to by the numbers in the input information; perform a modulo operation on the M seeds to generate secondary information with the same format as the seed.

[0335] The combined modular operation is a one-way data conversion algorithm with characteristics 1, 2, 3, and 4, as shown below:

[0336] Selecting M seeds determined by the numbers in the input information from the input information and performing a modular operation can conveniently generate secondary information determined by the input information, and feature 1 is met;

[0337] The secondary information is generated by selecting the corresponding seeds in the public database according to the number in the input information, and these seeds are generated by modular operation; according to the characteristics of modular operation, as mentioned above, any sequence with the same format as the secondary information can be used with a suitable sequence of the same format to generate the secondary information through modular operation, therefore, before trying all seed combinations, any seed in the public data cannot be excluded; the number of different combinations of numbers in the input information, that is, the possible seed combinations mentioned above, is equal to the value space of the input information; in the case of hiding the input information, the difficulty of detecting the corresponding input information from the secondary information is no less than that of randomly guessing the input information, therefore, the substantive information of the corresponding input information cannot be detected from the secondary information. Feature 2 is available.

[0338] Since the input information is composed of seed numbers, a change in a single bit in the input information will change a number value, thereby changing the seed involved in the combination. Since the secondary information is equal in length to the seed, changing a single seed involved in the combination will cause a global change in the generated secondary information. Therefore, the combined modular operation combines a strict nonlinear transformation; and the length of the generated secondary information can be significantly greater than the length of the input information, ensuring a non-degenerate conversion from the input information to the secondary information. Feature 3 is available.

[0339] Obviously, any input information can be converted into the number sequence, and thus can be used as legal input information. Feature 4 is present.

[0340] When the seed information in the database is kept private, the combined modular operation is a strict one-way data conversion algorithm; when the seed information in the database is public, it is necessary to use the master key and timestamp as input information as described above to generate an intermediate key through a one-way data conversion algorithm; when the above-mentioned one-way data conversion algorithm is used to generate the intermediate key, a change in a single bit in the timestamp will cause an unpredictable global change in the intermediate key. When the intermediate key information is not public, the secondary information and the key generated by the secondary information cannot be inferred from the change in the timestamp, and the combined modular operation combines strict one-way data conversion.

[0341] Combinatorial modular operations can significantly improve the efficiency of key generation when the number of seeds is large enough. N When there are 256 seeds, the efficiency of combined modular operations can be increased by nearly N times. For example, if 256=2 8 In a key generation system with a bit key, the division operation to generate the key requires about 256 addition operations. If 256 seeds are used, each seed number is 8 bits, and the combined modular operation only requires 32 modular addition operations, the efficiency is improved by 8 times.

[0342] In another embodiment, the one-way data conversion algorithm uses a combination modular operation, and the public database is configured as a ring sequence containing N*M elements connected end to end, and the ring sequence is divided into N units of length M, each of which is identified by a number from 0 to N-1; the ring sequence is divided into units of length M in order to be able to perform shift modular operations, which will be described in detail later;

[0343] The seed is configured to start from one of the units and extend in the same direction across the entire annular sequence to form a sequence with a length of N*M, with the starting unit number being used as the corresponding seed number.

[0344] N seeds having the same number of bits as the circular number sequence can be determined from the circular number sequence formed by the N*M elements; the use of the circular number sequence can maintain the maximum number of seeds containing the largest number of bits with the minimum public database capacity.

[0345] Combine the following Figure 3 A specific example of the combined modular operation is described.

[0346] like Figure 3 As shown, the public database is a 64-bit binary circular sequence, divided into 16 4-bit units, and the unit sequence is identified by a 4-bit binary number from 0000 to 1111. In practical applications, the length of the circular sequence should be much larger.

[0347] 16 seeds can be derived from the binary circular sequence, each seed starts from one of the units and spans the entire circular sequence to form a 64-bit binary sequence of the same length as the circular sequence, and the unit number is used as the corresponding seed number.

[0348] For example, Figure 3As shown, the seed numbered 0101 starts from the unit '1001' numbered 0101 in the circular sequence, extends sequentially to the unit '1100' numbered 1111, further crosses the unit numbered 1111, connects with the starting unit '1010' numbered 0000, and ends at the unit '0110' numbered 0100, forming a binary sequence with a length of 64 bits.

[0349] The input information is a 16-bit binary number sequence containing 4 seed numbers in sequence: 1010-0110-0111-0101.

[0350] Combinatorial modular arithmetic uses the following steps:

[0351] Sequentially select the seeds with corresponding numbers in the input information: 1010, 0110, 0111, 0101, and number the seeds in the selected order, such as Figure 3 As shown, the sequence numbers are 0 to 3;

[0352] Before the modular operation, the selected seed is shifted to shift the bits of the selected seed sequence in the same direction by the number of bits corresponding to the corresponding sequence number value; for example, Figure 3 As shown, the sequence of seed No. 0 1010 remains unchanged, the sequence of seed No. 1 0110 is shifted back by 1, and the extra digit at the end is folded back to keep the length of the sequence unchanged; in the same way, the sequences of seed No. 2 and No. 3 are shifted back by 2 and 3 digits respectively; the folded back digits are in Figure 3 The following are underlined:

[0353] The above shifted sequence is subjected to modular operation to generate secondary information. Using binary sequence, modular operation becomes XOR operation which is convenient for computer operation. For bit-by-bit XOR operation of multiple sequence, it is only necessary to count the number of 1s in the corresponding position. The result of an odd number of 1s is 1, and the result of an even number of 1s is 0.

[0354] By using shift modulo operation, it is ensured that different secondary information is generated from input information containing different sequential combinations of the same seed, so that the secondary information and the input information maintain a one-to-one correspondence in statistics.

[0355] Obviously, in the above-mentioned combined modular operation, a change of a single bit in the input information will cause an unpredictable global change in the generated secondary information, ensuring that the conversion from the input information to the secondary information complies with a strict nonlinear transformation.

[0356] Obviously, in the above-mentioned combined modular operation, the input information 0000-0000-0000-0000, which is composed of all zeros, points to 4 different variants of the seed numbered 0000, which is equivalent to 4 different number series. The input information has the same complexity as other input information; therefore, unlike the commonly used algorithms, in the combined modular operation, when the input information format is fixed, all input information has the same complexity.

[0357] In some embodiments, by Figure 1 and Figure 2 The process described in the above embodiments can adopt different one-way data conversion algorithms, different intermediate key generation methods, and different combinations of these one-way data conversion algorithms and intermediate key generation methods to construct a key generation method suitable for specific purposes.

[0358] With the help of the above embodiments, this specification shows that the method described in the present invention can be used with the help of a timestamp that can use any information, at least one one-way data conversion algorithm, and a master key to generate and securely distribute any required number of independent keys with a key strength equivalent to the number of bits of the master key.

[0359] Back to Figure 1 The above method generates a key from a timestamp through the following data conversion chain: timestamp + master key → intermediate key → secondary information → key, and the output timestamp and key are at both ends of the data conversion chain.

[0360] Since a one-way data conversion algorithm is used in the conversion process from intermediate key to secondary information, the possibility of inferring previous information, including intermediate key and master key, from the generated secondary information and key is cut off, ensuring that the system can arbitrarily output keys without affecting the security of the master key; due to the arbitrariness of the information in the timestamp, it can be independent of the key generation method, so the timestamp used to distribute the key does not expose any system information; the above features ensure that the system's unique private information master key always remains safe during key generation and application.

[0361] By means of the nonlinear characteristics of the one-way data conversion algorithm used in the method of the present invention described in the above embodiments, a change in a single bit of the intermediate key will cause a global change in the corresponding secondary information and the information in the key; the intermediate key information is not disclosed, which cuts off the way to infer the generated secondary information and the corresponding key from the change in the intermediate key caused by the information change in the timestamp, so that the key can be securely distributed through the timestamp. In some embodiments, the one-way data conversion algorithm is introduced in the process of timestamp+master key→intermediate key, which further reduces the requirements for the one-way data conversion algorithm and expands the scope of application of the method.

[0362] In the system, the system information including the master key is fixed, and the key information is ultimately determined by the timestamp. The timestamp that can select any information has an open value space, which ensures the independence of the information in the timestamp and can generate any required number of independent keys corresponding to the timestamp.

[0363] As the only private information in the system, the master key participates in the generation of the intermediate key. The intermediate key is generated by using the timestamp and the master key through a non-degenerate combination, which ensures that the intermediate key can inherit the key strength of the master key on the one hand, so that the method can conveniently generate and distribute keys with the same strength as the master key with the help of a shorter timestamp, and on the other hand, it inherits the independent information in the timestamp, so that the system can generate an independent key through the intermediate key by using the timestamp of any information.

[0364] Therefore, the method of the present invention generates an intermediate key that is not disclosed to the public by non-degenerately combining an independent timestamp that can use any information with a master key, converts the intermediate key into secondary information through a one-way data conversion algorithm, and extracts the key from the secondary information, thereby achieving two goals that are difficult to achieve with the prior art:

[0365] 1. The arbitrariness of the information in the timestamp enables the system using the method of the present invention to use a universal timestamp that is independent of the system and algorithm and does not expose system information to distribute keys, eliminating the possibility of attacking the system during the key distribution process, and at the same time eliminating the possibility of detecting secondary information and keys that inherit the key strength of the master key from the information in the universal timestamp and rely on system information, thereby constructing an ideal key security distribution scheme according to the above method;

[0366] 2. The independence of the information in the timestamp ensures that the intermediate key generated by the non-degenerate combination of the timestamp and the master key inherits the independent information in the timestamp, ensuring the independence of the secondary information and key generated by the intermediate key through the one-way data conversion algorithm; therefore, even if the secondary information and key information are all exposed after use, the essential information of the newly generated and sent key cannot be inferred from all the key information that has been generated and used; thus, an ideal key generation mechanism can be constructed according to the above method.

[0367] In the above embodiment, by introducing a method of generating an intermediate key by non-degenerate combination of a timestamp and a master key, two beneficial results are simultaneously produced:

[0368] 1. The intermediate key can inherit the key strength of the master key. Therefore, a high-strength key determined by the number of bits of the master key can be generated and distributed using a short timestamp, thus achieving convenient key generation and distribution.

[0369] 2. The time when the key is generated can be used as the timestamp, while ensuring that the information in the timestamp is not repeated and the number of timestamps that can be generated is open, thereby ensuring that the number of intermediate keys, secondary information, and keys generated by the timestamp is open, and realizing the generation and distribution of any desired number of independent keys.

[0370] In the above embodiment, the timestamp and the master key are used as common input information, and a key that can inherit the strength of the master key and the independent information in the timestamp is generated through a non-degenerate one-way data conversion algorithm; by taking advantage of the arbitrariness of the information in the timestamp and the openness of the value space, an unlimited number of keys are generated and securely distributed through a universal timestamp that is independent of the key generation method. The above embodiment also describes some specific key generation processes using the method, as well as a one-way data conversion algorithm that can be used for the method, and conducts a preliminary evaluation of the one-way nature of the algorithm and the security of the process.

[0371] With the help of the method described in this embodiment, the present invention solves the problem of convenient generation and secure distribution of independent keys with required key strength that can meet any required number. By using the timestamp as a user identification code, the method can be used to build a universal and reliable key management system, relying on a master key to efficiently and conveniently manage the keys of a complex system that can include any number of users; by using the key as a one-time key to encrypt plaintext information with the same number of bits, and using the corresponding timestamp as a decryption clue, the method can be used to build a universal encryption algorithm that can be proven to be secure in informatics theory, relying on an exclusive shared master key, to achieve efficient, convenient, and unlimited secure information exchange.

[0372] <Second Embodiment>

[0373] Next, we will combine Figure 4 A specific example of generating a key according to the second embodiment is described. The one-way data conversion algorithm adopts a common data conversion under the control of input information. That is, the one-way data conversion algorithm uses the input information as control information to perform data conversion to generate output information.

[0374] like Figure 4 As shown, the system information may include a master key 401, a public database 402, and one-way data conversion algorithms 403, 404, and 405;

[0375] In the method of the second embodiment, the system information further includes public data stored in a public database of the key generation device, and the number of bits included in the public data is much larger than the number of bits included in the master key.

[0376] In this example, the one-way data conversion algorithm uses the input information as control information and performs data conversion on the common data to generate output information.

[0377] The following steps can be taken to generate a key:

[0378] Using the master key 401 as input information, under the control of the master key 401, the public data 402 is converted into private data 410 through a one-way data conversion algorithm 403;

[0379] Generate a timestamp 411 composed of non-repeating arbitrary information, use the timestamp 411 as input information, and generate an intermediate key 412 from the private data 410 through a one-way data conversion algorithm 404 under the control of the timestamp 411;

[0380] Using the intermediate key 412 as input information, the public data 402 is converted into secondary information 413 through a one-way data conversion algorithm 405 under the control of the intermediate key 412;

[0381] Information is extracted from the secondary information 413 to generate a key 414, and the key 414 is associated with a corresponding timestamp.

[0382] In one embodiment, the common data conversion under the control of the input information may adopt a combinational modular operation.

[0383] Correspondingly, the public database 402 can be a 512Kb binary ring sequence, using a method similar to Figure 3 As shown, it is divided into 65536=2 16 units, each unit is 64 bits long, composed of 64 0s or 1s in sequence, and identified by a 16-bit number; the seed starts from one of the units and spans the entire circular sequence in the same direction to form a 512Kb binary sequence, using the starting unit number as the corresponding seed number; 2 can be extracted from the public database 402 16 A 512Kb seed, identified by a 16-bit number.

[0384] The master key 401 may be a 1024-bit undisclosed binary random number sequence, which is composed of 1024 0s or 1s in sequence, which sequentially contain 64 16-bit seed numbers and sequentially point to 64 seeds.

[0385] The one-way data conversion algorithm 403 may use the following combined modular operations:

[0386] Using the master key 401 as input information, 64 seeds pointed to by the numbers in the master key 401 are sequentially extracted from the public database 402;

[0387] The extracted seeds can be subjected to a process similar to Figure 3 The shift modulo operation shown; specifically, the selected 64 seeds are numbered from 0 to 63 according to the extraction order, and the seed sequence is shifted in the same direction by the number of digits corresponding to the sequential number value of the seeds. For example, the number 0 sequence remains unchanged, the number 1 sequence is shifted back by 1 bit, the number 2 sequence is shifted back by 2 bits, and so on. The extra value at the end is folded back to keep the length of the sequence unchanged; the introduction of the shift operation can statistically ensure that the input information and the generated secondary information correspond one to one.

[0388] The binary seed that undergoes the above shift operation is subjected to a modulo operation, which can be done as follows: Figure 3 The XOR operation shown generates 512Kb of private data 410.

[0389] The key generation device generates a timestamp 411 according to the current time, takes the timestamp 411 as input information, and generates an intermediate key 412 through a one-way data conversion algorithm 404 for the private data 410 .

[0390] The one-way data conversion algorithm 404 may use the following combined modular operations:

[0391] Sequentially divide the 512Kb private data 410 into 4096=2 12 1024-bit information fragments, each of which is identified by a 12-bit number; the information in the private database 410 only appears in the encryption process and only exists in the computer memory or cache.

[0392] A 48-bit timestamp is used, including an 8-bit year, a 4-bit month, a 5-bit date, a 5-bit hour (using a 24-hour system), a 6-bit minute, and a 6-bit second. The remaining 14 bits are used as redundant information, which can be filled with random information as a backup to maintain the stability of the timestamp format. It can be used as extended information when needed. For example, a time code of less than 10 bits per second can be added during high-frequency encryption to increase the time resolution of the encryption system to milliseconds. Four more bits can be added to the year code to increase the effective time span of the encryption system using the method to 2 12 =4096 years.

[0393] The 48-bit timestamp may sequentially include four 12-bit numbers, sequentially pointing to the four information fragments in the private database 410 .

[0394] Using the timestamp 411 as input information, select the information fragments corresponding to the 4 numbers in the timestamp 411 from the private database 410 in sequence, and generate a 1024-bit intermediate key 412 through the shift modulo operation described above; the intermediate key information only exists in the computer memory or cache.

[0395] The encoded information of the year, month, date, hour, minute, second and backup information may be dispersed into different numbers in the timestamp, maintaining a highly dynamically changing intermediate key.

[0396] Specifically, for example, the timestamp 411 may be in the following format:

[0397] Y 1 M 1 D 1 H 1 m 1 S 1 Y 2 rD 2 H 2 m 2 S 2 -Y 3 M 2 D 3 H 3 m 3 S 3 Y 4 rrrm 4 S 4 -Y 5 M 3 D 4 H 4 m 5 S 5 Y 6 rrrrr-Y 7 M 4 D 5 H 5 m 6 S 6 Y 8 rrrrr

[0398] Among them, Y represents the binary code of the year placed at that position, and the subscript indicates the sequence of the binary code from left to right. Similarly, M represents month, D represents day, H represents hour, m represents minute, S represents second, and r represents spare number.

[0399] For example, the timestamp of 15:36:57 on November 26, 1998 is constructed as follows:

[0400] 1998 is greater than the maximum value of 255 that can be encoded in 8 bits. Divide it by 256 and take the remainder to get 206, which is encoded in binary as 11001110, corresponding to Y in the above timestamp format. 1 Y 2 Y 3 Y 4 Y 5 Y 6 Y 7 Y 8.

[0401] In November, the binary code of 11 is 1011, which corresponds to M in the above timestamp format. 1 M 2 M 3 M 4 ;

[0402] On the 26th, the binary code of 26 is 11010, which corresponds to D 1 D 2 D 3 D 4 D 5 ;

[0403] 15, the binary code of 15 is 01111, which corresponds to H 1 H 2 H 3 H 4 H 5 ;

[0404] 36 points, take the binary code of 36 100100, which corresponds to m in the above timestamp format 1 m 2 m 3 m 4 m 5 m 6 ;

[0405] 57 seconds, the binary code of 57 is 111001, which corresponds to S in the above timestamp format. 1 S 2 S 3 S 4 S 5 S 6 ;

[0406] Therefore, the valid information corresponding to the timestamp at 15:36:57 on November 26, 1998 is: 1110111r1101-0001010rrr10-1111001rrrrr-1101010rrrrr;

[0407] The key generation module randomly generates a 14-bit binary backup number, such as 01101011011001, which sequentially replaces the undetermined r in the above timestamp. The timestamp used in the final calculation is:

[0408] 111011101101-000101011010-111100110110-110101001001;

[0409] The timestamp encoding method can ensure that the information in two adjacent timestamps can encode more than two different numbers, corresponding to more than two different information units in the private database, thereby maintaining the high dynamics of the corresponding intermediate key;

[0410] The format of the above-mentioned timestamp can be set to a check code consisting of 14 bits of information immediately following the current time. For example, a hexadecimal-coded check code can be used. The above-mentioned additional information can be grouped as 0110-1011-0110-01, and the check code is 6B61. The format of the above-mentioned timestamp can be 1998-11-26-15-36-57-6B61, which is convenient for reading and communication equipment processors to identify and process.

[0411] The 48-bit timestamp encoding can be expanded to support the application requirements of 1024 key generation frequency per second and a time span of 4096 years, and can be expanded at any time without affecting the operation speed and key generation process. For example, using a 72-bit timestamp, only two modular operations are required in the intermediate key generation process, further expanding the number of keys that can be encoded and distributed by 2 24 times.

[0412] Using the intermediate key 412 as input information, under the control of the intermediate key, the public data 402 is converted into secondary information 413 through a one-way data conversion algorithm 405;

[0413] The 1024-bit intermediate key can be divided into 64 16-bit numbers in the same manner as the master key. The one-way data conversion algorithm 405 can use the same algorithm as 403:

[0414] 64 seeds pointed to by the intermediate key 412 are sequentially extracted from the public database 402, and the seeds are subjected to shift modulo operation to generate a 512Kb secondary information 413, and a key of the required length is extracted from the secondary information 413; the longest secondary information of 512Kb can be used as a one-time key to encrypt plaintext of the same number of bits through modulo operation; a 1024-bit key with the same length as the main key can also be extracted.

[0415] Generating intermediate keys by means of the private database described in this embodiment will not significantly increase the amount of calculation required to generate the key. Generally, the private database can be calculated only once in an encryption application and used as a cache to generate all the keys required for this encryption application. Therefore, in application scenarios with high encryption speed requirements, such as real-time secure communications and large-capacity information encryption and decryption, the additional amount of calculation required for the one-time private database generation has a negligible impact on the overall encryption speed.

[0416] By adopting the above process, the key strength of the generated key is 1024 bits, while ensuring that the master key information is not leaked through any means other than the key and timestamp output from the system.

[0417] Different from the key length in public key algorithms or some encryption algorithms, for example, the 1024-bit key recommended in public key algorithms usually refers to the number of bits of the key used. Since the optional integer values ​​of the key in the public key algorithm are discontinuous, the actual key space is much smaller than 2. 1024 According to the key selection rule, the success rate of guessing an undisclosed random public key is much greater than 1 / 2 1024 , the corresponding key strength can be significantly less than 1024 bits; the key strength in the embodiment of the present invention can be equivalent to the number of bits of the master key, and the possible values ​​of the 1024-bit master key are evenly distributed in 2 1024 The success rate of randomly guessing an undisclosed random master key is not significantly greater than 1 / 2 1024 , the system's key strength is 1024 bits.

[0418] A 1024-bit key is considered unbreakable in the real physical world. A 1024-bit key means that an attacker who does not have the key information needs to obtain the file information encrypted by the key with a certainty of nearly 2 1024 attempt; estimates obtained using different statistical methods may be slightly lower than this value, but they are not orders of magnitude different. The real world, which follows the basic laws of physics, has the following physical limitations: information processing speed cannot be faster than the speed of light, which is 3x10 8 m / s; the size of the observable universe is about 14 billion light years, about 1.4x10 10 x10 16 =1.4x10 26 meters, the corresponding age of the universe is about 14 billion years, about 1.4x10 10 x3x10 7 =4.2x10 17 seconds; the diameter of the smallest manipulable particle, such as a nucleus, is 10 -15 Under these physical laws, imagine a 10 -15 The processor of meters reads information at the speed of light, so the upper limit of the processing speed of a single processor is (3x10 8 m / s) / (10 -15 m), that is 3x10 23 times / second; Imagine a computer with the same size as the current universe, the upper limit of the number of processors that can be included is (1.4x10 26 rice) 3 / (10 -15 rice)3 =2.8x10 123 The upper limit of the information processing speed of the computer is (3x10 23 times / second)x(2.8x10 123 =8.4x10 146 times / second; at the current age of the universe, the upper limit of the amount of calculation that can be completed is (8.4x10 146 times / second)x(4.2x10 17 seconds) = 3.53x10 164 times, no more than 2 547 Therefore, a key with a strength of 1024 bits cannot be cracked in the real world that obeys the laws of physics.

[0419] The above estimate assumes that processors can freely collaborate and divide the work to complete the calculation. Under the speed of light limit, the above collaboration is actually impossible to achieve on a computer of the size described above. Collaborative division of labor also requires additional computing resources. Therefore, the upper limit of the amount of computation that can be completed needs to be further lowered. Different minimum operable particle sizes, the range of the observable universe, and the age of the universe may give different estimates, but they have little effect on the conclusions described above.

[0420] The above-mentioned key strength of 1024 bits, which can be proven to be secure in information theory, can be considered as an unconditionally secure key in the real world that follows basic physical laws.

[0421] Using the process described in this embodiment, the amount of calculation required to generate a 1024-bit key is slightly greater than 64 XOR operations; the four 48-bit XOR operations to generate the intermediate key are converted to a 512Kb one-time key, and the increase ratio is (4x48) / (512x8x64)=0.07%, which is close to 0.

[0422] The secondary information generated by the above method can be used as a one-time key, and the ciphertext can be generated through modular operations with the plaintext information of the same format. The corresponding timestamp can be used as a decryption clue, and the ciphertext can be transmitted between communicators who share the master key. This can construct an encryption method that can be proven to be secure in informatics theory. In the above encryption method with a key strength of 1024 bits, the amount of calculation in the encryption and decryption process is 65 modular operations, of which 64 are used to generate the one-time key and 1 is used to generate the ciphertext or restore the plaintext information from the ciphertext.

[0423] The encryption method using the method of the present invention can be efficiently implemented on a conventional portable communication device. For example, using a conventional portable intelligent communication device with a 1 GHz processor, the speed of processing the unconditionally secure ciphertext information with a key strength of 1024 bits is 15 Mbps, and the 512 Kb public database storage space is also easily implemented on current common intelligent communication devices.

[0424] In the embodiment, the common data and the corresponding algorithm parameters can be conveniently adjusted to meet different application requirements.

[0425] In another embodiment, the public database 402 may use a 4Kb circular sequence, including 256 128-bit units, from which 256 4Kb seeds may be extracted, using 8-bit seed numbers. Then, generating a 1024-bit strength key requires 128 modular operations, the length of the one-time key is 4Kb, and the encryption and decryption process requires 129 modular operations.

[0426] Generating a 256-bit key in the current mainstream encryption protocol requires 32 modular operations, and the encryption and decryption process requires 33 modular operations.

[0427] Obviously, according to the above embodiments, an encryption algorithm with a key strength of 2048 bits or higher can be easily implemented.

[0428] In the encryption algorithm using the above method, the information capacity of the main ciphertext and the plaintext is the same, and the number of bits of the timestamp attached to the ciphertext used as a decryption clue is negligible compared to the main ciphertext. Therefore, the information carrying ratio of the ciphertext can be close to 1, forming an efficient encryption method.

[0429] The above embodiments demonstrate that the method of the present invention can be used to generate and securely distribute any desired number of keys that are unconditionally secure in the real physical world on common communication devices; the key is used as a one-time key to encrypt plaintext information with the same number of key bits, an encryption algorithm that can be proven to be secure in informatics theory can be constructed, and unconditionally secure communication in the real physical world can be achieved. The information processing speed and file transmission efficiency of the information security system using the encryption algorithm can be significantly higher than existing encryption applications.

[0430] <Third Embodiment>

[0431] Next, we will refer to Figure 5 A key generating apparatus according to an embodiment of the present invention is described.

[0432] like Figure 5 The key generation device 500 of the embodiment of the present invention shown may include:

[0433] The system information module 510 is configured to store and / or generate system information of the key generating device, which may include a master key, at least one one-way data conversion algorithm, and a public database may be added as needed; the one-way data conversion algorithm generates output information determined by the input information based on the input information, wherein it is not feasible to infer or / and deduce the input information from the output information.

[0434] A key generation module 520, configured to generate a timestamp that can be encoded by any non-repeating information, and generate a key corresponding to the timestamp according to the system information;

[0435] The transmission module 530 is configured to receive and send timestamps.

[0436] The key generation module 520 generates a key by using one or more of the system information in the system information module 510 and by using the method described in the previous embodiment, and the following process may be adopted:

[0437] Generate the timestamp; generate an intermediate key by calculating the information in the timestamp and the information in the master key; use the intermediate key as input information to generate secondary information through the one-way data conversion algorithm; extract information from the secondary information to generate key A, and associate the timestamp with key A.

[0438] The transmission module 530 sends the timestamp A to the paired key generation device; the paired key generation device has the same structure as the key generation device 500 and uses the same system information.

[0439] In another embodiment, the transmission module 530 may also receive a timestamp B sent from a paired key generation device; the key generation module 520 is further configured to generate a corresponding key B according to the received timestamp B, relying on the system information 510 and adopting the above-mentioned steps.

[0440] The key generation module 520 is further configured to generate the timestamp.

[0441] The key generation module 520 may generate a key according to the method of the previous embodiment.

[0442] For example, the key generation module 520 can be configured to perform operations on the timestamp and the master key to generate an intermediate key; use the intermediate key as input information to generate secondary information through the one-way data conversion algorithm; extract information from the secondary information to generate a key; and associate the key with the timestamp corresponding to the key.

[0443] In addition, the key generation module 520 may generate the intermediate key using a non-degenerate combination of the timestamp and the master key.

[0444] In one example, the key generation module 520 is further configured to use the timestamp and the master key as input information to generate the intermediate key through a second one-way data conversion algorithm.

[0445] Although not shown in the figure, the key generation device 500 may further include a public database. The public database may be configured to store public data, the number of bits included in the public data being much larger than the number of bits included in the master key.

[0446] The key generation module 520 may also use the public data as input information, generate secondary information through the one-way data conversion algorithm; extract information from the secondary information to generate a key; and associate the key with a timestamp corresponding to the key.

[0447] In some examples, the one-way data conversion algorithm further performs data conversion on the common data using the input information as control information, and the data conversion employs a combinatorial modular operation.

[0448] For example, the public data is configured to be composed of N number sequences of the same length, each of which contains the same number of bits, and is identified by a number indicating 0 to N-1 with the same number of bits, and is called a seed. The control information is configured to be a number sequence composed of M number sequences, and sequentially points to M seeds identified by the numbers.

[0449] The combined modular operation is configured to sequentially extract the M seeds pointed to by the numbers in the control information from the public data, and then perform modular operation on the M seeds to generate secondary information with the same format as the seed, where N and M are positive integers.

[0450] In addition, the public data can be configured as a circular sequence of N*M elements connected end to end, the circular sequence is divided into N units of length M, and each unit is identified by a number from 0 to N-1. Then, the seed is configured to start from one of the units and extend across the entire circular sequence in the same direction to form a sequence of length N*M, with the starting unit number as the seed number.

[0451] The key generation module 520 can also use the master key as control information, and under the control of the master key, convert public data into private data through a second one-way data conversion algorithm; use the timestamp as control information, and under the control of the timestamp, generate an intermediate key from the private data through a third one-way data conversion algorithm; use the intermediate key as control information, and under the control of the intermediate key, convert the public data into secondary information through the one-way data conversion algorithm; extract information from the secondary information to generate a key; and associate the key with the corresponding timestamp.

[0452] The one-way data conversion algorithm, the second one-way data conversion algorithm and the third one-way data conversion algorithm use the same or different one-way algorithms.

[0453] The transmission unit 530 may also receive a second timestamp sent from a paired key generation device. Then, the key generation module 520 uses the master key and the second timestamp to generate a second key corresponding to the second timestamp through the one-way data conversion algorithm.

[0454] This embodiment shows that the method of the present invention can be used to securely generate and exchange any desired number of independent keys with a key strength equivalent to the number of bits of the master key between legitimate communicators who share a master key through a key generation device 500. The key generation device described in this embodiment can be used as a basic module of a communication device to build a multi-purpose information security system to achieve secure information exchange with a desired key strength that can be proven to be secure in informatics theory as described in the method of the present invention.

[0455] <Fourth Embodiment>

[0456] Next, we will refer to Figure 6 A key management system according to an embodiment of the present invention is described.

[0457] like Figure 6 The key management system 600 of the embodiment of the present invention shown includes a management terminal 610 and one or more user terminals 620. The user terminal device stores a user identification code of a corresponding user.

[0458] The user terminal 620 includes each user 620-i belonging to the system; the serial number i is only used in this specification to indicate that the user terminal 620 includes different users and has no substantial meaning. In specific system management, each user belonging to the system can be identified by its user identification code.

[0459] The management end 610 includes: a control module 611, configured to generate and receive a user identification code; a user information module 612, configured to store the user identification code; a key generation module 613, using the key generation device as described in the third embodiment, configured to use the user identification code as a timestamp to generate a user key corresponding to the user identification code.

[0460] The control module 611 may generate any information for identifying the identity of each of the multiple users as a user identification code of the user.

[0461] The control module 611 generates a user identification code i for each user 620-i, and stores the user identification code i in the user information module 612; the user identification code may be a piece of arbitrary information, for example, user feature information plus some random information, and the user identification code may be in the form of a QR code, a bar code, or the like, which is convenient for common information technology equipment to read;

[0462] The key generation module 613 responds to the user identification code i from the user information module 612, uses the user identification code i as a timestamp, generates a corresponding user key i, and submits the user key i and the corresponding user identification code i to the corresponding system user 620-i in the user terminal 620 to implement key distribution;

[0463] When the key of user 620 - i is lost, the user terminal submits a key recovery application to the management terminal 610 ; the management terminal 610 may require the user terminal to submit a user identification code i.

[0464] The management end 610 receives the user identification code i through the control module 611; the user information module 612 can detect whether the user identification code i matches the information stored in the system; the key generation module 613 uses the user identification code i as a timestamp, generates a user key i corresponding to the user identification code i, and submits the user key i to the user 620-i to recover the user key.

[0465] In some examples, the key generation module 613 includes the key generation device of the previous embodiment and stores a master key, and is configured to generate a corresponding user key for each of multiple users, and pass the user identification code and the corresponding key to the corresponding user terminal device as the user key of the user.

[0466] The key generation module 613 responds to the user identification code sent from the user information module, uses the user identification code as a timestamp, generates a key corresponding to the user identification code, and transmits the user identification code and the corresponding key to the corresponding user terminal device as the user key of the user.

[0467] When the user keys of one or more users are lost, the control module 611 receives the corresponding user identification codes from the user terminal devices.

[0468] The user information module 612 verifies the received user identification code to confirm that the user identification code is the stored user identification code.

[0469] The key generation module 613 uses the user identification code as a timestamp to generate a user key corresponding to the user identification code, and feeds the user key back to the user terminal device.

[0470] Furthermore, the key generation module 613 can also respond to two or more user identification codes from the user information module 612, combine these user identification codes as a timestamp, generate a corresponding key, and distribute the key to the user as a key for communication between the users.

[0471] The key management system described in this embodiment adopts currently commonly used technical means to assign a publicly available user identification code to each user, which may include the user's publicly available personal characteristic information and some random information; the key management system generates and manages user information including the user identification code, uses the user identification code as a timestamp, generates a corresponding user key, and assigns it to the user; and when the user loses the user key, the user key can be conveniently recovered through the system based on the user identification code submitted by the user.

[0472] In this embodiment, the system end can distribute keys to system users in a secure manner. For example, the generated user key can be stored in a medium, such as a disk, a USB flash drive, a paper printout, etc., and the corresponding medium can be marked with the user identification code. The medium can be delivered and transferred to the user in a secure manner, or the user can directly receive the user key from the management end.

[0473] In this embodiment, the user identification code used to generate and restore the user key can be any common information independent of the key management system, which completely avoids the risk of leakage of user key and system master key information during the key management application process.

[0474] In the key management system, except for the system master key which needs to be kept private, other information, including user identification codes, can be public, thereby minimizing the system's operation and maintenance costs; generating and recovering user keys through user identification codes that can be publicly stored or called can effectively prevent key loss, further increasing the reliability of the key management system.

[0475] Through the key management system, keys for multiple users in the system can be generated and maintained securely and conveniently by relying on a system master key. The multiple users can include any desired number of users in the real world. The keys include keys that need to be shared between the users, and the number of keys can be much larger than the number of users and the number of corresponding user identification codes stored.

[0476] In another embodiment, a specific application of the key management system is described.

[0477] Each communicator holds a master key, and all related keys are managed through the key management system.

[0478] The communicator can use the master key as Figure 6 The master key of the key management system shown is generated by the control module 611, which can be an identification code of any information. The identification code is used as a timestamp, and the key generation module 613 is used to generate a trunk key corresponding to the identification code. The trunk key and the corresponding identification code information are stored in the communication device as the master key for a certain period or application scenario. For example, the trunk key can be the master key for communication in the current year, and the year number of the current year, such as 2021, can be used as the identification code.

[0479] Under current technical conditions, a private space that uses an independent processor without external communication connections can generally be considered a secure environment that can meet conventional key management needs. The specific requirements for a secure environment will change with technological development and specific confidentiality requirements.

[0480] The communicator uses his own backbone key as the master key of the next-level key management system, that is, the master key of the application-level key management system, to establish a key management system for different communication objects.

[0481] For example, a communicator can set an identification code for each communication object, which can be any information. The identification code can be set by the communicator himself, or can use the public identification information of the communication object, for example, it can be the name, mobile phone number, ID number, etc. of the communication object, or a combination thereof; the identification code of the communication object can be public and can be mutually recognized.

[0482] Advantageously, it can be suggested that each communicator have a permanent or relatively fixed personal identification code, which may contain information that the communicator is willing to disclose to determine the communicator's identity, and be disclosed to the public in the form of a QR code, bar code, etc. that is easy to be read by existing communication equipment.

[0483] The communicator uses the application-level key management system to generate a communication object key corresponding to the personal identification code based on the personal identification code of the communication object and the backbone key according to the personal identification code of the communication object; and sends the communication object key to the communication object in a secure manner. The communication object stores the key under the sender's electronic business card, which also includes the sender's personal identification code.

[0484] The two communicating parties exchange keys with each other in the above manner to establish a secure connection. The electronic business cards of the two communicating parties who establish a secure connection respectively store the personal identification code of the other party and the key sent from the other party.

[0485] A and B, which have established a secure connection, can communicate securely in the following ways:

[0486] Correspondent A generates a key AB corresponding to the personal identification code of correspondent B through the application-level key management system, and combines it with the key BA generated by correspondent B and stored in the address book to generate the key AB; Correspondent B generates a key BA corresponding to the personal identification code of correspondent A through the application-level key management system, and combines it with the key AB generated by correspondent A and stored in the address book to generate the key BA; a symmetric combination is adopted, and the keys AB and BA are the same, and they are used as the master keys for communication between the two parties, thereby realizing secure communication between A and B.

[0487] The above key management system starts with the communicator master key, passes through the trunk key and the communication object key, and forms a hierarchical key management system, which can achieve the following beneficial effects:

[0488] The trunk key can be generated in an absolutely safe environment for actual communication, avoiding the direct use of the master key, thus enhancing the security of the master key. When the trunk key is leaked, the corresponding trunk key can be terminated, thus limiting the scope of impact to a minimum.

[0489] In the key management system, a key is generated from a key management system of a corresponding level through a publicly available key identification code, which facilitates key management and provides convenience for key management of a large number of dynamic communication objects; at the same time, the key can be easily restored through the key identification code to avoid key loss, thereby enhancing the reliability of the system;

[0490] Using a key combination of both parties to communicate can effectively reduce the risk of mis-sending information. At the same time, when a single party loses their key, they can use a partial key generated by themselves to urgently contact the other party and safely restore the key.

[0491] In large-scale information security systems, key management, including key generation, exchange and confidentiality maintenance, is usually an extremely difficult problem. Through the key management system, the key of a system with unlimited number of users and complexity can be conveniently, efficiently, orderly and reliably managed and maintained by relying on a master key. Through this embodiment, the present invention solves the problem of key generation and security maintenance in large-scale complex information security systems.

[0492] <Fifth Embodiment>

[0493] Next, we will refer to Figure 7 The encryption and decryption apparatus according to the embodiment of the present invention is described.

[0494] like Figure 7 The encryption and decryption device 700 of the embodiment of the present invention shown includes:

[0495] The key generation module 701 adopts the key generation device as described in the third embodiment, and is configured to use the generated secondary information as a one-time key.

[0496] Input port 702, configured to read or input files to be sent;

[0497] The formatting module 703 is configured to convert the file to be sent into a formatted plain text A having the same format as the key;

[0498] The encryption module 704 is configured to convert the formatted plaintext A into a master ciphertext A using the one-time key generated by the key generation module 701, use the timestamp A corresponding to the one-time key as the ciphertext header, and combine the master ciphertext A and the ciphertext header A to generate the ciphertext A;

[0499] The sending port 705 is configured to send the ciphertext A to the paired encryption and decryption device.

[0500] Furthermore, the encryption and decryption device 700 according to this embodiment further includes:

[0501] A receiving port 706, configured to receive a ciphertext B sent from a paired encryption and decryption device;

[0502] The decryption module 707 is configured to parse the received ciphertext B to generate a primary ciphertext B and a timestamp B, and to decrypt the primary ciphertext B by generating a key B corresponding to the timestamp B through the key generation module 701 to generate a decrypted plaintext B;

[0503] The formatting module 703 is further configured to convert the decrypted plaintext B into restored data;

[0504] The output port 708 is configured to output the restored data as a received file, where the received file is the same as the to-be-sent file sent from the paired encryption and decryption device.

[0505] This embodiment shows that the method of the present invention can be used, through the encryption and decryption device 700, with the help of a timestamp composed of non-repeating arbitrary information, relying on a master key to generate a one-time key that can meet any required number of key strengths and can be equivalent to the number of bits of the master key, using the one-time key to encrypt plaintext with the same number of bits to generate ciphertext, using the timestamp corresponding to the one-time key that can be universal and independent of the key generation method as the only decryption clue, the ciphertext can and can only be decrypted by the legitimate communicator who shares the master key information through the timestamp, ensuring that no system information and key information are exposed during the transmission of the ciphertext, thereby realizing an encryption method that can be proven to be secure in informatics theory. The encryption and decryption device can be used as an independent unit in the communication equipment to encrypt and decrypt the communication information, and can conveniently set the required key strength to build an unconditionally secure communication system in the real physical world.

[0506] <Sixth Embodiment>

[0507] Next, we will refer to Figure 8 A file management system according to an embodiment of the present invention is described.

[0508] like Figure 8 The file management system 800 of the embodiment of the present invention shown includes a management terminal 810 and a user terminal 820 .

[0509] The user terminal 820 includes each user 820-i in the system. A user encryption and decryption module 821 is installed on the communication device of each user 820-i. The encryption and decryption device as described in the fifth embodiment is used to encrypt and decrypt file information transmitted between the user 820-i and the management terminal 810. The serial number i is only used in this specification to indicate that the user terminal 820 includes different users and has no substantive meaning. In a specific file management system, each user of the system can be identified by its user identification code.

[0510] The management end 810 includes: a system encryption and decryption module 811, which adopts the encryption and decryption device described in the fifth embodiment and is configured to encrypt and decrypt file information transmitted between the management end 810 and the user end 820; a key management module 812, which adopts the key management system described in the fourth embodiment and is configured to allocate and manage user master keys and user information of system users; a storage module 813, which is configured to store system files.

[0511] The key management module 812 generates a user identification code and a corresponding user master key for each user in the system, and distributes them to each system user 820 - i in the user terminal 820 .

[0512] The user 820-i uses the user master key i to generate a one-time key through the user encryption and decryption module 821 to encrypt the file information to generate a master ciphertext, uses the timestamp corresponding to the one-time key together with the user identification code i as the ciphertext title, combines the master ciphertext and the ciphertext title to generate a ciphertext, and sends it to the management terminal 810 through a regular channel as proof that the user 820-i submitted the file to the management terminal.

[0513] The management end 810 parses the ciphertext received from the user 820-i through the system encryption and decryption module 811, extracts the main ciphertext and the user identification code i and timestamp in the ciphertext header; the key management module 812 generates the corresponding user master key i according to the user identification code i; the system encryption and decryption module 811 generates the corresponding decryption key based on the information in the timestamp and the user master key i, decrypts the main ciphertext, confirms the file information, and stores the ciphertext of the confirmed file information in the storage module 813.

[0514] The management terminal 810 is further configured to generate a user master key i of the target user 820-i through the key management module 812, generate a one-time key to encrypt the file information by relying on the user master key i through the system encryption and decryption module to generate a ciphertext, and send it to the target user 820-i through the public channel;

[0515] The user terminal 820 is further configured such that the user 820-i receives the ciphertext sent from the management terminal through the user encryption and decryption module, decrypts the ciphertext, and restores the file information.

[0516] The user terminal 820 is further configured to send a key recovery request to the management terminal 810 when the user master key i of the user 820 - i is lost.

[0517] The key management module 812 of the management terminal 810 is further configured to generate a user master key i of the user 820 - i according to the user identification code i of the user 820 - i , transmit it to the user 820 - i in a secure manner, and recover the user master key.

[0518] In one embodiment, the management end may be a manager of an institution or company, and the user may be a subordinate user of the manager; the transferred file may be a work report sent by the subordinate user to the manager as proof of the work of the subordinate user.

[0519] By utilizing the file management system, the manager can adopt the method of the present invention to independently and securely exchange work file information with multiple subordinate users by relying on a system master key.

[0520] In another embodiment, the management end may be a publishing house or a patent acceptance agency, and the user may be a contributor or a patent submitter; the transferred file may be an article to be published or patent application materials, serving as proof of the materials submitted by the contributor or patent applicant to the publishing house or patent acceptance agency.

[0521] By using the file management system, the administrator can adopt the method of the present invention to safely and independently process the application information of multiple highly dynamic users by relying on a master key of the system.

[0522] In another embodiment, the key management system 812 may adopt the hierarchical key management system as described in the fourth embodiment. In a similar manner, intermediate management terminals of different levels are set between the management terminal and the user terminal to establish a hierarchical file management system.

[0523] By utilizing the hierarchical file management system, the method of the present invention can be adopted to safely and conveniently manage file information of a complex system through a system master key.

[0524] <Seventh Embodiment>

[0525] Next, we will refer to Fig. 9 A system for secure information delivery according to an embodiment of the present invention is described.

[0526] like Fig. 9 The information security transmission system of the embodiment of the present invention shown includes a paired first communication device 900A and a second communication device 900B, wherein the first communication device 900A and the second communication device 900B can have the same structure and configuration, and adopt the encryption and decryption device as described in the fifth embodiment.

[0527] The first communication device 900A may be held by a communicator A, and the second communication device 900B may be held by a communicator B.

[0528] Specifically, for example, the first communication device 900A may include:

[0529] The first key generation module 901A adopts the key generation device described in the third embodiment and is configured to generate secondary information as a one-time key.

[0530] The first input port 902A is configured to read or input a file A to be sent;

[0531] A first formatting module 903A, configured to convert the to-be-sent file A into a formatted plaintext A having the same format as the key;

[0532] The first encryption module 904A is configured to generate a master ciphertext A by performing a modular operation on the one-time key generated by the first key generation module 901A and the formatted plaintext A, use a timestamp A corresponding to the key as a first ciphertext header, and combine the master ciphertext A and the first ciphertext header to generate a ciphertext A;

[0533] A first sending port 905A is configured to send the ciphertext A to the second communication device 900B;

[0534] The second communication device 900B includes:

[0535] The second key generating unit 901B adopts the key generating device described in the third embodiment and is configured to generate secondary information as a one-time key.

[0536] The second receiving port 906B is configured to receive the ciphertext A sent by the first sending port;

[0537] The second decryption module 907B is configured to parse the received ciphertext A to extract the main ciphertext A and the timestamp A in the first ciphertext header, generate a decryption key A corresponding to the timestamp A through the second key generation module 901B, and generate a decrypted plaintext A by performing an inverse modular operation on the decryption key A and the main ciphertext A.

[0538] A second formatting module 903B is configured to convert the decrypted plaintext A into restored data;

[0539] The second output port 908B is configured to output the restored data as the received file A, and the received file A is the same as the file A to be sent.

[0540] Similarly, the second communication device 900B further includes:

[0541] The second input port 902B is configured to read or input the file B to be sent;

[0542] The second formatting module 903B is also configured to convert the to-be-sent file B into a formatted plain text B that matches the key format;

[0543] The second encryption module 904B is configured to generate a primary ciphertext B by performing a modular operation on the one-time key generated by the second key generation module 901B and the formatted plaintext B, use the timestamp B corresponding to the key as the second ciphertext header, and combine the primary ciphertext B and the second ciphertext header to generate the ciphertext B;

[0544] The second sending port 905B is configured to send the generated ciphertext B to the first communication device 900A;

[0545] The first communication device 900A further includes a first receiving port 906A configured to receive the ciphertext B sent by the second sending port;

[0546] The first decryption module 907A is configured to parse the received ciphertext B to extract the primary ciphertext B and the timestamp B in the header of the second ciphertext, generate a decryption key B corresponding to the timestamp B through the first key generation unit 901A, and perform an inverse modular operation on the decryption key B and the primary ciphertext B to generate a decrypted plaintext B;

[0547] The first formatting module 903A is also configured to convert the decrypted plaintext B into restored data;

[0548] The first output port 908A is configured to output the restored data as a received file B; wherein the received file B is the same as the to-be-sent file B sent from the second communication device.

[0549] This embodiment shows that the method of the present invention can be used, through the information security transmission system 900, legitimate target communicators can use the same type of encryption and decryption devices to establish a secure connection through an exclusive shared master key, encrypt and decrypt the information to be transmitted, and realize information transmission that can be proven to be secure in informatics theory. A 1024-bit master key as described in the second embodiment can be used to build a convenient and universal real-world unconditionally secure communication system through the information security transmission system described in this embodiment.

[0550] The above embodiments summarize the process of generating an independent key that can be securely distributed through the method of the present invention and the available one-way data conversion algorithm, as well as the key generation device, key management system, encryption device, file management system, information security delivery system constructed by the method and different aspects of the information and methods required and / or methods for implementing other steps through programs. The program or process part in the technology can be considered as a "product" or "manufactured product" in the form of executable code and / or related data, and can participate in or implement the method and steps through computer-readable media in the form of software. Computer-readable media may have many forms, including tangible storage media, carrier media or physical transmission media, etc.; tangible, stable storage media may include any computer, processor, or similar device or related module. Used in memory or storage. For example, various semiconductor memories, optical disks, magnetic disks, tape drives, and other computers or similar devices that can implement the storage system of the system components described in the figure. Unstable storage media may include dynamic memory, such as the main memory of a computer platform, etc.

[0551] All or part of the software may sometimes communicate over a network, such as the Internet or other communications network. Such communications may load software from one computer device or processor to another. For example, from a server or host computer of an IoT system to a hardware platform of a computer environment, or other computer environment that implements the system, or a system with similar functions related to providing information required by the IoT. Therefore, another medium capable of transmitting software elements may also be used as a physical connection between local devices, such as light waves, radio waves, electromagnetic waves, etc., transmitted through cables, optical cables or air. Physical media used to carry carriers, such as cables, wireless connections or optical cables and similar devices, as well as lines forming buses within computer systems, may also be considered as media that carry software. Carrier transmission media can transmit electrical signals, electromagnetic signals, acoustic signals or optical signals. These signals can be generated by radio frequency or infrared, visible light waves, acoustic wave data communication methods. Common computer-readable media include hard disks, floppy disks, tapes, and any other magnetic media; CD-ROMs, DVDs, DVD-ROMs, and any other optical media; punch cards, any other physical storage media containing a pattern of small holes; RAM, PROMs, EPROMs, FLASHEPROMs, any other memory chips or tapes; carriers that transmit data or instructions, cables or connecting devices that transmit carriers, and any other program codes and / or data that can be read by a computer. There are many forms of these computer-readable media that appear in the process of the processor executing instructions and delivering one or more results. As used herein, unless limited to tangible "storage" media, other terms indicating computer or machine "readable media" refer to media that participate in the process of the processor executing any instructions.

[0552] "Module" in this specification refers to logic or a set of software instructions stored in hardware or firmware. The "module" referred to here can be executed by software and / or hardware modules, or stored in any computer-readable non-temporary medium or other storage device. In some embodiments, a software module can be compiled and connected to an executable program. Obviously, the software module here can respond to information transmitted by itself or other modules, and / or can respond when certain events or interrupts are detected. The software module can be provided on a computer-readable medium, and the software module can be set to perform operations on a computing device (such as a processor). The computer-readable medium here can be a CD, a digital CD, a flash drive, a disk, or any other type of tangible medium. The software module can also be obtained through a digital download mode (the digital download here also includes data stored in a compressed package or an installation package, which needs to be decompressed or decoded before execution). The code of the software module here can be partially or completely stored in the storage device of the computing device that performs the operation and applied to the operation of the computing device. Software instructions can be embedded in firmware, such as an erasable programmable read-only memory (EPROM). Obviously, hardware modules can include logical units connected together, such as gates, triggers, and / or programmable units, such as programmable gate arrays or processors. The functions of the modules or computing devices described herein are preferably implemented as software modules, but can also be represented in hardware or firmware. Generally, the modules described herein are logical modules, which are not limited by their specific physical form or memory. A module can be combined with other modules, or separated into a series of submodules.

[0553] Typically, the key generation device or communication device includes a processor, volatile and non-volatile memory, may include at least one network interface, and input / output devices. The network interface of the communication device may include a connection to a network, such as a wired or wireless connection to the Internet to a cloud server, and data stored on the cloud server can be accessed by the communication device using the network. The data processing module of the communication device may include a server computer, a desktop computer, a laptop computer, a tablet computer, a PDA, a smart phone, or other programmable computer. The user end may include any connected or "smart" device capable of data communication, such as a thermostat, an air quality sensor, an industrial device, etc. As more and more devices are connected to the Internet through the "Internet of Things", the types of devices included in the user end are also increasing.

[0554] Data managed by the example systems described herein may remain encrypted at all times when stored in non-volatile memory, whether on a user device or other device such as a cloud server.

[0555] In some embodiments, each programmable computer may include an input device for inputting information into the device. For example, the input device may be a keyboard, a keypad, a cursor control device, a touch screen, a camera, a scanner, or a microphone. In some embodiments, input information may be received from programmable computers on other networks via a communication interface. In some embodiments, the computing device may include a display device for presenting visual information. For example, the display device may be a computer display, a flat panel display, a projector, or a display panel. In some embodiments, the display device displays one or more files encrypted via an encryption agent to a user according to the systems and methods described herein.

[0556] The embodiments of the modules, devices, systems, processes and methods described herein may be implemented in hardware or software or a combination of both. Alternatively, these embodiments may also be implemented in a computer program executed on a programmable computer, each of which includes at least one processor (e.g., a microprocessor), a data storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. For example, but not limited to, the programmable computer (hereinafter referred to as a device, computing device or server) may be a personal computer, a laptop computer, a personal data assistant, a cellular phone, a smart phone device, a tablet computer and / or a wireless device. For any software component, program code is applied to input data to perform the functions described herein and generate output information. The output information is applied to one or more output devices in a known manner.

[0557] Each software component or program can be implemented in a high-level program or object-oriented programming and / or scripting language to communicate with a computer system. However, if necessary, the program can be implemented in assembly language or machine language. In any case, the language can be a compiled or interpreted language. In addition, the process and method in the described embodiments can be distributed and sold in the form of a computer-readable medium, and the computer-readable medium includes a computer-readable medium that carries computer-usable instructions for one or more processors. The medium can be provided in various forms, including one or more floppy disks, optical disks, tapes, chips, wired transmissions, satellite transmissions, Internet transmissions or downloads, magnetic and electronic storage media, digital and analog signals, etc. The computer-usable instructions can also be in various forms, including compiled and non-compiled codes.

[0558] Various embodiments have been described herein for generating and securely distributing any desired number of independent keys of any desired key strength using a master key, thereby enabling the use of one-time keys in large-scale data communication and storage systems while eliminating the challenges of distributing and managing a large number of random keys.

[0559] A number of example embodiments have been described herein. However, it will be appreciated by those skilled in the art that other variations and modifications may be made without departing from the scope of the embodiments as defined in the appended claims.

[0560] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present disclosure belongs. It should be understood that terms such as those defined in common dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology and should not be interpreted in an idealized or extremely formal sense, unless explicitly defined as such herein.

[0561] The above is an explanation of the present disclosure and should not be considered as a limitation thereof. Although several exemplary embodiments of the present disclosure are described, it will be readily understood by those skilled in the art that many modifications can be made to the exemplary embodiments without departing from the novel teachings and advantages of the present disclosure. Therefore, all of these modifications are intended to be included in the scope of the disclosure defined by the claims. It should be understood that the various embodiments described herein are given only as illustrative examples and should not be interpreted as limiting the scope of the claims. As described above, the embodiments can be implemented in the form of articles, each of which includes one or more software programs executed by processing circuits of other elements of a user device, a communication device, or a communication system. The conventional aspects of the circuits are well known to those skilled in the art and will not be repeated here. Alternative embodiments may utilize different key generation methods, key generation devices, key management systems, encryption and decryption devices, file management systems, shared key generation and distribution processes in information security delivery systems, file delivery protocols, and file formats described above in the context of the illustrative embodiments. These and many other alternative embodiments within the scope of the appended claims will be apparent to those skilled in the art. And modifications to the disclosed embodiments and other embodiments are intended to be included within the scope of the appended claims. The present disclosure is defined by the claims and their equivalents.

Claims

1. A key generation and distribution method, comprising: Acquire or / and generate system information of a key generation device, the system information comprising at least a master key and at least one one-way data conversion algorithm, the master key being composed of undisclosed random information, the one-way data conversion algorithm generating output information determined by the input information based on input information, and it is not feasible to infer or / and derive the input information from the output information; According to the master key, relying on a timestamp composed of non-repeating arbitrary information, by adopting at least one of the one-way data conversion algorithms, generating a key determined by the timestamp and information in the master key, and associating the key with the timestamp information; as well as Sending the timestamp to a paired key generation device, wherein the paired key generation device stores second system information corresponding to the system information; The following process is used to generate the key: Generate the timestamp by the key generating device; Performing calculation on the timestamp and the master key to generate an intermediate key; Taking the intermediate key as input information, converting the intermediate key through the one-way data conversion algorithm to generate secondary information; Extracting information from the secondary information to generate a key; and The key is associated with a timestamp corresponding to the key.

2. The method of claim 1, wherein: The step of operating the timestamp and the master key to generate an intermediate key includes: The intermediate key is generated using a non-degenerate combination of the timestamp and the master key.

3. The method of claim 1, wherein: The step of operating the timestamp and the master key to generate an intermediate key includes: The intermediate key is generated by a second one-way data conversion algorithm using the timestamp and the master key as input information, where the second one-way data conversion algorithm is the same as or different from the one-way data conversion algorithm.

4. The method of claim 1, wherein: The one-way data conversion algorithm uses input information as control information to perform data conversion to generate output information. The system information also includes a public database configured to store public data, wherein the number of bits contained in the public data is much larger than the number of bits contained in the master key, and The one-way data conversion algorithm uses the input information as control information and performs data conversion on the common data to generate secondary information.

5. The method of claim 4, wherein: The data conversion adopts combined modular operation, The public data is configured to consist of N number sequences of the same length, each number sequence contains the same number of bits, is identified by a number indicating 0 to N-1 with the same number of bits, and is called a seed; The input information is configured as a sequence of M numbers sequentially pointing to M seeds identified by the numbers; The one-way data conversion algorithm is configured as follows: Using the input information as control information, sequentially extracting M seeds pointed to by the numbers in the input information from the public data; A modular operation is performed on the M seeds to generate secondary information with the same format as the seed, wherein N and M are positive integers.

6. The method of claim 5, wherein the public data is configured as a circular sequence of N*M elements connected end to end, the circular sequence is divided into N units of length M, and each unit is identified by a number from 0 to N-1; The seed is configured to start from one of the units and extend in the same direction across the entire annular sequence to form a sequence with a length of N*M, with the starting unit number being used as the seed number.

7. The method of claim 4, wherein: The key is generated using the following process, including: Using the master key as control information, and under the control of the master key, converting the public data into private data through a third one-way data conversion algorithm; Using the timestamp as control information, and under the control of the timestamp, generating an intermediate key from the private data by a fourth one-way data conversion algorithm; Using the intermediate key as control information, and under the control of the intermediate key, converting the public data into secondary information through the one-way data conversion algorithm; Extracting information from the secondary information to generate a key; and associating the key with a corresponding timestamp, The one-way data conversion algorithm, the third one-way data conversion algorithm and the fourth one-way data conversion algorithm use the same or different one-way algorithms.

8. The method of claim 1, further comprising: receiving a second timestamp sent from a paired key generation device; According to the master key and relying on the second timestamp, a second key determined by the master key and information in the second timestamp is generated through the one-way data conversion algorithm as the second key corresponding to the second timestamp.

9. A key generation device, comprising: a system information module configured to store or / and generate system information of the key generation device, the system information comprising at least a master key and at least one one-way data conversion algorithm, the master key being composed of undisclosed random information, the one-way data conversion algorithm generating output information determined by the input information based on input information, and it is not feasible to infer or / and derive the input information from the output information; A key generation module is configured to generate a key determined by the timestamp and information in the master key based on the master key and relying on a timestamp composed of non-repeating arbitrary information, by adopting at least one of the one-way data conversion algorithms, and associate the key with the timestamp information; as well as a transmission module configured to send the timestamp to a paired key generation device, wherein the paired key generation device stores second system information corresponding to the system information; Wherein, the key generation module is further configured as follows: generating the timestamp; Performing calculation on the timestamp and the master key to generate an intermediate key; Taking the intermediate key as input information, converting the intermediate key through the one-way data conversion algorithm to generate secondary information; Extracting information from the secondary information to generate a key; and The key is associated with a timestamp corresponding to the key.

10. The device of claim 9, wherein: The key generation module is further configured as follows: The intermediate key is generated by a second one-way data conversion algorithm using the timestamp and the master key as input information, where the second one-way data conversion algorithm is the same as or different from the one-way data conversion algorithm.

11. The device according to claim 9, wherein: The system information also includes a public database configured to store public data, wherein the number of bits contained in the public data is much larger than the number of bits contained in the master key, The one-way data conversion algorithm uses input information as control information to perform data conversion to generate output information. The key generation module is further configured as follows: Using the input information as control information, data conversion is performed on the common data by the one-way data conversion algorithm to generate secondary information.

12. The device of claim 11, wherein: The data conversion adopts combined modular operation, The public data is configured to consist of N number sequences of the same length, each number sequence contains the same number of bits, is identified by a number indicating 0 to N-1 with the same number of bits, and is called a seed; The input information is configured as a sequence of M numbers sequentially pointing to M seeds identified by the numbers; The one-way data conversion algorithm is configured as follows: Using the input information as control information, sequentially extracting M seeds pointed to by the numbers in the input information from the public data; A modular operation is performed on the M seeds to generate secondary information with the same format as the seed, wherein N and M are positive integers.

13. The device of claim 12, wherein: The public data is configured as a circular sequence of N*M elements connected end to end, the circular sequence is divided into N units of length M, and each unit is identified by a number from 0 to N-1; The seed is configured to start from one of the units and extend in the same direction across the entire annular sequence to form a sequence with a length of N*M, with the starting unit number being used as the seed number.

14. The device of claim 11, wherein: The key generation module is further configured as follows: Using the master key as control information, and under the control of the master key, converting the public data into private data through a third one-way data conversion algorithm; Using the timestamp as control information, and under the control of the timestamp, generating an intermediate key from the private data by a fourth one-way data conversion algorithm; Using the intermediate key as control information, and under the control of the intermediate key, converting the public data into secondary information through the one-way data conversion algorithm; Extracting information from the secondary information to generate a key; and associating the key with a corresponding timestamp, The one-way data conversion algorithm, the third one-way data conversion algorithm and the fourth one-way data conversion algorithm use the same or different one-way algorithms.

15. The device of claim 9, wherein: The transmission module is further configured to receive a second timestamp sent from a paired key generation device; The key generation unit is further configured to generate a second key determined by the master key and information in the second timestamp through the one-way data conversion algorithm according to the master key and relying on the second timestamp, as a second key corresponding to the second timestamp.

16. A key management system, comprising: A management terminal device, the management terminal device comprising: Control module: configured to generate, for each of a plurality of users, any information identifying the user's identity as a user identification code of the user; A user information module configured to store the user identification code; A key generation module, comprising a key generation device as described in any one of claims 9 to 15 and storing a master key, is configured to generate a corresponding user key for each of a plurality of users, and transmit the user identification code and the corresponding key to the corresponding user terminal device as the user key of the user.

17. The system of claim 16, wherein: The key generation module responds to the user identification code sent from the user information module, uses the user identification code as a timestamp, generates a key corresponding to the user identification code, and transmits the user identification code and the corresponding key to the corresponding user terminal device as the user key of the user.

18. The system of claim 16, wherein: The control module is further configured as: When the user keys of one or more users are lost, the control module receives the corresponding user identification code from the user terminal device, The user information module is further configured to verify the received user identification code to confirm that the user identification code is a stored user identification code, The key generation module uses the user identification code as a timestamp, generates a user key corresponding to the user identification code, and feeds the user key back to the user terminal device.

19. The system of claim 16, wherein: The key generation module is further configured as follows: The information in the user identification codes of different user terminal devices is combined to generate a timestamp, and a key used for communication between the different users is generated.

20. The system of claim 16, further comprising: One or more intermediate management nodes of different levels are arranged between the management terminal device and the user terminal device.

21. The system of claim 16, further comprising: One or more user terminal devices, wherein the user terminal device stores a user identification code of a corresponding user.

22. An encryption and decryption device, comprising: The key generation device according to any one of claims 9 to 15, configured to generate a one-time key; An input port configured to read or input data to be encrypted; a formatting unit configured to convert the data to be encrypted inputted from the input port into formatted plain text matching the one-time key format; an encryption module configured to generate a timestamp during encryption, generate a master ciphertext by using the one-time key generated by the key generation module and the formatted plaintext according to information in the timestamp, use the timestamp corresponding to the one-time key as a ciphertext title, and combine the master ciphertext and the ciphertext title to generate a ciphertext; The sending port is configured to send the generated ciphertext to a paired decryption device.

23. The encryption / decryption device according to claim 22, further comprising: a receiving port configured to receive ciphertext sent from a paired encryption device; a decryption module configured to parse the received ciphertext to extract the master ciphertext and the timestamp in the ciphertext header, generate a one-time key corresponding to the timestamp as a decryption key using the key generation module according to the information in the timestamp, and decrypt the master ciphertext using the decryption key to generate a decrypted plaintext; The formatting unit is further configured to convert the decrypted plaintext into restored data; An output port is configured to output the restored data.

24. A file management system, comprising a management terminal device and one or more user terminal devices, The management terminal device comprises: A key management module, using a key management system as claimed in any one of claims 16 to 21, configured to store a system master key, and to generate and distribute a user master key for each user of the system; A system encryption and decryption module, using the encryption and decryption device as claimed in claim 22 or 23, configured to encrypt and decrypt file information exchanged between the user terminal device and the management terminal device; A system file module, configured to store system files of the file management system, The user terminal equipment comprises: The user encryption and decryption module adopts the encryption and decryption device as described in claim 22 or 23, and is configured to encrypt and decrypt the file information exchanged between the user-end device and the management-end device.

25. The system of claim 24, wherein: The management end device generates and stores a user identification code of each user of the user end device through the key management module, generates a user master key corresponding to the user identification code, and distributes the user master key and the corresponding user identification code to each user end device; The user terminal device generates a timestamp through the user encryption and decryption module, generates a one-time key corresponding to the timestamp by relying on the user master key, encrypts the file information with the one-time key to generate a master ciphertext, uses the timestamp and the user identification code of the user as the ciphertext title, combines the master ciphertext and the ciphertext title to generate a ciphertext, and sends the ciphertext to the management terminal device through a public channel as proof of the file submitted by the user to the management terminal device; The management terminal device receives the ciphertext sent from the user terminal, parses the ciphertext through the system encryption and decryption module, and extracts the main ciphertext and the user identification code and timestamp in the ciphertext header; The key management module generates a corresponding user master key according to the user identification code; The system encryption and decryption module generates a corresponding decryption key based on the information in the timestamp and relies on the user master key to decrypt the master ciphertext and confirm the file information; The management end device stores the ciphertext of the confirmed file information into the system file module.

26. The system of claim 25, wherein: The management terminal device is further configured to generate a user master key of the target user through the key management module as the master key of the system encryption and decryption module, encrypt the file information through the system encryption and decryption module to generate ciphertext, and send it to the target user terminal device through the public channel; The target user terminal device is further configured to receive the ciphertext sent from the management terminal device through the user encryption and decryption module, decrypt the ciphertext, and restore the file information.

27. The system of claim 26, further comprising: One or more intermediate management nodes of different levels are arranged between the management terminal device and the user terminal device.

28. A system for secure information transmission, comprising a paired first communication device and a second communication device, wherein The first communication device comprises: A first key generating device, using the key generating device as claimed in any one of claims 9 to 15, configured to generate a one-time key as a first key; A first input port, configured to read or input a first file to be sent; A first formatting unit, configured to convert a first file to be sent inputted from an input port into a first formatted plain text having the same format as the key; a first encryption module, configured to convert the first formatted plaintext into a first master ciphertext by using a first key generated by a first key generating device, use a first timestamp corresponding to the first key as a first ciphertext header, and merge the first master ciphertext and the first ciphertext header to generate a first ciphertext; A first sending port is configured to send the generated first ciphertext to a second communication device, The second communication device comprises: A second key generating device, using the key generating device as claimed in any one of claims 9 to 15, configured to generate a one-time key as a second key; a second receiving port, configured to receive the first ciphertext sent by the first sending port; a second decryption module, configured to parse the received first ciphertext to extract a first master ciphertext and a first timestamp in a first ciphertext header, generate a second decryption key corresponding to the first timestamp by the second key generation module according to the first timestamp, and decrypt the first master ciphertext using the second decryption key to generate a second decrypted plaintext; a second formatting module, configured to convert the second decrypted plaintext into second restored data; The second output port is configured to output the second restored data as a second received file.

29. The information security transmission system as claimed in claim 28, wherein The second communication device further comprises: A second input port, configured to read or input a second file to be sent; The second formatting module is also configured to convert the second file to be sent into a second formatted plain text having the same format as the key; a second encryption module, configured to convert the second formatted plaintext into a second master ciphertext by using a second key generated by the second key generation module, use a second timestamp corresponding to the second key as a second ciphertext header, and combine the second master ciphertext and the second ciphertext header to generate a second ciphertext; a second sending port, configured to send the second ciphertext to the first communication device; The first communication device further comprises: A first receiving port, configured to receive the second ciphertext sent by the second sending port; a first decryption module, configured to parse the received second ciphertext to extract a second master ciphertext and a second timestamp in a header of the second ciphertext, generate a first decryption key corresponding to the second timestamp by the first key generation module according to the second timestamp, and decrypt the second master ciphertext using the first decryption key to generate a first decrypted plaintext; The first formatting unit is also configured to convert the first decrypted plaintext into first restored data; The first output port is configured to output the first restored data as a first received file.

Citation Information

Patent Citations

  • Key generation device, encryption device, and key generation and distribution system

    CN110636028A

  • Key management communication method and device, equipment and storage medium

    CN112187450A