A database encryption method based on quantum random numbers

The quantum random number generator generates sequence numbers in Internet devices and generates keys in local servers, which solves the problem of easy cracking of pseudo-random numbers, and realizes the randomness and security of keys, avoids the problem of keys being easily cracked. Key leaks.

CN113761569BActive Publication Date: 2024-11-12ZHONGKE SMART (SUZHOU) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110870857.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-30
Publication Date
2024-11-12
Estimated Expiration
2041-07-30

AI Technical Summary

Technical Problem

The pseudo-random numbers used by existing Internet devices in mass production are easily recorded and cracked, resulting in key leakage and data loss.

Method used

The sequence number is generated by a quantum random number generator, and the key is generated in the local server through the sequence number to ensure the randomness of the key, and key acquisition is performed in both clients to avoid key leakage.

Benefits of technology

The key generated by the quantum random number generator changes with the sequence number, ensuring the randomness of the key, and is generated and used within the client, avoiding the risk of key leakage during network transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113761569B_ABST
    Figure CN113761569B_ABST
Patent Text Reader

Abstract

The invention discloses a database encryption method based on quantum random numbers, and relates to the field of database encryption. First, a serial number is obtained. An information sending end sends a request to a database. The database randomly generates a serial number and verification information through a quantum random number generator. The database sends the serial number and verification information back to the information sending end. Second, a key is obtained. A local server is provided in the information sending end. A code book is provided in the local server. After receiving the serial number, the information sending end brings the serial number into the code book to obtain the key. Third, file transmission. After obtaining the key, the file is encrypted according to an encryption algorithm, and then the encrypted file and verification information are transmitted to the information receiving end. Fourth, the file is decrypted. The invention first randomly generates a serial number through a quantum random number generator, and then generates a key through the serial number, thereby ensuring the randomness of the key. At the same time, the key is obtained in two clients to avoid key leakage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of database encryption, and in particular to a database encryption method based on quantum random numbers. Background Art

[0002] Quantum information is a new discipline developed by combining quantum physics and information technology, mainly including two fields: quantum communication and quantum computing. Quantum communication mainly studies quantum cryptography, quantum teleportation, long-distance quantum communication technology, etc.; quantum computing mainly studies quantum computers and quantum algorithms suitable for quantum computers.

[0003] Currently, Internet devices are being mass-produced, which involves password generation scenarios. Pseudo-random numbers can be easily recorded and cracked, which can easily lead to key leakage and data loss. Summary of the invention

[0004] In order to solve the deficiencies mentioned in the above background technology, the purpose of the present invention is to provide a database encryption method based on quantum random numbers. The present invention first randomly generates a serial number through a quantum random number generator, and then generates a key through the serial number, thereby ensuring the randomness of the key. At the same time, the key is obtained within two clients to avoid key leakage.

[0005] The purpose of the present invention can be achieved through the following technical solutions:

[0006] A database encryption method based on quantum random numbers comprises the following steps:

[0007] S1. Get the serial number

[0008] The information sender sends a request to the database, which randomly generates a serial number and verification information through a quantum random number generator. The database then sends the serial number and verification information back to the information sender.

[0009] S2. Get the key

[0010] The information sending end is provided with a local server, and a code book is provided in the local server. After receiving the serial number, the information sending end enters the serial number into the code book to obtain the key;

[0011] S3, file transfer

[0012] After obtaining the key, the file is encrypted according to the encryption algorithm, and then the encrypted file and verification information are transmitted to the information receiving end;

[0013] S4. Decrypted files

[0014] The information receiving end is also provided with a local server, in which a code book identical to that in the sending end is provided. The information receiving end obtains the key through the same serial number, and then decrypts the encrypted file through the key.

[0015] Furthermore, when the database in S1 randomly generates a serial number, it will also generate a corresponding verification message, the verification information and the serial number correspond one to one, and the database will generate a record book to record the corresponding verification message and the serial number.

[0016] Furthermore, the record book may be set with a time, after which the corresponding record book is automatically deleted.

[0017] Furthermore, after receiving the sequence number in S2, the information sending end first determines the integrity of the sequence number. If the sequence number is incomplete, a request is sent to the database again.

[0018] Furthermore, when the information sending end makes a request to the database again, the original record book is automatically deleted, and after a new serial number and verification information are generated, a new record book is generated again for recording.

[0019] Furthermore, the encryption algorithm in S3 is symmetric encryption.

[0020] Furthermore, the symmetric encryption is one of DES, 3DES, and AES.

[0021] Furthermore, in S4, after receiving the verification information and the encrypted file, the information receiving end obtains the serial number by sending the verification information to a database.

[0022] Beneficial effects of the present invention:

[0023] The present invention first randomly generates a serial number through a quantum random number generator, and then corresponds the serial number to a local code book, so as to generate a key. The key changes with the serial number, ensuring the randomness of the key. At the same time, the key is obtained in two clients, and the key for decrypting the file does not need to be transmitted on the network, avoiding key leakage. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The present invention will be further described below in conjunction with the accompanying drawings.

[0025] Figure 1 It is the overall flow chart of the present invention;

[0026] Figure 2 It is the database workflow diagram of the present invention. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] In the description of the present invention, it should be understood that the terms "opening", "upper", "lower", "thickness", "top", "middle", "length", "inside", "all around" and the like indicating orientation or positional relationship are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the components or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0029] A database encryption method based on quantum random numbers, such as Figure 1 and 2 As shown, the following steps are included:

[0030] S1. Get the serial number

[0031] The information sender sends a request to the database, which randomly generates a serial number and verification information through a quantum random number generator. The database then sends the serial number and verification information back to the information sender.

[0032] When the database in S1 randomly generates a serial number, it will also generate a corresponding verification information. The verification information corresponds to the serial number one by one, and the database will generate a record book for recording the corresponding verification message and the serial number; the record book can be set with a time, and after this time, the corresponding record book will be automatically deleted.

[0033] S2. Get the key

[0034] The information sending end is provided with a local server, and a code book is provided in the local server. After receiving the serial number, the information sending end enters the serial number into the code book to obtain the key;

[0035] After receiving the serial number in S2, the information sending end first determines the integrity of the serial number. If the serial number is incomplete, it sends a request to the database again; when the information sending end requests the database again, it automatically deletes the original record book, and after generating a new serial number and verification information, it generates a new record book for recording.

[0036] S3, file transfer

[0037] After obtaining the key, the file is encrypted according to the encryption algorithm, and then the encrypted file and verification information are transmitted to the information receiving end;

[0038] The encryption algorithm is symmetric encryption, which is one of DES, 3DES, and AES.

[0039] S4. Decrypted files

[0040] The information receiving end also has a local server, in which a code book identical to that in the sending end is set. The information receiving end obtains the key through the same serial number, and then decrypts the encrypted file through the key;

[0041] In S4, after receiving the verification information and the encrypted file, the information receiving end obtains the serial number by sending the verification information to a database.

[0042] The serial number is first randomly generated by the quantum random number generator, and then the key is generated by the serial number, which ensures the randomness of the key. At the same time, the key is obtained within two clients to avoid key leakage.

[0043] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0044] 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 present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, and these changes and improvements all fall within the scope of the present invention to be protected.

Claims

1. A database encryption method based on quantum random numbers, It is characterized in that The following steps are involved: S1. Get the serial number The information sender sends a request to the database, which randomly generates a serial number and verification information through a quantum random number generator. The database then sends the serial number and verification information back to the information sender. S2. Get the key The information sending end is provided with a local server, and a code book is provided in the local server. After receiving the serial number, the information sending end enters the serial number into the code book to obtain the key; S3, file transfer After obtaining the key, the file is encrypted according to the encryption algorithm, and then the encrypted file and verification information are transmitted to the information receiving end; S4. Decrypted files The information receiving end also has a local server, in which a code book identical to that in the sending end is set. The information receiving end obtains the key through the same serial number, and then decrypts the encrypted file through the key; In S4, after receiving the verification information and the encrypted file, the information receiving end obtains the serial number by sending the verification information to a database.

2. According to the database encryption method based on quantum random numbers according to claim 1, It is characterized in that When the database in S1 randomly generates a serial number, it will also generate a corresponding verification message, the verification information and the serial number correspond one to one, and the database will generate a record book to record the corresponding verification message and the serial number.

3. According to the database encryption method based on quantum random numbers according to claim 2, It is characterized in that The record book may be set with a time, after which the corresponding record book is automatically deleted.

4. According to the database encryption method based on quantum random numbers according to claim 1, It is characterized in that In S2, after receiving the sequence number, the information sending end first determines the integrity of the sequence number. If the sequence number is incomplete, it sends a request to the database again.

5. According to the database encryption method based on quantum random numbers according to claim 4, It is characterized in that When the information sending end makes a request to the database again, the original record book is automatically deleted, and after a new serial number and verification information are generated, a new record book is generated again for recording.

6. According to the database encryption method based on quantum random numbers according to claim 1, It is characterized in that The encryption algorithm in S3 is symmetric encryption.

7. According to the database encryption method based on quantum random numbers according to claim 6, It is characterized in that The symmetric encryption is one of DES, 3DES and AES.