Unlocking method and device of password equipment, electronic equipment and storage medium
By managing the signature and verification of key pairs, combined with pre-stored information, the unlocking process of the cryptographic device is simplified, solving the problem of complex unlocking processes in the existing technology, and achieving a fast and safe unlocking operation.
Patent Information
- Application Number
- CN202410854111.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-27
AI Technical Summary
In the existing technology, the unlocking process of password-protected devices is complicated and requires the administrator to operate it personally or use the administrator's PIN code, resulting in a cumbersome process.
By managing the signature and verification of key pairs and combining the pre-stored first information, random numbers and second information, the unlocking operation is simplified and the unlocking efficiency is improved.
It realizes fast and simple unlocking operation permission verification, reduces the complexity of administrator operations, and improves unlocking efficiency and security.
Smart Images

Figure CN118709164A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of encryption and decryption technology, and in particular to an unlocking method, device, electronic device and storage medium for a cryptographic device. Background Art
[0002] Unlocking means restoring the user's PIN code to the initial default PIN code when the user forgets the user's personal identification number PIN code of the password device or the PIN code is locked. The unlocking methods in the prior art include: (1) using the administrator tool to unlock; (2) using the administrator PIN code to unlock; (3) more than half of the administrators log in, obtain super administrator privileges, and unlock.
[0003] The existing unlocking process requires an administrator to operate in person, use an administrator device, or use an administrator PIN code, so the unlocking process is complicated. Summary of the invention
[0004] The present invention provides a method, apparatus, electronic device and storage medium for unlocking a cryptographic device, which are used to solve the defect that the process of unlocking a cryptographic device in the prior art is relatively complicated. By using the signature and verification of a management key pair, combined with pre-stored first information, random numbers and pre-stored second information and other data, the verification of the unlocking operation authority is completed conveniently and quickly, thereby improving the unlocking efficiency.
[0005] The present invention provides an unlocking method for a password device, which is applied to the password device and comprises the following steps.
[0006] Obtaining a challenge code, and sending the challenge code to an administrator device, wherein the challenge code includes pre-stored first information and a random number, and the pre-stored first information is used to indicate the identity of the cryptographic device; receiving an unlock code, wherein the unlock code is sent by the administrator device, the unlock code is obtained by the administrator device signing first target information by using a private key in a pre-stored management key pair, the first target information is determined according to the challenge code and pre-stored second information, the pre-stored second information is used to indicate at least one of project information, customer information and customized information corresponding to the cryptographic device; Unlocking is performed according to the public key in the pre-stored management key pair, the unlocking code, the challenge code and pre-stored third information, where the pre-stored third information corresponds to the pre-stored second information.
[0007] According to a method for unlocking a cryptographic device provided by the present invention, the unlocking is performed according to the public key in the pre-stored management key pair, the unlocking code, the challenge code and the pre-stored third information, including: Acquire second target information, where the second target information is determined according to the challenge code and the pre-stored third information, and the second target information corresponds to the first target information; Verifying the signature of the unlocking code according to the public key in the pre-stored management key pair and the second target information to obtain an unlocking result; Delete the challenge code.
[0008] According to a method for unlocking a cryptographic device provided by the present invention, the method of verifying the signature of the unlocking code according to the public key in the pre-stored management key pair and the second target information to obtain an unlocking result includes: Verifying the unlocking code according to the public key in the pre-stored management key pair and the second target information, wherein the verification process includes determining whether the information obtained by the verification matches the second target information; If the signature verification is successful, the unlocking result is determined to be unlocking success; If the signature verification fails, the unlocking result is determined to be unlocking failure.
[0009] According to a method for unlocking a password device provided by the present invention, the first target information is obtained by calculating the challenge code and the pre-stored second information using a preset algorithm, and obtaining the second target information includes: A preset algorithm is used to operate the challenge code and the pre-stored third information to obtain the second target information.
[0010] According to a method for unlocking a password device provided by the present invention, the password device and the administrator device are the same electronic device, and sending the challenge code to the administrator device includes: Sending the challenge code to a second application through a first application, where the first application is an unlocking application corresponding to the password device, and the second application is a service application corresponding to the administrator device; The receiving the unlock code includes: receiving the unlock code sent by the second application through the first application.
[0011] According to a method for unlocking a password device provided by the present invention, the administrator device is set on a server, and sending the challenge code to the administrator device includes: Sending the challenge code to an unlocking service page provided by the administrator device through a first application, where the first application is an unlocking application corresponding to the password device; The receiving the unlock code includes: receiving, through the first application, the unlock code sent by the unlock service page.
[0012] According to a method for unlocking a password device provided by the present invention, sending the challenge code to an administrator device includes: sending the challenge code to an unlocking service mailbox provided by the administrator device through a first application, wherein the first application is an unlocking application corresponding to the password device; The receiving the unlock code includes: receiving the unlock code sent by the unlock service mailbox through the first application.
[0013] The present invention provides an unlocking method for a password device, which is applied to an administrator device and includes the following steps.
[0014] receiving a challenge code, where the challenge code is generated and sent by a cryptographic device, and the challenge code includes pre-stored first information and a random number, where the pre-stored first information is used to indicate the identity of the cryptographic device; The first target information is signed by a private key in a pre-stored management key pair to obtain an unlocking code, wherein the first target information is determined according to the challenge code and pre-stored second information, and the pre-stored second information is used to indicate at least one of project information, customer information and customized information corresponding to the cryptographic device; The unlock code is sent to the cryptographic device.
[0015] According to a method for unlocking a cryptographic device provided by the present invention, before signing the first target information with a private key in a pre-stored management key pair to obtain an unlocking code, the method further includes: A preset algorithm is used to operate the challenge code and the pre-stored second information to obtain the first target information.
[0016] The present invention also provides an unlocking device for a cryptographic device, which is applied to the cryptographic device and includes the following modules.
[0017] A challenge code sending module, used for obtaining a challenge code and sending the challenge code to an administrator device, wherein the challenge code includes pre-stored first information and a random number, and the pre-stored first information is used for indicating the identity of the cryptographic device; an unlocking code acquisition module, configured to receive an unlocking code, wherein the unlocking code is sent by the administrator device, and the unlocking code is obtained by the administrator device signing first target information using a private key in a pre-stored management key pair, wherein the first target information is determined based on the challenge code and pre-stored second information, and the pre-stored second information is used to indicate at least one of the project information, customer information, and customized information corresponding to the cryptographic device; The device unlocking module is used to unlock the device according to the public key in the pre-stored management key pair, the unlocking code, the challenge code and the pre-stored third information, wherein the pre-stored third information corresponds to the pre-stored second information.
[0018] The present invention also provides an unlocking device for a password device, which is applied to an administrator device and includes the following modules.
[0019] A challenge code receiving module, used for receiving a challenge code, wherein the challenge code is generated and sent by a cryptographic device, and the challenge code includes pre-stored first information and a random number, wherein the pre-stored first information is used for indicating the identity of the cryptographic device; an unlocking code generating module, configured to sign first target information by using a private key in a pre-stored management key pair to obtain an unlocking code, wherein the first target information is determined according to the challenge code and pre-stored second information, wherein the pre-stored second information is used to indicate at least one of project information, customer information and customized information corresponding to the cryptographic device; The unlock code sending module is used to send the unlock code to the password device.
[0020] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, an unlocking method for a cryptographic device as described above is implemented.
[0021] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the unlocking method of the cryptographic device as described in any one of the above is implemented.
[0022] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the unlocking method of the cryptographic device as described above is implemented.
[0023] The unlocking method, device, electronic device and storage medium of the cryptographic device provided by the present invention use the signature and verification of the management key pair in combination with pre-stored first information, random numbers and pre-stored second information and other data to conveniently and quickly complete the verification of the unlocking operation authority, thereby improving the unlocking efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0025] Figure 1 This is one of the flow charts of the unlocking method of the password device provided by the present invention.
[0026] Figure 2This is one of the flowcharts for determining the unlocking result provided by the present invention.
[0027] Figure 3 This is the second flowchart of determining the unlocking result provided by the present invention.
[0028] Figure 4 This is the second flow chart of the unlocking method of the password device provided by the present invention.
[0029] Figure 5 This is the third flow chart of the unlocking method of the password device provided by the present invention.
[0030] Figure 6 The present invention provides a schematic diagram of the overall process of unlocking the password device.
[0031] Figure 7 This is one of the structural diagrams of the unlocking device of the password device provided by the present invention.
[0032] Figure 8 This is the second structural schematic diagram of the unlocking device of the password device provided by the present invention.
[0033] Fig. 9 It is a schematic diagram of the physical structure of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.
[0035] First, the terms related to the present invention are explained.
[0036] Administrator device: Built-in management key pair, the private key of which cannot be read out. Depending on the technical solution, it can be a smart password key or a server.
[0037] Cryptographic device: During the production process, the production tool imports the public key of the management key pair into the cryptographic device. This import instruction can only be executed during the production phase and is controlled by the life cycle.
[0038] Unlocking means restoring the user's PIN code to the initial default PIN code when the user forgets the user's personal identification number PIN code of the password device or the PIN code is locked. The unlocking methods in the prior art include: (1) using the administrator tool to unlock; (2) using the administrator PIN code to unlock; (3) more than half of the administrators log in, obtain super administrator privileges, and unlock.
[0039] The unlocking process is complicated because the administrator needs to operate it personally, use the administrator's device, or use the administrator's PIN code.
[0040] In view of this, the present invention provides a method for unlocking a cryptographic device, including obtaining a challenge code, sending the challenge code to an administrator device, and receiving an unlock code, wherein the unlock code is sent by the administrator device, and the unlock code is obtained by the administrator device signing the first target information with the private key in the pre-stored management key pair, wherein the first target information is determined according to the challenge code and the pre-stored second information, and unlocking is performed according to the public key in the pre-stored management key pair, the unlock code, the challenge code, and the pre-stored third information. The method uses the signature and verification of the management key pair, combined with the pre-stored first information, random numbers, project information and other data, to conveniently and quickly complete the verification of the unlocking operation authority, thereby improving the unlocking efficiency.
[0041] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0042] Figure 1 This is one of the flowcharts of the unlocking method of the password device provided by the present invention. The unlocking method of the password device can be applied to a password device, and the password device can be various types of devices with information processing capabilities during the implementation process. For example, the password device can include a personal computer, a laptop, a PDA or a server, etc.; the password device can also be a mobile terminal, for example, the mobile terminal can include a mobile phone, a car computer, a tablet computer or a projector, etc. Figure 1 As shown, the method may include the following steps 101 to 103: Step 101: Obtain a challenge code and send the challenge code to an administrator device, wherein the challenge code includes pre-stored first information and a random number, and the pre-stored first information is used to indicate the identity of the cryptographic device.
[0043] It should be noted that there are many ways to receive the challenge code, such as generating the challenge code or receiving the challenge code sent by other devices. The present invention does not limit the way to receive the challenge code. There are many ways to send the challenge code to the administrator device, such as sending it through the network or notifying it by email, and the present invention does not limit the way to send the challenge code to the administrator device.
[0044] The pre-stored first information may be the identity information written into the configuration file of the cryptographic device when the cryptographic device is produced, and the identity information is unique. The pre-stored first information may be the serial number SN of the cryptographic device or other information, as long as it can represent the identity of the cryptographic device, and the present invention does not limit the type of the pre-stored first information. For example, the pre-stored first information may be the product SN, i.e., the product serial number, which may be written into the cryptographic device and saved during the production process of the cryptographic device, and the SN is unique.
[0045] The random number may be generated by a cryptographic device or sent by other devices. The length of the random number may be any length. The present invention does not limit the content and acquisition method of the random number.
[0046] Exemplarily, the upper layer application corresponding to the cryptographic device can receive a challenge code from the cryptographic device. The challenge code can include two parts: SN and a 16-byte random number, where the random number can be generated by calling a hardware random number generator inside the cryptographic device. It should be noted that the challenge code is stored in the non-volatile memory Flash inside the cryptographic device and can only be used for verification once. Regardless of whether the verification is successful, the challenge code will be cleared.
[0047] Step 102: Receive an unlocking code, where the unlocking code is sent by the administrator device, and the unlocking code is obtained by the administrator device signing first target information with a private key in a pre-stored management key pair, and the first target information is determined based on the challenge code and pre-stored second information, and the pre-stored second information is used to indicate at least one of the project information, customer information and customized information corresponding to the cryptographic device.
[0048] It should be noted that there are many ways to receive the unlock code, such as receiving it through an application or receiving it through an email, etc. The present invention does not limit the way to receive the unlock code.
[0049] The administrator device has a built-in private key of the management key pair, and the private key of the management key pair cannot be read out. The private key can be a smart password key or a server. The pre-stored second information can be information generated when the password device customizes the project, and the administrator device stores the information.
[0050] After the administrator device receives the challenge code and the pre-stored second information, it can obtain the first target information based on the challenge code and the pre-stored second information, and then use the private key of the management key pair to sign the first target information, and the signature result is the unlocking code. Exemplarily, the pre-stored second information can be the project name written into the configuration file of the cryptographic device when the cryptographic device is initialized when the project is customized. The project name is unique. The project name is sent to the administrator device, and the administrator device obtains the pre-stored second information. The unlocking application system corresponding to the cryptographic device can record the project name and the SN of the unlocked cryptographic device for query use. Among them, there are many ways to determine the first target information, for example, it can be determined by adding the challenge code and the pre-stored second information, or it can be determined by performing calculations based on the challenge code and the pre-stored second information. The present invention does not limit the method for determining the first target information.
[0051] Step 103: Unlocking is performed according to the public key in the pre-stored management key pair, the unlocking code, the challenge code and pre-stored third information, where the pre-stored third information corresponds to the pre-stored second information.
[0052] It should be noted that during the production process of the cryptographic device, the public key of the management key pair needs to be written. The pre-stored third information can be the project name written into the cryptographic device configuration file during initialization when the cryptographic device is customized for a project. The project name is unique. The unlocking application system corresponding to the cryptographic device can record the project name and the SN of the unlocked cryptographic device for query use.
[0053] Among them, there are many ways to unlock according to the public key in the pre-stored management key pair, the unlocking code, the challenge code and the pre-stored third information. For example, the information obtained by verifying the unlocking code can be used, and then compared with other information. The present invention does not limit the way to unlock according to the public key in the pre-stored management key pair, the unlocking code, the challenge code and the pre-stored third information. The pre-stored third information corresponds to the pre-stored second information, and the pre-stored third information can be the same as the pre-stored second information, or there is a corresponding relationship between the pre-stored third information and the pre-stored second information, that is, one of the information can be obtained to determine the other information. Exemplarily, the pre-stored third information and the pre-stored second information can be the project names corresponding to the cryptographic device.
[0054] It can be understood that the unlocking method of the cryptographic device provided by the present invention, by using the signature and verification of the management key pair, combined with pre-stored first information, random numbers, pre-stored second information and other data, conveniently and quickly completes the verification of unlocking operation permissions, thereby improving unlocking efficiency.
[0055] In some embodiments, the unlocking step may be to first verify the signature and then determine the unlocking result based on the result of the signature verification.
[0056] Figure 2 FIG. 1 is one of the flowcharts of the unlocking method provided by the present invention. Figure 2 As shown, the unlocking according to the public key in the pre-stored management key pair, the unlocking code, the challenge code and the pre-stored third information may include: Step 201: Acquire second target information, where the second target information is determined based on the challenge code and the pre-stored third information, and the second target information corresponds to the first target information.
[0057] It should be noted that since the unlock code is obtained by the administrator device signing the first target information through the private key in the pre-stored management key pair, the signature needs to be verified on the cryptographic device and the corresponding second target information needs to be generated in order to obtain the signature verification result.
[0058] There are many ways to obtain the second target information, such as adding the challenge code and the pre-stored third information, or obtaining it by performing calculations based on the challenge code and the pre-stored third information. The present invention does not limit the method for obtaining the second target information.
[0059] Step 202: Verify the signature of the unlocking code according to the public key in the pre-stored management key pair and the second target information to obtain an unlocking result.
[0060] It should be noted that there are many methods for verifying the unlocking code according to the public key in the pre-stored management key pair and the second target information to obtain the unlocking result. For example, after obtaining the unlocking code, the user can use the public key of the management key pair stored in the cryptographic device to verify the unlocking code, and then compare the information obtained by the verification with the second target information, or determine the relationship between the information obtained by the verification and the second target information. The present invention does not limit the method for verifying the unlocking code according to the public key in the pre-stored management key pair and the second target information to obtain the unlocking result.
[0061] Step 203: Delete the challenge code.
[0062] It should be noted that the challenge code must be deleted regardless of the result after the signature verification, because the challenge code can only be used once. If the signature verification fails, the user must obtain a new challenge code before trying to verify the unlock code again. Deleting the challenge code can ensure the security of unlocking identity authentication.
[0063] Furthermore, the verifying the unlocking code according to the public key in the pre-stored management key pair and the second target information to obtain the unlocking result may include: verifying the unlocking code according to the public key in the pre-stored management key pair and the second target information, the verification process including determining whether the information obtained by the verification matches the second target information; if the verification is successful, determining that the unlocking result is a successful unlocking; if the verification fails, determining that the unlocking result is a failed unlocking.
[0064] It should be noted that if the signature verification is successful, it means that the information has not been tampered with or lost during the transmission process, and can be used to verify the unlocking identity. This method improves the accuracy of the unlocking verification. The signature verification process includes determining whether the information obtained by the signature verification matches the second target information. The matching can be the same or corresponding. Exemplarily, the signature verification process of the cryptographic device includes the confirmation of the hash result obtained by the unlocking code signature verification and the hash result calculated locally. In addition, it can also include some other verification content, which is not limited by the present invention.
[0065] It can be understood that the use of the signature and verification of the management key pair, the first target information and the second target information for unlocking verification, and deleting the challenge code after the verification, improves the security of verifying the unlocking operation authority.
[0066] In some embodiments, in order to enhance the security of unlocking, the challenge code and the pre-stored second information may be operated by a preset algorithm to obtain the first target information.
[0067] Figure 3 The second flowchart of the unlocking method provided by the present invention. The first target information is obtained by calculating the challenge code and the pre-stored second information using a preset algorithm, such as Figure 3 As shown, the unlocking according to the signature-verified data, the challenge code and the pre-stored third information may include: Step 301: Use a preset algorithm to calculate the challenge code and the pre-stored third information to obtain the second target information.
[0068] It should be noted that, since the first target information is obtained by the administrator device using a preset algorithm to calculate the challenge code and the pre-stored second information, the cryptographic device also uses the same preset algorithm to calculate the challenge code and the pre-stored third information to obtain the second target information. The present invention does not limit the type of preset algorithm. Exemplarily, the preset algorithm can be a hash algorithm or an encryption algorithm, etc. The present invention does not limit the type of preset algorithm.
[0069] Exemplarily, the preset algorithm may be a hash algorithm. When the hash algorithm is used, the operation result is unique and irreversible. Therefore, the second target information corresponding to the first target information may include that the second target information is the same as the first target information.
[0070] Exemplarily, the cryptographic device obtains and sends the challenge code to the administrator device. After receiving the challenge code, the administrator device can use the hash algorithm to perform a hash operation on the "project name||challenge code (SN||random number)", and then use the private key of the management key pair to sign the hash result, and the signature result is the unlocking code. The cryptographic device also performs a hash operation based on the "project name||challenge code (SN||random number)" to obtain a hash result. After receiving the unlocking code, the cryptographic device verifies the unlocking code using the public key of the management key pair. If the result obtained is the same as the hash result calculated by itself, the verification is successful.
[0071] Step 302: Verify the signature of the unlocking code according to the public key in the pre-stored management key pair and the second target information to obtain an unlocking result.
[0072] It should be noted that the description of step 302 can refer to the description of step 202 in the aforementioned embodiment, which will not be repeated here.
[0073] Step 303: Delete the challenge code.
[0074] It should be noted that the description of step 303 can refer to the description of step 203 in the above embodiment, which will not be repeated here.
[0075] It should be noted that the method of using a preset algorithm to calculate the first target information and the second target information can further enhance the security of the unlocking operation authority verification. Deleting the challenge code after the signature verification is completed can further enhance the security of the unlocking operation authority verification.
[0076] In some embodiments, the method of unlocking a password device can be implemented by local unlocking, which is convenient for users.
[0077] In an embodiment of the present invention, the password device and the administrator device are the same electronic device, and sending the challenge code to the administrator device may include: sending the challenge code to a second application through a first application, the first application is an unlocking application corresponding to the password device, and the second application is a service application corresponding to the administrator device. Receiving the unlocking code may include: receiving the unlocking code sent by the second application through the first application.
[0078] Exemplarily, in the local unlocking method, the administrator device and the password device are on the same computer, and the challenge code and the unlocking code can be manually copied, or the data can be copied inside the unlocking application tool to complete the unlocking.
[0079] In some embodiments, the method of unlocking a password device can be implemented by remote online unlocking, which is convenient for users.
[0080] In an embodiment of the present invention, the administrator device is set on a server, and sending the challenge code to the administrator device may include: sending the challenge code to an unlocking service page provided by the administrator device through a first application, and the first application is an unlocking application corresponding to the password device. Receiving the unlocking code may include: receiving the unlocking code sent by the unlocking service page through the first application.
[0081] For example, in the remote online unlocking method, the administrator device can be deployed on the server, and the server corresponding to the administrator device provides an unlocking service page, receives the challenge code and sends the unlocking code. The user of the password device logs in to the unlocking system, clicks the submit unlocking button to apply, and the client receives the unlocking code and automatically completes the unlocking.
[0082] In some embodiments, the method of unlocking a password device can be implemented by remote offline unlocking, which is convenient for users.
[0083] In an embodiment of the present invention, sending the challenge code to the administrator device may include: sending the challenge code to an unlocking service mailbox provided by the administrator device through a first application, where the first application is an unlocking application corresponding to the password device; receiving the unlocking code may include: receiving the unlocking code sent by the unlocking service mailbox through the first application.
[0084] For example, in the remote offline unlocking method, the user can send the challenge code to the administrator via email or other communication methods. The administrator verifies the user's identity, generates an unlock code using the administrator and administrator tools, and sends it to the user. After receiving the unlock code, the user copies it to the unlocking tool to complete the unlocking.
[0085] The unlocking method of the cryptographic device provided by the present invention uses the signature and verification of the management key pair, combined with pre-stored first information, random numbers, pre-stored second information and other data, to conveniently and quickly complete the verification of the unlocking operation authority, thereby improving the unlocking efficiency.
[0086] The present invention also provides an unlocking method for a password device, which is applied to an administrator device, by receiving a challenge code, the challenge code is generated and sent by the password device, the challenge code includes a pre-stored first information and a random number, the pre-stored first information is used to indicate the identity of the password device; the first target information is signed by a private key in a pre-stored management key pair to obtain an unlocking code, the first target information is determined according to the challenge code and the pre-stored second information; the unlocking code is sent to the password device. The method uses the signature and verification of the management key pair, combined with pre-stored first information, random number, project information and other data, to conveniently and quickly complete the verification of the unlocking operation authority, thereby improving the unlocking efficiency.
[0087] Figure 4 This is the second flow chart of the unlocking method of the password device provided by the present invention. The unlocking method of the password device can be applied to an administrator device, which can be various types of devices with information processing capabilities during implementation. For example, the administrator device can include a personal computer, a laptop, a PDA or a server, etc.; the administrator device can also be a mobile terminal, for example, the mobile terminal can include a mobile phone, a car computer, a tablet computer or a projector, etc. Figure 4 As shown, the unlocking method of the password device may include: Step 401: receiving a challenge code, wherein the challenge code is generated and sent by a cryptographic device, and the challenge code includes pre-stored first information and a random number, wherein the pre-stored first information is used to indicate the identity of the cryptographic device.
[0088] It should be noted that there are many ways to receive the challenge code, for example, the challenge code sent by the password device can be received through the network, or the challenge code sent by the password device can be received through an application. The present invention does not limit the way to receive the challenge code. For the way in which the password device generates the challenge code, reference can be made to the description of step 101 in the aforementioned embodiment, which will not be repeated here.
[0089] Step 402: Sign the first target information with the private key in the pre-stored management key pair to obtain an unlocking code, wherein the first target information is determined based on the challenge code and the pre-stored second information, and the pre-stored second information is used to indicate at least one of the project information, customer information and customized information corresponding to the cryptographic device.
[0090] It should be noted that the administrator device has a built-in private key of the management key pair, and the private key of the management key pair cannot be read out. The private key can be a smart password key or a server. The pre-stored second information can be the information generated when the password device is customized for the project, and the administrator device stores the information.
[0091] After the administrator device receives the challenge code and the pre-stored second information, it can obtain the first target information based on the challenge code and the pre-stored second information, and then use the private key of the management key pair to sign the first target information. The signature result is the unlocking code. Exemplarily, the pre-stored second information can be the project name written into the password device configuration file during initialization when the password device is customized for a project. The project name is unique. The project name is sent to the administrator device, and the administrator device obtains the pre-stored second information. The unlocking application system corresponding to the password device can record the project name and the SN of the unlocked password device for query use.
[0092] Step 403: Send the unlock code to the password device.
[0093] It should be noted that the administrator device may send the unlock code to the password device via a network or via an application, and the present invention does not limit the method of sending the unlock code to the password device.
[0094] It can be understood that the unlocking method of the cryptographic device provided by the present invention, by using the signature and verification of the management key pair, combined with pre-stored first information, random numbers, pre-stored second information and other data, conveniently and quickly completes the verification of unlocking operation permissions, thereby improving unlocking efficiency.
[0095] Figure 5 This is the third flow chart of the unlocking method of the password device provided by the present invention. Applied to the administrator device, such as Figure 5 As shown, the unlocking method of the password device may include: Step 501: receiving a challenge code, wherein the challenge code is generated and sent by a cryptographic device, and the challenge code includes pre-stored first information and a random number, wherein the pre-stored first information is used to indicate the identity of the cryptographic device.
[0096] It should be noted that the description of step 501 can refer to the description of step 401 in the above embodiment, which will not be repeated here.
[0097] Step 502: Using a preset algorithm to calculate the challenge code and the pre-stored second information to obtain the first target information.
[0098] It should be noted that the administrator device can calculate the challenge code and the pre-stored second information according to a preset algorithm to obtain the first target information, and then sign the first target information, so that the cryptographic device also uses the preset algorithm to calculate the challenge code and the pre-stored third information to obtain the second target information for signature verification. The present invention does not limit the type of preset algorithm.
[0099] Exemplarily, after receiving the challenge code, the administrator device can use a hash algorithm to perform a hash operation on "project name||challenge code (SN||random number)", and then use the private key of the management key pair to sign the hash result, and the signature result is the unlock code.
[0100] Step 503: Sign the first target information with the private key in the pre-stored management key pair to obtain an unlocking code, wherein the first target information is determined based on the challenge code and the pre-stored second information, and the pre-stored second information is used to indicate at least one of the project information, customer information and customized information corresponding to the cryptographic device.
[0101] It should be noted that the description of step 503 may refer to the description of step 402 in the aforementioned embodiment, and will not be repeated here.
[0102] Step 504: Send the unlock code to the password device.
[0103] It should be noted that the description of step 504 may refer to the description of step 403 in the aforementioned embodiment, and will not be repeated here.
[0104] An exemplary application of the present invention in a practical application scenario will be described below.
[0105] Figure 6 The overall flow chart of the unlocking method of the password device provided by the present invention is shown in FIG. The password device pre-stores the public key, SN and project name in the management key pair, and the administrator device pre-stores the private key and project name in the management key pair. Figure 6 As shown, the method includes the following steps 601 to 603.
[0106] Step 601: The cryptographic device obtains a challenge code (random number||SN) and sends it to the administrator device.
[0107] Step 602: The administrator device returns the unlock code (signature result) to the cryptographic device.
[0108] Step 603: The cryptographic device verifies the unlocking code to complete the unlocking.
[0109] It should be noted that the solution provided by the present invention uses the signature and verification of the management key pair, combined with pre-stored first information, random numbers, project information and other data, to complete the verification of the unlocking operation authority, thereby improving the unlocking efficiency.
[0110] In addition, the solution provided by the present invention is safe, reliable and anti-replay, and can be combined with different technical solutions to achieve local, online and offline unlocking methods. Specifically, the present invention can achieve remote online unlocking and remote offline unlocking. (1) Remote online unlocking: The administrator device is deployed on the server, and the server provides an unlocking service page, receives the challenge code and sends the unlocking code. The user using the password device logs in to the unlocking system, clicks the submit unlocking button to apply, and the client receives the unlocking code and automatically completes the unlocking. (2) Remote offline unlocking: The user sends the challenge code to the administrator via email or other communication methods. The administrator verifies the user's identity, uses the administrator and administrator tools to generate an unlocking code, and sends it to the user. After receiving the unlocking code, the user copies it to the unlocking tool to complete the unlocking.
[0111] In addition, the solution can be extended to not only realize the unlocking function, but also be applied to other functions, such as restoring factory settings, initializing the device, etc.
[0112] Based on the foregoing embodiments, an embodiment of the present invention provides an unlocking device for a cryptographic device. The modules included in the device and the units included in the modules can be implemented by a processor; of course, they can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0113] The unlocking device of the cryptographic device provided by the present invention is described below. The unlocking device of the cryptographic device described below and the unlocking method of the cryptographic device described above can be referred to each other.
[0114] Figure 7 This is one of the structural schematic diagrams of the unlocking device of the password device provided by the present invention. Figure 7 As shown, the apparatus 700 includes a challenge code sending module 701, an unlock code obtaining module 702 and a device unlocking module 703, wherein: The challenge code sending module 701 is used to obtain a challenge code and send the challenge code to the administrator device, wherein the challenge code includes pre-stored first information and a random number, and the pre-stored first information is used to indicate the identity of the cryptographic device; The unlocking code acquisition module 702 is used to receive the unlocking code, wherein the unlocking code is sent by the administrator device, and the unlocking code is obtained by the administrator device signing the first target information with the private key in the pre-stored management key pair, and the first target information is determined according to the challenge code and the pre-stored second information, and the pre-stored second information is used to indicate at least one of the project information, customer information and customized information corresponding to the cryptographic device; The device unlocking module 703 is used to unlock the device according to the public key in the pre-stored management key pair, the unlocking code, the challenge code and the pre-stored third information, where the pre-stored third information corresponds to the pre-stored second information.
[0115] Based on the above embodiment, in this embodiment, the device unlocking module 703 includes an information unit, an unlocking unit and a deleting unit, wherein:
[0116] The information unit is used to obtain second target information, where the second target information is determined according to the challenge code and the pre-stored third information, and the second target information corresponds to the first target information; The unlocking unit is used to verify the signature of the unlocking code according to the public key in the pre-stored management key pair and the second target information, obtain the unlocking result, and obtain the information after the signature verification; The deleting unit is used to delete the challenge code.
[0117] Based on the above embodiment, in this embodiment, the unlocking unit is specifically used for: The unlocking code is verified according to the public key in the pre-stored management key pair and the second target information, and the verification process includes determining whether the information obtained by the verification matches the second target information; if the verification is successful, the unlocking result is determined to be a successful unlocking; if the verification fails, the unlocking result is determined to be a failed unlocking.
[0118] Based on the above embodiments, in this embodiment, the first target information is obtained by using a preset algorithm to calculate the challenge code and the pre-stored second information, and the unlocking unit is specifically used to: use a preset algorithm to calculate the challenge code and the pre-stored third information to obtain the second target information.
[0119] Based on the above embodiments, in this embodiment, the password device and the administrator device are the same electronic device, and the challenge code sending module 701 is specifically used to send the challenge code to the second application through a first application, the first application is an unlocking application corresponding to the password device, and the second application is a service application corresponding to the administrator device; the unlocking code acquisition module 702 is specifically used to receive the unlocking code sent by the second application through the first application.
[0120] Based on the above embodiments, in this embodiment, the administrator device is set on the server, and the challenge code sending module 701 is specifically used to send the challenge code to the unlocking service page provided by the administrator device through the first application, and the first application is the unlocking application corresponding to the password device; the unlocking code acquisition module 702 is specifically used to receive the unlocking code sent by the unlocking service page through the first application.
[0121] Based on the above embodiments, in this embodiment, the challenge code sending module 701 is specifically used to send the challenge code to the unlocking service mailbox provided by the administrator device through the first application, and the first application is the unlocking application corresponding to the password device; the unlocking code acquisition module 702 is specifically used to receive the unlocking code sent by the unlocking service mailbox through the first application.
[0122] Figure 8 This is the second structural diagram of the unlocking device of the password device provided by the present invention. Figure 8 As shown, the device 800 includes a challenge code receiving module 801, an unlock code generating module 802 and an unlock code sending module 803, wherein: A challenge code receiving module 801 is used to receive a challenge code, where the challenge code is generated and sent by a cryptographic device, and the challenge code includes pre-stored first information and a random number, where the pre-stored first information is used to indicate the identity of the cryptographic device; The unlocking code generating module 802 is used to sign the first target information by using the private key in the pre-stored management key pair to obtain the unlocking code, wherein the first target information is determined according to the challenge code and the pre-stored second information, and the pre-stored second information is used to indicate at least one of the project information, customer information and customized information corresponding to the cryptographic device; The unlock code sending module 803 is used to send the unlock code to the password device.
[0123] In some embodiments, the device further includes an information acquisition module, which is used to use a preset algorithm to calculate the challenge code and the pre-stored second information to obtain the first target information.
[0124] In the embodiment of the present invention, by using the signature and verification of the management key pair, combined with pre-stored first information, random numbers, pre-stored second information and other data, the verification of the unlocking operation authority is completed conveniently and quickly, thereby improving the unlocking efficiency.
[0125] Fig. 9 Schematic diagram of the physical structure of the electronic device provided by the present invention. Fig. 9As shown, the electronic device may include: a processor (processor) 901, a communication interface (Communications Interface) 902, a memory (memory) 903 and a communication bus 904, wherein the processor 901, the communication interface 902, and the memory 903 communicate with each other through the communication bus 904. The processor 901 can call the logic instructions in the memory 903 to execute an unlocking method for a cryptographic device, the method comprising: obtaining a challenge code and sending the challenge code to an administrator device, the challenge code comprising a pre-stored first information and a random number, the pre-stored first information being used to indicate the identity of the cryptographic device; receiving an unlocking code, the unlocking code being sent by the administrator device, the unlocking code being obtained by the administrator device signing first target information using a private key in a pre-stored management key pair, the first target information being determined based on the challenge code and pre-stored second information, the pre-stored second information being used to indicate at least one of project information, customer information and customized information corresponding to the cryptographic device; unlocking based on a public key in a pre-stored management key pair, the unlocking code, the challenge code and pre-stored third information, the pre-stored third information corresponding to the pre-stored second information. Alternatively, the method includes: receiving a challenge code, wherein the challenge code is generated and sent by a cryptographic device, the challenge code includes pre-stored first information and a random number, the pre-stored first information is used to indicate the identity of the cryptographic device; signing first target information with a private key in a pre-stored management key pair to obtain an unlocking code, wherein the first target information is determined based on the challenge code and pre-stored second information, the pre-stored second information is used to indicate at least one of project information, customer information and customized information corresponding to the cryptographic device; and sending the unlocking code to the cryptographic device.
[0126] In addition, the logic instructions in the above-mentioned memory 903 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0127] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the unlocking method of the cryptographic device provided by the above methods, the method including: obtaining a challenge code and sending the challenge code to an administrator device, the challenge code including a pre-stored first information and a random number, the pre-stored first information being used to indicate the identity of the cryptographic device; receiving an unlocking code, the unlocking code being sent by the administrator device, the unlocking code being obtained by the administrator device signing first target information with a private key in a pre-stored management key pair, the first target information being determined based on the challenge code and pre-stored second information, the pre-stored second information being used to indicate at least one of project information, customer information and customized information corresponding to the cryptographic device; unlocking according to a public key in a pre-stored management key pair, the unlocking code, the challenge code and pre-stored third information, the pre-stored third information corresponding to the pre-stored second information. Alternatively, the method includes: receiving a challenge code, wherein the challenge code is generated and sent by a cryptographic device, the challenge code includes pre-stored first information and a random number, the pre-stored first information is used to indicate the identity of the cryptographic device; signing first target information with a private key in a pre-stored management key pair to obtain an unlocking code, wherein the first target information is determined based on the challenge code and pre-stored second information, the pre-stored second information is used to indicate at least one of project information, customer information and customized information corresponding to the cryptographic device; and sending the unlocking code to the cryptographic device.
[0128] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center to another website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0129] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the unlocking method of the cryptographic device provided by the above-mentioned methods, the method comprising: obtaining a challenge code, and sending the challenge code to an administrator device, the challenge code comprising a pre-stored first information and a random number, the pre-stored first information being used to indicate the identity of the cryptographic device; receiving an unlocking code, the unlocking code being sent by the administrator device, the unlocking code being obtained by the administrator device signing first target information with a private key in a pre-stored management key pair, the first target information being determined based on the challenge code and pre-stored second information, the pre-stored second information being used to indicate at least one of project information, customer information and customized information corresponding to the cryptographic device; unlocking according to a public key in a pre-stored management key pair, the unlocking code, the challenge code and pre-stored third information, the pre-stored third information corresponding to the pre-stored second information. Alternatively, the method includes: receiving a challenge code, wherein the challenge code is generated and sent by a cryptographic device, the challenge code includes pre-stored first information and a random number, the pre-stored first information is used to indicate the identity of the cryptographic device; signing first target information with a private key in a pre-stored management key pair to obtain an unlocking code, wherein the first target information is determined based on the challenge code and pre-stored second information, the pre-stored second information is used to indicate at least one of project information, customer information and customized information corresponding to the cryptographic device; and sending the unlocking code to the cryptographic device.
[0130] The above-mentioned computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM) or flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0131] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0132] The program code embodied on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
[0133] Computer program code for performing the operations of the present specification may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0134] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0135] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0136] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for unlocking a password device, It is characterized in that Applied to cryptographic equipment, including: Obtaining a challenge code, and sending the challenge code to an administrator device, wherein the challenge code includes pre-stored first information and a random number, and the pre-stored first information is used to indicate the identity of the cryptographic device; receiving an unlock code, wherein the unlock code is sent by the administrator device, the unlock code is obtained by the administrator device signing first target information by using a private key in a pre-stored management key pair, the first target information is determined according to the challenge code and pre-stored second information, the pre-stored second information is used to indicate at least one of project information, customer information and customized information corresponding to the cryptographic device; Unlocking is performed according to the public key in the pre-stored management key pair, the unlocking code, the challenge code and pre-stored third information, where the pre-stored third information corresponds to the pre-stored second information.
2. The method for unlocking a password device according to claim 1, It is characterized in that The unlocking according to the public key in the pre-stored management key pair, the unlocking code, the challenge code and the pre-stored third information includes: Acquire second target information, where the second target information is determined according to the challenge code and the pre-stored third information, and the second target information corresponds to the first target information; Verifying the signature of the unlocking code according to the public key in the pre-stored management key pair and the second target information to obtain an unlocking result; Delete the challenge code.
3. The method for unlocking a password device according to claim 2, It is characterized in that The step of verifying the signature of the unlocking code according to the public key in the pre-stored management key pair and the second target information to obtain an unlocking result includes: Verifying the unlocking code according to the public key in the pre-stored management key pair and the second target information, wherein the verification process includes determining whether the information obtained by the verification matches the second target information; If the signature verification is successful, the unlocking result is determined to be unlocking success; If the signature verification fails, the unlocking result is determined to be unlocking failure.
4. The method for unlocking a password device according to claim 2, It is characterized in that The first target information is obtained by operating the challenge code and the pre-stored second information using a preset algorithm, and obtaining the second target information includes: operating the challenge code and the pre-stored third information using a preset algorithm to obtain the second target information.
5. The method for unlocking a password device according to claim 1, It is characterized in that The password device and the administrator device are the same electronic device, and sending the challenge code to the administrator device includes: Sending the challenge code to a second application through a first application, where the first application is an unlocking application corresponding to the password device, and the second application is a service application corresponding to the administrator device; The receiving of the unlock code comprises: The unlock code sent by the second application is received through the first application.
6. The method for unlocking a password device according to claim 1, It is characterized in that The administrator device is set on the server, and sending the challenge code to the administrator device includes: Sending the challenge code to an unlocking service page provided by the administrator device through a first application, where the first application is an unlocking application corresponding to the password device; The receiving of the unlock code comprises: The unlock code sent by the unlock service page is received through the first application.
7. The method for unlocking a password device according to claim 1, It is characterized in that The sending the challenge code to the administrator device includes: Sending the challenge code to the unlocking service mailbox provided by the administrator device through a first application, where the first application is the unlocking application corresponding to the password device; The receiving of the unlock code comprises: The unlocking code sent by the unlocking service mailbox is received through the first application.
8. A method for unlocking a password device, It is characterized in that Applicable to administrator devices, including: receiving a challenge code, where the challenge code is generated and sent by a cryptographic device, and the challenge code includes pre-stored first information and a random number, where the pre-stored first information is used to indicate the identity of the cryptographic device; The first target information is signed by a private key in a pre-stored management key pair to obtain an unlocking code, wherein the first target information is determined according to the challenge code and pre-stored second information, and the pre-stored second information is used to indicate at least one of project information, customer information and customized information corresponding to the cryptographic device; The unlock code is sent to the cryptographic device.
9. The method for unlocking a password device according to claim 8, It is characterized in that Before signing the first target information with the private key in the pre-stored management key pair to obtain the unlocking code, the method further includes: A preset algorithm is used to operate the challenge code and the pre-stored second information to obtain the first target information.
10. An unlocking device for a cryptographic device, It is characterized in that Applied to cryptographic equipment, including: A challenge code sending module, used for obtaining a challenge code and sending the challenge code to an administrator device, wherein the challenge code includes pre-stored first information and a random number, and the pre-stored first information is used for indicating the identity of the cryptographic device; an unlocking code acquisition module, configured to receive an unlocking code, wherein the unlocking code is sent by the administrator device, and the unlocking code is obtained by the administrator device signing first target information using a private key in a pre-stored management key pair, wherein the first target information is determined based on the challenge code and pre-stored second information, and the pre-stored second information is used to indicate at least one of the project information, customer information, and customized information corresponding to the cryptographic device; The device unlocking module is used to unlock the device according to the public key in the pre-stored management key pair, the unlocking code, the challenge code and the pre-stored third information, wherein the pre-stored third information corresponds to the pre-stored second information.
11. An unlocking device for a cryptographic device, It is characterized in that Applicable to administrator devices, including: A challenge code receiving module, used for receiving a challenge code, wherein the challenge code is generated and sent by a cryptographic device, and the challenge code includes pre-stored first information and a random number, wherein the pre-stored first information is used for indicating the identity of the cryptographic device; an unlocking code generating module, configured to sign first target information by using a private key in a pre-stored management key pair to obtain an unlocking code, wherein the first target information is determined according to the challenge code and pre-stored second information, wherein the pre-stored second information is used to indicate at least one of project information, customer information and customized information corresponding to the cryptographic device; The unlock code sending module is used to send the unlock code to the password device.
12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the unlocking method of the cryptographic device according to any one of claims 1 to 9 is implemented.
13. A non-transitory computer readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the unlocking method of the cryptographic device according to any one of claims 1 to 9 is implemented.
14. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the unlocking method of the cryptographic device according to any one of claims 1 to 9 is implemented.
