Information updating method and device, storage medium and electronic device

By using the key generated by the cloud server in the smart door lock system to encrypt and process the biological information and decrypt it on the target device, the limitations of the traditional smart door lock information entry method are solved, and the convenience of remote management of users is achieved and system security.

CN119479116AActive Publication Date: 2025-02-18QINGDAO HAIER TECH +2

Patent Information

Application Number
CN202411637844.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2025-02-18
Estimated Expiration
2044-11-15

AI Technical Summary

Technical Problem

The information entry method of traditional smart door locks is limited to biological information entering at the physical location of the door lock, which limits the user's ability to remotely manage door lock information, increases inconvenience and time cost, and poses data security risks.

Method used

By sending a request instruction to the cloud server, the first key and the target random number are obtained, the biological information is encrypted based on the key, encrypted data, and sent it to the target device, instructing the device to decrypt the biological information using the reference key, and instruct the device to decrypt the biological information using the reference key. , realize the addition or deletion operation in the biological information list.

Benefits of technology

It realizes the safe addition or deletion of biological information between different devices, avoids the limitation of only entering information on the target device, and improves the user's remote management convenience and overall system security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119479116A_ABST
    Figure CN119479116A_ABST
Patent Text Reader

Abstract

The invention discloses an information updating method and device, a storage medium and an electronic device, and relates to the technical field of smart home, the information updating method comprises the following steps: sending a first request instruction to a cloud server, and obtaining a first key and a target random number sent by the cloud server in response to the first request instruction; processing acquired target biological information based on the first key to obtain encrypted data, the biological information including the target biological information; sending a second request instruction to the target device; the second request instruction is used for instructing the target device to use the first preset algorithm to generate a reference key according to the target random number and the device information of the target device, and obtaining the target biological information based on the reference key and the encrypted data, and adding or deleting the target biological information in a biological information list of the target equipment based on the first request instruction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology, and more specifically, to an information updating method and device, a storage medium, and an electronic device. Background Art

[0002] Advances in the field of smart homes have significantly improved the comfort and safety of modern life. Among them, smart door locks, as key components of home security systems, use biometric recognition technology to achieve efficient and secure access control management.

[0003] However, the traditional smart door lock information entry method has certain limitations, that is, users must enter biometric information at the physical location of the door lock. This method limits the user's ability to remotely manage door lock information, especially in the case of multiple users or frequent changes in permissions. In person, door lock operation becomes a necessary step, which undoubtedly increases the inconvenience and time cost of use. At the same time, it may also bring data security risks due to the outdoor entry process.

[0004] Regarding the problem in related technologies that the process of entering information into traditional smart door locks is highly limited, no effective solution has been proposed so far.

[0005] Therefore, it is necessary to improve the related technology to overcome the above-mentioned defects in the related technology. Summary of the invention

[0006] The embodiments of the present application provide an information updating method and device, a storage medium, and an electronic device to at least solve the problem that the process of entering information into a traditional smart door lock is highly limited.

[0007] According to one aspect of an embodiment of the present application, an information updating method is provided, comprising: sending a first request instruction to a cloud server, and obtaining a first key and a target random number sent by the cloud server in response to the first request instruction, wherein the first request instruction is used to request to add or delete biometric information in a target device, and the first key is a key generated by the cloud server using a first preset algorithm according to the target random number and device information of the target device; processing the acquired target biometric information based on the first key to obtain encrypted data, wherein the biometric information includes the target biometric information; sending a second request instruction to the target device, wherein the second request instruction carries: the encrypted data, the target random number and the first request instruction; the second request instruction is used to instruct the target device to generate a reference key based on the target random number and the device information of the target device using the first preset algorithm, and obtain the target biometric information based on the reference key and the encrypted data, and add or delete the target biometric information in the biometric information list of the target device based on the first request instruction.

[0008] In an exemplary embodiment, the acquired target biometric information is processed based on the first key to obtain encrypted data, including: encrypting the target biometric information using the first key to obtain the encrypted data; wherein the target device decrypts the encrypted data based on the reference key to obtain the target biometric information.

[0009] In an exemplary embodiment, the acquired target biometric information is processed based on the first key to obtain encrypted data, including: using a second preset algorithm to generate a second key based on the first key and the account information of the target account, wherein the target account is the account that sends the first request instruction to the cloud server; using the second key to encrypt the target biometric information to obtain the encrypted data; wherein the second request instruction also carries the account information of the target account; the second request instruction is used to instruct the target device to use the second preset algorithm to generate the second key based on the reference key and the account information of the target account after generating the reference key, and use the second key to decrypt the encrypted data to obtain the target biometric information.

[0010] In an exemplary embodiment, after the acquired target biometric information is processed based on the first key to obtain encrypted data, the method further includes: when no communication connection is established between the terminal device and the target device, storing the second request instruction in a target storage area of ​​the terminal device, wherein the terminal device has a target application, a target account is logged in to the target application, the target application is an application corresponding to the target device, and the target account is an account that sends the first request instruction to the cloud server; sending a second request instruction to the target device includes: when a communication connection is established between the terminal device and the target device, sending the second request instruction to the target device.

[0011] In an exemplary embodiment, after sending a second request instruction to the target device, the method further includes: obtaining response information sent by the target device in response to the second request instruction; and when the response information is used to indicate that the target device has successfully added the target biometric information or successfully deleted the target biometric information in the biometric information list, sending a recording instruction to the cloud server, wherein the recording instruction is used to instruct the cloud server to record target operation information, wherein the target operation information includes: a target account has added the target biometric information or deleted the target biometric information in the target device, and the target account is the account that sent the first request instruction to the cloud server.

[0012] In an exemplary embodiment, obtaining the first key and target random number sent by the cloud server in response to the request instruction includes: obtaining the first key and target random number sent by the cloud server in response to the request instruction when the target account is verified, wherein the target account is the account that sends the first request instruction to the cloud server.

[0013] In an exemplary embodiment, before the acquired target biometric information is processed based on the first key to obtain encrypted data, the method further includes: collecting the target biometric information through a terminal device, wherein the terminal device has a target application, a target account is logged in to the target application, the target application is the application corresponding to the target device, and the target account is the account that sends the first request instruction to the cloud server; or obtaining the target biometric information sent by a specific account, wherein the specific account is the account corresponding to the target application.

[0014] According to another aspect of an embodiment of the present application, an information updating device is also provided, including: a first sending module, used to send a first request instruction to a cloud server, and obtain a first key and a target random number sent by the cloud server in response to the first request instruction, wherein the first request instruction is used to request to add or delete biometric information in a target device, and the first key is a key generated by the cloud server using a first preset algorithm according to the target random number and the device information of the target device; a processing module, used to process the acquired target biometric information based on the first key to obtain encrypted data, wherein the biometric information includes the target biometric information; a second sending module, used to send a second request instruction to the target device, wherein the second request instruction carries: the encrypted data, the target random number and the first request instruction; the second request instruction is used to instruct the target device to generate a reference key based on the target random number and the device information of the target device using the first preset algorithm, and obtain the target biometric information based on the reference key and the encrypted data, and add or delete the target biometric information in the biometric information list of the target device based on the first request instruction.

[0015] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned information updating method when running.

[0016] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the information updating method through the computer program.

[0017] According to another aspect of the embodiments of the present application, a computer program product is provided, including a computer program, and the above-mentioned information updating method is implemented when the computer program is executed by a processor.

[0018] In the present application, the target biometric information is processed by obtaining the first key generated by the cloud server to obtain encrypted data, the encrypted data is sent to the target device, and then the target device is instructed to obtain the target biometric information based on the reference key generated by the target device and the encrypted data, and the obtained target biometric information is added or deleted from the biological list of the target device. By combining the operation instructions with the encryption processing of the biometric information, the biometric information is safely added or deleted between different devices, avoiding the need to enter the biometric information only on the target device, thereby solving the problem of strong limitations in the process of entering information in traditional smart door locks. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0021] Figure 1 is a schematic diagram of a hardware environment of an information updating method according to an embodiment of the present application;

[0022] Figure 2 is a flow chart of an information updating method according to an embodiment of the present application;

[0023] Figure 3 is a timing diagram of an optional information update according to an embodiment of the present application;

[0024] Figure 4 is a structural block diagram of an information updating device according to an embodiment of the present application;

[0025] Figure 5 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and 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 those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] According to one aspect of an embodiment of the present application, an information update method is provided. The information update method is widely used in smart home (Smart Home), smart home, smart home device ecology, smart residential (IntelligenceHouse) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above information update method can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.

[0029] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.

[0030] In order to solve the above problems, an information updating method is provided in this embodiment, including but not limited to being applied in the whole house intelligent digital control application scenario. Figure 2 This is a flow chart of an information updating method according to an embodiment of the present application, the execution subject is a terminal device, and the process includes the following steps S202-S206:

[0031] Step S202: Sending a first request instruction to a cloud server, and obtaining a first key and a target random number sent by the cloud server in response to the first request instruction, wherein the first request instruction is used to request to add or delete biometric information in a target device, and the first key is a key generated by the cloud server using a first preset algorithm according to the target random number and device information of the target device;

[0032] Optionally, the biometric information includes, but is not limited to: the user's fingerprint information, facial information, iris information, voiceprint information, and palm vein information.

[0033] Optionally, the target device includes but is not limited to: a smart door lock.

[0034] Optionally, the cloud server combines the target random number and device information (such as device identifier (ID), device type, device serial number, etc.) as the basis for key generation, and uses a first preset algorithm to generate a unique first key bound to the device, wherein the first preset algorithm includes but is not limited to: hash algorithm, key derivation function based on hash algorithm, public key encryption algorithm.

[0035] It should be noted that the first preset algorithm can be a single algorithm or a combination of multiple algorithms.

[0036] Alternatively, if Figure 3 As shown, the user sends a first request instruction to the cloud server through the target application in the terminal device (for example, the target application in the mobile phone corresponding to the target device) to request to add biometric information (fingerprint, face, etc.) or delete biometric information; after receiving the request, the cloud server generates multiple random numbers, and randomly selects a random number from the multiple random numbers as the target random number, and uses the target random number and the specific device information of the target device to generate a first key using a first preset algorithm to ensure the uniqueness and security of the first key, wherein the target random number can increase the uncertainty and difficulty in the communication process to prevent the communication content from being predicted or replayed.

[0037] Step S204: Processing the acquired target biometric information based on the first key to obtain encrypted data, wherein the biometric information includes the target biometric information;

[0038] Step S206: Send a second request instruction to the target device, wherein the second request instruction carries: the encrypted data, the target random number and the first request instruction; the second request instruction is used to instruct the target device to use the first preset algorithm to generate a reference key according to the target random number and the device information of the target device, and obtain the target biometric information based on the reference key and the encrypted data, and add or delete the target biometric information in the biometric information list of the target device based on the first request instruction.

[0039] Alternatively, if Figure 3As shown, after obtaining the target biometric information, the target device verifies the format of the target biometric information to determine whether the format of the target biometric information is consistent with the data format in the biometric information list of the target device. When it is determined that the format of the target biometric information is consistent with the data format in the biometric information list of the target device, the target biometric information is added or deleted from the biometric information list of the target device based on the first request instruction.

[0040] It should be noted that the generation and use of the first key ensures that the encryption and decryption process of the target biometric information is only completed between three trusted endpoints (terminal application, cloud server and target device), avoiding data leakage in the middle; the introduction of target random numbers increases the uncertainty of the system and the difficulty of attack, and improves the security of communication; through the cloud server as an intermediary, the terminal device can remotely and securely manage the biometric information of the target device without the user of the terminal device having to go to the local location of the target device to perform operations in person, greatly improving the convenience and overall security of the system.

[0041] In the above steps, the target biometric information is processed by obtaining the first key generated by the cloud server to obtain encrypted data, the encrypted data is sent to the target device, and then the target device is instructed to obtain the target biometric information based on the reference key generated by the target device and the encrypted data, and the obtained target biometric information is added or deleted from the biological list of the target device. By combining the operation instructions with the biometric information encryption processing, the biometric information can be safely added or deleted between different devices, avoiding the biometric information only being entered on the target device, thereby solving the problem of strong limitations in the process of entering information in traditional smart door locks.

[0042] In an exemplary embodiment, the acquired target biometric information is processed based on the first key to obtain encrypted data, which can be achieved through the following steps: the target biometric information is encrypting using the first key to obtain the encrypted data; wherein the target device decrypts the encrypted data based on the reference key to obtain the target biometric information.

[0043] Optionally, the terminal device can use the first key to directly encrypt the acquired target biological information. When the target device obtains the second request instruction, it will use the first preset algorithm to generate a reference key based on the target random number carried by the second request instruction and the local device information of the target device (the same device information used by the cloud server to generate the first key). The reference key is consistent with the first key, so that the target device can decrypt the encrypted data according to the reference key to obtain the target biological information.

[0044] It should be noted that the first preset algorithm is an algorithm agreed upon by the cloud server and the target device in a pre-set phase, so the reference key generated by the target device using the first preset algorithm is consistent with the first key generated by the cloud server using the first preset algorithm.

[0045] Optionally, the terminal device uses the first key to encrypt the target biometric information, and the second request instruction sent to the target device does not carry the first key, thereby ensuring the information security during the transmission of the encrypted data. Even if the encrypted data is intercepted, the attacker cannot obtain the target biometric information without the corresponding first key for decryption, thereby significantly improving the security of remote data transmission.

[0046] In an exemplary embodiment, the acquired target biometric information is processed based on the first key to obtain encrypted data, which can be achieved by the following steps S11-S12:

[0047] Step S11: using a second preset algorithm to generate a second key based on the first key and account information of a target account, wherein the target account is the account that sends the first request instruction to the cloud server;

[0048] Optionally, the second preset algorithm includes, but is not limited to: a symmetric encryption algorithm (such as an Advanced Encryption Standard algorithm (AES for short)), a cryptographic hash function.

[0049] Alternatively, if Figure 3 As shown, the terminal device will, based on the first key, concatenate the account information of the target account (such as the user's identity identifier) ​​and use the second preset algorithm to obtain the second key.

[0050] Step S12: Use the second key to encrypt the target biometric information to obtain the encrypted data; wherein the second request instruction also carries the account information of the target account; the second request instruction is used to instruct the target device to use the second preset algorithm after generating the reference key, generate the second key according to the reference key and the account information of the target account, and use the second key to decrypt the encrypted data to obtain the target biometric information.

[0051] It should be noted that the use of the second key to encrypt the target biometric information is similar to adding an extra security layer to the target biometric information. Even if the first key is leaked, the attacker cannot generate the second key without the correct account information of the target account, which increases the difficulty for the attacker to decrypt the encrypted data.

[0052] Optionally, the second request instruction also carries the first key, such as Figure 3 As shown, after receiving the second request instruction, the target device first generates a reference key based on the target random number and the device information of the target device using the first preset algorithm, and verifies whether the reference key is consistent with the first key carried in the second request instruction. If they are consistent, the target device then uses the second preset algorithm to generate a second key based on the reference key and the account information of the target account, and finally uses the second key to decrypt the encrypted data to obtain the target biometric information.

[0053] It should be noted that through the generation and use of the second key, it is ensured that only users with correct account information can operate the smart door lock, thereby enhancing the authority control of remote management; the double encryption mechanism encrypts biometric information on the one hand and operation instructions on the other hand, ensuring the security of data and instructions; by verifying the consistency of the first key and the reference key, and using the second key for decryption, the accurate execution of the operation and the security of data transmission are ensured.

[0054] In an exemplary embodiment, after the acquired target biometric information is processed based on the first key to obtain encrypted data, the method further includes the following steps: when the terminal device and the target device have not established a communication connection, storing the second request instruction in a target storage area of ​​the terminal device, wherein the terminal device has a target application, a target account is logged in to the target application, the target application is an application corresponding to the target device, and the target account is an account that sends the first request instruction to the cloud server;

[0055] In an exemplary embodiment, sending the second request instruction to the target device includes the following steps: when the terminal device has established a communication connection with the target device, sending the second request instruction to the target device.

[0056] Alternatively, if Figure 3 As shown, the terminal device can locally store the encrypted target biometric information and related instructions (including the first key and target account information) without establishing a communication connection with the target device. Once the target device (smart door lock) and the terminal device (such as the user's mobile phone) re-establish a communication connection (for example, via Bluetooth or a local area network), the terminal device can send a second request instruction to the target device, requesting the execution of the corresponding biometric information management operation.

[0057] It should be noted that, through the above steps, the terminal device and the smart door lock can still save the first key and request instruction when no communication connection is established, thereby maintaining the availability and security of the remote information entry operation. Moreover, the above steps can also enable the terminal device to quickly synchronize and process biometric information data after restoring the communication connection with the target device even in a scenario where the communication capability is temporarily lost, thereby ensuring that the remote management of the smart door lock will not be affected by the instability of the network connection.

[0058] In an exemplary embodiment, after sending the second request instruction to the target device, the method further includes the following steps S21-S22:

[0059] Step S21: Acquire response information sent by the target device in response to the second request instruction;

[0060] Alternatively, if Figure 3 As shown, the target device will send a response message in response to the second request instruction, and the response message is used to indicate that the target device has successfully added the target biometric information to the biometric information list, or successfully deleted the target biometric information, or failed to add the target biometric information, or failed to delete the target biometric information.

[0061] It should be noted that the terminal device obtains the response information of the target device (smart door lock) in response to the second request instruction, and can confirm in real time whether the operation of adding or deleting biometric information is successfully executed. This provides a timely feedback mechanism for users and increases the transparency of operations.

[0062] Step S22: When the response information is used to indicate that the target device has successfully added the target biometric information or successfully deleted the target biometric information in the biometric information list, a recording instruction is sent to the cloud server, wherein the recording instruction is used to instruct the cloud server to record target operation information, wherein the target operation information includes: the target account has added the target biometric information or deleted the target biometric information in the target device, and the target account is the account that sent the first request instruction to the cloud server.

[0063] Optionally, when the response information is used to indicate that the target device fails to add the target biometric information to the biometric information list or fails to delete the target biometric information, the terminal device correspondingly deletes the target biometric information locally on the terminal device and sends a prompt information, wherein the prompt information is used to prompt the target device that the target device fails to add the target biometric information to the biometric information list or fails to delete the target biometric information, and to reacquire the target biometric information.

[0064] Optionally, after obtaining the response information, the terminal device will send a recording instruction to the cloud server within a preset time (eg, 48 hours).

[0065] It should be noted that by sending recording instructions to the cloud server, it helps ensure data consistency between the cloud server and the target device. The cloud server can record the specific information of each operation, including the initiating account (target account), target device, operation type (adding or deleting biometric information), and operation time. These records are important for tracking operation history, auditing security events, and restoring system status when necessary.

[0066] In an exemplary embodiment, obtaining the first key and target random number sent by the cloud server in response to the request instruction includes the following steps: obtaining the first key and target random number sent by the cloud server in response to the request instruction when the target account is verified, wherein the target account is the account that sends the first request instruction to the cloud server.

[0067] Alternatively, if Figure 3 As shown, before obtaining the first key and target random number sent by the cloud server in response to the request instruction, the terminal device will verify the authority of the target account through the account information of the target account (such as the account ID of the target account), to ensure that only the authorized target account can request to remotely add or delete the target biometric information on the target device. Only when the cloud server verifies the target account, the cloud server will send the first key and target random number, thereby increasing the security of the system.

[0068] Optionally, when the cloud server fails to verify the target account, a rejection prompt message will be sent, and the rejection prompt message is used to prompt that the target account currently logged in to the terminal device is not authorized.

[0069] It should be noted that the above steps enhance the encryption security of remote operations and improve the overall security of the system.

[0070] In an exemplary embodiment, before the acquired target biometric information is processed based on the first key to obtain encrypted data, the method further includes the following steps S31 or S32:

[0071] Step S31: collecting the target biometric information through a terminal device, wherein the terminal device has a target application, a target account is logged in to the target application, the target application is an application corresponding to the target device, and the target account is an account that sends the first request instruction to the cloud server;

[0072] Optionally, through step S31, the user installs and logs in to the target application on the terminal device (such as a smart phone), which is an official or supporting application of the target device (such as a smart door lock) and is used to manage the biometric information of the door lock. The terminal device directly participates in the biometric information collection process and provides the user with an intuitive operation interface. The terminal device is integrated with a biometric information collection module, such as a fingerprint sensor or a facial recognition camera, to capture the user's biometric data.

[0073] Step S32: Acquire the target biometric information sent by a specific account, wherein the specific account is an account corresponding to the target application.

[0074] Optionally, through step S32, other users can be allowed to send biometric information to a target account after the specific account has collected biometric information. The terminal device logged into the target account can send the target biometric information sent by the specific account to the target device. For example, in a scenario where family members share access rights to smart door locks, after one of them collects biometric information, the biometric information can be securely transmitted to the accounts of other family members, without the need for each member to log in to a specific account to collect biometric information. The method of sending biometric information through a specific account improves the convenience of updating or modifying biometric information.

[0075] Through the above two methods, not only a user-friendly biometric information collection and management process is provided, but also the security and privacy protection of biometric information is ensured, providing users with an efficient and safe remote operation experience.

[0076] In an exemplary embodiment, the method further includes the following steps: real-time monitoring of the record log of the cloud server, and sending an alarm message when the number of target operation information recorded in the record log exceeds a preset number within a preset time period, wherein the record log is used to store multiple target operation information recorded by the cloud server, and the alarm message is used to warn the target account of security risks.

[0077] Optionally, for example, within thirty minutes, the terminal device sends encrypted data including the target biometric information to the target device ten times, and each time the target device successfully adds the target biometric information, the cloud server records the success of this operation. If within the thirty minutes, the terminal device sends encrypted data to the target device for the eleventh time, the terminal device will send an alarm message.

[0078] Obviously, the above-described embodiments are only part of the embodiments of the present application, not all of the embodiments. In order to better understand the above method, the above process is described below in conjunction with the embodiments, but it is not used to limit the technical solution of the embodiments of the present application. Optionally, when the terminal device is a mobile phone and the target device is a smart door lock:

[0079] When the user has bound a smart door lock (wireless network door lock or Bluetooth door lock) in the corresponding application on the mobile phone:

[0080] 1. Initiate editing request: The mobile application initiates user editing request, including adding, deleting, modifying and other operations;

[0081] 2. Information collection: If adding, modifying, etc., it is necessary to collect user information (fingerprint / face) through smart devices, and save the information according to the user's group editing, etc., and remove the user information if deleted;

[0082] 3. Data transmission: The edited information is encrypted and stored. If the mobile application has established communication with the smart door lock (remote / Bluetooth), the user decides whether to synchronize the data to the smart door lock immediately. If no communication is established, the user is prompted to synchronize the data to the smart door lock when the mobile application is connected to the smart door lock.

[0083] 4. Information storage and verification: After the smart door lock receives the fingerprint or face information, it will decrypt it and encrypt it again according to the rules for storage. During verification, the smart door lock processes the user information (face / fingerprint) attempting to unlock according to the rules and compares it with the stored information to decide whether to unlock the door.

[0084] Specifically, Figure 3 As shown:

[0085] 1. The application requests to add / edit a user, carrying information such as the user ID;

[0086] 2. The cloud server verifies the user's permissions based on the user ID;

[0087] 3. When the verification is passed, the cloud server generates a random number and confirms the target random number. According to the device factory information, the target random number, etc., it generates encryption key1 (the first key mentioned above);

[0088] 4. If the user does not have permission, return a rejection;

[0089] 5. If the user has permission, it returns permission and carries the target random number (random1) to encrypt key1;

[0090] 6. The application end encrypts key1, concatenates the user ID and other information, performs secondary encryption, and calculates the new encryption key2 (the above-mentioned second key);

[0091] 7. The application initiates the collection of user biometric information, assembles the data in a special format, and symmetrically encrypts the data using encryption key2;

[0092] 8. When no communication connection is established with the smart door lock, the user end saves the currently collected user information locally, including the target random number random1, encryption key1, encrypted data, etc.;

[0093] 9. The subsequent application establishes a communication connection with the smart door lock and starts to execute the subsequent steps;

[0094] 10. The application reads user information;

[0095] 11. The application transmits the encrypted data, target random number, and encrypted key1 to the device (smart door lock);

[0096] 12. The device generates and verifies the encryption key based on the target random number, factory information, etc. according to the cloud's pre-set encryption method;

[0097] 13. If the encryption key1 verification on the device fails, a failure message is returned;

[0098] 14. If the verification is passed, the device calculates encryption key2 through encryption key1 and the agreed encryption method, and decrypts the encrypted data transmitted;

[0099] 15. The device decrypts the data, unpacks it, verifies the format, and performs corresponding addition, deletion, and modification logic based on the data content;

[0100] 16. The device returns the information that the user has been successfully added;

[0101] 17. The application prompts the user that the addition is successful and the device is to be synchronized. The validity period is 48 hours. If the synchronization is not completed within 48 hours, the addition will be withdrawn.

[0102] 18. The application edits the user's information (including the current operation information, such as adding biometric information) and synchronizes it with the cloud server (excluding the collected user biometric information);

[0103] 19. The cloud server records this operation as unsynchronized. If no synchronization result is received within 48 hours, the data will be cleared.

[0104] 20. The results will be synchronized to the cloud server within 48 hours.

[0105] It should be noted that the present application also has the following advantages: directly collecting user data from security devices and modifying the method of collecting and synchronizing through media allows users to operate more conveniently and is no longer limited to operating in person in front of the door lock. Even if the device is not connected, one-click synchronization can be performed afterwards, and multiple security checks on the data are added, so security can be guaranteed.

[0106] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0107] In the present embodiment, an information updating device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions thereof will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and contemplated.

[0108] Figure 4 : is a structural block diagram of an information updating device according to an embodiment of the present application, the device comprising:

[0109] A first sending module 42 is used to send a first request instruction to a cloud server, and obtain a first key and a target random number sent by the cloud server in response to the first request instruction, wherein the first request instruction is used to request to add or delete biometric information in a target device, and the first key is a key generated by the cloud server using a first preset algorithm according to the target random number and device information of the target device;

[0110] A processing module 44, configured to process the acquired target biometric information based on the first key to obtain encrypted data, wherein the biometric information includes the target biometric information;

[0111] The second sending module 46 is used to send a second request instruction to the target device, wherein the second request instruction carries: the encrypted data, the target random number and the first request instruction; the second request instruction is used to instruct the target device to use the first preset algorithm to generate a reference key according to the target random number and the device information of the target device, and obtain the target biometric information based on the reference key and the encrypted data, and add or delete the target biometric information in the biometric information list of the target device based on the first request instruction.

[0112] The above-mentioned device processes the target biometric information by obtaining the first key generated by the cloud server to obtain encrypted data, sends the encrypted data to the target device, and then instructs the target device to obtain the target biometric information based on the reference key and encrypted data generated by the target device, and adds or deletes the obtained target biometric information in the biological list of the target device. By combining the operation instructions with the biometric information encryption processing, it is possible to safely add or delete biometric information between different devices, avoiding the situation where biometric information can only be entered on the target device, thereby solving the problem that the process of entering information in traditional smart door locks is highly limited.

[0113] In an exemplary embodiment, the processing module 44 is further configured to encrypt the target biometric information using the first key to obtain the encrypted data; wherein the target device decrypts the encrypted data based on the reference key to obtain the target biometric information.

[0114] In an exemplary embodiment, the processing module 44 is also used to use a second preset algorithm to generate a second key based on the first key and the account information of the target account, wherein the target account is the account that sends the first request instruction to the cloud server; use the second key to encrypt the target biometric information to obtain the encrypted data; wherein the second request instruction also carries the account information of the target account; the second request instruction is used to instruct the target device to use the second preset algorithm to generate the second key based on the reference key and the account information of the target account after generating the reference key, and use the second key to decrypt the encrypted data to obtain the target biometric information.

[0115] In an exemplary embodiment, the above-mentioned device also includes: a storage module, which is used to process the target biometric information obtained based on the first key pair to obtain encrypted data, and then store the second request instruction in the target storage area of ​​the terminal device when no communication connection is established between the terminal device and the target device, wherein the terminal device has a target application, and a target account is logged in to the target application, the target application is the application corresponding to the target device, and the target account is the account that sends the first request instruction to the cloud server; a second sending module 46 is also used to send the second request instruction to the target device when a communication connection is established between the terminal device and the target device.

[0116] In an exemplary embodiment, the second sending module 46 is also used to obtain response information sent by the target device in response to the second request instruction; the above-mentioned device also includes: a sending module, which is used to send a recording instruction to the cloud server when the response information is used to indicate that the target device has successfully added the target biometric information or successfully deleted the target biometric information in the biometric information list, wherein the recording instruction is used to instruct the cloud server to record target operation information, wherein the target operation information includes: the target account has added the target biometric information or deleted the target biometric information in the target device, and the target account is the account that sends the first request instruction to the cloud server.

[0117] In an exemplary embodiment, the first sending module 42 is also used to obtain the first key and target random number sent by the cloud server in response to the request instruction when the target account is verified, wherein the target account is the account that sends the first request instruction to the cloud server.

[0118] In an exemplary embodiment, the above-mentioned device also includes: a collection module, which is used to collect the target biometric information through a terminal device, wherein the terminal device has a target application, a target account is logged in to the target application, the target application is the application corresponding to the target device, and the target account is the account that sends the first request instruction to the cloud server; or obtain the target biometric information sent by a specific account, wherein the specific account is the account corresponding to the target application.

[0119] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0120] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0121] S1, sending a first request instruction to a cloud server, and obtaining a first key and a target random number sent by the cloud server in response to the first request instruction, wherein the first request instruction is used to request to add or delete biometric information in a target device, and the first key is a key generated by the cloud server using a first preset algorithm according to the target random number and device information of the target device;

[0122] S2, processing the acquired target biometric information based on the first key to obtain encrypted data, wherein the biometric information includes the target biometric information;

[0123] S3, sending a second request instruction to the target device, wherein the second request instruction carries: the encrypted data, the target random number and the first request instruction; the second request instruction is used to instruct the target device to use the first preset algorithm to generate a reference key according to the target random number and the device information of the target device, and obtain the target biometric information based on the reference key and the encrypted data, and add or delete the target biometric information in the biometric information list of the target device based on the first request instruction.

[0124] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0125] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0126] The embodiment of the present application also provides an electronic device, such as Figure 5 As shown, the electronic device includes a memory 502 and a processor 504. The memory 502 stores a computer program, and the processor 504 is configured to execute the steps in any of the above method embodiments through the computer program.

[0127] Optionally, in this embodiment, the processor 504 may be configured to perform the following steps through a computer program:

[0128] S1, sending a first request instruction to a cloud server, and obtaining a first key and a target random number sent by the cloud server in response to the first request instruction, wherein the first request instruction is used to request to add or delete biometric information in a target device, and the first key is a key generated by the cloud server using a first preset algorithm according to the target random number and device information of the target device;

[0129] S2, processing the acquired target biometric information based on the first key to obtain encrypted data, wherein the biometric information includes the target biometric information;

[0130] S3, sending a second request instruction to the target device, wherein the second request instruction carries: the encrypted data, the target random number and the first request instruction; the second request instruction is used to instruct the target device to use the first preset algorithm to generate a reference key according to the target random number and the device information of the target device, and obtain the target biometric information based on the reference key and the encrypted data, and add or delete the target biometric information in the biometric information list of the target device based on the first request instruction.

[0131] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0132] Alternatively, a person skilled in the art may understand that: Figure 5 The structure shown is for illustration only. Figure 5 The structure of the electronic device is not limited. For example, the electronic device may also include Figure 5 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 5 Different configurations shown.

[0133] Among them, the memory 502 can be used to store software programs and modules, such as the program instructions / modules corresponding to the information update method and device in the embodiments of the present application. The processor 504 executes various functional applications and data processing by running the software programs and modules stored in the memory 502, that is, to implement the above-mentioned information update method. The memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 502 may further include a memory remotely located relative to the processor 504, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 502 can be specifically, but not limited to, used to store information such as system configuration files. As an example, such as Figure 5 As shown, the memory 502 may include, but is not limited to, the first sending module 42, the processing module 44 and the second sending module 46 in the information updating device.

[0134] Optionally, the transmission device 506 is used to receive or send data via a network. Specific examples of the network may include wired networks and wireless networks. In one example, the transmission device 506 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 506 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0135] In addition, the electronic device further includes: a display 508; and a connection bus 510, which is used to connect various module components in the electronic device.

[0136] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0137] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0138] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any one of the above method embodiments.

[0139] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0140] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0141] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for updating information, characterized in that: include: Sending a first request instruction to a cloud server, and obtaining a first key and a target random number sent by the cloud server in response to the first request instruction, wherein the first request instruction is used to request to add or delete biometric information in a target device, and the first key is a key generated by the cloud server using a first preset algorithm according to the target random number and device information of the target device; Processing the acquired target biometric information based on the first key to obtain encrypted data, wherein the biometric information includes the target biometric information; A second request instruction is sent to the target device, wherein the second request instruction carries: the encrypted data, the target random number and the first request instruction; the second request instruction is used to instruct the target device to use the first preset algorithm to generate a reference key according to the target random number and the device information of the target device, and obtain the target biometric information based on the reference key and the encrypted data, and add or delete the target biometric information in the biometric information list of the target device based on the first request instruction.

2. The method according to claim 1, characterized in that The acquired target biological information is processed based on the first key to obtain encrypted data, including: Using the first key to encrypt the target biometric information to obtain the encrypted data; The target device decrypts the encrypted data based on the reference key to obtain the target biometric information.

3. The method according to claim 1, characterized in that The acquired target biological information is processed based on the first key to obtain encrypted data, including: Using a second preset algorithm, generating a second key based on the first key and account information of a target account, wherein the target account is an account that sends the first request instruction to the cloud server; encrypting the target biometric information using the second key to obtain the encrypted data; Among them, the second request instruction also carries the account information of the target account; the second request instruction is used to instruct the target device to use the second preset algorithm to generate the second key according to the reference key and the account information of the target account after generating the reference key, and use the second key to decrypt the encrypted data to obtain the target biometric information.

4. The method according to claim 1, characterized in that After processing the acquired target biometric information based on the first key to obtain encrypted data, the method further includes: when no communication connection is established between the terminal device and the target device, storing the second request instruction in a target storage area of ​​the terminal device, wherein the terminal device has a target application, a target account is logged in to the target application, the target application is an application corresponding to the target device, and the target account is an account that sends the first request instruction to the cloud server; sending the second request instruction to the target device includes: when a communication connection is established between the terminal device and the target device, sending the second request instruction to the target device.

5. The method according to claim 1, characterized in that After sending the second request instruction to the target device, the method further includes: Acquire response information sent by the target device in response to the second request instruction; When the response information is used to indicate that the target device has successfully added the target biometric information or successfully deleted the target biometric information in the biometric information list, a record instruction is sent to the cloud server, wherein the record instruction is used to instruct the cloud server to record target operation information, wherein the target operation information includes: the target account has added the target biometric information or deleted the target biometric information in the target device, and the target account is the account that sends the first request instruction to the cloud server.

6. The method according to claim 1, characterized in that Acquiring a first key and a target random number sent by the cloud server in response to the request instruction, including: Obtaining a first key and a target random number sent by the cloud server in response to the request instruction when the target account is successfully verified, wherein the target account is the account that sends the first request instruction to the cloud server.

7. The method according to claim 1, characterized in that Before the acquired target biological information is processed based on the first key to obtain encrypted data, the method further includes: The target biometric information is collected through a terminal device, wherein the terminal device has a target application, a target account is logged into the target application, the target application is an application corresponding to the target device, and the target account is an account that sends the first request instruction to the cloud server; or The target biological information sent by a specific account is obtained, wherein the specific account is an account corresponding to the target application.

8. An information updating device, characterized in that: include: A first sending module, used to send a first request instruction to a cloud server, and obtain a first key and a target random number sent by the cloud server in response to the first request instruction, wherein the first request instruction is used to request to add or delete biometric information in a target device, and the first key is a key generated by the cloud server using a first preset algorithm according to the target random number and device information of the target device; a processing module, configured to process the acquired target biometric information based on the first key to obtain encrypted data, wherein the biometric information includes the target biometric information; A second sending module is used to send a second request instruction to the target device, wherein the second request instruction carries: the encrypted data, the target random number and the first request instruction; the second request instruction is used to instruct the target device to use the first preset algorithm to generate a reference key according to the target random number and the device information of the target device, and obtain the target biometric information based on the reference key and the encrypted data, and add or delete the target biometric information in the biometric information list of the target device based on the first request instruction.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 7 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.

Citation Information

Patent Citations

  • Secure communication method based on intelligent door lock system and intelligent door lock system

    CN107038777A

  • Method, device and system for updating vehicle electronic key

    CN111402464A

  • Intelligent door lock remote control method, device, and system, equipment and storage medium

    CN113674455A

  • Data processing method and device, computer readable storage medium and electronic equipment

    CN115085983A

  • Digital key deleting method, device, equipment, system and storage medium

    CN115116162A

Cited By

  • One-time pad biological information encryption transmission method, device, equipment and medium

    CN120614159A