Method and related products for binding smart password key and terminal
Through offline acquisition and processing of keys and verification codes, the binding, unlocking and unbinding of smart password keys and terminals is realized, which solves the problems of smart password keys being locked and network dependence, and expands the scope of application.
Patent Information
- Application Number
- CN202210807451.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-08
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-07-08
AI Technical Summary
Existing smart password keys are easily locked after being unused for a long time, and existing unlocking methods rely on network interaction and have limited scope of application.
Obtain binding instructions and decrypt user passwords offline, generate unlocking keys and verification codes, encrypt and decrypt ciphertext, and realize binding, unlocking and binding of smart password keys and terminals to avoid network dependence.
It realizes the binding, unlocking and unbinding of smart password keys and terminals offline, expands the scope of application, and gets rid of restrictions on the network environment.
Smart Images

Figure CN115296854B
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the field of smart terminal technology. More specifically, the present disclosure relates to a method for binding a smart password key to a terminal, a method for unlocking a smart password key, a method for unbinding a smart password key from a terminal, a device, and a computer-readable medium. Background Art
[0002] Currently, the smart password key is a security chip with a built-in ability to generate asymmetric and symmetric algorithms. It is mainly used in scenarios such as website login and identity authentication. When in use, a user password is usually used to authenticate the key. If the user has not used the smart password key for a long time, it is very easy to forget the user password, which will cause the smart password key to be locked when used again.
[0003] Existing solutions must all use online interaction with the server to unlock the smart password key. This network-dependent unlocking method has strong limitations and is not suitable for the needs of different scenarios. Summary of the invention
[0004] At least to address the defects in the above-mentioned background technology, the present disclosure provides a method for binding a smart password key and a terminal, a method for unlocking a smart password key, a method for unbinding a smart password key and a terminal, a device and a computer-readable medium.
[0005] In a first aspect, the present disclosure provides a method for binding a smart password key and a terminal, comprising: obtaining a binding instruction for binding the smart password key and the terminal offline at the smart password key, wherein the binding instruction carries a user password for decrypting the smart password key; generating a first unlocking key for unlocking the user password of the smart password key and a first binding verification code for binding verification according to the binding instruction; encrypting the first unlocking key by the user password to obtain a first binding ciphertext, and encrypting the first binding verification code by the first unlocking key to obtain a second binding ciphertext, so that the terminal receives two binding ciphertexts corresponding to the first binding ciphertext and the second binding ciphertext offline, and decrypts them by the obtained user password to obtain a second unlocking key and a second binding verification code; and obtaining the second binding verification code from the terminal offline to determine whether the smart password key and the terminal are successfully bound through matching verification with the first binding verification code.
[0006] In one embodiment, after generating the first binding ciphertext and the second binding ciphertext, the method further includes: transmitting the first binding ciphertext and the second binding ciphertext to a processing device offline, so that the processing device displays the two received binding ciphertexts to the terminal in the form of a graphic code, so that the terminal can obtain the two binding ciphertexts corresponding to the first binding ciphertext and the second binding ciphertext offline according to the graphic code.
[0007] In one embodiment, offline acquiring the second binding verification code from the terminal includes: acquiring the second binding verification code input by the user from a processing device interacting with the smart password key, wherein the second binding verification code is displayed by the terminal.
[0008] In a second aspect, the present disclosure also provides a method for binding a smart password key and a terminal, comprising: offline acquiring at the terminal a third binding ciphertext and a fourth binding ciphertext corresponding to the first binding ciphertext and the second binding ciphertext generated by the smart password key, respectively, wherein the first binding ciphertext is obtained by encrypting a first unlocking key used to unlock the user password of the smart password key through the user password, and the second binding ciphertext is obtained by encrypting a first binding verification code used for binding verification through the first unlocking key; decrypting the third binding ciphertext according to the acquired user password to obtain a second unlocking key; and decrypting the fourth binding ciphertext through the second unlocking key to obtain a second binding verification code and transmitting it offline to the smart password key, so that it performs binding verification according to the second binding verification code and the first binding verification code.
[0009] In one embodiment, the method further includes: storing the second unlocking key so as to unlock the user password of the smart password key by using the second unlocking key.
[0010] In a third aspect, the present disclosure also provides a method for unlocking a smart password key, comprising: offline obtaining an unlocking instruction for unlocking a user password of the smart password key at the smart password key; generating a first unlocking verification code for unlocking verification according to the unlocking instruction, and encrypting the first unlocking verification code by a first unlocking key for unlocking the user password of the smart password key to obtain a first unlocking ciphertext; offline transmitting the first unlocking ciphertext to a terminal bound to the smart password key, so that the terminal receives the unlocking ciphertext corresponding to the first unlocking ciphertext, and decrypts it according to a second unlocking key related to the first unlocking key to obtain a second unlocking verification code; and offline obtaining the second unlocking verification code from the terminal, and determining the current user password based on the second unlocking verification code and the first unlocking verification code.
[0011] In a fourth aspect, the present disclosure also provides a method for unlocking a smart password key, comprising: offline acquiring, at a terminal bound to the smart password key, a second unlocking ciphertext corresponding to a first unlocking ciphertext generated by the smart password key, wherein the first unlocking ciphertext is obtained by encrypting a first unlocking verification code for unlocking verification with a first unlocking key used to unlock a user password of the smart password key; decrypting the second unlocking ciphertext according to a second unlocking key related to the first unlocking key to obtain a second unlocking verification code; and transmitting the second unlocking verification code to the smart password key offline so that it performs unlocking verification according to the first unlocking verification code and the second unlocking verification code.
[0012] In the fifth aspect, the present disclosure also provides a method for unbinding a smart password key and a terminal, comprising: obtaining an unbinding instruction for unbinding the smart password key and the terminal offline at the smart password key, wherein the unbinding instruction carries a user password for decrypting the smart password key; judging whether the user password matches the user password stored in the smart password key; and determining whether to delete a first unlocking key in the smart password key for unlocking the user password based on the judgment result, so as to determine whether to unbind the smart password key and the terminal.
[0013] In the sixth aspect, the present disclosure also provides a device, including: a processor; a memory storing program instructions executable by the processor, and when the program instructions are executed by the processor, the device executes the method for binding a smart password key and a terminal according to the first or second aspect, the method for unlocking a smart password key according to the third or fourth aspect, and the method for unbinding a smart password key and a terminal according to the fifth aspect.
[0014] In the seventh aspect, the present disclosure also provides a computer-readable medium storing program instructions. When the program instructions are executed by at least one processor, the processor executes the method for binding a smart password key and a terminal according to the first or second aspect, the method for unlocking a smart password key according to the third or fourth aspect, and the method for unbinding a smart password key and a terminal according to the fifth aspect.
[0015] Based on the above description of the disclosed solution, those skilled in the art can understand that the binding, unlocking and unbinding solutions described in the above embodiments can be performed offline, so that each process is not restricted by the network environment, thereby expanding its scope of application. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present disclosure will become readily understood. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0017] Figure 1 is a schematic flow chart of a method for binding a smart password key and a terminal in a smart password key according to an embodiment of the present disclosure;
[0018] Figure 2 is a schematic flow chart of a method for binding a smart password key to a terminal in a terminal according to an embodiment of the present disclosure;
[0019] Figure 3 is a schematic flow chart of the interaction between a smart password key and a terminal during binding according to an embodiment of the present disclosure;
[0020] Figure 4 is a schematic flow chart of a method for unlocking a smart password key in a smart password key according to an embodiment of the present disclosure;
[0021] Figure 5 is a schematic flow chart of a method for unlocking a smart password key in a terminal according to an embodiment of the present disclosure;
[0022] Figure 6 is a schematic flow chart of the interaction between the smart password key and the terminal during unlocking according to an embodiment of the present disclosure;
[0023] Figure 7 is a schematic flow chart of a method for unbinding a smart password key from a terminal according to an embodiment of the present disclosure;
[0024] Figure 8 is a schematic flow chart of the interaction between the smart password key and the processing device during unbinding according to an embodiment of the present disclosure; and
[0025] Fig. 9 is a structural block diagram of a device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] The technical solutions in the embodiments of the present disclosure will be described clearly and completely below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0027] Figure 11 is a schematic flow chart of a method 100 for binding a smart password key and a terminal in a smart password key according to an embodiment of the present disclosure.
[0028] like Figure 1 As shown in , the method 100 includes, at step S101, offline acquiring a binding instruction for binding the smart password key and the terminal at the smart password key, wherein the binding instruction carries a user password for decrypting the smart password key.
[0029] In one implementation scenario, the binding instruction may be generated by a processing device (such as a personal computer, etc.) that interacts with the smart password key according to the user's binding trigger operation on the smart password key and sent to the smart password key offline. Based on different application scenarios, the smart password key can be connected to the processing device by wire or wirelessly, and these connections can be non-network connection methods. For example, the wired connection can be a USB connection or an I / O connection, and the wireless connection can be a Bluetooth connection. Through these non-network connection methods, offline data transmission between the smart password key and the processing device can be achieved. Furthermore, the smart password key can be, for example, a U shield, and the terminal can be various smart devices with secure storage such as TEE, such as mobile phones, tablets, and wearable devices.
[0030] After obtaining the user password, the smart password key can first verify the matching between the user password and the locally stored default user password (such as the initial user password at the factory). When it is determined that the two match, the binding is stopped (because the security of the initial user password is poor); when it is determined that the two do not match (indicating that the locally stored user password has been modified at this time), the binding operation of this solution continues (because the security of the non-initial user password is higher). In other words, this solution uses a non-initial user password for binding, thereby preventing the problem of being bound and having poor security due to the low security of the initial user password. In an implementation scenario, the user password can be calculated by a password dispersion algorithm.
[0031] At step S102, the method 100 can generate a first unlocking key for unlocking the user password of the smart password key and a first binding verification code for binding verification according to the binding instruction. The first unlocking key can be generated by an asymmetric algorithm, thereby improving its security, and the first binding verification code can be a random number of preset digits (e.g., 6 digits).
[0032] Then, at step S103, the method 100 can encrypt the first unlocking key through the above-mentioned user password to obtain the first binding ciphertext, and encrypt the first binding verification code through the first unlocking key to obtain the second binding ciphertext, so that the terminal receives two binding ciphertexts corresponding to the first binding ciphertext and the second binding ciphertext offline, and decrypts them through the obtained user password to obtain the second unlocking key and the second binding verification code. In one embodiment, a symmetric encryption algorithm can be used to encrypt the first unlocking key and the first binding verification code. In addition, this scheme can transmit the first binding ciphertext and the second binding ciphertext to the terminal offline with the help of a processing device. Specifically, the first binding ciphertext and the second binding ciphertext can be transmitted offline to the processing device (for example, USB wired transmission or Bluetooth or other wireless transmission), and the processing device displays the two received binding ciphertexts to the terminal in the form of a graphic code (for example, a QR code), and the terminal can obtain (for example, scan the code) the two binding ciphertexts corresponding to the first binding ciphertext and the second binding ciphertext offline according to the graphic code.
[0033] It is understandable that due to transmission and other reasons, the information received by the terminal may be different from the information transmitted by the smart password key, so the consistency can be verified by the corresponding verification code. Therefore, when the first binding ciphertext and the second binding ciphertext are transmitted correctly, in theory the first unlocking key and the second unlocking key should match (for example, the same), based on which the second binding verification code and the first binding verification code should match (for example, the same). Therefore, the second binding verification code and the first binding verification code can be used to verify whether the first unlocking key and the second unlocking key match, thereby determining whether the smart password key and the terminal are successfully bound. Based on this, at step S104, method 100 can obtain the second binding verification code offline from the terminal to determine whether the smart password key and the terminal are successfully bound through matching verification with the above-mentioned first binding verification code.
[0034] In one embodiment, the smart password key can also obtain the second binding verification code from the terminal offline with the help of the processing device, for example, the second binding verification code input by the user can be obtained from the processing device interacting with the smart password key, wherein the second binding verification code can be displayed by the terminal. Specifically, after the processing device transmits two binding ciphertexts to the terminal offline, it can display a verification code input box, and after the terminal displays the second binding verification code, the user can enter the second binding verification code into the verification code input box. After receiving the second binding verification code, the processing device can transmit it to the smart password key offline.
[0035] Next, the smart password key can verify the matching of the first binding verification code and the second binding verification code. When it is determined that the first binding verification code and the second binding verification code match, it is determined that the first unlocking key and the second unlocking key match (if they are the same). At this time, it is determined that the smart password key and the terminal are bound successfully, and the first unlocking key can be activated; accordingly, when it is determined that the first binding verification code and the second binding verification code do not match, it is determined that the first unlocking key and the second unlocking key do not match (if they are different). At this time, it is determined that the binding of the smart password key and the terminal has failed.
[0036] It can be seen that this solution can verify whether the smart password key and the unlocking key in the terminal to be bound match by binding the verification code, thereby determining whether the smart password key and the terminal are successfully bound. Each end in this solution does not need to interact with the server, so that the entire process does not need to rely on the network environment, and thus has a wider range of applications.
[0037] The above describes the binding method in the smart password key. Figure 2 The binding method in the terminal is described. According to the description of the above embodiment, the smart password key can use a symmetric encryption algorithm to encrypt the first unlocking key and the first binding verification code, and the terminal can then decrypt them using the inverse algorithm of the encryption algorithm. This embodiment will be described using the inverse algorithm as an example.
[0038] like Figure 2 As shown in , method 200 may include, at step S201, offline obtaining at the terminal a third binding ciphertext and a fourth binding ciphertext corresponding to the first binding ciphertext and the second binding ciphertext generated by the smart password key, respectively, wherein the first binding ciphertext is obtained by encrypting the first unlocking key for unlocking the user password of the smart password key through the user password, and the second binding ciphertext is obtained by encrypting the first binding verification code for binding verification through the first unlocking key. The type and data transmission method of the smart password key and the terminal, as well as the transmission method of the first binding ciphertext and the second binding ciphertext, etc., can refer to the description of the aforementioned embodiment and will not be described in detail here.
[0039] After obtaining the third binding ciphertext and the fourth binding ciphertext, at step S202, the method 200 can decrypt the third binding ciphertext according to the obtained user password to obtain the second unlocking key. The user password here is the same as the user password used for encryption in the smart password key.
[0040] According to the description of the above embodiment, when the first binding ciphertext and the second binding ciphertext are transmitted correctly, the matching result of the second binding verification code and the first binding verification code can be used to verify whether the first unlocking key and the second unlocking key match, thereby determining whether the smart password key and the terminal are successfully bound. Based on this, after obtaining the second unlocking key, the method 200 can enter step S203, decrypt the fourth binding ciphertext by the second unlocking key, obtain the second binding verification code and transmit it offline to the smart password key, so that it can perform binding verification according to the second binding verification code and the first binding verification code.
[0041] It can be seen that this solution can verify whether the smart password key and the unlocking key in the terminal used for unlocking match by binding the verification code, thereby determining whether the smart password key and the terminal are successfully bound. Each end in this solution does not need to interact with the server, so that the entire process does not need to rely on the network environment, and thus has a wider range of applications.
[0042] In one embodiment, the method may further include: storing the second unlocking key so as to unlock the user password of the smart password key by using the second unlocking key.
[0043] In order to more fully illustrate the above binding method, the following scheme will combine Figure 3 The interaction process when binding the smart password key 330 and the terminal 350 is described in detail.
[0044] like Figure 3 As shown in , at step S301, the user triggers the binding operation on the processing device 340, and the processing device 340 generates a binding instruction according to the triggering operation, and at step S302, transmits the binding instruction to the smart password key 330 offline. After receiving the binding instruction, the smart password key 330 determines whether the user password in the binding instruction is the default user password PIN at step S303. If the user password in the binding instruction is the default user password PIN, the current binding is stopped; at step S304, if the user password in the binding instruction is not the default user password PIN, a first unlocking key k1 and a first binding verification code R1 are generated, the first unlocking key k1 is encrypted by the user password to obtain a first binding ciphertext M1, and the first binding verification code R1 is encrypted by the first unlocking key k1 to obtain a second binding ciphertext M2. Then, at step S305, the smart password key 330 transmits the first binding ciphertext M1 and the second binding ciphertext M2 to the processing device 340 offline. In step S306 , the processing device 340 displays the two received binding ciphertexts in the form of QR codes.
[0045] Next, at step S307, the terminal 350 (e.g., a mobile phone) scans the two QR codes of the binding ciphertexts to obtain the third binding ciphertext M1' (obtained by scanning the QR code corresponding to the first binding ciphertext M1) and the fourth binding ciphertext M2' (obtained by scanning the QR code corresponding to the second binding ciphertext M2). At this time, the processing device 340 displays a verification code input box to wait for the input of the second binding verification code.
[0046] Next, at step S308, the terminal 350 uses the user password to decrypt the third binding ciphertext M1' to obtain the second unlocking key k2, and uses it to decrypt the fourth binding ciphertext M2' to obtain the second binding verification code R2 and display it. Further, at step S309, the terminal 350 may also store the second unlocking key k2.
[0047] After the terminal 350 displays the second binding verification code R2, at step S310, the user inputs the second binding verification code R2 into the verification code input box of the processing device 340. After receiving the second binding verification code R2, the processing device 340 transmits it offline to the smart password key 330 at step S311. Then, at step S312, the smart password key 330 performs matching verification on the first binding verification code R1 and the second binding verification code R2. At step S313, when it is determined that the two match, the first unlocking key k1 is activated and stored so that the first unlocking key k1 can be reliably used for unlocking operations in various situations; when it is determined that the two do not match, it is determined that this binding fails. Further, at step S314, the smart password key 330 can transmit the binding result to the processing device 340 offline.
[0048] From the above description, it can be seen that the binding process of this solution is independent of the network, thus getting rid of the dependence on the network environment, so the applicable scenarios are richer.
[0049] The above embodiment describes the method for binding a smart password key and a terminal. Figure 4-Figure 6 The unlocking method of the smart password key is described below. Figure 4 The figure is an exemplary illustration of the unlocking method in the smart password key.
[0050] like Figure 4 As shown in , the method 400 may include, at step S401, offline acquiring, at the smart password key, an unlocking instruction for unlocking the user password of the smart password key.
[0051] In one implementation scenario, the unlock instruction may be generated by a processing device (such as a personal computer or other device) that interacts with the smart password key according to the user's unlock trigger operation on the smart password key and sent to the smart password key offline. Furthermore, the unlock trigger operation may be a regular function option in the smart password key so that it can be triggered as needed (for example, when the user password is entered incorrectly multiple times), or it may be a function option that is only available when the user enters the user password incorrectly multiple times (which does not match the user password stored in the smart password key). The types and connection methods of the smart password key and the processing device can refer to the description of the aforementioned embodiment and will not be described in detail here.
[0052] Since the first unlocking key in the smart password key and the second unlocking key in the bound terminal are matched, the smart password key can be authenticated by using the unlocking verification code, thereby unlocking it. Therefore, at step S402, method 400 can generate a first unlocking verification code for unlocking verification according to the unlocking instruction, and encrypt the first unlocking verification code by the first unlocking key used to unlock the user password of the smart password key to obtain a first unlocking ciphertext. The first unlocking verification code in this embodiment can be a random number of a preset number of digits (for example, 6 digits). Similar to the aforementioned method of encrypting the first unlocking key and the first binding verification code, this scheme can also use a symmetric encryption algorithm to encrypt the first unlocking verification code.
[0053] Next, at step S403, method 400 can transmit the first unlocking ciphertext offline to the terminal bound to the smart password key, so that the terminal receives the unlocking ciphertext corresponding to the first unlocking ciphertext, and decrypts it according to the second unlocking key related to the first unlocking key to obtain the second unlocking verification code. The type of smart password key and terminal and the data transmission method can refer to the description of the aforementioned embodiment, which will not be described in detail here. The second unlocking key is obtained in the process of binding the terminal and the smart password key, which can be specifically referred to the description of the aforementioned binding embodiment, which will not be described in detail this time.
[0054] In this embodiment, the first unlocking ciphertext can be transmitted to the terminal offline in the same or similar manner as transmitting the first unlocking key and the first binding verification code in the aforementioned embodiment, that is, the first unlocking ciphertext is first transmitted offline to the processing device, and the processing device then displays the received unlocking ciphertext to the terminal in the form of a graphic code (such as a QR code), so that the terminal scans the graphic code to obtain the unlocking ciphertext corresponding to the first unlocking ciphertext.
[0055] According to the above description, if the first unlocking ciphertext is transmitted correctly, in theory, the second unlocking verification code and the first unlocking verification code should match (i.e., be the same), so the matching result of the second unlocking verification code and the first unlocking verification code can be used to authenticate the smart password key and unlock it. Based on this, at step S404, the method 400 can obtain the second unlocking verification code offline from the terminal, and determine the current user password based on the second unlocking verification code and the first unlocking verification code.
[0056] In this embodiment, the second unlocking verification code can be obtained offline from the terminal in the same or similar manner as the aforementioned second binding verification code, that is, the second unlocking verification code is obtained from the processing device that interacts with the smart password key, where the second unlocking verification code is displayed by the terminal. Specifically, after the processing device transmits the unlocking ciphertext to the terminal offline, it can display a verification code input box, and after the terminal displays the second unlocking verification code, the user can enter the second unlocking verification code into the verification code input box. After receiving the second unlocking verification code, the processing device can transmit it offline to the smart password key.
[0057] Next, the smart password key can perform matching verification on the first unlock verification code and the second unlock verification code. When it is determined that the first unlock verification code and the second unlock verification code match (i.e., identity verification is successful), a known user password (e.g., the initial user password at the factory) can be used as the current user password, and the unlocking is successful at this time; correspondingly, when it is determined that the first unlock verification code and the second unlock verification code do not match (i.e., identity verification fails), the identity verification can be repeated, that is, the matching verification of the first unlock verification code and the second unlock verification code is repeatedly performed, and when the repetition reaches a preset number of times (e.g., 3 times) and still does not match, it is determined that the unlocking fails. Repeated verification can ensure the effective execution of verification, thereby ensuring the accuracy of the verification result.
[0058] It can be seen that this solution can unlock the smart password key using the terminal bound to the smart password key in an offline state, so that the unlocking process is not restricted by the network environment (each end does not need to interact with the server), thereby making it more applicable.
[0059] The above describes the unlocking method in the smart password key. Figure 5 According to the description of the above embodiment, the smart password key can encrypt the first unlocking verification code using a symmetric encryption algorithm, and the terminal can decrypt it using the inverse algorithm of the encryption algorithm. This embodiment will be described using the inverse algorithm as an example.
[0060] like Figure 5As shown in , method 500 may include, at step S501, offline obtaining, at a terminal bound to the smart password key, a second unlocking ciphertext corresponding to a first unlocking ciphertext generated by the smart password key, wherein the first unlocking ciphertext is obtained by encrypting a first unlocking verification code for unlocking verification by a first unlocking key for unlocking the user password of the smart password key. The type of the smart password key and the terminal, the data transmission method, and the first unlocking ciphertext, etc., can refer to the description of the aforementioned embodiment and will not be described in detail here.
[0061] After obtaining the second unlocking ciphertext, at step S502, the method 500 can decrypt the second unlocking ciphertext according to the second unlocking key related to the first unlocking key to obtain the second unlocking verification code. The second unlocking key is obtained during the binding process between the terminal and the smart password key, and the details can be referred to the description of the above embodiment, which will not be described in detail here.
[0062] According to the description of the above embodiments, when the first unlocking ciphertext is transmitted correctly, in theory, the second unlocking verification code and the first unlocking verification code should match (for example, be the same), so the matching result of the second unlocking verification code and the first unlocking verification code can be used to authenticate the smart password key. Based on this, at step S503, the method 500 can transmit the second unlocking verification code to the smart password key offline, so that it can perform unlocking verification according to the first unlocking verification code and the second unlocking verification code.
[0063] It can be seen that this solution can unlock the smart password key using the terminal bound to the smart password key in an offline state, so that the unlocking process is not restricted by the network environment, thereby making it more widely applicable.
[0064] In order to more fully explain the above unlocking method, the following scheme will be combined with Figure 6 The interactive process of the smart password key 630 and the terminal 650 when unlocking is described in detail.
[0065] like Figure 6As shown in , at step S601, the user triggers an unlocking operation on the processing device 640, and the processing device 640 generates an unlocking instruction according to the unlocking operation, and transmits it offline to the smart password key 630 at step S602. After receiving the unlocking instruction, the smart password key 630 generates a first unlocking verification code R3 at step S603, encrypts the first unlocking verification code R3 by using the first unlocking key k1 generated during binding, and obtains a first unlocking ciphertext M3, and at step S604, the smart password key 630 transmits the first unlocking ciphertext M3 to the processing device 640 offline. After receiving the unlocking ciphertext, the processing device 640 displays it in the form of a QR code at step S605, and then, at step S606, the terminal 650 (such as a mobile phone) scans the QR code to obtain a second unlocking ciphertext M3'. At this time, a verification code input box is displayed on the processing device 640 to wait for the input of the second unlocking verification code.
[0066] Then, at step S607, the terminal 650 uses the second unlocking key k2 obtained during the binding process to decrypt the second unlocking ciphertext M3', obtains the second unlocking verification code R4 and displays it. After the terminal 650 displays the second unlocking verification code, at step S608, the user inputs the second unlocking verification code R4 into the verification code input box of the processing device 640. After receiving the second unlocking verification code R4, the processing device 640 transmits it offline to the smart password key 630 at step S609. Then, at step S610, the smart password key 630 performs matching verification on the first unlocking verification code R3 and the second unlocking verification code R4. At step S611, when it is determined that the two match, a known user password (such as the initial user password at the factory) is used as the current user password; when it is determined that the two do not match, multiple matching verifications are performed, and when the preset number of repetitions still do not match, it is determined that the unlocking fails. Further, at step S612, the smart password key 630 can transmit the unlocking result to the processing device 640 offline.
[0067] From the above description, it can be seen that the unlocking process of this solution is independent of the network, thus getting rid of the dependence on the network environment, so the applicable scenarios are richer.
[0068] The above describes the binding and unlocking method between the smart password key and the terminal in combination with different embodiments. Figure 7 and Figure 8 The following describes how to unbind the smart password key and the terminal.
[0069] like Figure 7As shown in , the method 700 may include, at step S701, offline acquiring, at the smart password key, an unbinding instruction for unbinding the smart password key and the terminal, wherein the unbinding instruction carries a user password for decrypting the smart password key.
[0070] In one implementation scenario, the unbinding instruction may be generated by a processing device (such as a personal computer or other device) interacting with the smart password key according to the user's unbinding trigger operation on the smart password key and sent to the smart password key offline. The type and connection method of the smart password key and the processing device can refer to the description of the above embodiment and will not be described in detail here.
[0071] After receiving the unbinding instruction, at step S702, method 700 can determine whether the user password and the user password stored in the smart password key match. It can be understood that through this judgment, it is possible to verify whether the user identity is valid. In response to the judgment result that the user password and the user password stored in the smart password key match, it is determined that the user identity is valid and the unbinding operation can be performed; in response to the judgment result that the user password and the user password stored in the smart password key do not match, it is determined that the user identity is invalid and the unbinding operation cannot be performed.
[0072] Based on the above principle, at step S703, method 700 can determine whether to delete the first unlocking key in the smart password key for unlocking the user password according to the judgment result, so as to determine whether to release the binding between the smart password key and the terminal. Specifically, in response to the judgment result that the user password matches the user password stored in the smart password key (that is, the user identity is valid), the first unlocking key in the smart password key is deleted, thereby releasing the binding between the smart password key and the terminal; in response to the judgment result that the user password does not match the user password stored in the smart password key (that is, the user identity is invalid), the first unlocking key in the smart password key is not deleted, and the binding between the smart password key and the terminal cannot be released.
[0073] It can be seen that this solution can unbind the smart password key and the terminal in an offline state, so that the unbinding process is not restricted by the network environment (each end does not need to interact with the server), thereby making it more widely applicable.
[0074] In order to more fully illustrate the above binding method, the following scheme will combine Figure 8 The interaction process when unbinding the smart password key 830 and the processing device 840 is described in detail.
[0075] like Figure 8As shown in, at step S801, the user triggers the unbinding operation on the processing device 840, and the processing device 840 generates an unbinding instruction according to the unbinding operation, and at step S802, the unbinding instruction is transmitted offline to the smart password key 830. After receiving the unbinding instruction, the smart password key 830 determines whether the user password in the unbinding instruction matches the user password stored in the smart password key 830 at step S803 to perform identity authentication. At step S804, if the user password matches the user password stored in the smart password key 830, the identity is determined to be valid, and the first unlocking key k1 used to unlock the user password is deleted. Correspondingly, if the user password does not match the user password stored in the smart password key 830, the identity is determined to be invalid, and the unbinding operation is not performed. Further, at step S805, the smart password key 830 can transmit the unbinding result to the processing device 840 offline.
[0076] From the above description, it can be seen that the unbinding process of this solution is independent of the network, thus getting rid of the dependence on the network environment, so the applicable scenarios are richer.
[0077] Fig. 9 is a structural block diagram of a device 900 according to an embodiment of the present disclosure.
[0078] like Fig. 9 As shown in , the device 900 includes a processor 901 (processor), a memory 902 (memory) and a bus 903; wherein the processor 901 and the memory 902 communicate with each other through the bus 903. In operation, the processor 901 is used to call the program instructions in the memory 902. When the program instructions are executed by the processor 901, the device 900 executes the method steps described above in conjunction with the drawings.
[0079] This solution can realize the binding and unbinding of the smart key and the terminal and the unlocking operation of the smart key in an offline state, so that each process is not restricted by the network environment, thereby expanding its scope of application.
[0080] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a non-volatile computer-readable medium, which, when executed, executes the steps including the above method embodiments.
[0081] 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.
[0082] It should be understood that the terms "first", "second", "third", "fourth", etc. in the claims, specifications and drawings of the present disclosure are used to distinguish different objects rather than to describe a specific order. The terms "include" and "comprise" used in the specifications and claims of the present disclosure indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections.
[0083] It should also be understood that the terms used in this disclosure are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure. As used in this disclosure and claims, the singular forms of "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise. It should also be further understood that the term "and / or" used in this disclosure and claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations.
[0084] The above embodiments are only used to illustrate the technical solutions of the embodiments of the present disclosure, rather than to limit them. Although the embodiments of the present disclosure are 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 replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present disclosure.
Claims
1. A method for binding a smart password key to a terminal, comprising: Offline obtaining at the smart password key a binding instruction for binding the smart password key and the terminal, wherein the binding instruction carries a user password for decrypting the smart password key; Generate a first unlocking key for unlocking the user password of the smart password key and a first binding verification code for binding verification according to the binding instruction; The first binding ciphertext is obtained by encrypting the first unlocking key with the user password, and the second binding ciphertext is obtained by encrypting the first binding verification code with the first unlocking key, so that the terminal receives two binding ciphertexts corresponding to the first binding ciphertext and the second binding ciphertext offline, and decrypts them with the obtained user password to obtain the second unlocking key and the second binding verification code; as well as The second binding verification code is obtained offline from the terminal to determine whether the smart password key and the terminal are successfully bound through matching verification with the first binding verification code.
2. According to the method of claim 1, after generating the first binding ciphertext and the second binding ciphertext, the method further comprises: The first binding ciphertext and the second binding ciphertext are transmitted to the processing device offline, so that the processing device displays the two received binding ciphertexts to the terminal in the form of graphic codes, so that the terminal can obtain the two binding ciphertexts corresponding to the first binding ciphertext and the second binding ciphertext offline according to the graphic code.
3. The method according to claim 1, wherein obtaining the second binding verification code offline from the terminal comprises: The second binding verification code input by the user is obtained from a processing device interacting with the smart password key, wherein the second binding verification code is displayed by the terminal.
4. A method for binding a smart password key to a terminal, comprising: Offline acquiring, at the terminal, a third binding ciphertext and a fourth binding ciphertext corresponding to the first binding ciphertext and the second binding ciphertext generated by the smart password key, respectively, wherein the first binding ciphertext is obtained by encrypting a first unlocking key for unlocking the user password of the smart password key by the user password, and the second binding ciphertext is obtained by encrypting a first binding verification code for binding verification by the first unlocking key; Decrypting the third binding ciphertext according to the acquired user password to obtain a second unlocking key; as well as The fourth binding ciphertext is decrypted by the second unlocking key to obtain a second binding verification code and transmit it offline to the smart password key so that it performs binding verification according to the second binding verification code and the first binding verification code.
5. The method according to claim 4, further comprising: The second unlocking key is stored so as to unlock the user password of the smart password key.
6. A method for unlocking a smart password key, comprising: Offline obtaining at the smart password key an unlocking instruction for unlocking the user password of the smart password key; Generate a first unlock verification code for unlock verification according to the unlock instruction, and encrypt the first unlock verification code with a first unlock key for unlocking the user password of the smart password key to obtain a first unlock ciphertext; Offline transmitting the first unlocking ciphertext to a terminal bound to the smart password key, so that the terminal receives the unlocking ciphertext corresponding to the first unlocking ciphertext, and decrypts it according to a second unlocking key related to the first unlocking key to obtain a second unlocking verification code; as well as The second unlocking verification code is obtained offline from the terminal, and the current user password is determined based on the second unlocking verification code and the first unlocking verification code.
7. A method for unlocking a smart password key, comprising: Offline obtaining, at a terminal bound to the smart password key, a second unlocking ciphertext corresponding to a first unlocking ciphertext generated by the smart password key, wherein the first unlocking ciphertext is obtained by encrypting a first unlocking verification code for unlocking verification by using a first unlocking key for unlocking a user password of the smart password key; Decrypting the second unlocking ciphertext according to a second unlocking key related to the first unlocking key to obtain a second unlocking verification code; as well as The second unlocking verification code is transmitted offline to the smart password key so that the smart password key performs unlocking verification according to the first unlocking verification code and the second unlocking verification code.
8. A method for unbinding a smart password key from a terminal, wherein the smart password key and the terminal have been bound by a method according to any one of claims 1 to 5, the method comprising: Offline obtaining, at the smart password key, an unbinding instruction for unbinding the smart password key from the terminal, wherein the unbinding instruction carries a user password for decrypting the smart password key; Determining whether the user password matches the user password stored in the smart password key; as well as According to the judgment result, it is determined whether to delete the first unlocking key in the smart password key for unlocking the user password, so as to determine whether to release the binding between the smart password key and the terminal.
9. A device comprising: processor; A memory storing program instructions executable by a processor, which, when executed by the processor, enables the device to execute the method for binding a smart password key and a terminal according to any one of claims 1 to 5, the method for unlocking a smart password key according to claim 6 or 7, and the method for unbinding a smart password key and a terminal according to claim 8.
10. A computer-readable medium storing program instructions, which, when executed by at least one processor, enables the processor to execute the method for binding a smart password key and a terminal according to any one of claims 1 to 5, the method for unlocking a smart password key according to claim 6 or 7, and the method for unbinding a smart password key and a terminal according to claim 8.
