A method and system for creating a symmetric key that does not require distribution or management

The real-time key generator automatically generates keys in the receiver settings module, solving the security risks and high cost problems of key transmission and management in the symmetric cryptographic system, realizing the use of keys without transmission and management, and improving the use of keys Security and flexibility.

CN113852462BActive Publication Date: 2024-11-05王健庭
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111132710.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-27
Publication Date
2024-11-05
Estimated Expiration
2041-09-27

AI Technical Summary

Technical Problem

The transmission and management of keys in the current symmetric cryptographic system have security risks and high management costs. Keys need to be frequently transmitted and managed, and reused results in impairment of confidentiality.

Method used

The real-time spatio-time key generator is used to generate the key by setting the time and geolocation independent variable functions by the receiver. The sender automatically generates and calls the key in the receiver's setting module. The receiver calculates the decryption key according to the setting plan. Cancel key transmission and management.

Benefits of technology

The problems of key transmission and management are completely solved, security risks and management costs are reduced, the security and flexibility of keys are improved, the risk of key leakage is reduced, and the use of symmetric keys is achieved without distribution and management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113852462B_ABST
    Figure CN113852462B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of cryptography, and proposes a method and system for creating a symmetric key that does not require distribution or management. The creation method includes: selecting a programming tool to develop a "time-space key real-time generator", which is placed in the memory of the sender's device to provide each receiver with a login password to enter its setting module to set the generation scheme of the encryption key by themselves, and the setting right of the symmetric key generation scheme is handed over to each receiver. The main setting items of the real-time key generator include various function expressions and rules including n time independent variable functions and n geographical location independent variable functions. It can automatically generate a new key corresponding to the used cryptographic algorithm anytime and anywhere in the sender's key system to provide real-time call when encrypting plaintext. It cannot be used for other purposes, especially it is strictly forbidden to view and transmit its key value, and the called key and the encrypted plaintext and the person receiving the ciphertext must correspond one to one, and misalignment operation is strictly prohibited. The receiver's decryption key is calculated by itself according to the key generation scheme set in the sender's real-time key generator setting module, so the sender does not need to distribute the key to the receiver, as long as the receiver remembers the key generation scheme set by itself in the sender.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cryptography, and in particular to a new method and new manner for generating and using symmetric keys in a symmetric cryptographic system, which is a method and system for creating symmetric keys that do not require distribution or management. Background Art

[0002] In the current symmetric cryptographic system, the key of the cryptographic algorithm is generated by the key generation system of the encryptor or the key management center (for the sake of ease of description, the encryptor and the key management center in this article are collectively referred to as the sender, and the decryptor is the receiver). No matter where the generated key comes from, the receiver does not know it. The sender must transmit it to the receiver through some information channel. That is to say, every time the sender sends a ciphertext to the receiver, it must send the corresponding key of the ciphertext to the receiver again, otherwise the receiver cannot decrypt the received ciphertext. The encryption, decryption and transmission process in the current symmetric cryptographic system can be seen in Figure 1 .

[0003] In reality, symmetric keys require much less computation than asymmetric keys, so their encryption speed and efficiency are far superior to asymmetric keys, making them very suitable for encrypting large amounts of information.

[0004] However, the current symmetric key has two very serious flaws:

[0005] First, the key transmission problem: the symmetric key is a single-key cryptographic system, and the same key is used for encryption and decryption. Therefore, the sender must transmit the encrypted key to the receiver, otherwise the receiver cannot decrypt the received ciphertext. The symmetric key is also called a secret key because its security depends not only on the strength of the encryption algorithm itself, but also on the security of the key. Every key transmission will have the security risk of being stolen, tampered with or leaked. Therefore, whether the key can be safely transmitted to the receiver is the primary problem facing the current symmetric key.

[0006] Second, the key management issue: When we encrypt user information, we are never allowed to encrypt all users' information with the same key. Otherwise, once the key is leaked, it is equivalent to leaking the information of all users. Therefore, a key must be generated for each user separately, and new keys must be redistributed to each pair of users each time. This will generate a huge number of keys, so the current symmetric keys must be managed and managed well. Otherwise, the continuously generated symmetric keys will have problems. Not only will the keys not correspond one to one, but they will also be chaotic. Therefore, it is inevitable that huge management resources are required to manage the current symmetric keys.

[0007] The key is the key element to ensure the security of ciphertext in the cryptographic system. The reason why a new key must be used for each encryption is that the cryptographic algorithms in the cryptographic system are limited and reuse is inevitable. At the same time, the commercialization of cryptographic algorithms inevitably requires them to be made public. Therefore, the confidentiality of ciphertext must rely on the confidentiality of the key. The key has become an essential element to ensure the security of ciphertext. Summary of the invention

[0008] In order to solve the two major problems existing in the current symmetric keys, the present invention provides a method and system for creating symmetric keys that do not require distribution or management. Its purpose is to make up for the two serious defects of the current symmetric keys. By changing the generation source, generation scheme and generation method of the current symmetric keys, we can not only completely cancel the transmission of symmetric keys, but also exempt the management of keys.

[0009] Choose a programming tool to develop a "real-time space-time key generator" and place it in the memory of the sender's device to provide each receiver with a login password to enter its setting module to set up the encryption key generation plan by themselves, and give each receiver the right to set up the symmetric key generation plan. The main setting items of the real-time key generator include various function expressions and rules including n time independent variable functions and n geographical location independent variable functions. It can automatically generate new keys corresponding to the cryptographic algorithm used anytime and anywhere in the sender's key system to provide real-time calls when encrypting plaintext. The keys used by the sender to encrypt each plaintext are automatically generated in real time by each receiver according to their own set of space-time key generators; the keys used by the receiver to decrypt the ciphertext are calculated by themselves according to the key generation plan set in the sender's real-time key generator setting module; the encryption key generated in real time and the calculated decryption key are one-to-one corresponding, so there is no need to transmit keys between the sender and the receiver, nor is there any need to manage the generated keys, as long as the receiver remembers the key generation plan set by the sender. From Figure 2 From the logical relationship, we can also clearly see that although the "space-time key generator setting module" of the present invention is placed on the sender, the key generation scheme is provided by the sender to the receiver, so the receiver can calculate the decryption key according to the scheme set by itself.

[0010] To distinguish it from the existing symmetric key generator, the key generated by the "real-time key generator" of the present invention is related to time and space, so it is temporarily called "space-time key generator" in this article.

[0011] Furthermore, the keys used by the sender to encrypt each plaintext are generated from the data provided by each receiver, including various character strings from the receiver; the keys used by the receiver to decrypt the ciphertext are all available to him or her, and there is no need to transmit keys between the sender and receiver.

[0012] The system created based on the creation method of the present invention can run a creation method of a symmetric key that does not require distribution or management, thereby realizing a symmetric key system that does not require distribution or management.

[0013] The present invention is achieved through the following technical solutions:

[0014] In terms of method, the present application provides a method for creating a symmetric key that does not require distribution or management, and the steps include:

[0015] Step 1. Choose a programming tool to develop a "real-time space-time key generator", such as Figure 3 , placed in the memory of the sender's device to provide the processor of the sender's device with a call at any time; and the setting module of the real-time space-time key generator is opened to the receiver by the login password, see Figure 2 .

[0016] The setting items include ① key expression, ② position selection rule, and ③ key string conversion rule. The key expression provides the receiver with various function formulas including time and geographic location independent variable functions, in which n time independent variable functions, n geographic location independent variable functions and n various functions can be set. When combined together, they can automatically generate the initial value of the key string at any time and anywhere. This initial value may be an irrational number, which obviously cannot be used as a key. Next, the position selection rule must be handed over to formulate a specific plan to complete it; the position selection rule is the rule for formulating the standard length of the key string. It uses n countermeasures to convert the initial value of the key string generated by the key expression into the key string determined by the receiver; the key string conversion rule is the rule for converting the key string after the position selection rule into the key corresponding to the cryptographic algorithm used.

[0017] The sub-items under the two items "key expression" and "position selection rule" and their specific setting methods and cases can be found in detail in the patent specification CN201510991027.6.

[0018] The key string generated by the "key expression" and "bit selection rule" in the scheme is in text character type, while the key K of the encryption function EK(M)=C and the decryption function DK(C)=M of the cryptographic function is in digital type, and the keys corresponding to each cryptographic algorithm also have differences in length and base. Therefore, the key string generated by the "key expression" and "bit selection rule" cannot be directly provided to the cryptographic algorithm for use. They must be converted to the corresponding format before they can be provided to the cryptographic algorithm for encryption and decryption to achieve their desired functions. The role of the "key string conversion rule" is to convert the key string generated by the "key expression" and "bit selection rule" into the key corresponding to the cryptographic algorithm used.

[0019] The setting items of "Key string conversion rule" include:

[0020] ① Key length (bytes), including: 32 bits (4 bytes), 64 bits (8 bytes), 128 bits (16 bytes), 192 bits (24 bytes), 256 bits (32 bytes)...

[0021] ② Base, including: binary, quaternary, octal, decimal, hexadecimal, 32-base...

[0022] ③ Encoding (character set), including: UTF-8 (unicode), GB2312, GBK, GB18030, UTF-16_LE......

[0023] First, let's discuss the issue of encoding. The key string generated by the "key expression" and the "bit selection rule" is a text character type, which contains various words and symbols. It certainly cannot be directly converted into a digital type for calculation. Therefore, only by converting the generated key string into a byte sequence that can be executed by a computer through character encoding can mathematical operations be realized. Only when the generated key string has computing power can it be qualified to be provided to the cryptographic algorithm. The role of character encoding here is to convert the key string without computing power into a byte sequence with computing power, so that it is qualified to become the key of the cryptographic algorithm. It should be noted that there are many character encodings, and the key lengths and values ​​converted by different encodings are completely different. Therefore, what kind of encoding is used to convert the encryption key must be converted to the same encoding for decryption. It cannot be confused, otherwise it cannot be decrypted.

[0024] Next, we discuss the key length and base. The key length and base are required by the cryptographic algorithm. Different cryptographic algorithms have different corresponding key lengths and bases. When converting the key string, it must accurately correspond to the key length and base of the cryptographic algorithm used. Whether it is converted into the keys of various basic transposition, substitution, dictionary, addition and subtraction or mixed cryptographic algorithms or the keys of various group and sequence cryptographic algorithms, they must accurately correspond to the key length and base.

[0025] The key that has completed the format conversion can cooperate with the encryption algorithm to encrypt the plaintext and decrypt the ciphertext conversely.

[0026] In addition, the present invention hopes to strictly prohibit the forwarding of ciphertext or unconditionally destroy the forwarded ciphertext immediately, while for the ciphertext directly sent by the sender to the receiver and the ciphertext agreed to be downloaded by the receiver, the time for automatic timing destruction or hashing can be set in advance in this setting module, and this setting right is given to the receiver, so that the receiver can fully handle his own ciphertext according to his own specific situation, because when the sender actively sends the ciphertext to the receiver or agrees that the receiver downloads the ciphertext himself, it means that the ownership of this ciphertext has been attributed to the receiver, so the receiver should be allowed to have full processing rights for this ciphertext. With this authority, the receiver can actively prevent his own ciphertext from being stolen and cracked by others to the greatest extent, and the receiver can re-download the required ciphertext anytime and anywhere.

[0027] Step 2: Each receiver enters the sender's space-time key generator setting module with the login password and sets the encryption key generation scheme.

[0028] Step 3. Each receiver completes its own key generation scheme in its own setting project. In order to improve the security of the "Real-time Space-Time Key Generator", the key generation scheme that the receiver has set up in the sender's key generator setting module should be saved with a high-level encryption scheme as far as technically possible. Otherwise, it will be difficult to control the risk of users, including the sender, snooping into the database and transmitting internal data.

[0029] Explanation on the unchanged generated key: When the recipient sets up the key generation scheme, if only constants and text characters are used, and the time and geographic location independent variable functions are not set, or existing fixed strings are used, such as login passwords, aliases, mobile phone numbers, ID numbers, and other information identification strings as keys, these intentional or unintentional operations will result in unchanged keys, but the encryption and decryption process has the following characteristics: the keys used by the sender or receiver to encrypt each plaintext are all from the receiver's data, or the keys used by the receiver to decrypt the ciphertext are all available to the receiver himself, or there is no need to transmit keys between the sender and receiver.

[0030] Step 4: The "key expression" and "bit selection rule" set by the receiver work together to automatically generate the latest key string in real time at the sender anytime and anywhere.

[0031] Step 5. Generate the latest key string and automatically convert it into the key corresponding to the encryption algorithm used through the "key string conversion rule" set by the receiver. For example, if the sender uses the AES encryption algorithm, the latest key string generated in real time will be automatically converted into the key corresponding to the AES encryption algorithm (the key length supports 128 bits, 192 bits, 256 bits, hexadecimal). If the sender uses the SM4 encryption algorithm, it will be automatically converted into the key corresponding to the SM4 encryption algorithm (key length 128 bits, hexadecimal). At this point, the latest key that can be used to encrypt the encryption algorithm is automatically generated in real time by the sender, waiting to be called in real time when the sender or receiver encrypts the plaintext.

[0032] Step 6. The sender or receiver can call the real-time generated key anytime and anywhere. It must be emphasized that this key can only be called in real time when encrypting plaintext, and cannot be used for other purposes. In particular, it is strictly forbidden to view and transmit the key value. The called key and the encrypted plaintext and the person receiving the ciphertext must correspond one to one, and misplaced operations are strictly prohibited.

[0033] Step 7: The sender or receiver provides the real-time called key to the cryptographic algorithm used to encrypt the plaintext into ciphertext.

[0034] Step 8: The sender sends the successfully encrypted ciphertext to the receiver, or the receiver downloads the successfully encrypted ciphertext to the receiver.

[0035] So far, the steps of the present invention executed on the sending module are completed, and the following steps are the steps of the present invention executed on the receiving module.

[0036] Step 9: After receiving the ciphertext, the receiver calculates the key string according to the time and location according to the scheme set by the sender.

[0037] Step 10. The recipient enters the calculated key string into the "string-base-code" conversion tool or encryption / decryption applet on his / her device, and selects the base and code options of the cryptographic algorithm key used.

[0038] Most encryption and decryption programs have a built-in "string-base-code" conversion function.

[0039] Step 11: The encryption and decryption applet or the "string-binary-code" conversion tool of the receiving device automatically converts the calculated key string into the key corresponding to the cryptographic algorithm used.

[0040] Step 12: On the receiving device, input the ciphertext received by the receiving party into the ciphertext text input of the encryption and decryption applet, and use the key successfully converted in step 11 to decrypt the received ciphertext into plaintext.

[0041] So far, the present invention develops a "real-time space-time key generator" at the sender from step 1 to step 2 that the receiver sets the encryption key generation plan at the sender, to step 5 that the latest key encrypted by the encryption algorithm used is automatically generated in real time at the sender, ready to be called in real time when the sender or receiver encrypts the plaintext, and then goes to step 7 to encrypt, step 8 to transmit, and step 12 to decrypt, and the whole process is successfully executed.

[0042] In terms of the system, the present application provides a system for creating a symmetric key that does not require distribution or management, which includes: a sender module and a receiver module. Figure 2

[0043] Steps 1-8 of the above method are steps executed on the sender module, and steps 9-12 are steps executed on the receiver module, wherein steps 4 and 5 are both executed by the receiver in the sender's module, the result of step 4 is automatically achieved according to the key expression and bit selection rules set by the receiver on the sender, and the result of step 5 is automatically achieved according to the key string conversion rules set by the receiver on the sender.

[0044] The key used to encrypt plaintext in the sender module is automatically generated in real time by each receiver according to the space-time key generator set by each receiver. The space-time key real-time generator is placed in the memory of the sender's device to provide each receiver with a login password to enter its setting module and set the encryption key generation scheme by themselves. This creation system gives each receiver the right to set the symmetric key generation scheme; the key used to decrypt the ciphertext in the receiver module is calculated by the receiver according to the key generation scheme set by the receiver at the sender, and corresponds one to one to the encryption key generated by the sender in real time. There is no need to transmit keys or manage the generated keys between the sender and the receiver. The receiver only needs to remember the key generation scheme set by himself at the sender.

[0045] In the creation system of the present invention, the steps of executing the creation method include: at least one memory for storing device instructions; at least one processor communicating with the above-mentioned memory, wherein when the above-mentioned at least one processor executes the above-mentioned device instructions, the above-mentioned at least one processor causes the above-mentioned system to execute: a sender module and a receiver module.

[0046] In the creation system of the present invention, a device-readable storage medium is also provided, on which a device program is stored. When the device program is executed by a processor, a method such as any one of the methods for creating a symmetric key that does not require distribution or management is implemented.

[0047] Compared with the prior art, the present invention has at least the following beneficial effects:

[0048] 1. It makes up for two serious defects of the current symmetric keys. First, it can completely eliminate the transmission of symmetric keys. Second, it can exempt the management of symmetric keys, thus saving both the transmission cost of keys and the management cost of keys.

[0049] 2. Canceling key transmission greatly reduces the security risks caused by key transmission, and eliminating key management greatly reduces man-made accidents caused by management negligence and management loopholes.

[0050] 3. It limits the sender's authority over the encryption key, and strictly prohibits any authority other than real-time call during encryption, especially canceling the right to distribute and manage the key, thereby reducing the risk of key leakage from the inside and greatly improving security.

[0051] 4. A new method has been added for ciphertext transmission, that is, the sender does not send the ciphertext directly to the receiver, but sends the encrypted link of the file to the receiver, and the receiver uses the login password to call the new key generated in real time to encrypt the file download. The system strictly prohibits downloading unencrypted files. The biggest advantage of this method is that the downloaded ciphertext is safer, more flexible and more convenient. First of all, the new key generated in real time in this way varies more, because the time and place of login of each receiver are different. Even if some people's key generation schemes happen to be exactly the same, the keys generated at different times and places must be varied; secondly, in this way, the receiver does not need to save the decrypted plaintext, because it can be encrypted and downloaded again anytime and anywhere.

[0052] 5. Since the receiver has the right to set the time for automatic scheduled destruction or hashing of the ciphertext, and the function of strictly prohibiting the forwarding of the ciphertext or unconditionally destroying the forwarded ciphertext immediately, the receiver can actively prevent the ciphertext from being stolen and cracked by others. The receiver can re-download the required ciphertext anytime and anywhere, so the present invention does not require the receiver to save the ciphertext and the decrypted plaintext, which can prevent theft and avoid management.

[0053] 6. The symmetric key of the present invention, which does not need to be distributed or managed, can be provided to any symmetric encryption algorithm to encrypt plaintext and decrypt ciphertext, whether it is the basic transposition, substitution, dictionary, addition and subtraction and hybrid encryption algorithm or the block encryption algorithm and sequence encryption algorithm according to various plaintext processing methods; whether it is an existing or future symmetric encryption algorithm, it can work with the space-time symmetric key of the present invention to encrypt and decrypt data information. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 It is a schematic diagram of the encryption, decryption and transmission process of the current symmetric cryptographic system;

[0055] Figure 2 The schematic diagram of the encryption and decryption and transmission flow of the sender module and the receiver module of the system created by the present invention is a schematic diagram of the space-time key generator of the present invention placed at the sender to provide the sender with the key setting and the receiver calculating the key;

[0056] Figure 3 A schematic diagram of the process of automatically generating keys in real time by the spatiotemporal key generator of the present invention and the items and steps of the setting method;

[0057] Figure 4 A schematic diagram of a test case for encryption and decryption using the advanced encryption AES cryptographic algorithm for generating a key of the present invention;

[0058] Figure 5 A schematic diagram of a test case for encryption and decryption using the generated key of the present invention on the stream cipher algorithm RC4;

[0059] Figure 6 A schematic diagram of a test case for encryption and decryption using the Chinese national cryptographic algorithm SM4 using the key generated by the present invention. DETAILED DESCRIPTION

[0060] In order to make the technical means, creative features, objectives and effects of the present invention easy to understand, the present invention is further explained below with reference to specific implementation cases of the accompanying drawings.

[0061] Since the details of the key expression and the position selection rules can be found in the specification of patent CN201510991027.6, for the convenience of explanation, the calculation and position selection of the generation scheme in the implementation case use the simplest and clearest methods.

[0062] Implementation time: 13:06, September 18, 2021

[0063] Implementation location: Somewhere in Shanghai Location: longitude, latitude, altitude are "121.388182, 31.259358, 19.6"

[0064] The encryption and decryption algorithm used is the most common Advanced Encryption Standard AES (Advanced Encryption Standard) symmetric encryption algorithm, with a block length of 128 bits (16 bytes) and key lengths of 128 bits (16 bytes), 192 bits (24 bytes), and 256 bits (32 bytes) in hexadecimal. In this case, the common key length of 128 bits (16 bytes) is selected.

[0065] Implementation steps:

[0066] Step 1: Develop a "real-time space-time key generator" in the sender's device to provide the receiver with a key generation scheme that can be set up by the receiver.

[0067] Step 2: The receiver enters the sender with the login password and sets the encryption key generation scheme, where the key string generation scheme strategy is:

[0068] Solution strategy 1: Take the last two digits of the year + month + date + hour + minute. According to the implementation time, it is: 21 years + September + 18 days + 13 hours + 06 minutes. The calculation result is: 21 + 9 + 18 + 13 + 06 = 67;

[0069] Solution Strategy 2: Add "Chinese character string + ab" to the left of the calculated "67" to get: "Chinese character string + ab67".

[0070] Step 3: After the receiver completes the settings in step 2, it encrypts and saves the set plan.

[0071] Step 4: The "key expression" and "bit selection rule" set by the receiver work together to generate the key string "Chinese character string + ab67" on the sender.

[0072] Step 5: The key string generated in step 4 is automatically converted into the key format corresponding to the AES encryption algorithm through the "key string conversion rule" set by the receiver.

[0073] The encoding of this implementation case selects the universal Unicode Utf8 encoding, and the key length selects the common 128 bits (16 bytes). When the conversion length is insufficient, it is automatically filled with 0x00, and the excess part is ignored. The hexadecimal system is selected. Then, the generated key string "Chinese character string + ab67" can be automatically converted into the key "e4 b8 ade6 96 87 e5 ad 97 e4 b8 b2 2b 61 62 36 37" that can be used for encryption by the AES encryption algorithm. This key is ready to be called in real time when the sender or receiver encrypts the plaintext.

[0074] Step 6: The sender or receiver calls the key generated in real time in step 5.

[0075] Step 7: The sender or receiver provides the key "e4 b8 ad e6 96 87 e5 ad 97 e4b8 b2 2b 61 62 36 37" called in step 6 to the AES encryption algorithm to encrypt the plaintext;

[0076] Assume that the encrypted plaintext is: "★A method and system for creating a symmetric key without distribution★";

[0077] The ciphertext encrypted by AES is: “J+MJoRn4+pc7HX8FvVkCJLdUzugRF0rsYbjBwnHkDlD84UQvP74wxcDKfgdoKQYN”.

[0078] Step 8: The sender sends the ciphertext to the receiver, or the receiver downloads the ciphertext to the receiver.

[0079] Step 9: After receiving the ciphertext, the receiver calculates the key string "Chinese character string + ab67" according to the time and place and the scheme set by the sender.

[0080] Step 10. The recipient enters the key string "Chinese character string + ab67" calculated in step 9 into the AES online encryption and decryption applet (http: / / tool.chacuo.net / cryptaes) used on his device, and selects Utf8 encoding.

[0081] Step 11. The AES online encryption and decryption applet automatically converts the calculated key string "Chinese character string + ab67" into "e4 b8 ad e6 96 87 e5 ad 97 e4 b8 b2 2b 61 62 36 37".

[0082] Step 12. On the receiving device, input the ciphertext received by the receiving party into the ciphertext text input of the AES online encryption and decryption applet, and use the key "e4 b8 ad e6 96 87 e5 ad 97 e4 b8 b2 2b61 62 36 37" successfully converted in step 11 to decrypt the received ciphertext into plaintext.

[0083] Enter the decrypted ciphertext: "J+MJoRn4+pc7HX8FvVkCJLdUzugRF0rsYbjBwnHkDlD84UQvP74wxcDKfgdoKQYN"

[0084] Decrypted plaintext: "★A method and system for creating a symmetric key without distribution★"

[0085] See Figure 4

[0086] Implementation time: 14:09, September 18, 2021

[0087] Implementation location: Somewhere in Shanghai Location: longitude, latitude, altitude are "121.388182, 31.259358, 19.6"

[0088] The encryption and decryption algorithm used is the serial symmetric cipher RC4. The key length is variable, ranging from 8 to 2048 bits (1 to 256 bytes) in hexadecimal. In this case, the common key length of 128 bits (16 bytes) is selected.

[0089] Implementation steps:

[0090] Step 1: Develop a "real-time space-time key generator" in the sender's device to provide the receiver with a key generation scheme that can be set up by the receiver.

[0091] Step 2: The receiver enters the sender with the login password and sets the encryption key generation scheme, where the key string generation scheme strategy is:

[0092] Solution strategy 1: Take the latitude integer of the geographic location * date + minute. According to the implementation time and location, it is: latitude integer 31*18 days + 9 minutes, and the calculation result is: 31*18+9=567;

[0093] Solution Strategy 2: Add "rs" to the left of the calculated "567" and "+Chinese character encryption" to the right to get: "rs567+Chinese character encryption".

[0094] Step 3: After the receiver completes the settings in step 2, it encrypts and saves the set plan.

[0095] Step 4: The "key expression" and "bit selection rule" set by the receiver work together, and the key string generated by the sender is: "rs567+Chinese character encryption".

[0096] Step 5: The key string generated in step 4 is automatically converted into the key format corresponding to the RC4 encryption algorithm through the "key string conversion rule" set by the receiver.

[0097] In this implementation case, the universal Unicode Utf8 encoding is selected for the encoding, and the common 128 bits (16 bytes) are selected for the key length. When the conversion length is insufficient, it is automatically filled with 0x00, and the excess part is ignored. The hexadecimal system is selected. Then, the generated key string "rs567+Chinese character encryption" can be automatically converted into the key "72 7335 36 37 2B E4 B8 AD E6 96 87 E5 AD 97 E7 AC A6 E5 8A A0 E5 AF 86" that can be encrypted by the RC4 encryption algorithm. This key is ready to be called in real time when the sender or receiver encrypts the plaintext.

[0098] Step 6: The sender or receiver calls the key generated in real time in step 5.

[0099] Step 7: The sender or receiver provides the key "72 73 35 36 37 2B E4 B8 AD E696 87 E5 AD 97 E7 AC A6 E5 8A A0 E5 AF 86" called in step 6 to the RC4 encryption algorithm to encrypt the plaintext;

[0100] Assume that the encrypted plaintext is: "Symmetric key that does not need to be distributed or managed";

[0101] The ciphertext encrypted by RC4 is: "qjVLd7nrGFlk1043XYomqSBCZehZ7z1X0ScAlUd4pmtHuXS3gDiK / ze7"

[0102] Step 8: The sender sends the ciphertext to the receiver, or the receiver downloads the ciphertext to the receiver.

[0103] Step 9. After receiving the ciphertext, the receiver calculates the key string "rs567+Chinese character encryption" according to the time and place and the scheme set by the sender.

[0104] Step 10. The recipient enters the key string "rs567+Chinese character encryption" calculated in step 9 into the RC4 online encryption and decryption applet (http: / / tool.chacuo.net / cryptrc4) used on his device, and selects Utf8 encoding.

[0105] Step 11. The RC4 online encryption and decryption applet automatically converts the calculated key string "rs567+Chinese character encryption" into "72 73 35 36 37 2B E4 B8 AD E6 96 87 E5 AD 97 E7 AC A6 E5 8A A0 E5AF 86".

[0106] Step 12. On the receiving device, input the ciphertext received by the receiving party into the ciphertext text input of the RC4 online encryption and decryption applet, and use the key "72 73 35 36 37 2B E4 B8 AD E6 96 87 E5AD 97 E7 AC A6 E5 8A A0 E5 AF 86" successfully converted in step 11 to decrypt the received ciphertext into plaintext.

[0107] Enter the decrypted ciphertext: "qjVLd7nrGFlk1043XYomqSBCZehZ7z1X0ScAlUd4pmtHuXS3gDiK / ze7"

[0108] Decrypted plaintext: "Symmetric keys that do not need to be distributed or managed"

[0109] See Figure 5

[0110] Implementation time: 15:32, September 18, 2021

[0111] Implementation location: Somewhere in Shanghai Location: longitude, latitude, altitude are "121.388182, 31.259358, 19.6"

[0112] The cryptographic algorithm used for encryption and decryption is China's national cryptographic algorithm SM4, with a block length of 128 bits (16 bytes), a key length of 128 bits (16 bytes), and hexadecimal.

[0113] Implementation steps:

[0114] Step 1: Develop a "real-time space-time key generator" in the sender's device to provide the receiver with a key generation scheme that can be set up by the receiver.

[0115] Step 2: The receiver enters the sender with the login password and sets the encryption key generation scheme, where the key string generation scheme strategy is:

[0116] Solution strategy 1: Take the integer of the longitude of the geographical location * month - take the rounded-up altitude of the geographical location * hour. According to the implementation time and location, it is: the integer of the longitude 121 * 9 months - the rounded-up altitude 20 * 15 hours. The calculation result is: 121 * 9 - 20 * 15 = 789;

[0117] Solution Strategy 2: Add "Chinese characters + abc-" on the left side of the calculated "789" and "#%" on the right side to get: "Chinese characters + abc-789#%".

[0118] Step 3: After the receiver completes the settings in step 2, it encrypts and saves the set plan.

[0119] Step 4: The "key expression" and "position selection rule" set by the receiver work together to generate a key string of "Chinese characters + abc-789#%" on the sender.

[0120] Step 5: The key string generated in step 4 is automatically converted into the key format corresponding to the SM4 cryptographic algorithm through the "key string conversion rule" set by the receiver.

[0121] In this implementation case, the universal Unicode Utf8 encoding is selected for the encoding, and the key length is selected as 128 bits (16 bytes). When the conversion length is insufficient, it is automatically filled with 0x00, and the excess part is ignored. The hexadecimal system is selected. Then, the generated key string "Chinese characters + abc-789#%" can be automatically converted into the key "e4 b8 ad e6 9687 e5 ad 97 e7 ac a6 2b 61 62 63 2d 37 38 39 23 25" that can be encrypted by the SM4 cipher algorithm. This key is ready to be called in real time when the sender or receiver encrypts the plaintext.

[0122] Step 6: The sender or receiver calls the key generated in real time in step 5.

[0123] Step 7: The sender or receiver provides the key "e4 b8 ad e6 96 87 e5 ad 97 e7ac a6 2b 61 62 63 2d 37 3839 23 25" called in step 6 to the SM4 cryptographic algorithm to encrypt the plaintext;

[0124] Assume that the encrypted plaintext is: "Please encrypt and decrypt "a method for creating a symmetric key that does not require distribution or management" using the SM4 encryption algorithm.";

[0125] The ciphertext encrypted by SM4 is: “9rj6oHdRWiTMcZ4cv3VtSK1Hqec / KKFhPZ6NOJfW99BObOmo4Yy4XqyvmI9EH / OKbfgvfuzQ / 5SBcuZYOmb6T9EPXYZSVUkdizTWq+XTcEJbbuX+9aGyXCVg6U+FGSBAtkjt4Aw / Ez / b6loQMTP7o8eE / yWFYYxfb8Dmgs / xcB4=”;

[0126] Step 8: The sender sends the ciphertext to the receiver, or the receiver downloads the ciphertext to the receiver.

[0127] Step 9. After receiving the ciphertext, the receiver calculates the key string "Chinese characters + abc-789#%" according to the time and place and the scheme set by the sender.

[0128] Step 10. The recipient enters the key string "Chinese characters + abc-789#%" calculated in step 9 into the SM4 online encryption and decryption applet (https: / / the-x.cn / cryptography / Sm4.aspx) used on his device, and selects Utf8 encoding.

[0129] Step 11. The SM4 online encryption and decryption applet automatically converts the calculated key string "Chinese characters + abc-789#%" into "e4 b8 ad e6 96 87 e5 ad 97 e7 ac a6 2b 61 62 63 2d 37 38 39 2325".

[0130] Step 12. On the receiving device, input the ciphertext received by the receiving party into the ciphertext text input of the SM4 online encryption and decryption applet, and use the key "e4 b8 ad e6 96 87 e5 ad 97 e7 ac a6 2b61 62 63 2d 37 38 39 23 25" successfully converted in step 11 to decrypt the received ciphertext into plaintext.

[0131] Enter the decrypted ciphertext: "9rj6oHdRWiTMcZ4cv3VtSK1Hqec / KKFhPZ6NOJfW99BObOmo4Yy4XqyvmI9EH / OKbfgvfuzQ / 5SBcuZYOmb6T9EPXYZSVUkdizTWq+XTcEJbbuX+9aGyXCVg6U+FGSBAtkjt4Aw / Ez / b6loQMTP7o8eE / yWFYYxfb8Dmgs / xcB4="

[0132] Decrypted plaintext: "Please encrypt and decrypt "A method for creating a symmetric key that does not require distribution or management" using the SM4 encryption algorithm."

[0133] See Figure 6

[0134] It can be seen from step 10 of the above three implementation cases that in actual decryption, the receiver only needs to calculate the key string and does not need to further convert the format by himself. At present, most encryption and decryption applets already have very intelligent key conversion functions. The receiver only needs to input the calculated key string, and the conversion and the following things will be done for you very beautifully. Just leave it to it.

[0135] From these three implementation cases, it can be further confirmed and proved in actual use that when the space-time symmetric key of the present invention is provided to various different cryptographic algorithms for use, it is not necessary to pay attention to the internal logic and algorithm of each cryptographic algorithm. As long as the key string generated in real time is converted into the key format corresponding to the cryptographic algorithm used through the "key string conversion rule" in the space-time key generator of the present invention, it can be provided to any symmetric cryptographic algorithm to encrypt plaintext and decrypt ciphertext, whether it is basic transposition, substitution, dictionary, addition and subtraction and hybrid cryptographic algorithms or block cipher algorithms and sequence cipher algorithms according to various plaintext processing methods; whether it is an existing symmetric cryptographic algorithm or a future symmetric cryptographic algorithm, it can work together with the symmetric key of the present invention that does not need to be distributed or managed to contribute to the encryption and decryption of data information.

[0136] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the above is only an embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent transformation made by using the contents of the present invention specification and drawings based on the spirit and principle of the present invention, directly or indirectly applied in any form or on any device in this field or other related technical fields, is also included in the patent protection scope of the present invention.

Claims

1. A method for creating a symmetric key that does not require distribution or management, characterized in that: include: A programming tool is selected to develop a real-time space-time key generator, which is installed in the memory of the sender's device, so as to provide each receiver with a login password to enter the setting module of the sender's space-time key generator to set the generation scheme of the encryption key, and the setting right of the symmetric key generation scheme is given to each receiver. The setting items of the real-time key generator include function expressions and rules including n time independent variable functions and n geographical location independent variable functions. In the sender's key system, a new key corresponding to the used cryptographic algorithm can be automatically generated at any time and any place, so as to provide real-time call when encrypting plain text; The sender generates the latest key string in real time. The sender encrypts the plaintext into ciphertext according to the key and cryptographic algorithm called in real time. The sender sends the successfully encrypted ciphertext to the receiver. After receiving the ciphertext, the receiver calculates the key according to the time and place according to the scheme set by the sender. On the receiver's device, the received ciphertext is decrypted into plaintext according to the key.

2. A method for creating a symmetric key that does not require distribution or management as claimed in claim 1, characterized in that: Also includes: The keys used by the sender to encrypt each plaintext are automatically generated in real time by each receiver in the sender's space-time key generator according to the encryption key generation scheme set by each receiver; the keys used by the receiver to decrypt the ciphertext are calculated by itself according to the key generation scheme set in the sender's key real-time generator setting module; the real-time generated encryption key and the calculated decryption key are one-to-one corresponding, and there is no need to transmit keys or manage generated keys between the sender and receiver. The receiver only needs to remember the key generation scheme set by the sender.

3. A method for creating a symmetric key that does not require distribution or management as claimed in claim 2, characterized in that: Also includes: The key used by the sender to encrypt each plaintext is generated by the data provided by each receiver, including various strings from the receiver; The keys used by the receiver to decrypt the ciphertext are all available to him / her, and there is no need to transmit keys between the sender and the receiver.

4. A method for creating a symmetric key that does not require distribution or management as claimed in claim 1, characterized in that: Also includes: The sender does not send the ciphertext directly, but sends the encrypted link of the file to the receiver. The receiver uses the login password to call the space-time key generator to generate a new key in real time to encrypt the file for download. The system strictly prohibits downloading unencrypted files.

5. A method for creating a symmetric key that does not require distribution or management as described in any one of claims 2 to 4, characterized in that: Also includes: The key provided to the sender or receiver to encrypt the plaintext can only be called in real time and cannot be used for any other purpose. It is strictly forbidden to view and transmit the key value. The called key and the encrypted plaintext must correspond one to one with the person receiving the ciphertext. Misalignment operations are strictly prohibited.

6. A method for creating a symmetric key that does not require distribution or management as claimed in claim 1, characterized in that: The setting items of the real-time space-time key generator include: key expression, bit selection rules, and key string conversion rules.

7. A method for creating a symmetric key that does not require distribution or management as claimed in claim 1, characterized in that: Also includes: The key generation scheme that the receiver sets in the sender's key generator setting module is saved using a high-level encryption scheme.

8. A method for creating a symmetric key that does not require distribution or management as claimed in claim 1, characterized in that: Also includes: It is strictly forbidden to forward ciphertext or to destroy forwarded ciphertext immediately and unconditionally. For ciphertext sent directly by the sender to the receiver and ciphertext agreed to be downloaded by the receiver, the time for automatic destruction or hashing should be set in advance in the setting module, so that the receiver can handle his or her own ciphertext according to his or her specific situation to prevent the ciphertext from being stolen and cracked by others.

9. A system for creating symmetric keys that does not require distribution or management, characterized in that: include: The keys used to encrypt plain text in the sender module are automatically generated in real time by each receiver according to the space-time key generator set by each receiver. The space-time key real-time generator is placed in the memory of the sender device to provide each receiver with a login password to enter the setting module of the sender's space-time key generator to set the generation scheme of the encryption key. The setting right of the symmetric key generation scheme is given to each receiver. The setting items of the key real-time generator include function expressions and rules including n time independent variable functions and n geographical location independent variable functions; the latest key is generated in real time at the sender. The sender encrypts the plain text into cipher text according to the key and cryptographic algorithm called in real time, and sends the encrypted cipher text to the receiver; The key used to decrypt the ciphertext in the receiving module is calculated by the receiving party according to the key generation scheme set by the receiving party at the sender, and corresponds one-to-one to the encryption key generated in real time by the sender. After receiving the ciphertext, the receiving party calculates the key according to the scheme set by the sender based on the time and place, and decrypts the received ciphertext into plaintext on the receiving device according to the key.

10. A readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.