Digital information encryption method

By combining the key generation system of pseudo-random number and true random number generator, the encryption key is dynamically updated and external random factors are introduced, which solves the problem of insufficient key leakage and security in the existing encryption methods, and improves the information encryption Security and flexibility.

CN119094124APending Publication Date: 2024-12-06Hangzhou Gongshu District University of Technology Future Technology Research Institute

Patent Information

Application Number
CN202411264217.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

Existing encryption methods have problems of information leakage and insufficient security when key leakage or the same key is used for a long time, especially in network communications, which lacks an effective key update mechanism.

Method used

Using a key generation system combining high-speed pseudo-random number generator and true random number generator, dynamically changing encryption keys are generated through preset algorithms, and external random factors are introduced, and the key update mechanism is set to regularly replace the initial key sequence. , use advanced encryption standards for encryption and decryption processing.

Benefits of technology

It significantly improves the randomness and unpredictability of keys, enhances the security of encryption algorithms, and improves system flexibility and security through regular key updates, reducing the possibility that keys are predicted.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094124A_ABST
    Figure CN119094124A_ABST
Patent Text Reader

Abstract

The invention discloses a digital information encryption method, which comprises the following steps of: generating an initial key sequence with a high entropy value by using physical noise as a seed value in a mode of combining a hardware true random number generator (TRNG) and a software pseudo random number generator (PRNG); on the basis, a preset algorithm is adopted, the preset algorithm comprises a key expansion module, and the initial key sequence is expanded into a key stream which is long enough through a hash function or a password-based key derivation function, so that the encryption requirements of data with different lengths are met. An advanced encryption standard or other advanced encryption algorithms are adopted in the encryption process, and safe transmission of data is ensured. The decryption process corresponds to the encryption process, and plaintext data is recovered by using the same dynamic change key. The invention provides an efficient, safe and flexible digital information encryption scheme, is suitable for data protection in various application scenes, and remarkably improves the anti-attack capability of an encryption system by periodically updating the key and combining external random factors.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of digital information encryption, in particular to a digital information encryption method. Background Art

[0002] The rapid development of Internet technology has made the network environment increasingly complex. A large amount of important privacy information is facing the threat of illegal access. With the rapid development of information technology, the importance of information security has become increasingly prominent, especially in the field of network communications. Data encryption technology has become a key means to protect sensitive information from eavesdropping and tampering.

[0003] Traditional encryption methods mainly rely on static keys, that is, the same key is used for encryption and decryption operations during the entire session. In addition, existing encryption methods have the following disadvantages in use:

[0004] (1) If the key of the existing encryption method is leaked, all data during the entire session may be cracked, resulting in information leakage. In addition, using the same key for a long time increases the risk of the key being analyzed and guessed;

[0005] (2) Existing encryption methods Traditional methods often have no or only simple key update mechanisms, which cannot effectively address security challenges in long-term communications, especially when the keys may become vulnerable over time. Summary of the invention

[0006] The technical problem to be solved by the present invention is to overcome the above technical defects and provide a digital information encryption method.

[0007] In order to solve the above problem, the technical solution of the present invention is a digital information encryption method, comprising the following steps:

[0008] S1. Generate an initial key sequence using an efficient key generation system, wherein the system uses a combination of a high-speed pseudo-random number generator and a true random number generator, and the system can quickly generate a key sequence with a high entropy value;

[0009] S2. Generate a dynamically changing encryption key according to the initial key sequence by using a preset algorithm, wherein the preset algorithm includes a key expansion module, and the preset algorithm can expand the initial key sequence into a sufficiently long key stream;

[0010] S3, using the dynamically changing encryption key to encrypt the plaintext data to generate ciphertext data, wherein the encryption process adopts the Advanced Encryption Standard or other advanced encryption algorithms;

[0011] S4, using the same dynamically changing encryption key as the encryption process to decrypt the ciphertext data to restore the plaintext data, the decryption process corresponding to the encryption process;

[0012] S5, transmitting the encrypted data through the network, and the receiving end decrypting it using the same dynamic key;

[0013] S6. In the key generation process, external random factors are introduced, such as random noise generated by hardware, to increase the unpredictability of the key;

[0014] S7. Setting a key updating mechanism so that at a preset time interval or under specific conditions, the initial key sequence is automatically replaced and the dynamically changing encryption key is regenerated.

[0015] Furthermore, the true random number generator can collect physical noise from an external environment as a seed value, and the pseudo-random number generator generates a subsequent key sequence based on the seed value.

[0016] Furthermore, the key expansion module in the preset algorithm of step S2 adopts a hash function or a password-based key derivation function, which can generate a key stream of sufficient length from the initial key sequence to meet the encryption requirements of data of different lengths. The key derivation function uses salt values ​​and multiple rounds of iterations to increase the difficulty of calculation and prevent brute force cracking.

[0017] Furthermore, the external random factors in step S6 include but are not limited to system timestamps, user behavior data, and physical environment parameters, and the selection and use methods must ensure the unpredictability and security of the key. The collection and processing of the external random factors should be performed in real time to ensure that each generated key sequence is unique.

[0018] Furthermore, the efficient key generation system in step S1 includes a hardware-based true random number generator and a software-implemented pseudo-random number generator, wherein the true random number generator is used to initialize the state of the pseudo-random number generator and the true random number generator is periodically re-seeded.

[0019] Furthermore, the true random number generator generates non-repetitive and unpredictable random numbers by collecting environmental noise, such as CPU temperature fluctuations, network interface status changes, and user input patterns, and the pseudo-random number generator adopts a cryptographically secure algorithm, such as Blu Bl um Shub, Fortuna, or other proven effective algorithms.

[0020] Furthermore, the hash function adopts a strong hash algorithm such as SHA-256 or SHA-3 to ensure the security and irreversibility of the key stream, and the number of iterations of the key derivation function can be dynamically adjusted according to the security level.

[0021] Furthermore, the update mechanism in step S7 includes key generation, distribution, storage, update and destruction, and the dynamically changing encryption key is destroyed immediately after each use. The destruction operation includes but is not limited to measures such as erasing the key copy in the memory and overwriting the temporary files on the hard disk.

[0022] The advantages of the present invention compared with the prior art are:

[0023] 1. The present invention provides a digital information encryption method. By combining a true random number generator (TRNG) and a pseudo random number generator (PRNG), the present invention is able to generate a key sequence with a high entropy value, which significantly improves the randomness and unpredictability of the key, thereby enhancing the security of the encryption algorithm. In addition, by periodically reseeding the TRNG, the possibility of the key being predicted is further reduced;

[0024] 2. The present invention provides a digital information encryption method, in which the key update mechanism allows the initial key sequence to be automatically replaced at preset time intervals or under specific conditions, which not only improves the flexibility of the system, but also facilitates future upgrades or expansions of encryption algorithms or key management strategies. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a flow chart of a digital information encryption method of the present invention. DETAILED DESCRIPTION

[0026] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the appended claims.

[0027] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0028] A digital information encryption method comprises the following steps:

[0029] S1. Generate an initial key sequence using an efficient key generation system, which uses a combination of a high-speed pseudo-random number generator and a true random number generator. The system can quickly generate a key sequence with a high entropy value;

[0030] S2. Generate a dynamically changing encryption key according to the initial key sequence by using a preset algorithm, wherein the preset algorithm includes a key expansion module, and the preset algorithm can expand the initial key sequence into a sufficiently long key stream;

[0031] S3, using a dynamically changing encryption key to encrypt the plaintext data to generate ciphertext data, the encryption process using the Advanced Encryption Standard or other advanced encryption algorithms;

[0032] S4, using the same dynamically changing encryption key as the encryption process to decrypt the ciphertext data to restore the plaintext data, the decryption process corresponds to the encryption process;

[0033] S5, the encrypted data is transmitted over the network, and the receiving end uses the same dynamic key to decrypt it;

[0034] S6. In the key generation process, external random factors are introduced, such as random noise generated by hardware, to increase the unpredictability of the key;

[0035] S7. Set up a key update mechanism so that the initial key sequence is automatically replaced at preset time intervals or under specific conditions to regenerate a dynamically changing encryption key.

[0036] Furthermore, the efficient key generation system in step S1 includes a hardware-based true random number generator and a software-implemented pseudo-random number generator, wherein the true random number generator is used to initialize the state of the pseudo-random number generator and periodically reseed the true random number generator.

[0037] Furthermore, the true random number generator can collect physical noise from the external environment as a seed value, and the pseudo-random number generator generates a subsequent key sequence based on this seed value.

[0038] Furthermore, the true random number generator generates non-repetitive and unpredictable random numbers by collecting environmental noise, such as CPU temperature fluctuations, network interface status changes, and user input patterns. The pseudo-random number generator uses a cryptographically secure algorithm, such as Blu rum Shub, Fortuna, or other proven algorithms.

[0039] Furthermore, the key expansion module in the preset algorithm of step S2 adopts a hash function or a password-based key derivation function, which can generate a key stream of sufficient length from the initial key sequence to meet the encryption requirements of data of different lengths. The key derivation function uses salt values ​​and multiple rounds of iterations to increase the calculation difficulty and prevent brute force cracking.

[0040] Furthermore, the hash function adopts a strong hash algorithm such as SHA-256 or SHA-3 to ensure the security and irreversibility of the key stream, and the number of iterations of the key derivation function can be dynamically adjusted according to the security level.

[0041] Furthermore, in step S6, the external random factors include but are not limited to system timestamps, user behavior data, and physical environment parameters. The selection and use methods must ensure the unpredictability and security of the key. The collection and processing of external random factors should be carried out in real time to ensure that each generated key sequence is unique.

[0042] Furthermore, the update mechanism in step S7 includes key generation, distribution, storage, update and destruction. The dynamically changing encryption key is destroyed immediately after each use. The destruction operation includes but is not limited to measures such as erasing the key copy in the memory and overwriting the temporary files on the hard disk.

[0043] In specific use, such as Figure 1 As shown, first start the TRNG, collect noise samples from the physical environment, process these noise samples into seed values ​​in binary form, use the seed value to initialize the state of the PRNG, and periodically (for example, every 24 hours or after every million generations) use new noise samples to reseed the PRNG to maintain randomness.

[0044] The initial key sequence is used as input to the key expansion module, and the salt value is added to the initial key sequence to ensure that even the same initial key can produce different key streams. Multiple rounds of hash operations are performed, and the number of iterations can be dynamically adjusted according to the required computational difficulty and security level to output a sufficiently long key stream for subsequent data encryption processes.

[0045] Obtain a dynamically changing encryption key, use AES or other advanced encryption algorithms, combine with the generated key stream to encrypt the plaintext data, save or transmit the encrypted ciphertext data, the receiving end obtains the same dynamically changing encryption key, uses the same encryption algorithm and key stream to decrypt the ciphertext data, and restores the original plaintext data.

[0046] The initial key sequence is automatically replaced at preset time intervals or under specific conditions (such as when the key usage limit is reached). The new initial key sequence also needs to be generated through a combination of TRNG and PRNG to ensure that the dynamically changing encryption key is destroyed immediately after each use, including erasing the key copy in the memory and overwriting the temporary files on the hard disk. The generation, distribution, storage and update of the key all follow strict security protocols to ensure the security of the key throughout its life cycle.

[0047] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0048] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

[0049] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.

Claims

1. A digital information encryption method, characterized in that: The following steps are involved: S1. Generate an initial key sequence using an efficient key generation system, wherein the system uses a combination of a high-speed pseudo-random number generator and a true random number generator, and the system can quickly generate a key sequence with a high entropy value; S2. Generate a dynamically changing encryption key according to the initial key sequence by using a preset algorithm, wherein the preset algorithm includes a key expansion module, and the preset algorithm can expand the initial key sequence into a sufficiently long key stream; S3, using the dynamically changing encryption key to encrypt the plaintext data to generate ciphertext data, wherein the encryption process adopts the Advanced Encryption Standard or other advanced encryption algorithms; S4, using the same dynamically changing encryption key as the encryption process to decrypt the ciphertext data to restore the plaintext data, the decryption process corresponding to the encryption process; S5, transmitting the encrypted data via the network, and the receiving end decrypting the data using the same dynamic key; S6. In the key generation process, external random factors are introduced, such as random noise generated by hardware, to increase the unpredictability of the key; S7. Setting a key updating mechanism so that at a preset time interval or under specific conditions, the initial key sequence is automatically replaced and the dynamically changing encryption key is regenerated.

2. A digital information encryption method according to claim 1, characterized in that: The efficient key generation system in step S1 includes a hardware-based true random number generator and a software-implemented pseudo-random number generator, wherein the true random number generator is used to initialize the state of the pseudo-random number generator and the true random number generator is periodically re-seeded.

3. A digital information encryption method according to claim 2, characterized in that: The true random number generator can collect physical noise from the external environment as a seed value, and the pseudo-random number generator generates a subsequent key sequence based on the seed value.

4. A digital information encryption method according to claim 3, characterized in that: The true random number generator generates non-repetitive and unpredictable random numbers by collecting environmental noise, such as CPU temperature fluctuations, network interface status changes, and user input patterns, and the pseudo-random number generator uses a cryptographically secure algorithm, such as Blum Blum Shub, Fortuna, or other proven algorithms.

5. A digital information encryption method according to claim 1, characterized in that: The key expansion module in the preset algorithm of step S2 adopts a hash function or a password-based key derivation function, which can generate a key stream of sufficient length from the initial key sequence to meet the encryption requirements of data of different lengths. The key derivation function uses salt values ​​and multiple rounds of iterations to increase the difficulty of calculation and prevent brute force cracking.

6. A digital information encryption method according to claim 5, characterized in that: The hash function uses a strong hash algorithm such as SHA-256 or SHA-3 to ensure the security and irreversibility of the key stream, and the number of iterations of the key derivation function can be dynamically adjusted according to the security level.

7. A digital information encryption method according to claim 1, characterized in that: The external random factors in step S6 include but are not limited to system timestamp, user behavior data and physical environment parameters, etc. The selection and use method must ensure the unpredictability and security of the key. The collection and processing of the external random factors should be carried out in real time to ensure that each generated key sequence is unique.

8. A digital information encryption method according to claim 1, characterized in that: The update mechanism in step S7 includes key generation, distribution, storage, update and destruction. The dynamically changing encryption key is destroyed immediately after each use. The destruction operation includes but is not limited to measures such as erasing the key copy in the memory and overwriting the temporary file on the hard disk.

Citation Information

Patent Citations

  • Method, system and device for constructing true random number combining software with hardware

    CN107465508A

  • High-entropy random number generation method in physical unclonable function hardware

    CN116527238A

  • Encryption method for power transformation and distribution intelligent control system

    CN117714207A

  • Method and device for data encryption

    US20180054301A1

  • Decoy bits method for direct encryption and key generation

    WO2014164180A2

Cited By

  • Secure OTA upgrading method and system based on quantum random number

    CN119814299A

  • Instant messaging data encryption transmission method and system

    CN120090884A