Method, device, storage medium, door lock and system for opening a door lock with a one-time password
By generating and outputting unused seed information to create a one-time password, the problem of non-networked door locks being unable to unlock with a one-time password is solved, thus enhancing the security of the door lock.
Patent Information
- Application Number
- CN202411016776.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2044-07-26
AI Technical Summary
In existing technologies, non-networked door locks cannot be unlocked with a one-time password, resulting in insufficient security.
By generating and outputting the current seed information, a one-time password is generated from seed information that has not been used in previous attempts, and the unlocking action is performed after the input verification is successful, ensuring that the password is different each time.
Even if the door lock is not connected to the network, it can still be unlocked with a one-time password, which enhances security and ensures that the password is different each time it is used, thus improving the security of the door lock.
Smart Images

Figure CN118781689B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of door locks, and particularly relates to a method and device for one-time password unlocking, a storage medium, a door lock and a system. BACKGROUND
[0002] With the development of door lock technology, most door locks support one-time password unlocking to facilitate visitors or service personnel to temporarily unlock and enter the house without holding a physical key or long-term password.
[0003] At present, the one-time password is generated by a cloud server and then sent to the door lock by the cloud server through a network for local storage, so that the door lock generally needs to support networking to realize this function, and the one-time password unlocking cannot be realized for non-networked locks. SUMMARY
[0004] To solve the above technical problems, the present disclosure provides a method and device for one-time password unlocking, a storage medium, a door lock and a system.
[0005] In a first aspect, the present disclosure provides a method for one-time password unlocking, comprising:
[0006] In response to a trigger operation of a to-be-authorized user for one-time password unlocking, current seed information is output to the to-be-authorized user, so that the to-be-authorized user end sends the current seed information to a server through a door lock user end, and the server generates a current one-time password accordingly, wherein the current seed information is seed information that has not been used in previous one-time password unlocking processes, and one-time passwords generated by different seed information are different;
[0007] If the current input password verification is passed, an unlocking action is performed, wherein the current input password is input by the to-be-authorized user according to the current one-time password.
[0008] Optionally, the output of the current seed information to the to-be-authorized user comprises:
[0009] generating random information;
[0010] If the state of the random information is valid, the random information is used as the current seed information, and is output to the to-be-authorized user, wherein the state being valid indicates that the random information has not been used in previous one-time password unlocking processes.
[0011] Optionally, the type of the random information includes a random number, a random two-dimensional code and / or a random picture.
[0012] Optionally, the output of the current seed information to the to-be-authorized user comprises:
[0013] randomly selecting a candidate seed information as the current seed information from a pre-constructed database, and outputting the current seed information to the user to be authorized;
[0014] deleting the current seed information from the database.
[0015] Optionally, the current one-time password is sent to the user to be authorized by the server, or sent to the user to be authorized by the server through the door lock user terminal.
[0016] Optionally, it further comprises: if the current input password input by the user to be authorized is obtained within the validity period, the current input password is verified;
[0017] If the current input password input by the user to be authorized is obtained within the period exceeding the validity period, output a password invalidation prompt.
[0018] Optionally, the current one-time password is calculated by the server according to the current seed information by using a preset algorithm.
[0019] The verification of the current input password comprises:
[0020] The reference one-time password is calculated according to the current seed information by using the preset algorithm.
[0021] If the current input password is consistent with the reference one-time password, it is determined that the current input password verification is passed, otherwise it is determined that the current input password verification is failed.
[0022] The method further comprises:
[0023] If the current input password verification is failed, output a password error prompt.
[0024] In a second aspect, the disclosure further provides a one-time password unlocking device, comprising:
[0025] A first output module is configured to output a current seed information to the user to be authorized in response to the triggering operation of the user to be authorized for one-time password unlocking, so that the user to be authorized sends the current seed information to the server through the door lock user terminal, and the server generates a current one-time password accordingly, wherein the current seed information is a seed information that has not been used in previous one-time password unlocking processes, and different seed information corresponds to different one-time passwords generated.
[0026] An unlocking module is configured to execute an unlocking action if the current input password verification is passed, wherein the current input password is input by the user to be authorized according to the current one-time password.
[0027] In a third aspect, the present disclosure also provides a computer-readable storage medium, the storage medium storing a computer program, when the computer program is executed by a processor, the processor implements the one-time password unlocking method of the first aspect.
[0028] In a fourth aspect, the present disclosure also provides a door lock, comprising:
[0029] a processor;
[0030] a memory for storing executable instructions;
[0031] The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the one-time password unlocking method of the first aspect.
[0032] In a fifth aspect, the present disclosure also provides a one-time password unlocking system, comprising:
[0033] the door lock of the fourth aspect;
[0034] a user terminal to be authorized for sending current seed information to the door lock user terminal;
[0035] the door lock user terminal for sending the current seed information to the server;
[0036] a server for generating a current one-time password corresponding to the current seed information.
[0037] The technical solutions provided by the embodiments of the present disclosure have the following advantages compared with the prior art:
[0038] The one-time password unlocking method, device, storage medium, door lock and system provided by the embodiments of the present disclosure can output current seed information to the user terminal to be authorized in response to the triggering operation of the one-time password unlocking by the user terminal to be authorized, so that the user terminal to be authorized sends the current seed information to the server through the door lock user terminal, and then the server generates a current input password corresponding to the current seed information. The current seed information is seed information that has not been used in previous one-time password unlocking processes, and different seed information corresponds to different one-time passwords. If the current input password passes the verification, the unlocking action is performed, and the current input password is input by the user terminal to be authorized. As can be seen, the above technical solutions can realize one-time password unlocking even if the door lock is a non-network lock, and can ensure that the one-time password used each time for one-time password unlocking is different, thereby enhancing the security of the door lock. BRIEF DESCRIPTION OF DRAWINGS
[0039] The accompanying drawings, which are incorporated into and form part of the specification, illustrate embodiments consistent with the present disclosure and, together with the specification, serve to explain the principles of the present disclosure.
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, for those skilled in the field, other drawings can also be obtained based on these drawings without any creative effort.
[0041] Figure 1 A flowchart of a one-time password unlocking method provided by an embodiment of the present disclosure;
[0042] Figure 2 A structural diagram of a one-time password unlocking device provided by an embodiment of the present disclosure;
[0043] Figure 3 A structural diagram of a door lock provided by an embodiment of the present disclosure;
[0044] Figure 4 A structural diagram of a one-time password unlocking system provided by an embodiment of the present disclosure;
[0045] Figure 5 An unlocking flowchart of a one-time password unlocking system provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0046] The embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms, and should not be interpreted as being limited to the embodiments set forth herein, but rather, these embodiments are provided to make the present disclosure more thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes, and are not intended to limit the scope of protection of the present disclosure.
[0047] It should be understood that each step described in the method embodiments of the present disclosure can be executed in different orders and / or in parallel. In addition, the method embodiments can include additional steps and / or omit the execution of the steps shown. The scope of the present disclosure is not limited in this respect.
[0048] The term "comprising" and variations thereof as used herein are open-ended, that is, "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Related definitions of other terms will be given in the following description.
[0049] It should be noted that the terms "first", "second", and the like mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not intended to limit the order or interdependence of the functions performed by these devices, modules or units.
[0050] It should be noted that the terms "one", "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that "one or more" should be understood unless otherwise explicitly indicated in the context.
[0051] The names of the messages or information exchanged between the plurality of devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of the messages or information.
[0052] Figure 1 A flowchart of a one-time password unlocking method provided by an embodiment of the present disclosure.
[0053] In some embodiments of the present disclosure, Figure 1 The method shown can be applied to a door lock, such as a smart door lock, but is not limited thereto.
[0054] As Figure 1 The one-time password unlocking method can include the following steps.
[0055] S110, in response to the trigger operation of the to-be-authorized user for the one-time password unlocking, outputting current seed information to the to-be-authorized user, so that the to-be-authorized user end sends the current seed information to the server through the door lock user end, and the server generates a current one-time password accordingly, wherein the current seed information is seed information that has not been used in the previous one-time password unlocking process, and the one-time password generated by different seed information is different.
[0056] In an embodiment of the present disclosure, in the scenario where the to-be-authorized user wants to perform one-time password unlocking, the to-be-authorized user can input a trigger operation for one-time password unlocking to the door lock, and the door lock can output current seed information to the to-be-authorized user in response to the trigger operation. Then, the to-be-authorized user can use the authorized user end to send the current seed information to the door lock user end, and then the door lock user can use the door lock user end to send the current seed information to the server, and then the server can generate a one-time password according to the current seed information. Wherein, the to-be-authorized user end is a mobile terminal used by the to-be-authorized user, the door lock user end is a mobile terminal used by the door lock user, and the server can include a cloud server, a server cluster, etc., but is not limited thereto.
[0057] Specifically, the trigger operation can be any operation capable of triggering the door lock to enter the one-time unlocking mode. Illustratively, the trigger operation includes inputting a preset number string to the door lock, touching a preset key on the door lock, and / or inputting a voice instruction (such as "I want to unlock once") to the door lock, but is not limited thereto.
[0058] Specifically, the current seed information is seed information used to generate the current one-time password.
[0059] The door lock can output the current seed information to the to-be-authorized user in any possible manner, and the present disclosure does not limit the same. Illustratively, the current seed information is output by display or voice broadcast, but is not limited thereto. It should be noted that for one seed information, if its history has been output by the door lock to the to-be-authorized user, it has been used, otherwise it can be considered as not used.
[0060] Specifically, the current one-time password is a one-time password used in the current one-time password unlocking process.
[0061] It can be understood that since the one-time password corresponding to different seed information is different, and the current seed information has not been used in the previous one-time password unlocking process, the current one-time password generated according to the current seed information has not been used in the previous one-time password unlocking process, so that the uniqueness and unpredictability of the current one-time password can be improved, which is beneficial to enhance the security of the door lock.
[0062] It can also be understood that by setting the current seed information to be sent from the to-be-authorized user end to the door lock user end, and then forwarded to the server by the door lock user end to generate the current one-time password, the current one-time password is generated with the consent of the door lock user, so that the security of the door lock can be further enhanced.
[0063] S120, if the current input password is verified, an unlocking action is performed, wherein the current input password is input by the to-be-authorized user according to the current one-time password.
[0064] Specifically, the current input password is a password input by the to-be-authorized user to the door lock in the current unlocking process.
[0065] In some embodiments of the present disclosure, the current one-time password is sent to the user terminal to be authorized by the server. Specifically, the door lock user terminal can send the communication information (such as the mobile phone number, the account information of the door lock APP, etc.) of the authorized client to the server, so that the server can send the current one-time password to the user terminal to be authorized after generating the current one-time password according to the current seed information. Then, the user to be authorized can input the current input password into the door lock according to the current one-time password, and the door lock verifies the current one-time password. If the verification is passed, the door lock action is executed. In this way, the user terminal to be authorized can receive the current one-time password as soon as possible, and the unlocking speed is improved.
[0066] In some embodiments of the present disclosure, the current one-time password is sent to the user terminal to be authorized by the server. Specifically, the door lock user terminal can send the communication information (such as the mobile phone number, the account information of the door lock APP, etc.) of the authorized client to the server, so that the server can send the current one-time password to the user terminal to be authorized after generating the current one-time password according to the current seed information. Then, the user to be authorized can input the current input password into the door lock according to the current one-time password, and the door lock verifies the current one-time password. If the verification is passed, the door lock action is executed. In this way, the user terminal to be authorized can receive the current one-time password as soon as possible, and the unlocking speed is improved.
[0067] In some embodiments, the door lock can obtain a reference one-time password corresponding to the current seed information. If the current input password and the reference one-time password, the verification is passed, otherwise the verification is not passed.
[0068] In some embodiments, the door lock can obtain a reference one-time password corresponding to the current seed information. If the current input password and the reference one-time password, the verification is passed, otherwise the verification is not passed.
[0069] In some embodiments of the present disclosure, even if the door lock is a non-networked lock, one-time password unlocking can be realized, and it can be ensured that the one-time password used each time the one-time password unlocking is performed is different, thereby enhancing the security of the door lock.
[0070] In another embodiment of the present disclosure, the current seed information is output to the user to be authorized, including:
[0071] S1111, generating random information.
[0072] Specifically, the random information is information randomly generated by the door lock.
[0073] Optionally, the type of the random information includes a random number, a random two-dimensional code, and / or a random picture, but is not limited thereto.
[0074] In some embodiments, the random information includes a random number, and accordingly, S1111 includes: generating the random number.
[0075] Specifically, the random number refers to a value selected according to a certain probability distribution within a certain range, and the selection of these values should be unpredictable.
[0076] In other embodiments, the random information includes a random two-dimensional code, and accordingly, S1111 includes: generating the random two-dimensional code.
[0077] Specifically, the content (encoded information) of the random two-dimensional code is not fixed, but a two-dimensional code that can be different each time it is generated.
[0078] In yet other embodiments, the random information includes a random picture, and accordingly, S1111 includes: generating the random picture.
[0079] Specifically, the random picture is not fixed, but a picture that can be different each time it is generated, wherein the size, resolution, theme or style, etc. of the random picture can be random.
[0080] In yet other embodiments, S1111 includes: randomly selecting one from a plurality of candidate types as a target type; and generating random information of the target type.
[0081] Specifically, the candidate types can include a random number, a random two-dimensional code, and / or a random picture, etc., but are not limited thereto.
[0082] It can be understood that by setting two random stages when generating random information, one is randomly selecting a type, and the other is randomly generating random information of the selected target type, the randomness and unpredictability of the finally generated random information can be enhanced, and thus the security of the door lock can be enhanced.
[0083] S1112, if the state of the random information is valid, the random information is taken as the current seed information, and is output to the user to be authorized, wherein the state being valid is used to represent that the random information has not been used in the previous one-time password unlocking process.
[0084] Specifically, the state of the random information has two types, one is valid, which is used to represent that the random information has not been used in the previous one-time password unlocking process, and the other is invalid, which is used to represent that the random information has been used in the previous one-time password unlocking process.
[0085] In the embodiments of the present disclosure, for one random information, the door lock can switch the state of the random information to invalid after outputting the random information to the authorized user, or switch the state of the random information to invalid after the one-time password generated according to the random information exceeds the validity period, or switch the state of the random information to invalid after the one-time password generated according to the random information passes the verification and performs the unlocking action.
[0086] It can be understood that, by setting the current seed information as the random information, the corresponding generated current one-time password has randomness and unpredictability, so that the security of the door lock can be enhanced.
[0087] In another implementation of the present disclosure, outputting the current seed information to the authorized user includes: S1121, randomly selecting one candidate seed information from a pre-constructed database as the current seed information, and outputting the current seed information to the authorized user.
[0088] S1122, deleting the current seed information from the database.
[0089] Specifically, the type of the candidate seed information can include a random number, a random two-dimensional code, and / or a random picture, but is not limited thereto.
[0090] Specifically, the database includes a plurality of pre-generated candidate seed information.
[0091] It can be understood that, by randomly selecting the current seed information from the database, the randomness and unpredictability of the current seed information can be enhanced, so that the security of the door lock can be enhanced. Moreover, since the current seed information is pre-generated, it can be obtained by random selection in the database, so that the efficiency of obtaining the current seed information is high, and thus the speed of unlocking the one-time password can be improved.
[0092] In another implementation of the present disclosure, the method further includes: if the current input password input by the authorized user is obtained within the validity period, verifying the current input password.
[0093] If the current input password input by the authorized user is obtained in a period exceeding the validity period, a password invalidation prompt is output.
[0094] Specifically, the validity period is a period in which the current one-time password is valid. For example, the start time of the validity period is the time when the current seed information is output to the authorized user, and the end time of the validity period is the time after the start time is delayed by a preset time length, but is not limited thereto.
[0095] In some embodiments, the current one-time password is calculated by the server according to the current seed information by using a preset algorithm, and correspondingly, the checking of the current input password comprises: calculating a reference one-time password according to the current seed information by using the preset algorithm;
[0096] If the current input password is consistent with the reference one-time password, it is determined that the current input password passes the check, otherwise it is determined that the current input password fails the check.
[0097] Specifically, the preset algorithm can include HOTP algorithm, TOTP algorithm, etc., but is not limited thereto.
[0098] Specifically, the specific timing of the door lock "calculating a reference one-time password according to the current seed information by using a preset algorithm" has multiple options. In some examples, the reference one-time password is calculated according to the current seed information by using the preset algorithm after the current seed information is output to the authorized user. In other examples, the reference one-time password is calculated according to the current seed information by using the preset algorithm after the current input password input by the authorized user is received. However, it is not limited thereto.
[0099] It can be understood that by setting the server and the door lock to calculate the current one-time password and the reference one-time password according to the current seed information by using the same preset algorithm, and then checking the current input password against the reference one-time password, the checking method of the current input password is simple and fast, which is conducive to improving the speed of one-time password unlocking.
[0100] In some embodiments, the current one-time password is generated by the server according to the current seed information by using a second pre-trained neural network model, and correspondingly, the checking of the current input password comprises: inputting the current seed information into the second pre-trained neural network model and obtaining a reference one-time password output therefrom;
[0101] If the current input password is consistent with the reference one-time password, it is determined that the current input password passes the check, otherwise it is determined that the current input password fails the check.
[0102] Specifically, the password invalidation prompt is used to remind the authorized user that the one-time password input by him / her has been invalidated.
[0103] The door lock can output the password invalidation prompt to the authorized user in any possible way, and the present disclosure does not limit this. For example, the password invalidation prompt can be output by display or voice broadcast, but it is not limited thereto.
[0104] It can be understood that by setting an expiration date for the current one-time password, the risk of repeated use or deciphering of the current one-time password can be reduced, thereby enhancing the security of the door lock.
[0105] Optionally, the method further comprises: outputting a password error prompt if the current input password fails the verification.
[0106] Specifically, the password error prompt is used to remind the to-be-authorized user that the current input password input by the to-be-authorized user is incorrect.
[0107] The door lock can output the password error prompt to the to-be-authorized user in any possible manner, which is not limited in the present disclosure. For example, the password error prompt can be output by display or voice broadcast, but is not limited thereto.
[0108] It can be understood that the to-be-authorized user can input an incorrect password during inputting the current one-time password to the door lock. By outputting the password error prompt when the current input password fails the verification, the user can be reminded to input the correct current one-time password in time to avoid exceeding the validity period of the current one-time password.
[0109] Figure 2 A structural schematic diagram of a one-time password unlocking device provided by an embodiment of the present disclosure is shown in FIG. 2. As shown in FIG. 2, the one-time password unlocking device can include: Figure 2
[0110] A first output module 210 is configured to output current seed information to the to-be-authorized user in response to a triggering operation of the to-be-authorized user for one-time password unlocking, so that the to-be-authorized user end sends the current seed information to the server through the door lock user end, and the server generates a current one-time password correspondingly, wherein the current seed information is seed information that has not been used in previous one-time password unlocking processes, and one-time passwords generated by different seed information are different.
[0111] An unlocking module 220 is configured to execute an unlocking action if the current input password passes the verification, wherein the current input password is input by the to-be-authorized user according to the current one-time password.
[0112] Optionally, the output module includes:
[0113] A generation sub-module is configured to generate random information.
[0114] A first output sub-module is configured to output the random information as the current seed information and output to the to-be-authorized user if the state of the random information is valid, wherein the state being valid indicates that the random information has not been used in previous one-time password unlocking processes.
[0115] Optionally, the type of the random information includes a random number, a random two-dimensional code, and / or a random picture.
[0116] Optionally, the output module includes:
[0117] The second output sub-module is configured to randomly select a candidate seed information from a pre-constructed database as the current seed information, and output the current seed information to the user to be authorized.
[0118] The deletion module is configured to delete the current seed information from the database.
[0119] Optionally, the current one-time password is sent to the user to be authorized by the server, or sent to the user to be authorized by the server through the door lock user terminal.
[0120] Optionally, the device further comprises:
[0121] The verification module is configured to verify the current input password if the current input password input by the user to be authorized is obtained within the validity period.
[0122] The second output module is configured to output a password invalidation prompt if the current input password input by the user to be authorized is obtained within a period exceeding the validity period.
[0123] Optionally, the current one-time password is calculated by the server according to the current seed information by using a preset algorithm.
[0124] The verification module is specifically configured to calculate a reference one-time password according to the current seed information by using the preset algorithm.
[0125] If the current input password is consistent with the reference one-time password, it is determined that the current input password verification is passed, otherwise it is determined that the current input password verification is failed.
[0126] The device further comprises:
[0127] The third output module is configured to output a password error prompt if the current input password verification is failed.
[0128] It should be noted that, Figure 2 The one-time password unlocking device 200 can perform each step in any of the method embodiments described above, and achieve each process and effect in any of the method embodiments described above, and will not be repeated here.
[0129] Figure 3 A structural schematic diagram of a door lock is provided for the embodiments of the present disclosure. As shown in the figure, Figure 3 The door lock can include a processor 301 and a memory 302 storing computer program instructions.
[0130] In particular, the processor 301 can include a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or can be configured as one or more integrated circuits that implement one or more embodiments of the present application.
[0131] The memory 302 can include mass storage for information or instructions. By way of example, and not limitation, the memory 302 can include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disc, a magneto-optical disc, magnetic tape, or a Universal Serial Bus (USB) drive or a combination of two or more of these. Storage memory 302, where appropriate, can be removable or non-removable (or fixed) media. Storage memory 302, where appropriate, can be internal or external to the integrated gateway device. In certain embodiments, the storage memory 302 is non-volatile solid-state memory. In certain embodiments, the storage memory 302 includes read-only memory (ROM). Where appropriate, this ROM can be mask-programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of these. Where appropriate, this ROM can be combined with the CPU, ASIC, one or more integrated circuits, or any other logic device of the integrated gateway device.
[0132] The processor 301 can execute each step in any of the method embodiments described above by reading and executing computer program instructions stored in the memory 302.
[0133] In one example, the door lock can further include a transceiver 303 and a bus 304. Wherein, as shown, the processor 301, the memory 302 and the transceiver 303 are connected through the bus 304 and complete the communication between each other. Figure 3
[0134] Bus 304 includes a hardware, software, or both. By way of example and not limitation, a bus can include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side BUS (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or another suitable bus or a combination of two or more of these. Where appropriate, bus 304 can include one or more buses. Although the application embodiments described and illustrated herein focus on specific buses or interconnects, the application contemplates any suitable bus or interconnect.
[0135] The embodiment of the present disclosure further provides a computer readable storage medium, which can store a computer program. When the computer program is executed by a processor, the processor implements the method for opening the lock by the one-time password provided by the embodiment of the present disclosure.
[0136] The storage medium described above can for example include a memory 302 storing computer program instructions, and the above instructions can be executed by the processor 301 of the lock to complete the method for opening the lock by the one-time password provided by the embodiment of the present disclosure. Alternatively, the storage medium can be a non-transitory computer readable storage medium, for example, the non-transitory computer readable storage medium can be a ROM, a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0137] Figure 4 A structural schematic diagram of a one-time password opening lock system provided by the embodiment of the present disclosure is shown in FIG. 1. As shown in FIG. 1, the one-time password opening lock system includes a lock 100 and a mobile terminal 200. Figure 4As shown, the one-time password unlocking system comprises a door lock 101;
[0138] a to-be-authorized user terminal 102 configured to send current seed information to a door lock user terminal;
[0139] a door lock user terminal 103 configured to send the current seed information to a server;
[0140] a server 104 configured to generate a current one-time password according to the current seed information.
[0141] Figure 5 A one-time password unlocking process of a one-time password unlocking system provided by the embodiment of the present disclosure is shown in FIG. 1. Figure 5 As shown, a to-be-authorized user operates a local door lock (for example, inputs a specific number or presses a specific button) and makes the door lock enter a specific mode. The door lock locally generates a random number A (i.e., current seed information) and displays it to the to-be-authorized user in the form of broadcasting or keyboard display. The to-be-authorized user informs the door lock user of the random number A through other channels. The door lock user inputs the random number A on the door lock user terminal, and the door lock user terminal reports the random number A to the cloud (i.e., the server). The cloud generates a one-time password B (i.e., the current one-time password) through an algorithm C according to the random number A, and sends the one-time password B to the door lock user terminal. The door lock user informs the to-be-authorized user of the one-time password B through other channels. The to-be-authorized user inputs the one-time password B on the door lock, and the door lock checks the legality of the one-time password B through the algorithm C consistent with the cloud. If the check is passed, the door is unlocked. After the door is successfully unlocked, the random number A is invalidated on the door lock, and the door cannot be opened through the same one-time password B. In order to ensure security, the door lock has a timing function. The random number A generated by the door lock is valid within a certain period of time (for example, within 10 minutes). If the correct one-time password B is input within the valid period, the door is unlocked. If the valid period is exceeded, the random number A is invalidated on the door lock.
[0142] The above description is only a specific embodiment of the present disclosure, which enables those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for unlocking a lock using a one-time password, characterized in that, Applied to door locks, including: In response to the trigger operation of the user to unlock the door with a one-time password, the current seed information is output to the user to enable the user to send the current seed information to the server through the door lock user terminal, thereby enabling the server to generate the current one-time password. The current seed information is seed information that has not been used in previous one-time password unlocking processes, and different seed information corresponds to different one-time passwords. If the currently entered password passes verification, the unlocking action is executed, wherein the currently entered password is input by the user to be authorized based on the current one-time password; the step of outputting the current seed information to the user to be authorized includes: Generate random information. If the state of the random information is valid, then use the random information as the current seed information and output it to the user to be authorized. The state of being valid is used to indicate that the random information has not been used in any one-time password unlocking process. Alternatively, a candidate seed information can be randomly selected from a pre-built database as the current seed information, and output to the user to be authorized, and the current seed information can be deleted from the database.
2. The method according to claim 1, characterized in that, The types of random information include random numbers, random QR codes, and / or random images.
3. The method according to claim 1, characterized in that, The current one-time password is sent by the server to the client to be authorized, or by the server through the door lock client to the client to be authorized.
4. The method according to claim 1, characterized in that, Also includes: If the currently entered password is obtained from the user to be authorized within the validity period, then the currently entered password is verified. If the currently entered password from the user to be authorized is obtained within the time period exceeding the validity period, a password expiration message will be output.
5. The method according to claim 4, characterized in that, The current one-time password is calculated by the server using a preset algorithm based on the current seed information; The verification of the currently entered password includes: Using the preset algorithm, a reference one-time password is calculated based on the current seed information; If the currently entered password matches the reference one-time password, then the current entered password verification is determined to be successful; otherwise, the current entered password verification is determined to be unsuccessful. The method further includes: If the current input password fails to be verified, a password error message will be output.
6. A device for unlocking a lock using a one-time combination lock, characterized in that, include: The first output module is used to respond to the trigger operation of the user to unlock the door with a one-time password, and output the current seed information to the user to enable the user to send the current seed information to the server through the door lock user terminal, so that the server generates the current one-time password accordingly. The current seed information is seed information that has not been used in previous one-time password unlocking processes, and different seed information corresponds to different one-time passwords. The unlocking module is used to perform an unlocking action if the currently entered password passes the verification, wherein the currently entered password is entered by the user to be authorized based on the current one-time password; The first output module is specifically used to generate random information. If the status of the random information is valid, the random information is used as the current seed information and output to the user to be authorized. The status of being valid is used to indicate that the random information has not been used in any one-time password unlocking process. Alternatively, a candidate seed information is randomly selected from a pre-built database as the current seed information and output to the user to be authorized. The current seed information is then deleted from the database.
7. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, causes the processor to implement a method for unlocking the lock using a one-time password as described in any one of claims 1-5.
8. A door lock, characterized in that, include: processor; Memory, used to store executable instructions; The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the one-time password unlocking method according to any one of claims 1-5.
9. A one-time password unlocking system, characterized in that, include: The door lock as described in claim 8; The user terminal to be authorized is used to send the current seed information to the door lock user terminal; The door lock user terminal is used to send the current seed information to the server; The server is used to generate a current one-time password based on the current seed information.
Citation Information
Patent Citations
Unlocking password processing method, door lock and foreground server
CN106447863A
Management method for opening one-time password door lock without networking
CN113298984A