Non-networking temporary authorization unlocking method, system, equipment and medium
By generating temporary keys in non-networked door locks and updating the door lock key, the problem of difficult to realize the temporary password unlocking function is solved, and the convenience and reliability of the door lock is improved.
Patent Information
- Application Number
- CN202411372406.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-02-14
Smart Images

Figure CN119445702A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of door lock technology, and in particular to a non-networked temporary authorized unlocking method, system, device and medium. Background Art
[0002] With the continuous improvement of living standards, smart homes are increasingly being adopted by consumers, and smart door locks are widely used.
[0003] The temporary password function of current door locks generally requires the door lock to have an Internet connection, to set a temporary password or synchronize the clock through the Internet, and to implement the temporary password through a constant calculation algorithm. Door locks that do not have an Internet connection or other ways to interact with the APP are difficult to implement the temporary password unlocking function, resulting in low convenience of the door lock. Summary of the invention
[0004] The embodiments of the present application provide a non-networked temporary authorized unlocking method, system, device and medium, which at least solves the problem that the non-networked door locks in the prior art are difficult to implement the function of temporary password unlocking, resulting in low convenience of the door locks.
[0005] In a first aspect, an embodiment of the present application provides a non-networked temporary authorization unlocking method, the method being applied to a large-screen terminal, the method comprising:
[0006] Generate a temporary key for the door lock in the client, and update the original key of the door lock according to the temporary key;
[0007] In response to receiving a temporary password request, generating a temporary password using a preset password generation algorithm according to the temporary key, the device serial number, the management password, the password book, and the request serial number, and sending the temporary password to the client;
[0008] In response to receiving a temporary password input by a user, the temporary password input by the user is verified by a preset temporary password verification algorithm, and unlocking is authorized if the verification is successful.
[0009] In one embodiment, in response to receiving a temporary password request, generating a temporary password by a preset password generation algorithm according to the temporary key, the device serial number, the management password, the password book and the request serial number includes:
[0010] Determine the position of the number in the temporary password by sorting the temporary key mapping, wherein the number is the first component of the temporary password;
[0011] Obtaining a temporary password string from a password book according to the number and the temporary key;
[0012] Based on the temporary password string and the temporary key, obtaining temporary password string encrypted data through password encryption;
[0013] Using the temporary key as a calculation parameter, obtaining a second component of the temporary password from the encrypted data of the temporary password string;
[0014] A temporary password is generated based on the first component and the second component.
[0015] In one embodiment, in response to receiving a temporary password input by a user, verifying the temporary password input by the user through a preset temporary password verification algorithm, and authorizing unlocking if the verification succeeds, includes:
[0016] According to the temporary password, determine the number number, and determine the position of the number number in the temporary password;
[0017] Verify whether the temporary password entered by the user has not been used and whether it has been used within a preset time period;
[0018] When the temporary password input by the user is not used and is used within a preset time period, comparing the temporary password input by the user with the temporary password input by the user;
[0019] When the temporary password is consistent with the temporary password input by the user, unlocking is authorized.
[0020] In one embodiment, after verifying the temporary password input by the user using a preset temporary password verification algorithm, the method further includes:
[0021] The door lock device records the temporary passwords that have been used and marks the temporary passwords that have been used. Within a preset period of time, the temporary passwords that have been used are invalid, wherein the preset period of time is customized according to user needs.
[0022] In one embodiment, the method further comprises:
[0023] When it is detected that the temporary password has been used or the input error reaches a preset number of times, the door lock blocks the temporary password function and prompts the user to reset the temporary password, wherein the preset number of times includes 3-5 times.
[0024] In one embodiment, the number ranges from 0 to 99.
[0025] In one embodiment, after updating the original key of the door lock according to the temporary key, the method further includes:
[0026] A temporary password is generated 1 to 100 times using a preset password generation algorithm. Repeated requests for the same temporary password within 5 to 10 minutes are not counted in the number of requests.
[0027] In a second aspect, an embodiment of the present application provides a non-networked temporary authorization unlocking system, the system comprising a module for creating an interactive instruction, a module for creating an application scenario, and a module for starting an application scenario, wherein:
[0028] The interaction instruction creation module is used to create a shortcut function interaction instruction, wherein the shortcut function interaction instruction includes a trigger condition and a target task executed in response to the trigger condition;
[0029] The application scenario creation module is used to create different application scenarios according to the shortcut function interaction instructions;
[0030] The application scenario startup module is used to start the application scenario corresponding to the shortcut function interaction instruction in response to triggering the shortcut function interaction instruction.
[0031] In a third aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a non-networked temporary authorized unlocking method as described in the first aspect above is implemented.
[0032] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a non-networked temporary authorized unlocking method as described in the first aspect above.
[0033] The embodiments of the present application provide a non-networked temporary authorization unlocking method, system, device and medium which have at least the following technical effects.
[0034] Generate a temporary key for the door lock in the client, and update the original key of the door lock according to the temporary key. In response to receiving a temporary password request, generate a temporary password through a preset password generation algorithm based on the temporary key, device serial number, management password, password book and request serial number, and send the temporary password to the client. In response to receiving a temporary password input by the user, verify the temporary password input by the user through a preset temporary password verification algorithm, and authorize unlocking if the verification is successful. The temporary password of the door lock is safe and effective. The door lock does not need to be connected to the Internet. The door lock only needs to store the password book and the used password numbers. During the verification process, no traversal operation is required except for checking the password number, and the storage space and computing resources occupied are small. It solves the problem that the non-networked door locks in the prior art are difficult to realize the function of temporary password unlocking, resulting in low convenience of the door lock, and improves the response speed, storage efficiency and reliability of the door lock.
[0035] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0037] Figure 1 It is a flow chart of a non-networked temporary authorization unlocking method;
[0038] Figure 2 is a flowchart of step S102 according to an exemplary embodiment;
[0039] Figure 3 is a flowchart of step S103 according to an exemplary embodiment;
[0040] Figure 4 is a structural block diagram of a non-networked temporary authorized unlocking system according to an exemplary embodiment;
[0041] Figure 5 It is a structural block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0043] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.
[0044] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0045] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0046] In a first aspect, the present application provides a non-networked temporary authorization unlocking method. Figure 1 It is a flow chart of a projector trigger display correction method, such as Figure 1 As shown, a non-networked temporary authorization unlocking method includes:
[0047] Step S101: Generate a temporary key for the door lock in the client, and update the original key of the door lock according to the temporary key.
[0048] Step S102: In response to receiving a temporary password request, a temporary password is generated by a preset password generation algorithm according to the temporary key, device serial number, management password, password book and request serial number, and the temporary password is sent to the client.
[0049] Step S103: in response to receiving the temporary password input by the user, verify the temporary password input by the user through a preset temporary password verification algorithm, and authorize unlocking if the verification is successful.
[0050] In summary, the embodiment of the present application provides a non-networked temporary authorized unlocking method, which generates a temporary key for the door lock in the client, and updates the original key of the door lock according to the temporary key. In response to receiving a temporary password request, a temporary password is generated by a preset password generation algorithm according to the temporary key, the device serial number, the management password, the password book and the request serial number, and the temporary password is sent to the client. In response to receiving a temporary password input by a user, the temporary password input by the user is verified by a preset temporary password verification algorithm, and the unlocking is authorized if the verification is successful. The temporary password of the door lock is made safe and effective, the door lock does not need to be connected to the Internet, the door lock only needs to store the password book and the used password number, and no traversal operation is required during the verification process except for checking the password number, and the storage space and computing resources occupied are small. It solves the problem that the non-networked door lock of the prior art is difficult to realize the function of temporary password unlocking, resulting in low convenience of the door lock, and improves the response speed, storage efficiency and reliability of the door lock.
[0051] In one embodiment, step S101 generates a temporary key for the door lock in the client, and updates the original key of the door lock according to the temporary key. Specifically, it includes:
[0052] Optionally, a new temporary key is generated in the client (mobile application). The temporary key is delivered to the door lock through a physical interface (such as USB), near field communication (NFC), QR code, Bluetooth, etc. After receiving the temporary key, the door lock stores it in the internal memory and replaces the original key. Generating a new temporary key can ensure that even if the previous key is leaked, it will not affect the subsequent temporary password generation and verification. Regular updating of temporary keys can reduce the security risks caused by long-term use of the same key.
[0053] Figure 2 is a flow chart of step S102 according to an exemplary embodiment. Figure 2 As shown, step S102, in response to receiving a temporary password request, generates a temporary password through a preset password generation algorithm according to the temporary key, device serial number, management password, password book and request serial number, and sends the temporary password to the client. Specifically, it includes the following steps:
[0054] Step S1021: Determine the position of the number in the temporary password by sorting the temporary key mapping, wherein the number is the first component of the temporary password.
[0055] Step S1022: Obtain a temporary password string from the password book according to the number and the temporary key.
[0056] Step S1023: Based on the temporary password string and the temporary key, obtain the temporary password string encrypted data through password encryption.
[0057] Step S1024: Using the temporary key as a calculation parameter, obtain the second component of the temporary password from the encrypted data of the temporary password string.
[0058] Step S1025: Generate a temporary password based on the first component and the second component.
[0059] Optionally, the specific position of the number in the temporary password is determined by using a temporary key. The number ranges from 0 to 99. This process is based on mapping sorting to ensure that the position of the number is dynamically determined according to the temporary key. This method makes the position of the number uncertain each time the temporary password is generated, which increases the randomness and security of the password. Even if the number is known, it is difficult to predict its exact position in the password. Combine the number and the temporary key to find a specific temporary password string from the password book. The password book here can be a data set that stores a preset password or password generation rule. Through the joint action of the number and the temporary key, it is ensured that the temporary password string generated each time is unique. Even if the number is the same, if the temporary key is different, a different temporary password string will be obtained. The temporary password string and the temporary key are used, and the encrypted data of the temporary password string is obtained after being processed by the encryption algorithm. The encryption process improves the security of the temporary password. Even if the temporary password string is intercepted, the temporary key is still required to decrypt it, which greatly increases the difficulty of cracking. The number (first component) obtained in step S1021 is combined with the second component obtained in step S1024 to form the final temporary password.
[0060] Step S102 ensures that the generated temporary password has high security and unpredictability through multiple levels of encryption and transformation, and at the same time utilizes multiple factors such as device serial number, temporary key, number number, etc. to improve the security and uniqueness of the password.
[0061] Figure 3 is a flow chart of step S103 according to an exemplary embodiment. Figure 3 As shown, step S103 responds to receiving the temporary password input by the user, verifies the temporary password input by the user through a preset temporary password verification algorithm, and authorizes unlocking if the verification is successful, including:
[0062] Step S1031: Determine the number according to the temporary password, and determine the position of the number in the temporary password.
[0063] Step S1032: Verify whether the temporary password entered by the user has not been used and whether it has been used within a preset time period.
[0064] Step S1033: When the temporary password input by the user has not been used and has been used within a preset period of time, the temporary password input by the user is compared with the temporary password input by the user.
[0065] Step S1034: when the temporary password is consistent with the temporary password input by the user, unlocking is authorized.
[0066] Optionally, extract the number (0-99) from the temporary password entered by the user. Use the same algorithm as that for generating the temporary password, and determine the position of the number in the temporary password by the temporary key. This step is mainly to obtain the temporary password, determine the position of the number by the same algorithm, and ensure the consistency of the generation and verification process. The door lock device records the number that has been used, and only the number can be recorded to reduce space occupation. Check whether the number has been marked as used in the door lock record. Check whether the number is used within a preset time period. The preset time period can be 1-3 hours. Ensure that each temporary password can only be used once to improve security. Ensure that the temporary password is valid for a limited time to reduce the risk of abuse. When the temporary password entered by the user is not used and is used within a preset time period, compare the temporary password entered by the user with the temporary password entered by the user. Ensure that the temporary password entered by the user is consistent with the reference password generated by the system through comparison to verify the user's identity. If the temporary password entered by the user is exactly the same as the generated reference password, the door lock will authorize unlocking. If the temporary password entered by the user is inconsistent with the generated reference password, the door lock will not be able to open.
[0067] Step S103 ensures the security and uniqueness of the temporary password through multiple levels of verification and comparison, and prevents the risk of repeated use and abuse. The door lock can efficiently and safely verify the temporary password entered by the user, and authorize unlocking if the verification is successful.
[0068] In one embodiment, after verifying the temporary password input by the user using a preset temporary password verification algorithm, the method further includes:
[0069] The door lock device records the temporary passwords that have been used and marks the temporary passwords that have been used. The temporary passwords that have been used will become invalid within a preset period of time, where the preset period of time is customized according to user needs.
[0070] Optionally, after successfully verifying the temporary password, the door lock device records the temporary password and related information (such as generation time, usage time, etc.) in the internal memory. A flag field is added to the record to indicate that the temporary password has been used. The user can customize the preset time period on the client or management side, such as 1 hour. When receiving the temporary password, the door lock device checks the generation time of the temporary password and the current time. If the time difference exceeds the preset time period, the temporary password is considered to be invalid.
[0071] By recording and marking the temporary passwords that have been used, each temporary password can be used only once to prevent security risks caused by repeated use. Recording and marking the temporary passwords that have been used, as well as setting preset time periods, can significantly improve the security of the system and prevent temporary passwords from being used for a long time or abused.
[0072] In one embodiment, when it is detected that the temporary password has been marked as used or the input error reaches a preset number of times, the door lock blocks the temporary password function and prompts the user to reset the temporary password, where the preset number of times includes 3-5 times.
[0073] Optionally, when receiving a temporary password, the door lock device checks whether the temporary password has been marked as used in the record. For example, check the record of temporary password: "OX6RX23X", generation time: "2024-09-16 16:30:00", usage time: "2024-09-16 16:35:00", then mark the temporary password as used. The door lock device records the number of incorrect times the user enters the temporary password. For example, in this embodiment, the preset number of times is set to 4 times, and each time the user enters an incorrect temporary password, the number of errors increases by 1. When it is detected that the temporary password has been used or the number of incorrect inputs reaches a preset number (for example, 4 times), the door lock blocks the temporary password function. For example, when the number of errors reaches 4 times, the door lock displays a prompt message: "The temporary password function has been blocked, please reset the temporary password."
[0074] By detecting the temporary passwords that have been used, each temporary password can be used only once to prevent security risks caused by repeated use. By detecting the number of incorrect inputs, attackers can be prevented from trying multiple temporary passwords through brute force. Through clear prompts, users are informed that they need to reset their temporary passwords, helping them solve the problem quickly.
[0075] In one embodiment, after updating the original key of the door lock according to the temporary key, the method further includes:
[0076] A temporary password is generated 1 to 100 times using a preset password generation algorithm. Repeated requests for the same temporary password within 5 to 10 minutes are not counted in the number of requests.
[0077] Optionally, a preset password generation algorithm is used to generate 1-100 temporary passwords. Each generated temporary password is based on the temporary key, device serial number, management password, password book, and request serial number. The generated temporary password and related information (such as generation time, usage status, etc.) are recorded in the internal memory of the door lock device. Within 5-10 minutes, if the user repeatedly requests a temporary password, provide the same temporary password generated last time. The number of requests is not increased, ensuring that the user can obtain the same temporary password multiple times in a short period of time.
[0078] Users can request temporary passwords multiple times within 5-10 minutes without increasing the number of requests, which improves user convenience. By providing the same temporary password in a short period of time, the frequency of generating new temporary passwords is reduced, which reduces the computational burden of the system.
[0079] In summary, the embodiment of the present application provides a non-networked temporary authorized unlocking method, which generates a temporary key for the door lock in the client, and updates the original key of the door lock according to the temporary key. In response to receiving a temporary password request, a temporary password is generated by a preset password generation algorithm according to the temporary key, the device serial number, the management password, the password book and the request serial number, and the temporary password is sent to the client. In response to receiving a temporary password input by a user, the temporary password input by the user is verified by a preset temporary password verification algorithm, and the unlocking is authorized if the verification is successful. The temporary password of the door lock is made safe and effective, the door lock does not need to be connected to the Internet, the door lock only needs to store the password book and the used password number, and no traversal operation is required during the verification process except for checking the password number, and the storage space and computing resources occupied are small. It solves the problem that the non-networked door lock of the prior art is difficult to realize the function of temporary password unlocking, resulting in low convenience of the door lock, and improves the response speed, storage efficiency and reliability of the door lock.
[0080] In a second aspect, an embodiment of the present application provides a non-networked temporary authorized unlocking system. Figure 4 FIG. 1 is a block diagram of a non-networked temporary authorized unlocking system according to an exemplary embodiment. Figure 4 As shown, the system includes a temporary key generation module 410, a temporary password generation module 420 and a verification module 430, wherein:
[0081] A temporary key generation module 410 is used to generate a temporary key for the door lock in the client, and update the original key of the door lock according to the temporary key;
[0082] A temporary password generating module 420 is used to generate a temporary password by a preset password generating algorithm according to a temporary key, a device serial number, a management password, a password book and a request serial number in response to receiving a temporary password request, and send the temporary password to the client;
[0083] The verification module 430 is used to verify the temporary password input by the user through a preset temporary password verification algorithm in response to receiving the temporary password input by the user, and authorize unlocking when the verification is successful.
[0084] In summary, the present application provides a non-networked temporary authorized unlocking system. By generating a temporary key module 410, generating a temporary password module 420 and a verification module 430, the problem that the non-networked door lock of the prior art is difficult to realize the function of temporary password unlocking, resulting in low convenience of the door lock, is solved, and the response speed, storage efficiency and reliability of the door lock are improved. Specifically, a temporary key is generated for the door lock in the client, and the original key of the door lock is updated according to the temporary key. In response to receiving a temporary password request, a temporary password is generated by a preset password generation algorithm according to the temporary key, the device serial number, the management password, the password book and the request serial number, and the temporary password is sent to the client. In response to receiving a temporary password input by a user, the temporary password input by the user is verified by a preset temporary password verification algorithm, and the unlocking is authorized if the verification is successful. The temporary password of the door lock is safe and effective, the door lock does not need to be connected to the network, the door lock only needs to store the password book and the used password number, and no traversal operation is required except for checking the password number during the verification process, and the storage space and computing resources occupied are small. The invention solves the problem that the non-networked door locks in the prior art are difficult to realize the function of temporary password unlocking, resulting in low convenience of the door locks, and improves the response speed, storage efficiency and reliability of the door locks.
[0085] It should be noted that the non-networked temporary authorization unlocking system provided in this embodiment is used to implement the above-mentioned implementation mode, and the descriptions that have been made will not be repeated. As used above, the terms "module", "unit", "subunit", etc. can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the above embodiment is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0086] In a third aspect, an embodiment of the present application provides an electronic device, Figure 5 FIG. 1 is a block diagram of an electronic device according to an exemplary embodiment. Figure 5 As shown, the electronic device may include a processor 51 and a memory 52 storing computer program instructions.
[0087] Specifically, the processor 51 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0088] Among them, the memory 52 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 52 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 52 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 52 may be inside or outside the data processing device. In a specific embodiment, the memory 52 is a non-volatile memory. In a specific embodiment, the memory 52 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable ProgrammableRead-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable ProgrammableRead-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. Under appropriate circumstances, the RAM can be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM can be a fast page mode dynamic random access memory (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.
[0089] The memory 52 may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 51 .
[0090] The processor 51 implements any one of the non-networked temporary authorized unlocking methods in the above embodiments by reading and executing computer program instructions stored in the memory 52 .
[0091] In one embodiment, a non-networked temporary authorized unlocking device may further include a communication interface 53 and a bus 50. Figure 5 As shown, the processor 51, the memory 52, and the communication interface 53 are connected via a bus 50 and communicate with each other.
[0092] The communication interface 53 is used to implement communication between the modules, devices, units and / or equipment in the embodiment of the present application. The communication port 53 can also implement data communication with other components such as: external devices, image / data acquisition equipment, databases, external storage, and image / data processing workstations.
[0093] The bus 50 includes hardware, software or both, and couples the components of a non-networked temporary authorization unlocking device to each other. The bus 50 includes but is not limited to at least one of the following: a data bus, an address bus, a control bus, an expansion bus, and a local bus. By way of example and not limitation, bus 50 may 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 Micro Channel 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 other suitable buses or a combination of two or more of these. Where appropriate, bus 50 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
[0094] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a program stored thereon. When the program is executed by a processor, a non-networked temporary authorized unlocking method provided in the first aspect is implemented.
[0095] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.
[0096] In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of a non-networked temporary authorized unlocking method provided in the first aspect.
[0097] Among them, the program code for executing the present invention can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.
[0098] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0099] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A non-networked temporary authorization unlocking method, characterized in that the method include: Generate a temporary key for the door lock in the client, and update the original key of the door lock according to the temporary key; In response to receiving a temporary password request, generating a temporary password using a preset password generation algorithm according to the temporary key, the device serial number, the management password, the password book, and the request serial number, and sending the temporary password to the client; In response to receiving a temporary password input by a user, the temporary password input by the user is verified by a preset temporary password verification algorithm, and unlocking is authorized if the verification is successful.
2. The method according to claim 1, characterized in that In response to receiving the temporary password request, generating a temporary password by a preset password generation algorithm according to the temporary key, the device serial number, the management password, the password book and the request serial number, including: Determine the position of the number in the temporary password by sorting the temporary key mapping, wherein the number is the first component of the temporary password; Obtaining a temporary password string from a password book according to the number and the temporary key; Based on the temporary password string and the temporary key, obtaining temporary password string encrypted data through password encryption; Using the temporary key as a calculation parameter, obtaining a second component of the temporary password from the encrypted data of the temporary password string; A temporary password is generated based on the first component and the second component.
3. The method according to claim 1, characterized in that In response to receiving a temporary password input by a user, verifying the temporary password input by the user through a preset temporary password verification algorithm, and authorizing unlocking if the verification succeeds, including: According to the temporary password, determine the number number, and determine the position of the number number in the temporary password; Verify whether the temporary password entered by the user has not been used and whether it has been used within a preset time period; When the temporary password input by the user is not used and is used within a preset time period, comparing the temporary password input by the user with the temporary password input by the user; When the temporary password is consistent with the temporary password input by the user, unlocking is authorized.
4. The method according to claim 1, characterized in that: After verifying the temporary password input by the user through a preset temporary password verification algorithm, the method further includes: The door lock device records the temporary passwords that have been used and marks the temporary passwords that have been used. Within a preset period of time, the temporary passwords that have been used are invalid, wherein the preset period of time is customized according to user needs.
5. The method according to claim 4, characterized in that The method further comprises: When it is detected that the temporary password has been used or the input error reaches a preset number of times, the door lock blocks the temporary password function and prompts the user to reset the temporary password, wherein the preset number of times includes 3-5 times.
6. The method according to claim 2, characterized in that The number ranges from 0 to 99.
7. The method according to claim 1, characterized in that After updating the original key of the door lock according to the temporary key, the method further includes: A temporary password is generated 1 to 100 times using a preset password generation algorithm. Repeated requests for the same temporary password within 5 to 10 minutes are not counted in the number of requests.
8. A non-networked temporary authorization unlocking system, characterized in that: The system comprises a temporary key generation module, a temporary password generation module and a verification module, wherein: The temporary key generation module is used to generate a temporary key for the door lock in the client, and update the original key of the door lock according to the temporary key; The temporary password generating module is used to generate a temporary password by a preset password generating algorithm according to the temporary key, the device serial number, the management password, the password book and the request serial number in response to receiving a temporary password request, and send the temporary password to the client; The verification module is used to verify the temporary password input by the user through a preset temporary password verification algorithm in response to receiving the temporary password input by the user, and authorize unlocking when the verification is successful.
9. An electronic device, characterized in that: The invention comprises a memory and a processor, a computer program stored in the memory and executable on the processor, and the processor implements a non-networked temporary authorized unlocking method as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a non-networked temporary authorized unlocking method according to any one of claims 1 to 7 is implemented.