A temporary password management method, device, chip and module equipment
The method of generating temporary passwords through local temporary password pool circulation and management password encryption solves the problem of poor network signal and security of smart door locks, and achieves convenient visitor processing and high security.
Patent Information
- Application Number
- CN202211578915.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-07
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-12-07
AI Technical Summary
Smart door locks cannot be used when the network signal is poor or disconnected, and there is a security risk of being attacked by hackers, and non-networked door locks cannot conveniently handle visitors when the owner is not at home.
Provides a temporary password management method. Through the recycling of local valid temporary password pool and invalid temporary password pool, the user inputs the temporary password to match and unlock the door. No need to connect to the Internet to ensure security. Temporary passwords are generated by managing passwords and encryption numbers. , ensuring the uniqueness and privacy of the temporary password for each door lock device.
It improves the security and convenience of door lock equipment, avoids dependence on the Internet and the risk of hacker attacks, and eliminates the need to frequently manually add temporary passwords, making it easier for users to use.
Smart Images

Figure CN115865376B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a temporary password management method, device, chip and module equipment. Background Art
[0002] With the development of smart door locks, people no longer need to carry physical keys when they go out, which greatly facilitates people's lives. At present, smart door locks on the market are mainly divided into networked door locks and non-networked door locks. For networked door locks, although the control password can be changed in real time, it cannot be used when the network signal is poor or the network is disconnected, and because the network needs to go through the server, there is a possibility of being attacked by hackers, and the security is not high; for non-networked door locks, when the owner is not at home and there are visitors, the visitors can only wait outside the door. Therefore, how to ensure safety while dealing with the situation where there are guests when the owner is not at home has become a problem to be solved. Summary of the invention
[0003] The present application provides a temporary password management method, device, chip and module equipment, which are conducive to improving security and convenience.
[0004] In a first aspect, the present application provides a temporary password management method, which is applied to a terminal device, the method comprising: receiving a first temporary password input by a user; matching the first temporary password with a temporary password in a valid temporary password pool; if the match is successful, performing an unlocking operation; moving a second temporary password from the valid temporary password pool to an invalid temporary password pool, the second temporary password being a temporary password in the valid temporary password pool that matches the first temporary password; when the invalid temporary password pool has a temporary password whose storage time exceeds a first time length threshold, moving the temporary password in the invalid temporary password pool whose storage time exceeds the first time length threshold back to the valid temporary password pool.
[0005] Through the above implementation method, the first temporary password is matched with the temporary password in the local valid temporary password pool of the door lock device, and there is no need to use the temporary password to unlock the door through the Internet, which is beneficial to improving security. The temporary password in the valid temporary password pool is circulated with the temporary password in the invalid temporary password pool, and there is no need to manually add temporary passwords to the door lock device multiple times, which improves convenience.
[0006] In a possible implementation, the first time threshold is determined based on the total number of temporary passwords and the maximum number of temporary passwords that can be used within a preset time.
[0007] Through the above implementation method, it is ensured that there is always a temporary password in the valid temporary password pool, avoiding the problem of being unable to perform the unlocking operation because the valid temporary password pool is empty.
[0008] In a possible implementation, the method further includes: when the valid temporary password pool contains a temporary password whose storage time exceeds a second time threshold, moving the temporary password whose storage time exceeds the second time threshold in the valid temporary password pool to an invalid temporary password pool.
[0009] In one possible implementation, the method also includes: obtaining a management password, which is unique to the administrator; generating N temporary passwords based on the management password, N encryption numbers and the door lock product serial number (Serial Number, SN) number, and the N encryption numbers are generated based on the door lock SN number.
[0010] Through the above implementation method, since the temporary password is generated based on the SN number, it is ensured that the N temporary passwords generated by different door lock devices are different, thereby ensuring the security of the door lock device. Since the management password is a password unique to the administrator, the privacy of the N temporary passwords is ensured, thereby ensuring the security of the door lock device.
[0011] In one possible implementation, N temporary passwords are generated based on the management password, N encryption numbers and the SN number, including: determining N encryption keys based on the management password and the N encryption numbers; and encrypting the SN number with the N encryption keys to obtain N temporary passwords.
[0012] Through the above implementation method, the SN number is encrypted with N encryption keys to obtain N temporary passwords, thereby improving the security of the door lock device.
[0013] In the second aspect, the present application provides a temporary password management method, the method comprising: receiving a temporary password acquisition instruction; acquiring a first temporary password from a temporary password pool according to the arrangement order of the temporary passwords in the temporary password pool; displaying the first temporary password, the first temporary password is used to unlock the door lock device, the first temporary password is the i-th temporary password in the temporary password pool, and the first temporary password is the temporary password displayed for the i+a*Nth time, where N is the total number of temporary passwords in the temporary password pool, and a is a positive integer greater than or equal to 0.
[0014] In a possible implementation, the method further includes: obtaining a management password, an SN number, and N encryption numbers provided by an application; and generating N temporary passwords in a temporary password pool based on the management password, the N encryption numbers, and the SN number.
[0015] In one possible implementation, N temporary passwords in a temporary password pool are generated based on a management password, N encryption numbers, and an SN number, including: determining N encryption keys based on the management password and the N encryption numbers; and encrypting the SN number with the N encryption keys to obtain N temporary passwords.
[0016] In a third aspect, an embodiment of the present application provides a temporary password management device, which includes a unit for executing the method of the first aspect or the second aspect above.
[0017] In a fourth aspect, the present application provides a chip, comprising a processor and a communication interface, wherein the processor is configured to enable the chip to execute the method of the first aspect or the second aspect.
[0018] In the fifth aspect, the present application provides a module device, which includes a communication module, a power module, a storage module and a chip, wherein: the power module is used to provide power to the module device; the storage module is used to store data and instructions; the communication module is used for internal communication of the module device, or for the module device to communicate with external devices; the chip is used to execute the method of the first aspect or the second aspect above.
[0019] In a sixth aspect, an embodiment of the present invention discloses a temporary password management device, which includes a memory and a processor, the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method of the first aspect or the second aspect above.
[0020] In a seventh aspect, the present application provides a computer-readable storage medium, which stores computer-readable instructions. When the computer-readable instructions are executed on a communication device, the communication device executes the method of the first aspect or the second aspect mentioned above.
[0021] In an eighth aspect, the present application provides a computer program or a computer program product, comprising codes or instructions, which, when executed on a computer, enable the computer to execute the method of the first or second aspect described above. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 A flowchart of a temporary password management method provided in an embodiment of the present application;
[0024] Figure 2 A schematic diagram of SN numbering provided in an embodiment of the present application;
[0025] Figure 3 A schematic diagram of generating a temporary password provided in an embodiment of the present application;
[0026] Figure 4 A flowchart of another temporary password management method provided in an embodiment of the present application;
[0027] Figure 5 A schematic diagram of a temporary password cycle provided in an embodiment of the present application;
[0028] Figure 6 A schematic diagram of the structure of a temporary password management device provided in an embodiment of the present application;
[0029] Figure 7 A schematic diagram of the structure of another temporary password management device provided in an embodiment of the present application;
[0030] Figure 8 A schematic diagram of the structure of a module device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0032] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items.
[0033] It should be noted that the terms "first", "second", "third", etc. in the specification and claims of the present application and in the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the term "comprising" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0034] In order to facilitate understanding of the solutions provided by the embodiments of the present application, some professional terms involved in the present application are first introduced below:
[0035] 1. Terminal equipment
[0036] The terminal device includes a device that provides voice and / or data connectivity to the user. For example, the terminal device is a device with wireless transceiver function, which can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted; it can also be deployed on the water surface (such as ships, etc.); it can also be deployed in the air (such as airplanes, balloons and satellites, etc.). The terminal can be a mobile phone, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a vehicle-mounted terminal device, a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, a wearable terminal device, etc. The embodiments of the present application do not limit the application scenarios. The terminal may also be sometimes referred to as terminal equipment, user equipment (UE), access terminal equipment, vehicle-mounted terminal, industrial control terminal, UE unit, UE station, mobile station, mobile station, remote station, remote terminal equipment, mobile device, UE terminal equipment, wireless communication equipment, UE agent or UE device, etc. The terminal may also be fixed or mobile. In the embodiment of the present application, the device for realizing the function of the terminal device may be a terminal device, or may be a device that can support the terminal device to realize the function, such as a chip system or a combination device or component that can realize the function of the terminal device, and the device may be installed in the terminal device.
[0037] 2. Door lock equipment
[0038] Door lock equipment includes smart door locks, which are different from traditional mechanical locks and are more intelligent and simple in terms of user security, identification, and management. Smart door locks are the executive components of door locks in access control systems.
[0039] See also Figure 1 , Figure 1 1 is a flowchart of a temporary password management method provided in an embodiment of the present application, and the temporary password management method includes steps 101 to 105. Figure 1The method shown in the figure can be performed by a door lock device, or the main body can be a chip in the door lock device. Optionally, the door lock device can be a household smart door, a safe door, etc. Figure 1 The method execution subject shown takes a door lock device as an example. Among them:
[0040] 101. The door lock device receives a first temporary password input by a user.
[0041] Among them, the first temporary password is used to unlock the door lock device. Usually, the first temporary password consists of multiple numbers. The user may be a temporary visitor other than the administrator of the door lock device. The user can enter the first temporary password through the keyboard on the door lock device. The keyboard on the door lock device can be a virtual keyboard or a physical keyboard.
[0042] 102. The door lock device matches the first temporary password with a temporary password in a pool of valid temporary passwords.
[0043] Among them, the temporary password in the valid temporary password pool is a part of the temporary password generated by the door lock device after the door lock device manager purchases the door lock and binds it with the door lock.
[0044] 103. If the matching is successful, the door lock device performs an unlocking operation.
[0045] Among them, if the first temporary password is the same as any temporary password in the valid temporary password pool, the match is successful, and the door lock device performs the unlocking operation. If there is no temporary password that is the same as the first temporary password in the valid temporary password pool, the match fails, and the door lock device does not perform the unlocking operation. For example, the first temporary password is: 14321, and the three temporary passwords included in the valid temporary password pool are: temporary password 1 (12345), temporary password 2 (54123) and temporary password 3 (14321). It can be seen that the first temporary password matches the temporary password 3 in the valid temporary password pool, and the door lock device performs the unlocking operation.
[0046] 104. The door lock device moves a second temporary password from the valid temporary password pool to the invalid temporary password pool, where the second temporary password is a temporary password in the valid temporary password pool that matches the first temporary password.
[0047] Among them, the second temporary password is a temporary password in the valid temporary password pool that successfully matches the first temporary password. For example, the first temporary password is: 14321, and the three temporary passwords included in the valid temporary password pool are: temporary password 1 (12345), temporary password 2 (54123) and temporary password 3 (14321). It can be seen that the second temporary password is temporary password 3 (14321), and the temporary password 3 is moved from the valid temporary password pool to the invalid temporary password pool.
[0048] It should be noted that if the first temporary password successfully matches the temporary password in the invalid temporary password pool, the door lock device cannot perform the unlocking operation, and any temporary password in the invalid temporary password pool is different from any temporary password in the valid temporary password pool. The sum of the number of temporary passwords in the valid temporary password pool and the number of temporary passwords in the invalid temporary password pool is the total number of temporary passwords generated by the door lock device.
[0049] In a possible embodiment, when the valid temporary password pool contains a temporary password whose storage time exceeds the second time threshold, the door lock device moves the temporary password whose storage time exceeds the second time threshold in the valid temporary password pool to the invalid temporary password pool.
[0050] The second duration threshold may be a preset value, such as 3 days, one week, one month, etc.
[0051] Exemplarily, the second duration threshold is 30 days, and there are three temporary passwords in the valid temporary password pool: temporary password 1, temporary password 2, and temporary password 3. Among them, temporary password 1 is stored in the valid temporary password pool for 2 days, temporary password 2 is stored in the valid temporary password pool for 31 days, and temporary password 3 is stored in the valid temporary password pool for 7 days. It can be seen that if the storage time of temporary password 2 in the valid temporary password pool exceeds the second temporary duration threshold, the temporary password 2 is moved from the valid temporary password pool to the invalid temporary password pool.
[0052] In a possible embodiment, the door lock device screens the temporary passwords in the valid temporary password pool every preset period, and screens out the temporary passwords that have been stored in the valid temporary password pool for a period exceeding the second time threshold. For example, the door lock device screens the temporary passwords in the valid temporary password pool every day.
[0053] That is to say, there are two situations in which the door lock device moves the temporary password in the valid temporary password pool to the invalid temporary password pool. One is that the temporary password in the valid temporary password pool has been used (matched successfully for unlocking operation); the other is that the temporary password has been stored in the valid temporary password pool for too long (exceeding the second time threshold).
[0054] 105. When the invalid temporary password pool contains a temporary password whose storage time exceeds the first time threshold, the door lock device moves the temporary password whose storage time exceeds the first time threshold in the invalid temporary password pool back to the valid temporary password pool.
[0055] In a possible embodiment, the first time threshold is determined based on the total number of temporary passwords and the maximum number of temporary passwords that can be used within a preset time.
[0056] That is to say, in order to ensure that there is always a temporary password in the valid temporary password pool and to avoid the temporary password unlocking function being unusable due to the valid temporary password pool being empty, the first duration threshold needs to be determined based on the total number of temporary passwords and the maximum number of temporary passwords that can be used within a preset time. For example, if 5 temporary passwords are allowed to be used in one day, and there are a total of 100 temporary passwords, then the first duration threshold shall not exceed 100 / 5=20 days. It should be noted that the first duration threshold can be 20 days, or less than 20 days, such as 17 days, 18 days, etc.
[0057] Through the above method, the first temporary password is matched with the temporary password in the local valid temporary password pool of the door lock device, and there is no need to use the temporary password to unlock the door through the Internet, which is beneficial to improving security. The temporary password in the valid temporary password pool is circulated with the temporary password in the invalid temporary password pool, and there is no need to manually add temporary passwords to the door lock device multiple times, which improves convenience.
[0058] The above method explains in detail the application stage of the temporary password management method provided by the present application. The temporary password management method provided by the present application also includes a temporary password generation stage. The temporary password generation stage provided by the temporary password management method provided by the present application is explained below. The temporary password generation stage includes but is not limited to the following two steps:
[0059] Step 1: The door lock device obtains the management password, which is unique to the administrator.
[0060] The management password is a unique password for the door lock device manager. Different managers have different management passwords. The management password can be assigned by the store to the manager or set by the manager himself. It should be noted that if the management password is set by the manager, it is necessary to verify whether the set management password has been used by other managers and whether the management password meets the format requirements.
[0061] In a possible implementation, the management password is input into the door lock device by the manager or store staff when the manager purchases the door lock device and binds the door lock device to the door lock device.
[0062] Step 2: The door lock device generates N temporary passwords based on the management password, N encryption numbers and the SN number. The N encryption numbers are generated based on the door lock SN number.
[0063] The SN number is a unique number of the door lock device. Different door lock devices have different SN numbers. The SN number can be in the form of an SN barcode, a number, or a combination of the above two forms. Figure 2 As shown, Figure 2The image marked with 201 is in the form of SN barcode. Figure 2 The content marked with 202 is in digital form. Figure 2 It is a combination of the two forms. It should be noted that when the SN number is in the form of numbers, it can also include letters, etc., and is not necessarily limited to only numbers. Since the SN number is a unique number for the door lock device, and the N encryption numbers are determined based on the SN number, the N encryption numbers are also unique numbers for the door lock device, and the N encryption numbers of different door lock devices are also different.
[0064] Through the above implementation method, since the temporary password is generated based on the SN number, it is ensured that the N temporary passwords generated by different door lock devices are different, thereby ensuring the security of the door lock device. Since the management password is a password unique to the administrator, the privacy of the N temporary passwords is ensured, thereby ensuring the security of the door lock device.
[0065] In a possible embodiment, the door lock device generates N temporary passwords based on the management password, N encryption numbers and the door lock product serial number SN number. Specifically: the door lock device determines N encryption keys based on the management password and the N encryption numbers; the door lock device uses the N encryption keys to encrypt the door lock product serial number SN number to obtain N temporary passwords.
[0066] That is to say, the door lock device determines N different encryption keys based on the management password and N encryption numbers, and then uses the encryption key to encrypt the SN number to obtain N different temporary passwords.
[0067] For example, Figure 3 As shown, encryption key 1 is generated by the management password and encryption number 1, and then the SN number is encrypted based on the encryption key 1 to obtain a temporary password 1; then encryption key 2 is generated by the management password and encryption number 2, and then the SN number is encrypted based on the encryption key 2 to obtain a temporary password 2; and so on, no further details are given.
[0068] In a possible implementation, the encryption key generated by the management password and the encryption number can be a string obtained by connecting the management password and the encryption number as the encryption key. For example, if the management password is: 12345 and the encryption number 1 is a54b12, then the encryption key 1 can be 12345a54b12. For another example, if the management password is: 12345 and the encryption number 1 is 542a32, then the encryption key 1 can be 12345542a32. It should be noted that the encryption key is not limited to the above method, and can also be obtained in other forms, which are not limited here.
[0069] In a possible implementation, the door lock device uses N encryption keys to perform hash encryption on the door lock product serial number SN.
[0070] Through the above implementation method, the SN number is encrypted with N encryption keys to obtain N temporary passwords, thereby improving the security of the door lock device.
[0071] See also Figure 4 , Figure 4 4 is a flowchart of another temporary password management method provided in an embodiment of the present application, and the temporary password management method includes steps 401 to 403. Figure 4 The execution subject of the method shown may be a terminal device, or the subject may be a chip in the terminal device. Optionally, the terminal device may be a mobile phone, a tablet computer, a smart watch, a computer with wireless transceiver function, a virtual reality (VR) electronic device, an augmented reality (AR) electronic device, a wireless terminal in industrial control, an on-board electronic device, a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc. Figure 4 The method execution subject shown takes a terminal device as an example.
[0072] 401. The terminal device receives a temporary password acquisition instruction.
[0073] Among them, the temporary password acquisition instruction is issued by the administrator. If the administrator clicks the temporary password display button, the terminal device receives the temporary password acquisition instruction, which is used to instruct the terminal device to determine the first temporary password from the temporary password and display the first temporary password to the administrator.
[0074] 402. The terminal device obtains a first temporary password from the temporary password pool according to the arrangement order of the temporary passwords in the temporary password pool.
[0075] The temporary passwords in the temporary password pool are arranged in the order in which they are generated, and the temporary passwords need to be obtained in sequence according to the order in which they are obtained.
[0076] Exemplarily, the temporary passwords in the temporary password pool are arranged in the following order: temporary password 1, temporary password 2, temporary password 3, and temporary password 4. Figure 5As shown, when the temporary password acquisition instruction is received for the first time, temporary password 1 is selected from the temporary password pool as the first temporary password; when the temporary password acquisition instruction is received for the second time, temporary password 2 is selected from the temporary password pool as the first temporary password; when the temporary password acquisition instruction is received for the third time, temporary password 3 is selected from the temporary password pool as the first temporary password; when the temporary password acquisition instruction is received for the fourth time, temporary password 4 is selected from the temporary password pool as the first temporary password; when the temporary password acquisition instruction is received for the fifth time, temporary password 1 is selected from the temporary password pool as the first temporary password; when the temporary password acquisition instruction is received for the sixth time, temporary password 2 is selected from the temporary password pool as the first temporary password, and so on, which will not be repeated. It can be seen that after all the temporary passwords in the temporary password pool are acquired, they are recirculated in the order of arrangement starting from the first temporary password.
[0077] 403. The terminal device displays a first temporary password, which is used to unlock the door lock device. The first temporary password is the i-th temporary password in the temporary password pool, and the first temporary password is the temporary password displayed for the i+a*Nth time, where N is the total number of temporary passwords in the temporary password pool, and a is a positive integer greater than or equal to 0.
[0078] Among them, when the temporary passwords in the temporary password pool are cycled for the first time, a is 0; when the temporary passwords in the temporary password pool are cycled for the second time, a is 1, and so on. In other words, the terminal device displays the temporary passwords in a cycle. For example, if the first password in the first cycle is temporary password 1, then the first password in the second cycle is still temporary password 1. It should be noted that any cycle of the temporary password requires that all passwords in the password pool be cycled before the next temporary password cycle can be performed, that is, the number of temporary passwords in each cycle is the same, and the number of temporary passwords in each cycle is the number of temporary passwords in the temporary password pool.
[0079] In a possible embodiment, if the temporary password displayed or obtained by the terminal device within the preset time exceeds the maximum number of temporary passwords that can be used, the terminal device will no longer obtain a temporary password from the temporary password pool within the preset time, and display a temporary password upper limit prompt. For example, the preset time is one day, and the maximum number of temporary passwords that can be used is 5. If the number of temporary passwords used in one day exceeds five, the terminal device will no longer obtain a temporary password from the temporary password pool within the preset time, and display a temporary password upper limit prompt.
[0080] The above method explains in detail the application stage of the temporary password management method provided by the present application. The temporary password management method provided by the present application also includes a temporary password generation stage. The temporary password generation stage provided by the temporary password management method provided by the present application is explained below. The temporary password generation stage includes but is not limited to the following two steps:
[0081] Step 1: The terminal device obtains the management password, which is unique to the administrator.
[0082] This step can be described in detail in the above step 105 and will not be described in detail here.
[0083] Step 2: The terminal device generates N temporary passwords based on the management password, N encryption numbers and the SN number. The N encryption numbers are generated based on the door lock SN number.
[0084] In a possible embodiment, the terminal device generates N temporary passwords based on the management password, N encryption numbers and the door lock product serial number SN number, specifically: the terminal device obtains the management password, the door lock product serial number SN number and N encryption numbers provided by the application; based on the management password, N encryption numbers and the door lock product serial number SN number, generates N temporary passwords in the temporary password pool.
[0085] The management password can be found in the detailed explanation in step 105. The SN number can be obtained in the following two ways: Figure 2 The barcode marked in 201 is in the form of the entire Figure 2 When the combination is shown, the SN number can be obtained by scanning the barcode through the terminal device; when the SN number is as follows Figure 2 The number marked with 202 is in the form of the whole Figure 2 When the combination shown is shown, the administrator can manually enter the number into the terminal device to obtain the SN number.
[0086] See also Figure 6 , Figure 6 1 is a schematic diagram of the structure of a temporary password management device provided in an embodiment of the present application. The temporary password management device can be used to perform some or all of the functions of the door lock device in the above method embodiment. The device can be a door lock device, or a device in a door lock device, or a device that can be used in combination with a terminal device. The temporary password device can also be a chip system. Figure 6 The temporary password management device shown includes an acquisition unit 601 and a processing unit 602 .
[0087] in:
[0088] An acquisition unit 601 is used to receive a first temporary password input by a user;
[0089] The processing unit 602 is configured to match the first temporary password with a temporary password in a pool of valid temporary passwords;
[0090] The processing unit 602 is further configured to perform an unlocking operation if the matching is successful;
[0091] The processing unit 602 is further configured to move a second temporary password from the valid temporary password pool to the invalid temporary password pool, wherein the second temporary password is a temporary password in the valid temporary password pool that matches the first temporary password;
[0092] The processing unit 602 is further configured to move the temporary password in the invalid temporary password pool, which has been stored for longer than the first time threshold, back to the valid temporary password pool when the invalid temporary password pool has a temporary password that has been stored for longer than the first time threshold.
[0093] In a possible implementation manner, the first time threshold is determined based on the total number of temporary passwords and the maximum number of temporary passwords that can be used within a preset time.
[0094] In a possible implementation, when the valid temporary password pool contains a temporary password whose storage time exceeds the second time threshold, the processing unit 602 is further configured to move the temporary password whose storage time exceeds the second time threshold in the valid temporary password pool to the invalid temporary password pool.
[0095] In one possible implementation, the processing unit 602 is also used to obtain a management password, which is unique to the administrator; the processing unit 602 is also used to generate N temporary passwords based on the management password, N encryption numbers and the door lock product serial number SN number, and the N encryption numbers are generated based on the SN number.
[0096] In one possible implementation, the processing unit 602 is also used to generate N temporary passwords based on the management password, N encryption numbers and the door lock product serial number SN number. Specifically, the processing unit 602 is also used to determine N encryption keys based on the management password and the N encryption numbers; the processing unit 602 is also used to encrypt the SN number with the N encryption keys to obtain N temporary passwords.
[0097] Figure 6 The temporary password management device shown can also be used to perform some or all of the functions of the terminal device in the above method embodiment. The device can be a terminal device, or a device in a terminal device, or a device that can be used in conjunction with a terminal device. Among them, the temporary password management device can also be a chip system. Among them:
[0098] The acquisition unit 601 is used to receive a temporary password acquisition instruction;
[0099] The processing unit 602 is configured to obtain a first temporary password from the temporary password pool according to the arrangement order of the temporary passwords in the temporary password pool;
[0100] The processing unit 602 is also used to display a first temporary password, which is used to unlock the door lock device. The first temporary password is the i-th temporary password in the temporary password pool, and the first temporary password is the temporary password displayed for the i+a*Nth time, where N is the total number of temporary passwords in the temporary password pool, and a is a positive integer greater than or equal to 0.
[0101] In a possible implementation, the acquisition unit 601 is further used to acquire a management password, a door lock product serial number SN number, and N encrypted numbers provided by the application;
[0102] The processing unit 602 is further configured to generate N temporary passwords in a temporary password pool based on the management password, the N encryption numbers, and the SN number.
[0103] In one possible implementation, the processing unit 602 is also used to generate N temporary passwords in a temporary password pool based on the management password, N encryption numbers and the SN number. Specifically, the processing unit 602 is also used to determine N encryption keys based on the management password and the N encryption numbers; the processing unit 602 is also used to encrypt the door lock product serial number SN number with the N encryption keys to obtain N temporary passwords.
[0104] The present application also provides a chip that can execute the steps of the door lock device in the above method embodiment. The chip includes a processor and a communication interface. The processor is configured to enable the chip to execute the above method embodiment. Figure 1 The method described.
[0105] The present application also provides a chip that can execute the steps of the terminal device in the above method embodiment. The chip includes a processor and a communication interface. The processor is configured to enable the chip to execute the above method embodiment. Figure 4 The method described.
[0106] See also Figure 7 , Figure 7 700 is a schematic diagram of the structure of another temporary password management device provided by an embodiment of the present invention. The temporary password management device 700 may be a door lock device or a terminal device. The temporary password management device 700 may include a memory 701 and a processor 702. Optionally, it also includes a communication interface 703. The memory 701, the processor 702 and the communication interface 703 are connected via one or more communication buses. The communication interface 703 is controlled by the processor 702 to send and receive information.
[0107] The memory 701 may include a read-only memory and a random access memory, and provides instructions and data to the processor 702. A portion of the memory 701 may also include a nonvolatile random access memory.
[0108] The communication interface 703 is used to receive or send data.
[0109] The processor 702 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, and optionally, the processor 702 may also be any conventional processor, etc. Among them:
[0110] The memory 701 is used to store program instructions.
[0111] The processor 702 is used to call the program instructions stored in the memory 701.
[0112] The processor 702 calls the program instructions stored in the memory 701 to enable the temporary password management device 700 to execute the method executed by the door lock device or the terminal device in the above method embodiment.
[0113] like Figure 8 As shown, Figure 8 800 is a schematic diagram of a module device provided in an embodiment of the present application. The module device 800 can execute the relevant steps of the door lock device or terminal device in the aforementioned method embodiment. The module device 800 includes: a communication module 801, a power module 802, a storage module 803 and a chip 804.
[0114] Among them, the power module 802 is used to provide power to the module device; the storage module 803 is used to store data and instructions; the communication module 801 is used for internal communication of the module device, or for the module device to communicate with external devices; the chip 804 is used to execute the method executed by the door lock device or terminal device in the above method embodiment.
[0115] It should be noted that the contents not mentioned in the embodiments corresponding to the devices, chips, terminal devices and module devices in the embodiments of the present application and the specific implementation methods of each step can be found in Figure 1 to Figure 5 The illustrated embodiments and the aforementioned contents will not be described in detail here.
[0116] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is executed on a processor, the method flow of the above method embodiment is implemented.
[0117] The embodiment of the present application also provides a computer program product. When the computer program product runs on a processor, the method flow of the above method embodiment is implemented.
[0118] Regarding the various modules / units included in the various devices and products described in the above embodiments, they can be software modules / units, or hardware modules / units, or they can be partially software modules / units and partially hardware modules / units. For example, for various devices and products applied to or integrated in a chip, the various modules / units included therein can all be implemented in the form of hardware such as circuits, or at least some of the modules / units can be implemented in the form of software programs, which run on the integrated processor inside the chip, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in a chip module, the various modules / units included therein can all be implemented in the form of hardware such as circuits, and different modules / units can be located in the same part of the chip module (such as a chip, circuit module, etc.) or in different components, or at least some of the modules / units can be implemented in the form of software programs. The software programs run on the integrated processor inside the chip, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits. It can be implemented in the form of a software program, which runs on a processor integrated inside the chip module, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in the terminal, the modules / units contained therein can all be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (for example, chip, circuit module, etc.) or in different components in the terminal, or, at least some modules / units can be implemented in the form of a software program, which runs on a processor integrated inside the terminal, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits.
[0119] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain operations can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0120] The descriptions of the various embodiments provided in this application can refer to each other, and the descriptions of the various embodiments have different focuses. For parts that are not described in detail in a certain embodiment, refer to the relevant descriptions of other embodiments. For the convenience and simplicity of description, for example, the functions of the various devices and equipment provided in the embodiments of this application and the operations performed can refer to the relevant descriptions of the method embodiments of this application, and the various method embodiments and the various device embodiments can also refer to, combine or quote each other.
[0121] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A temporary password management method, characterized in that: The method comprises: Receive a first temporary password input by a user, where the first temporary password is obtained by the terminal device from a temporary password pool, wherein if the temporary passwords obtained by the terminal device from the temporary password pool within a preset time exceed a preset number of temporary passwords that can be used, the terminal device stops obtaining the temporary passwords and displays a temporary password upper limit prompt; Matching the first temporary password with a temporary password in a pool of valid temporary passwords; If the match is successful, the unlocking operation is performed; Moving a second temporary password from the valid temporary password pool to the invalid temporary password pool, wherein the second temporary password is a temporary password in the valid temporary password pool that matches the first temporary password; When the invalid temporary password pool contains a temporary password whose storage time exceeds a first time threshold, the temporary password whose storage time exceeds the first time threshold in the invalid temporary password pool is moved back to the valid temporary password pool.
2. The method according to claim 1, characterized in that The first time threshold is determined based on the total number of temporary passwords and the maximum number of temporary passwords that can be used within a preset time.
3. The method according to any one of claims 1 and 2, characterized in that The method further comprises: When the valid temporary password pool contains a temporary password whose storage time exceeds the second time threshold, the temporary password whose storage time exceeds the second time threshold in the valid temporary password pool is moved to the invalid temporary password pool.
4. The method according to claim 1, characterized in that: The method further comprises: Obtaining a management password, which is unique to the administrator; N temporary passwords are generated based on the management password, N encryption numbers and the door lock product serial number SN number, and the N encryption numbers are generated based on the SN number.
5. The method according to claim 4, characterized in that The generating N temporary passwords based on the management password, the N encryption numbers and the door lock product serial number SN number includes: Determine N encryption keys based on the management password and the N encryption numbers; The SN numbers are encrypted using the N encryption keys to obtain N temporary passwords.
6. A temporary password management device, characterized in that: The device comprises: an acquisition unit, configured to receive a first temporary password input by a user, where the first temporary password is obtained by the terminal device from a temporary password pool, wherein if the temporary passwords obtained by the terminal device from the temporary password pool within a preset time exceed a preset number of temporary passwords that can be used, the acquisition of the temporary password is stopped, and a temporary password upper limit prompt is displayed; a processing unit, configured to match the first temporary password with a temporary password in a pool of valid temporary passwords; The processing unit is further configured to perform an unlocking operation if the matching is successful; The processing unit is further configured to move a second temporary password from the valid temporary password pool to the invalid temporary password pool, wherein the second temporary password is a temporary password in the valid temporary password pool that matches the first temporary password; The processing unit is further configured to, when the invalid temporary password pool contains a temporary password whose storage time exceeds a first time threshold, move the temporary password whose storage time exceeds the first time threshold in the invalid temporary password pool back to the valid temporary password pool.
7. A chip, characterized in that: The chip comprises a processor and a communication interface, wherein the processor is configured to cause the chip to execute the method according to any one of claims 1 to 5.
8. A module device, characterized in that: The module device includes a communication module, a power module, a storage module and a chip, wherein: The power module is used to provide electrical energy to the module equipment; The storage module is used to store data and instructions; The communication module is used for internal communication of the module device, or for communication between the module device and an external device; The chip is used to execute the method according to any one of claims 1 to 5.
9. A temporary password management device, characterized in that: The temporary password management device includes a memory and a processor, the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to enable the temporary password management device to execute the method according to any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that: The computer storage medium stores computer-readable instructions, and when the computer-readable instructions are executed on the communication device, the communication device executes the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Temporary password usage control method and system
CN108449177A
Method and system for setting temporary password of intelligent door lock
CN110766832A
Image forming device and printing method
JP2007112063A
Mobile terminal device
US20100099383A1
