Intelligent money box automatic locking and unlocking method and device and storage medium
Through the intelligent box automatic switch lock method, biometric information, anti-quantum computing keys and blockchain technology are used to solve the problems of security and management inconvenience of traditional box, and high security and convenient management are achieved.
Patent Information
- Application Number
- CN202510428752.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-08
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2045-04-08
AI Technical Summary
The traditional box switch lock method has biometric identification technology that is vulnerable to forgery attacks, the risk of leakage of passwords and key management, and the lack of real-time recording methods, resulting in low security and inconvenient management.
The intelligent box automatic switch lock method is adopted. By receiving user biometric information, the feature summary is extracted and encrypted, and uploaded to the cloud database. The comparison results generate a single valid target key that resists quantum computing, which is used to unlock or lock, and upload operation information to the blockchain system in real time.
It improves the security of biometric information, prevents forgery attacks, enhances the security of key management, realizes the immutability and traceability of operation information, and improves the security and management convenience of the box.
Smart Images

Figure CN119942686A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of intelligent locks, and in particular to a method, device and storage medium for automatically opening and closing a lock on an intelligent cash box. Background Art
[0002] With the continuous development of the financial industry and the increasing advancement of security technology, cash boxes, as key equipment for storing and transporting important items in financial institutions, have received extensive attention for their safety. Currently, the traditional methods of opening and closing cash boxes have many technical defects.
[0003] Among them, traditional biometric recognition technologies, such as fingerprint recognition, although they provide a means of identity authentication to a certain extent, are vulnerable to forgery or copying attacks and have relatively low security. At the same time, password and key management methods also have the risk of leakage. Once lost or stolen, they will pose a serious threat to the security of the cash box.
[0004] In addition, traditional cash box lock and unlock operations lack real-time recording methods, and cannot accurately track information such as the cash box unlocking time, operator identity, and environmental parameters. When a security incident occurs, it is difficult to quickly locate the problem and trace responsibility, which brings great inconvenience to safety management and accident handling, and seriously threatens the safety of the cash box. Summary of the invention
[0005] The present application provides a method, device and storage medium for automatically opening and closing a smart cash box, which are used to solve the above-mentioned technical problems.
[0006] The first aspect of the present application provides a method for automatically opening and closing a smart cash box, the method comprising: receiving a cash box unlocking request from a user, wherein the cash box unlocking request includes biometric information of the user; Extracting a feature summary of the user's biometric information, encrypting the feature summary to obtain encrypted data, and uploading the encrypted data to a cloud database; Obtain the comparison result between the encrypted data and the authorized user feature information in the cloud database. After determining that the user's identity is an authorized identity based on the comparison result, use an encryption algorithm that resists quantum computing and combine the geographic location of the cash box, the current timestamp, and the cash box verification information to generate a target key. The target key is a one-time encryption key. Unlock the target cash box according to the encryption key, and upload the unlocking time, operator identity information and environmental parameter information of the target cash box to the blockchain system in real time; After receiving the instruction of the user's operation completion, a target key is generated according to the number of the cash box and the current timestamp, and the target key is a single-time valid key; The cash box is locked according to the target key.
[0007] Optionally, extracting a feature summary of the user's biometric information, encrypting the feature summary to obtain encrypted data, and uploading the encrypted data to a cloud database includes: After converting the user biometric information into a feature summary using a hash SHA-256 algorithm, the feature summary is encrypted using a quantum key distribution QKD algorithm to obtain encrypted data; Obtaining unique identification data of the encrypted data; Sending the unique identification data to the cloud database, so that the cloud database determines the data type of the encrypted data according to the unique identification data; Obtaining a data transmission channel request sent by the cloud database, and constructing a target data transmission channel according to the data transmission channel request, wherein the target data transmission channel is a single valid transmission channel; The encrypted data is transmitted to the cloud database through the target data transmission channel.
[0008] Optionally, obtaining a comparison result between the encrypted data and the authorized user feature information in the cloud database, and determining that the identity of the user is an authorized identity according to the comparison result, includes: decrypting the encrypted data to obtain the feature summary; Extracting target summary information from the feature summary, where the target summary information is unique identification information representing the user; Using an artificial intelligence model, the target summary information is compared with the authorized user feature information stored in the cloud data, and a comparison result is obtained; Obtaining a core rating value of the user according to the comparison result; When it is determined that the core score value of the user meets the preset score value, the identity of the user is determined to be an authorized identity.
[0009] Optionally, an encryption algorithm resistant to quantum computing is used, and a target key is generated in combination with the geographic location of the cash box, the current timestamp, and the cash box verification information. The target key is a one-time encryption key, including: Extract the serial number of the cash box; Obtaining the cash box number of the cash box according to the serial number; Determine the GPS coordinate information of the cash box through the cash box number and generate a current timestamp based on a trusted time source; Obtain quantum random numbers based on quantum random generation algorithm; The NTRU algorithm is used to generate a target key from the quantum random number, the GPS coordinate information of the cash box, the current timestamp and the serial number of the cash box. The target key is a one-time encryption key.
[0010] Optionally, unlocking the target cash box according to the encryption key, and uploading the unlocking time, operator identity information and environmental parameter information of the target cash box to the blockchain system in real time includes: Obtaining a key unlocking authority instruction for the encryption key; Unlock the target cash box according to the key unlocking authority instruction and feedback the unlocking status; When it is determined that the unlocking status is successfully unlocked, the unlocking time, operator ID, and environmental parameters of the cash box are digitally signed and verified and then uploaded to the blockchain system.
[0011] Optionally, after receiving the instruction of the user's operation completion, a target key is generated according to the number of the cash box and the current timestamp, and the target key is a single-use key, including: After receiving the instruction of the user's operation completion, determining whether there is an unlocking record of the cash box; If yes, then based on the serial number of the cash box, the target key is generated by a quantum random number algorithm; After uploading the target key to the cloud database, the state of the cash box is marked as a waiting-for-use state, and the original key of the cash box is destroyed.
[0012] Optionally, locking the cash box according to the target key includes: After obtaining the target key, determining whether the target key is within the validity period; If yes, the cash box is locked according to the target key, and the locking time and operator ID are uploaded to the cloud database for storage.
[0013] The second aspect of the present application provides an intelligent automatic opening and closing lock device for a cash box, comprising: A receiving unit, configured to receive a cash box unlocking request from a user, wherein the cash box unlocking request includes user biometric information; An extraction unit, used for extracting a feature summary of the user's biometric information, encrypting the feature summary to obtain encrypted data, and uploading the encrypted data to a cloud database; A first generating unit is used to obtain a comparison result between the encrypted data and the authorized user feature information in the cloud database, and after determining that the identity of the user is an authorized identity according to the comparison result, an encryption algorithm resistant to quantum computing is used, and a target key is generated in combination with the geographic location of the cash box, the current timestamp and the cash box verification information, wherein the target key is a one-time encryption key; An unlocking unit, used to unlock the target cash box according to the encryption key, and upload the unlocking time, operator identity information and environmental parameter information of the target cash box to the blockchain system in real time; The second generating unit is used to generate a target key according to the number of the cash box and the current timestamp after receiving the instruction of the user's operation completion, and then upload it to the cloud database, wherein the target key is a single-time valid key; A locking unit, used to lock the cash box according to the target key The third aspect of the present application provides a smart automatic opening and closing lock device for a cash box, the device comprising: processor, memory, input-output unit, and bus; The processor is connected to the storage, the input and output unit, and the bus; The storage stores a program, and the processor calls the program to execute the first aspect and any optional method in the first aspect.
[0014] A fourth aspect of the present application provides a computer-readable storage medium, on which a program is stored. When the program is executed on a computer, the program executes the first aspect and any optional method in the first aspect.
[0015] It can be seen from the above technical solutions that this application has the following advantages: 1. By receiving the user's cash box unlocking request and extracting the feature summary of the user's biometric information for encryption, the security of the biometric information during transmission and storage is ensured. The encrypted data is compared with the authorized user feature information in the cloud database, which effectively prevents forgery or copying attacks and improves the accuracy and reliability of identity authentication.
[0016] 2. A quantum-resistant encryption algorithm is used to generate a single valid target key. Even if the key is intercepted, it cannot be used to unlock other cash boxes at other times, greatly reducing the risk of key leakage. The target key is generated by combining the cash box's geographic location, current timestamp, and cash box verification information, making the key highly unique and time-effective, further enhancing the security of key management.
[0017] 3. The unlocking time of the cash box, the identity information of the operator and the environmental parameter information are uploaded to the blockchain system in real time, ensuring the immutability and traceability of the operation information. When a security incident occurs, the problem can be quickly located and the responsibility can be traced, providing strong support for safety management and accident handling.
[0018] 4. After receiving the instruction that the user has completed the operation, a single-use target key is generated according to the cash box number and the current timestamp for locking. This simplifies the locking process and improves the convenience of use. The single-use key mechanism ensures the security of the locking operation and prevents unauthorized locking behavior.
[0019] 5. It effectively solves many problems existing in the traditional cash box opening and locking methods, and provides financial institutions with a safer, more reliable and convenient cash box management solution. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solution in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0021] Figure 1 This is a flow chart of an embodiment of the method for automatically opening and closing a lock on a smart cash box of the present application; Figure 2 This is a schematic diagram of another embodiment of the method for automatically opening and closing a smart cash box according to the present application; Figure 3 This is a schematic diagram of another embodiment of the method for automatically opening and closing a smart cash box according to the present application; Figure 4 This is a schematic diagram of another embodiment of the method for automatically opening and closing a smart cash box according to the present application; Figure 5 This is a schematic diagram of another embodiment of the method for automatically opening and closing a smart cash box according to the present application; Figure 6 This is a schematic diagram of another embodiment of the method for automatically opening and closing a smart cash box according to the present application; Figure 7 This is a schematic diagram of another embodiment of the method for automatically opening and closing a smart cash box according to the present application; Figure 8 This is a schematic diagram of an embodiment of a method and device for automatically opening and closing a lock of a smart cash box according to the present application; Fig. 9 This is a schematic diagram of another embodiment of the method and device for automatically opening and closing the intelligent cash box of the present application. DETAILED DESCRIPTION
[0022] The present application provides a method, device and storage medium for automatically opening and locking an intelligent cash box, which improves the safety of cash box use, effectively solves many problems existing in traditional cash box opening and locking methods, and provides financial institutions with a safer, more reliable and convenient cash box management solution.
[0023] See also Figure 1 In a first aspect, the present application provides an embodiment of a method for automatically opening and closing a lock of an intelligent cash box, the embodiment comprising: 101. Receive a cash box unlocking request from a user, where the cash box unlocking request includes user biometric information; 102. Extract a feature summary of the user's biometric information, encrypt the feature summary to obtain encrypted data, and upload the encrypted data to a cloud database; 103. Obtain the comparison result between the encrypted data and the authorized user feature information in the cloud database. After determining that the user's identity is the authorized identity according to the comparison result, use an encryption algorithm resistant to quantum computing and combine the geographic location of the cash box, the current timestamp and the cash box verification information to generate a target key. The target key is a one-time encryption key. 104. Unlock the target cash box according to the encryption key, and upload the unlocking time, operator identity information and environmental parameter information of the target cash box to the blockchain system in real time; 105. After receiving the instruction of the user's operation completion, a target key is generated according to the number of the cash box and the current timestamp, and the target key is a single-time valid key; 106. Lock the cash box according to the target key.
[0024] In the embodiment of the present application, firstly, a cash box unlocking request from a user is received, the cash box unlocking request includes the user's biometric information, then a feature summary of the user's biometric information is extracted, the feature summary is encrypted to obtain encrypted data, and then the encrypted data is uploaded to a cloud database, and a comparison result between the encrypted data and the authorized user feature information in the cloud database is further obtained. After determining that the user's identity is an authorized identity according to the comparison result, an encryption algorithm resistant to quantum computing is adopted, and a target key is generated in combination with the geographic location of the cash box, the current timestamp and the cash box verification information. The target key is a one-time encryption key. Then, the target cash box is unlocked according to the encryption key, and the unlocking time, operator identity information and environmental parameter information of the target cash box are uploaded to the blockchain system in real time. When an instruction to complete the user's operation is received, a target key is generated according to the cash box number and the current timestamp. The target key is a one-time key. Finally, the cash box is locked according to the target key.
[0025] In step 101, a cash box unlocking request from a user is received, and the cash box unlocking request includes the user's biometric information. When a user needs to open a cash box, he first submits an unlocking request through a biometric identification device on the cash box, such as a fingerprint reader, a facial recognition camera, an iris scanner, etc. Therefore, the unlocking request includes the user's biometric information, which is a unique identifier of the user's identity and is used for subsequent identity verification. After the terminal receives the unlocking request, it pre-processes the biometric information to improve the accuracy of subsequent identification, and then executes step 102.
[0026] In step 102, the feature summary of the user's biometric information is extracted, the feature summary is encrypted to obtain encrypted data, and the encrypted data is uploaded to the cloud database, wherein the terminal extracts the feature summary from the pre-processed biometric information, which is a process of converting the biometric information into a simplified and unique representation through a hash algorithm. The uniqueness and stability of the feature summary are ensured in the feature summary extraction process, that is, the biometric information of the same user should generate the same summary, and the biometric information of different users should generate different summaries.
[0027] It should be noted that in order to protect user privacy and data security, the terminal will encrypt the extracted feature summary, and the encrypted data will be uploaded to the cloud database through a secure channel for comparison with the stored authorized user feature information.
[0028] In step 103, the comparison result between the encrypted data and the authorized user feature information in the cloud database is obtained. After the identity of the user is determined to be an authorized identity according to the comparison result, a quantum computing-resistant encryption algorithm is used, and a target key is generated in combination with the geographic location of the cash box, the current timestamp and the cash box verification information. The target key is a one-time encryption key; In the embodiment of the present application, the cloud database receives the encrypted data uploaded by the terminal and decrypts it using the corresponding decryption algorithm to obtain a feature summary. Then, the cloud database compares the decrypted feature summary with the stored authorized user feature information and determines whether the user's identity is an authorized identity through a matching algorithm. If the comparison result shows that the user's identity is authorized, that is, the user's biometric information matches the record in the cloud database, then the terminal will proceed to the next step of the key generation process.
[0029] The terminal uses a quantum computing-resistant encryption algorithm to generate a key. When generating the key, the terminal combines the geographic location of the cash box, the current timestamp, and the cash box verification information, such as the cash box number, status, verification code, etc. as input parameters. Through these input parameters and the quantum computing-resistant encryption algorithm, the terminal generates a target key, which is valid for a single time, that is, it can only be used for one unlocking operation. After the target key is generated, step 104 is executed.
[0030] In step 104, the target cash box is unlocked according to the encryption key, and the unlocking time, operator identity information and environmental parameter information of the target cash box are uploaded to the blockchain system in real time; In the embodiment of the present application, after the terminal obtains the target key in step 103, it will use the generated target key to unlock the target cash box, and ensure that only the user holding the correct key can open the cash box through the key verification mechanism.
[0031] At the same time, in order to record the unlocking operation and ensure the data is tamper-proof, the terminal will upload the unlocking time, operator identity information such as user ID, summary or hash value of biometric information, and environmental parameter information such as temperature, humidity, light intensity, sound level, etc. to the blockchain system in real time. After receiving the above information, the blockchain system will package the information into a block and add the block to the blockchain through a consensus mechanism to ensure the transparency, security and tamper-proof of the data. Through the blockchain system, relevant parties can query and audit the historical records of unlocking operations at any time to ensure the legality and compliance of the operation.
[0032] In step 105, after receiving the instruction of the user's operation completion, a target key is generated according to the number of the cash box and the current timestamp. The target key is a one-time valid key. In the embodiment of the present application, when the user completes the operation in the cash box and needs to close the cash box, the user will submit an instruction of the completion of the operation through the operation interface on the cash box. After receiving the instruction, the terminal will verify the validity of the instruction, such as through cryptographic signatures, verification codes, etc., to ensure that the instruction is issued by a legitimate user. After the verification is passed, the terminal will generate a new target key based on the cash box number and the current timestamp. The generated target key is also valid for one time and can only be used for one locking operation. The one-time validity is achieved by embedding a timestamp, a random number or an operation history in the target key.
[0033] In step 106, the cash box is locked according to the target key. In the embodiment of the present application, after obtaining the target key for locking, the terminal will use the generated target key to lock the cash box, and ensure through the key verification mechanism that only users holding the correct key can close the cash box. After the cash box is successfully locked, the terminal will record the locking time, operator identity information and other relevant information for subsequent query and audit. Afterwards, the terminal will also upload the information of the locking operation to the blockchain system in real time, forming a complete operation chain with the information of the unlocking operation, to ensure the security and traceability of the use of the cash box.
[0034] Therefore, the automatic opening and locking method of the smart cash box in the present application realizes the security and automatic opening and locking functions of the cash box by combining biometric recognition, encryption technology, cloud database and blockchain system, and ensures the non-tamperability and traceability of operation records. At the same time, by adopting quantum computing-resistant encryption algorithms and a one-time valid key generation mechanism, the security and reliability of the cash box opening and locking are further improved.
[0035] Please refer to Figure 2 According to some embodiments of the present invention, extracting the feature summary of the user's biometric information in step 102, encrypting the feature summary to obtain encrypted data, and uploading the encrypted data to the cloud database may specifically include, but not limited to, the following: 201. After converting the user biometric information into a feature summary using a hash SHA-256 algorithm, encrypting the feature summary using a quantum key distribution QKD algorithm to obtain encrypted data; 202. Obtain unique identification data of the encrypted data; 203. Send the unique identification data to the cloud database, so that the cloud database determines the data type of the encrypted data according to the unique identification data; 204. Obtain a data transmission channel request sent by the cloud database, and construct a target data transmission channel according to the data transmission channel request, wherein the target data transmission channel is a single-time valid transmission channel; 205. Transmit the encrypted data to the cloud database through the target data transmission channel.
[0036] In the embodiment of the present application, when extracting the feature summary of the user's biometric information, the terminal will use the hash SHA-256 algorithm to process the user's biometric information. SHA-256 is a secure hash algorithm that can convert data of any length into a feature summary of a fixed length of 256 bits. This feature summary is the only representation of the user's biometric information and is irreversible, that is, the user's biometric information cannot be restored through the feature summary. Next, the terminal will use the quantum key distribution (QKD) algorithm to encrypt the feature summary. QKD is a key distribution method based on the principles of quantum mechanics, which can ensure the absolute security of the key during transmission. Through the QKD algorithm, the terminal will generate a quantum key and use this quantum key to encrypt the feature summary to obtain encrypted data. The encrypted data is a confidential representation of the feature summary. Only the recipient who holds the corresponding quantum key can decrypt and obtain the original feature summary.
[0037] After obtaining the encrypted data, the terminal will generate a unique identification data for the encrypted data. The unique identification data can be a hash value, serial number or other information that can uniquely identify the encrypted data. No specific limitation is made here. The role of the unique identification data is to facilitate the subsequent search and matching of the corresponding encrypted data in the cloud database.
[0038] The terminal will send the generated unique identification data to the cloud database. After receiving the unique identification data, the cloud database will determine the data type of the encrypted data based on the identification data. The cloud database maintains a mapping table between data types and unique identification data. By looking up this mapping table, the cloud database can determine which type of data the encrypted data belongs to.
[0039] After determining the data type of the encrypted data, the cloud database will send a data transmission channel request to the terminal. This request contains the information required to build the target data transmission channel, such as transmission protocol, port number, encryption method, etc. After receiving the data transmission channel request, the terminal will build the target data transmission channel according to the information in the request.
[0040] This target data transmission channel is valid for one time, that is, it can only be used for one data transmission operation. The one-time validity can be achieved by embedding a timestamp, random number or setting the service life of the transmission channel in the transmission channel. Constructing a one-time valid transmission channel can ensure the security and privacy of data transmission. Finally, the terminal will transmit the encrypted data to the cloud database through the constructed target data transmission channel. During the transmission process, the corresponding encryption method and protocol will be used to ensure the confidentiality and integrity of the data.
[0041] Therefore, in the embodiment of the present application, the secure transmission and storage of user biometric information is achieved by combining the hash SHA-256 algorithm, the quantum key distribution QKD algorithm and a single valid data transmission channel. The feature summary is extracted by the hash algorithm, which reduces the risk of leakage of the original biometric information. The feature summary is encrypted by the QKD algorithm to ensure the absolute security of the encrypted data during transmission. By constructing a single valid data transmission channel, the security and privacy of data transmission are further improved.
[0042] Please refer to Figure 3 According to some embodiments of the present invention, the comparison result between the encrypted data and the authorized user feature information in the cloud database is obtained in step 103, and determining the identity of the user as the authorized identity according to the comparison result may specifically include, but is not limited to, the following: 301. Decrypt the encrypted data to obtain the feature summary; 302. Extract target summary information from the feature summary, where the target summary information is unique identification information representing the user; 303. Using an artificial intelligence model, compare the target summary information with the authorized user feature information stored in the cloud data, and obtain a comparison result; 304. Obtaining a core score value of the user according to the comparison result; 305. When it is determined that the core score value of the user meets the preset score value, the identity of the user is determined to be an authorized identity.
[0043] In an embodiment of the present application, after receiving the encrypted data, the terminal will use the quantum key previously distributed through the QKD algorithm to decrypt the encrypted data to obtain a feature summary, which is a simplified and unique representation of the user's biometric information for subsequent identity authentication and comparison.
[0044] Since the feature summary contains information from multiple aspects, the terminal needs to extract the target summary information, which is the unique identification information representing the user. The target summary information is part of the feature summary, such as the feature points of the fingerprint, the key features of the face, the texture information of the iris, etc., which are not specifically limited here. This information is a unique representation of the user's biometric characteristics and can be used to distinguish different users. It should be noted that the process of extracting the target summary information ensures the accuracy and completeness of the information so that it can be compared with the authorized user feature information in the cloud data later.
[0045] After extracting the target summary information, the terminal uses the artificial intelligence model to compare the extracted target summary information with the authorized user feature information stored in the cloud data.
[0046] Specifically, the target summary information and the authorized user feature information stored in the cloud are first preprocessed. Preprocessing includes data cleaning, formatting, and normalization to ensure data consistency and comparability. For biometric information, feature extraction and encoding are performed to convert it into a numerical or vector form that can be processed by the artificial intelligence model.
[0047] Due to the relatively complex biological information comparison requirements, a deep learning model is used for comparison, because the deep learning model can automatically learn the deep features of the data and improve the accuracy of the comparison. After the deep learning model is determined, the pre-processed target summary information and authorized user feature information are used as input data and fed to the deep learning model respectively. The deep learning model will process these two sets of data at the same time to calculate the similarity or matching degree between them.
[0048] Inside the deep learning model, the input data is mapped to a high-dimensional feature space through calculation and transformation. In this feature space, the similarity or distance between the target summary information and each authorized user's feature information is calculated through cosine similarity and Euclidean distance. Based on the calculation results of the similarity or distance, the deep learning model will make a decision to determine whether the target summary information matches the feature information of a certain authorized user, and output a comparison result based on this. That is, based on the comparison result, it can be determined whether the target summary information is consistent with the feature information in the cloud data.
[0049] Among them, the comparison result is a similarity score (a value between 0-100). The terminal needs to obtain the user's core score value based on the comparison result. The core score value is the score after the similarity score itself is converted. The core score value is used to indicate the degree of match between the user identity and the authorized user characteristics, and is an important basis for subsequent judgment of whether the user identity is legal.
[0050] Specifically, the terminal sets a preset score value as a threshold for determining whether the user identity is legitimate. When the user's core score value equals or exceeds the preset score value, the terminal determines that the user's identity is highly matched with the authorized user characteristics, and thus determines that the user's identity is an authorized identity.
[0051] After confirming that the user's identity is an authorized identity, the terminal will perform subsequent unlocking operations or other related operations. If the user's core score is lower than the preset score, the terminal will directly refuse to perform related operations and prompt the user that the identity verification failed or other verification methods are required.
[0052] Therefore, in the embodiment of the present application, by decrypting encrypted data, extracting target summary information, comparing feature information, obtaining core score values and judging user identity, the terminal can accurately and efficiently verify the legitimacy of the user's identity and provide security for subsequent operations.
[0053] Please refer to Figure 4 According to some embodiments of the present invention, in step 103, an encryption algorithm resistant to quantum computing is used, and a target key is generated in combination with the geographic location of the cash box, the current timestamp, and the cash box verification information. The target key is a one-time encryption key and may specifically include, but is not limited to, the following: 401. Extract the serial number of the cash box; 402. Obtain the cash box number of the cash box according to the serial number; 403. Determine the GPS coordinate information of the cash box according to the cash box number and generate a current timestamp based on a trusted time source; 404. Obtaining quantum random numbers based on a quantum random generation algorithm; 405. Use the NTRU algorithm to generate a target key from the quantum random number, the GPS coordinate information of the cash box, the current timestamp and the serial number of the cash box. The target key is a one-time encryption key.
[0054] In the embodiment of the present application, it should be noted that each cash box is assigned a unique serial number when it is produced or shipped. This serial number is stored in the electronic device inside the cash box. When the cash box needs to be unlocked or locked, the terminal will extract the serial number of the cash box through an RFID reader, etc. The serial number is the unique identifier of the cash box and is the basis for subsequently obtaining the cash box number, determining the GPS coordinate information, and generating the target key.
[0055] After extracting the serial number of the cash box, the terminal will match it with the records in the cloud database or local database. The database stores the correspondence between the serial numbers of all cash boxes and the cash box numbers. The cash box number is an identifier that is easier to identify or manage, such as "XX-YYYY-ZZZZ", where "XX" may represent the area code, "YYYY" represents the year, and "ZZZZ" represents the serial number. By searching in the database through the serial number, the terminal can obtain the corresponding cash box number.
[0056] After obtaining the cash box number, the terminal will further obtain the GPS coordinate information of the cash box. The GPS coordinate information is obtained by the terminal in real time from the cash box, indicating the exact location of the cash box in the geographic space. At the same time, the terminal will also generate a current timestamp based on the GPS time signal to ensure the timeliness of the operation.
[0057] Among them, the terminal further obtains quantum random numbers through a quantum random number generator (QRNG). Quantum random numbers are unpredictable and non-replicable, and are the best choice for generating a single valid encryption key. They can ensure the randomness and security of the generated key, making each generated key unique.
[0058] Then, the NTRU algorithm is used to generate the target key from the quantum random number, the GPS coordinate information of the cash box, the current timestamp and the serial number of the cash box. The target key is a one-time encryption key. The NTRU algorithm is a polynomial-based public key encryption algorithm with fast encryption and decryption speed and good security. Furthermore, the terminal will use the quantum random number, the GPS coordinate information of the cash box, the current timestamp and the serial number of the cash box as input parameters and perform encryption processing through the NTRU algorithm.
[0059] During the encryption process, these input parameters will be converted into polynomial form and undergo a series of mathematical operations to eventually generate a target key. This target key is valid for one time, that is, it can only be used for one unlocking operation. The single validity is achieved by integrating time-sensitive and random factors such as timestamps, quantum random numbers and serial numbers into the key.
[0060] The generated target key will be used for subsequent cash box unlocking operations, ensuring that only users holding the target key can operate the cash box. At the same time, since the key is valid only once, even if the key is leaked or intercepted, it cannot be used for other operations, thereby improving the security of the cash box.
[0061] Please refer to Figure 5 According to some embodiments of the present invention, in step 104, unlocking the target cash box according to the encryption key and uploading the unlocking time, operator identity information and environmental parameter information of the target cash box to the blockchain system in real time may specifically include, but not limited to, the following: 501. Obtain a key unlocking authority instruction for the encryption key; 502. Unlock the target cash box according to the key unlocking authority instruction, and feedback the unlocking status; 503. When it is determined that the unlocking status is successfully unlocked, the unlocking time, operator ID, and environmental parameters of the cash box are digitally signed and verified and then uploaded to the blockchain system.
[0062] In an embodiment of the present application, a key unlocking authority instruction of an encryption key is obtained. Specifically, when a user needs to unlock a target cash box, the terminal generates a key unlocking authority instruction based on the encryption key. This instruction includes the user's identity authentication information, operation request, and related authorization information.
[0063] The permission instruction can be transmitted to the cash box through a secure communication channel. After receiving the key unlocking permission instruction, the terminal will strictly verify it, including the format, integrity, source and authorization information contained in the verification instruction. If the permission instruction passes the verification, the terminal will continue to perform subsequent unlocking operations. If the verification fails, the terminal will refuse to execute the instruction and trigger a security alarm or record the abnormal event.
[0064] The terminal will unlock the target cash box according to the verified key unlocking authority instruction and use the previously generated encryption key. During the unlocking process, it will send an unlocking signal to the electronic lock control system of the cash box to drive the lock mechanism to open the box door. After executing the unlocking operation, the terminal will monitor the unlocking status in real time, which can be achieved through the door lock status sensor inside the cash box.
[0065] If the cash box is successfully opened, the terminal will generate a status feedback of successful unlocking and display this feedback to the user through the user interface. If the unlocking fails, the terminal will generate a corresponding error prompt and trigger a troubleshooting or maintenance process.
[0066] After receiving the status feedback of successful unlocking, the terminal will further confirm the unlocking status, which can be completed by querying the internal status sensor of the cash box again or waiting for the user to confirm the successful unlocking. After that, the terminal will collect and record the unlocking time, the operator's ID (and environmental parameters, which will be organized into a structured data format. In order to ensure the integrity and non-tamperability of the data, the terminal will perform digital signature verification on the collected unlocking information. If the digital signature verification is passed, it means that the information has not been tampered with during the transmission process and can be uploaded to the blockchain system.
[0067] Finally, the unlocking information after digital signature verification will be uploaded to the blockchain system. The blockchain system will record this information in the form of blocks and ensure the transparency, security and immutability of the data through a consensus mechanism. Through the blockchain system, relevant parties can query and audit the historical records of unlocking operations at any time, providing strong support for the security management and responsibility traceability of cash boxes.
[0068] Please refer to Figure 6 According to some embodiments of the present invention, in step 105, after receiving the instruction of the user's operation completion, a target key is generated according to the number of the cash box and the current timestamp. The target key is a single-use key and may specifically include, but is not limited to, the following: 601. After receiving the instruction of the user's operation completion, determining whether there is an unlocking record of the cash box; 602. If yes, then generate the target key based on the serial number of the cash box and by using a quantum random number algorithm; 603. After uploading the target key to the cloud database, the state of the cash box is marked as ready-to-use, and the original key of the cash box is destroyed.
[0069] In the embodiment of the present application, when the user completes the operation in the cash box and is ready to close the cash box, the user submits an operation completion instruction to the terminal through the operation interface on the cash box, the remote control device or the mobile device application. After receiving the instruction, the terminal first verifies the validity of the instruction to ensure that the instruction is issued by a legitimate user and is associated with the current cash box operation.
[0070] Next, the terminal will query the unlocking record of the cash box to confirm whether the cash box has been successfully opened. If the unlocking record exists, it means that the cash box has been opened and the user is now completing the operation and preparing to close the cash box. The terminal will continue with the next step of target key generation and status update process. If the unlocking record does not exist, the terminal will trigger an alarm or notify the management personnel, because this means that there is an unauthorized attempt to close the cash box or the cash box status is abnormal.
[0071] After confirming the existence of the unlocking record of the cash box, the terminal will generate a target key based on the cash box number. The cash box number is unique and is used to identify a specific cash box. The terminal will use this number as one of the input parameters for the key generation process. In order to enhance the security and unpredictability of the key, the terminal uses a quantum random number algorithm to generate the target key. The quantum random number algorithm uses the principles of quantum mechanics to generate true random numbers. These random numbers have extremely high randomness and unpredictability, making the generated target key almost impossible to crack. By combining the cash box number and the quantum random number algorithm, the terminal will generate a unique and secure target key for subsequent locking operations.
[0072] After generating the target key, the terminal will upload the key to the cloud database for storage. The cloud database will use access control and encrypted storage measures to ensure the security of the key. After uploading the key, the terminal will update the status information of the cash box. Specifically, the terminal will mark the status of the cash box as "waiting for use", indicating that the cash box has been closed and is ready for the next user to use.
[0073] At the same time, in order to further enhance security, the terminal will destroy the original key of the cash box, which was generated during the unlocking process to ensure that only authorized users can open the cash box. Now, since the user has completed the operation and the cash box has been closed, the original key is no longer needed, so the terminal will destroy it. Although it is only valid once, the destruction method can further prevent the potential risk of key leakage.
[0074] Therefore, in the embodiment of the present application, the key management and status update process is implemented after the user completes the cash box operation. By determining the existence of the unlocking record, generating a new target key, uploading the key to the cloud database, updating the cash box status and destroying the original key, the terminal ensures the security and traceability of the cash box use, while preventing potential risks of key leakage.
[0075] Please refer to Figure 7 According to some embodiments of the present invention, the locking process of the cash box according to the target key in step 106 may specifically include, but is not limited to, the following: 701. After obtaining the target key, determine whether the target key is within the validity period; 702. If yes, the cash box is locked according to the target key, and the locking time and operator ID are uploaded to the cloud database for storage.
[0076] In an embodiment of the present application, after the terminal successfully generates or retrieves the target key, the next step is to verify the validity of the key. This is because in some cases, the target key has a specific validity period. After this period, the target key will no longer be accepted as a valid authentication method.
[0077] Therefore, the terminal will check the validity period information attached to the target key. If the target key is within the validity period, the terminal will continue to lock the box. If the target key has expired or is invalid, the terminal will refuse to perform the locking operation and notify the operator or manager. Through this operation, it can effectively prevent the use of expired or invalid keys for unsafe operations, thereby protecting the safety of the cash box.
[0078] After the terminal uses the key to lock the cash box, it will record relevant information about the locking operation, including the locking time and the operator ID who performed the locking operation. This information is key audit and tracking data and can be used for subsequent security reviews or problem investigations.
[0079] Finally, the terminal will upload this information to the cloud database for storage. The cloud database provides reliable data storage and access services to ensure the integrity and traceability of this information. By saving the locking time and operator ID, the terminal can provide a complete operation history for subsequent inquiries.
[0080] Therefore, the embodiment of the present application ensures the security and traceability of the cash box locking process by determining the validity of the key, performing the locking operation and recording relevant information, thereby providing a strong guarantee for the use of the cash box.
[0081] See also Figure 8The second aspect of the present application provides an intelligent automatic opening and closing lock device for a box, comprising: A receiving unit 801 is used to receive a cash box unlocking request from a user, wherein the cash box unlocking request includes user biometric information; An extraction unit 802 is used to extract a feature summary of the user's biometric information, encrypt the feature summary to obtain encrypted data, and upload the encrypted data to a cloud database; The first generating unit 803 is used to obtain the comparison result between the encrypted data and the authorized user feature information in the cloud database, and after determining that the identity of the user is the authorized identity according to the comparison result, an encryption algorithm resistant to quantum computing is used, and a target key is generated in combination with the geographic location of the cash box, the current timestamp and the cash box verification information. The target key is a one-time encryption key; The unlocking unit 804 is used to unlock the target cash box according to the encryption key, and upload the unlocking time, operator identity information and environmental parameter information of the target cash box to the blockchain system in real time; The second generating unit 805 is used to generate a target key according to the number of the cash box and the current timestamp and upload it to the cloud database after receiving the instruction of the user's operation completion. The target key is a one-time valid key; The locking unit 806 is used to lock the cash box according to the target key. See also Fig. 9 The present application also provides an intelligent automatic switch device for a cash box, comprising: Processor 901, memory 902, input and output unit 903, bus 904; The processor 901 is connected to the memory 902, the input and output unit 903 and the bus 904; The memory 902 stores a program, and the processor 901 calls the program to execute any of the above methods.
[0082] The present application also relates to a computer-readable storage medium on which a program is stored, wherein when the program is run on a computer, the computer is caused to execute any of the above methods.
[0083] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0084] The present application also relates to a computer-readable storage medium, on which a program is stored. When the program is run on a computer, the computer executes the method as described in the first aspect and any one of the first aspects.
[0085] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0086] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0087] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0088] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0089] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk, etc., which can store program code.
Claims
1. A method for automatically opening and closing a smart cash box, characterized in that: The method comprises: receiving a cash box unlocking request from a user, wherein the cash box unlocking request includes biometric information of the user; Extracting a feature summary of the user's biometric information, encrypting the feature summary to obtain encrypted data, and uploading the encrypted data to a cloud database; Obtain the comparison result between the encrypted data and the authorized user feature information in the cloud database. After determining that the user's identity is an authorized identity based on the comparison result, use an encryption algorithm that resists quantum computing and combine the geographic location of the cash box, the current timestamp, and the cash box verification information to generate a target key. The target key is a one-time encryption key. Unlock the target cash box according to the encryption key, and upload the unlocking time, operator identity information and environmental parameter information of the target cash box to the blockchain system in real time; After receiving the instruction of the user's operation completion, a target key is generated according to the number of the cash box and the current timestamp, and the target key is a single-time valid key; The cash box is locked according to the target key.
2. The method for automatically opening and closing a smart cash box according to claim 1, characterized in that: Extracting a feature summary of the user's biometric information, encrypting the feature summary to obtain encrypted data, and uploading the encrypted data to a cloud database, including: After converting the user biometric information into a feature summary using a hash SHA-256 algorithm, the feature summary is encrypted using a quantum key distribution QKD algorithm to obtain encrypted data; Obtaining unique identification data of the encrypted data; Sending the unique identification data to the cloud database, so that the cloud database determines the data type of the encrypted data according to the unique identification data; Obtaining a data transmission channel request sent by the cloud database, and constructing a target data transmission channel according to the data transmission channel request, wherein the target data transmission channel is a single valid transmission channel; The encrypted data is transmitted to the cloud database through the target data transmission channel.
3. The method for automatically opening and closing a smart cash box according to claim 2, characterized in that: Obtaining a comparison result between the encrypted data and the authorized user feature information in the cloud database, and determining that the user's identity is an authorized identity according to the comparison result, including: decrypting the encrypted data to obtain the feature summary; Extracting target summary information from the feature summary, where the target summary information is unique identification information representing the user; Using an artificial intelligence model, the target summary information is compared with the authorized user feature information stored in the cloud data, and a comparison result is obtained; Obtaining a core rating value of the user according to the comparison result; When it is determined that the core score value of the user meets the preset score value, the identity of the user is determined to be an authorized identity.
4. The method for automatically opening and closing a smart cash box according to claim 1, characterized in that: A quantum computing-resistant encryption algorithm is used, and the target key is generated by combining the cash box's geographic location, current timestamp, and cash box verification information. The target key is a one-time encryption key, including: Extract the serial number of the cash box; Obtaining the cash box number of the cash box according to the serial number; Determine the GPS coordinate information of the cash box through the cash box number and generate a current timestamp based on a trusted time source; Obtain quantum random numbers based on quantum random generation algorithm; The NTRU algorithm is used to generate a target key from the quantum random number, the GPS coordinate information of the cash box, the current timestamp and the serial number of the cash box. The target key is a one-time encryption key.
5. The method for automatically opening and closing a smart cash box according to claim 1, characterized in that: Unlocking the target cash box according to the encryption key, and uploading the unlocking time, operator identity information and environmental parameter information of the target cash box to the blockchain system in real time includes: Obtaining a key unlocking authority instruction for the encryption key; Unlock the target cash box according to the key unlocking authority instruction and feedback the unlocking status; When it is determined that the unlocking status is successfully unlocked, the unlocking time, operator ID, and environmental parameters of the cash box are digitally signed and verified and then uploaded to the blockchain system.
6. The method for automatically opening and closing a smart cash box according to claim 1, characterized in that: After receiving the instruction of the user's operation completion, a target key is generated according to the number of the cash box and the current timestamp. The target key is a single-use key, including: After receiving the instruction of the user's operation completion, determining whether there is an unlocking record of the cash box; If yes, then based on the serial number of the cash box, the target key is generated by a quantum random number algorithm; After uploading the target key to the cloud database, the state of the cash box is marked as a waiting-for-use state, and the original key of the cash box is destroyed.
7. The method for automatically opening and closing a smart cash box according to claim 1, characterized in that: The cash box is locked according to the target key, including: After obtaining the target key, determining whether the target key is within the validity period; If yes, the cash box is locked according to the target key, and the locking time and operator ID are uploaded to the cloud database for storage.
8. An intelligent automatic opening and locking device for a box, characterized in that: include: A receiving unit, configured to receive a cash box unlocking request from a user, wherein the cash box unlocking request includes user biometric information; An extraction unit, used for extracting a feature summary of the user's biometric information, encrypting the feature summary to obtain encrypted data, and uploading the encrypted data to a cloud database; A first generating unit is used to obtain a comparison result between the encrypted data and the authorized user feature information in the cloud database, and after determining that the identity of the user is an authorized identity according to the comparison result, an encryption algorithm resistant to quantum computing is used, and a target key is generated in combination with the geographic location of the cash box, the current timestamp and the cash box verification information, wherein the target key is a one-time encryption key; An unlocking unit, used to unlock the target cash box according to the encryption key, and upload the unlocking time, operator identity information and environmental parameter information of the target cash box to the blockchain system in real time; The second generating unit is used to generate a target key according to the number of the cash box and the current timestamp after receiving the instruction of the user's operation completion, and then upload it to the cloud database, wherein the target key is a single-time valid key; A locking unit is used to lock the cash box according to the target key.
9. An intelligent automatic switch device for a box, characterized in that: The device comprises: processor, memory, input-output unit, and bus; The processor is connected to the storage, the input and output unit, and the bus; The storage stores a program, and the processor calls the program to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program, and when the program is executed on a computer, the method according to any one of claims 1 to 7 is performed.
Citation Information
Patent Citations
Electronic lock system for performing online authentication through wireless network terminal
CN106971434A
Cash box management method and system based on Internet of Things
CN114170709A
Computer network security control system and control method based on quantum encryption
CN117955707A
Smart lock box
US10745943B1
Unlocking method for intelligent door lock, mobile terminal, intelligent door lock and cloud server
WO2018133832A1
Cited By
Encrypted storage method for metering data of water meter
CN120597304A
A water meter metering data encryption storage method
CN120597304B