Intelligent door lock encryption communication method and system, terminal and storage medium

By using multiple keys in smart door locks for encryption and decryption of communication, the data leakage problem caused by a single key in the prior art is solved, and the network security of smart door locks is improved.

CN119274253AActive Publication Date: 2025-01-07SHENZHEN KAADAS INTELLIGENT TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411402596.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2025-01-07
Estimated Expiration
2044-10-09

AI Technical Summary

Technical Problem

When the existing smart door lock is connected to the server through a network, it uses a single key for encryption and decryption, which poses a risk of cracking and leads to data leakage.

Method used

By obtaining the device number, generating the network distribution password and communication key, decrypting the data after verification, generating the second communication key to send to the server, receiving the third communication key generated by the server, using multiple keys for encrypting communication, ensuring the data Safety.

Benefits of technology

Improve data security, prevent hacker attacks and data leakage, reduce the risk of a single key being cracked, and achieve the security and reliability of encrypted communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119274253A_ABST
    Figure CN119274253A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent door lock encryption communication method and system, a terminal and a storage medium, and the method comprises the steps: obtaining an equipment number, if the equipment number belongs to a preset equipment number stored in a server, obtaining a first communication key according to the preset equipment number, and generating a network distribution password according to the first communication key; if the network distribution password is successfully matched with the stored preset password, decrypting the received first data content to obtain a communication address, and sending a second communication key generated by the first communication key to the server according to the communication address; receiving a third communication key sent by the server, wherein the third communication key is generated by the server through the second communication key; and receiving a temporary password generated by the server, and if the target password generated by the intelligent door lock is the same as the temporary password, encrypting information for communicating with the server by using a third communication key. According to the invention, encryption and decryption communication are carried out by using multiple secret keys in the encryption process of the equipment, so that the data security is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to an intelligent door lock encryption communication method, system, terminal and computer-readable storage medium. Background Art

[0002] In recent years, the current smart lock technology has been continuously improving and integrating more advanced functions, such as biometrics, remote control, temporary password generation, and remote key distribution. The data collected by smart locks (such as door opening and closing records, fingerprints, and facial information) has triggered discussions among users about privacy protection. With the increase in data leakage incidents, users' awareness of protecting personal sensitive information has increased. With the continuous evolution of network security threats, smart lock manufacturers are paying more and more attention to product encryption and security protocols to prevent hacker attacks and data leakage. Therefore, how to encrypt the communication between devices when connecting to the server has become a problem that needs to be solved urgently.

[0003] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0004] The main purpose of the present invention is to provide a smart door lock encryption communication method, system and computer-readable storage medium, aiming to solve the problem in the prior art that when the device is connected to the server through a network, the device uses a single key for encryption and decryption during the encryption process, which poses a risk of cracking and thus leads to data leakage.

[0005] To achieve the above object, the present invention provides a smart door lock encryption communication method, the smart door lock encryption communication method comprising the following steps:

[0006] Obtaining a device number, and if the device number belongs to a preset device number stored in the server, obtaining a first communication key according to the preset device number, and generating a network configuration password according to the first communication key;

[0007] If the network configuration password successfully matches the stored preset password, the received first data content is decrypted to obtain the communication address, and the second communication key generated by the first communication key is sent to the server according to the communication address;

[0008] receiving a third communication key sent by the server, wherein the third communication key is generated by the server according to the second communication key;

[0009] Receive the temporary password generated by the server. If the target password generated by the smart door lock is the same as the temporary password, encrypt the information communicated with the server according to the third communication key.

[0010] Optionally, the smart door lock encryption communication method, wherein the device number is obtained, if the device number belongs to a preset device number stored in the server, a first communication key is obtained according to the preset device number, and a network configuration password is generated according to the first communication key, specifically including:

[0011] Obtaining a device number, and matching the device number with a preset device number stored in the server;

[0012] If the match is successful, the first communication key associated with the successfully matched preset device number is obtained, and the network configuration password is generated according to the first communication key.

[0013] Optionally, the smart door lock encryption communication method, wherein if the network configuration password successfully matches the stored preset password, the received first data content is decrypted to obtain a communication address, and the second communication key generated by the first communication key is sent to the server according to the communication address, specifically comprising:

[0014] Matching the network configuration password with the stored preset password, if the match is successful, receiving the first data content assigned by the server, decrypting the first data content according to the first communication key, and obtaining the communication address;

[0015] A second communication key is generated according to the first communication key, and the second communication key is sent to the server according to the communication address.

[0016] Optionally, the smart door lock encryption communication method, wherein the receiving server generates a temporary password, if the target password generated by the smart door lock is the same as the temporary password, encrypting the information communicated with the server according to the third communication key, specifically includes:

[0017] generating a target password according to the third communication key, and sending the target password to a server, and receiving a comparison result of the temporary password generated by the server and the target password;

[0018] If the comparison result is that the temporary password and the target password are the same, the information communicated with the server is encrypted using the third communication key.

[0019] Optionally, the smart door lock encryption communication method, wherein the smart door lock encryption communication method further comprises:

[0020] Obtaining the life cycle of the second communication key and the life cycle of the third communication key;

[0021] When the server and the device perform encrypted communication, determining whether the life cycle of the second communication key and the life cycle of the third communication key meet a preset period;

[0022] If the life cycle of the second communication key and the life cycle of the third communication key meet the preset period, an update instruction is obtained, and the life cycle of the second communication key and the life cycle of the third communication key are updated according to the update instruction.

[0023] Optionally, the smart door lock encryption communication method, wherein the smart door lock encryption communication method further comprises:

[0024] Decrypt the first data content according to the first communication key to obtain a network configuration timestamp, and determine whether the network configuration timestamp is within a preset time;

[0025] If the network configuration timestamp is within the preset time, the first data content is marked as successfully decrypted.

[0026] Optionally, the smart door lock encryption communication method, wherein the smart door lock encryption communication method further comprises:

[0027] Obtain a network configuration token for a preset time, perform network configuration according to the network configuration token, and generate a network configuration duration;

[0028] It is determined whether the network configuration time exceeds the preset network configuration time. If the network configuration time exceeds the preset network configuration time, the control device automatically logs out of the operation interface.

[0029] In addition, to achieve the above-mentioned purpose, the present invention also provides an intelligent door lock encryption communication system, wherein the intelligent door lock encryption communication system:

[0030] A network configuration password generation module, used to obtain a device number, if the device number belongs to a preset device number stored in the server, obtain a first communication key according to the preset device number, and generate a network configuration password according to the first communication key;

[0031] A first key acquisition module is used to decrypt the received first data content to obtain a communication address if the network configuration password successfully matches the stored preset password, and to generate a second communication key from the first communication key according to the communication address and send it to a server;

[0032] A second key generation module, used for receiving a third communication key sent by the server, wherein the third communication key is generated by the server according to the second communication key;

[0033] The encryption communication module is used to receive a temporary password generated by a server. If the target password generated by the smart door lock is the same as the temporary password, the information communicated with the server is encrypted according to the third communication key.

[0034] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a smart door lock encryption communication program, and when the smart door lock encryption communication program is executed by the processor, the steps of the smart door lock encryption communication method as described above are implemented.

[0035] In the present invention, the device number is obtained. If the device number belongs to the preset device number stored in the server, the first communication key is obtained according to the preset device number, and the network configuration password is generated according to the first communication key; if the network configuration password successfully matches the stored preset password, the received first data content is decrypted to obtain the communication address, and the second communication key generated by the first communication key is sent to the server according to the communication address; the third communication key sent by the server is received, and the third communication key is generated by the server according to the second communication key; the temporary password generated by the server is received, and if the target password generated by the smart door lock is the same as the temporary password, the information communicated with the server is encrypted according to the third communication key. The present invention obtains the communication key and generates the network configuration password by the device number, decrypts the data to obtain the communication address after verifying the password, generates the second communication key and sends it to the server, receives the third communication key and temporary password of the server, and finally encrypts the communication information. The device uses multiple keys to encrypt and decrypt communications during the encryption process, which greatly improves the security of the data. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a flow chart of a preferred embodiment of the intelligent door lock encryption communication method of the present invention;

[0037] Figure 2 It is a flow chart of a preferred embodiment of the intelligent door lock encryption communication method of the present invention;

[0038] Figure 3 It is a schematic diagram of the principle of a preferred embodiment of the intelligent door lock encryption communication system of the present invention;

[0039] Figure 4 It is a schematic diagram of the composition of the terminal control device in a preferred embodiment of the intelligent door lock encryption communication system of the present invention. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0041] There are many deficiencies in the existing technology for encrypted communication of smart door locks. Because the existing smart locks collect data (such as door opening and closing records, fingerprints, and facial information), with the increase of data leakage incidents, the existing encrypted communication cannot use a single key for encryption and decryption during the encryption process, and there is a risk of cracking. Therefore, a smart door lock encrypted communication method is needed. This method not only uses a single key for encryption and decryption during the encryption process when the device is connected to the server, but also prevents hacker attacks and data leakage.

[0042] The smart door lock encryption communication method described in the preferred embodiment of the present invention is as follows: Figure 1 and Figure 2 As shown, the smart door lock encryption communication method includes the following steps:

[0043] Step S10: Obtain a device number. If the device number belongs to a preset device number stored in the server, obtain a first communication key according to the preset device number, and generate a network configuration password according to the first communication key.

[0044] Specifically, obtain the device number (SN), match the device number with the preset device number stored in the server (the device management platform matches the device number input on the page with the existing device number in the database. After a successful match, use the first communication key corresponding to the device number to generate a network configuration password with a validity period of five minutes; if the match fails, log out of the session and the process ends); if the match is successful, obtain the first communication key associated with the successfully matched preset device number (the first communication key is a permanent key written in the production test phase. As a basic key, it plays a basic encryption role when the device has not negotiated with the server to obtain the second communication key and the third communication key. The first communication key is stored in the server database and managed and saved by the platform), and generate a network configuration password based on the first communication key.

[0045] Furthermore, the first data content (data packet) is decrypted according to the first communication key to obtain a network configuration timestamp (the device management platform uses the first communication key to decrypt the received first data content when receiving the connection request, and the decrypted data should be the network configuration timestamp), and it is determined whether the network configuration timestamp is within a preset time; if the network configuration timestamp is within the preset time, the first data content is marked as successfully decrypted (after a successful match, it is determined whether the timestamp is within five minutes, and if so, the first data content is deemed to be successfully decrypted).

[0046] Step S20: If the network configuration password successfully matches the stored preset password, the received first data content is decrypted to obtain a communication address, and a second communication key generated by the first communication key is sent to the server according to the communication address.

[0047] Specifically, the network configuration password is matched with the stored preset password (determine whether the network configuration password can be matched, if the match fails, an error is returned, and the network configuration session is logged out. After the match is successful, it is determined whether the timestamp is within five minutes. If so, the decryption is deemed to be successful). If the match is successful, the first data content assigned by the server is received, and the first data content is decrypted according to the first communication key (PWD1) to obtain the communication address (device address and server address); the second communication key (PWD2) is generated according to the first communication key, and the second communication key is sent to the server according to the communication address (the message sent by the device to the server at this time: the source address is the device address, and the target address is the server address; the reply content is the second communication key, which is randomly generated using the first communication key as a random number seed + the life cycle of the second communication key, the length of the life cycle is customized, and the communication address is encrypted using the first communication key).

[0048] Step S30: receiving a third communication key sent by the server, wherein the third communication key is generated by the server according to the second communication key.

[0049] Specifically, the third communication key (PWD3) sent by the receiving server is generated by the server according to the second communication key (after receiving the data, the server uses the first communication key to decrypt the second communication key + the life cycle of the second communication key, and sets the source address and the target address to the default value before the address is assigned. The default value can be the data of all 0xFF. This custom message format returns the third communication key to the device, using the second communication key + SHA1 of the timestamp + the life cycle of the third communication key. The length of the life cycle is custom, and the communication address is encrypted using the second communication key).

[0050] Furthermore, the life cycle of the second communication key and the life cycle of the third communication key are obtained; when the server and the device perform encrypted communication, it is determined whether the life cycle of the second communication key and the life cycle of the third communication key meet the preset period; if the life cycle of the second communication key and the life cycle of the third communication key meet the preset period, an update instruction is obtained, and the life cycle of the second communication key and the life cycle of the third communication key are updated according to the update instruction (after establishing encrypted communication, it is necessary to determine whether the life cycle of the second communication key and the third communication key is about to expire, and the second communication key and the third communication key are updated in time through instructions before the keys expire).

[0051] Step S40, receiving the temporary password generated by the server. If the target password generated by the smart door lock is the same as the temporary password, the information communicated with the server is encrypted according to the third communication key.

[0052] Specifically, a target password is generated according to the third communication key, and the target password is sent to the server. The device uses the second communication key to decrypt and obtain the third communication key + the life cycle of the third communication key; the third communication key is used as the key key and the TOTP algorithm is used to generate a target password and return it to the server. The communication address is encrypted using the second communication key, and the temporary password generated by the server is received and compared with the target password. The server also uses the third communication key as the key key and the TOTP algorithm to generate a temporary password and compare it with the received target password to obtain a comparison result. If the comparison is successful, a success response is returned; if the comparison result is that the temporary password and the target password are the same, the information communicated with the server is encrypted using the third communication key.

[0053] Beneficial effects of the present invention:

[0054] (1) The present invention uses an encryption scheme to generate a temporary password with a fixed life cycle, which automatically becomes invalid after a period of time.

[0055] (2) The present invention does not require a special encryption chip and will not increase equipment costs.

[0056] (3) In the present invention, the second communication key and the third communication key have a life cycle and can be updated at any time, rather than being valid until unbinding. Users will rarely unbind and update the key during normal use.

[0057] (4) The communication password and key encryption key of the present invention are separated. Even if the communication key is cracked, the key is not transmitted by inscription, and within a certain period of time, the second communication key and the third communication key will be updated.

[0058] (5) The session timeout and re-authentication mechanism of the present invention ensures that the security of the system will not be reduced even during the network configuration process.

[0059] (6) Even if an attacker intercepts a network configuration request, the attacker cannot use the request after the network configuration token expires, thereby effectively preventing a replay attack.

[0060] (7) The present invention uses device-encrypted data packets for identity authentication to ensure that only legitimate devices communicate with the server.

[0061] Furthermore, if Figure 3 As shown, based on the above-mentioned smart door lock encryption communication method, the present invention also provides a smart door lock encryption communication system accordingly, wherein the smart door lock encryption communication system includes:

[0062] The network configuration password generation module 51 is used to obtain a device number, and if the device number belongs to a preset device number stored in the server, obtain a first communication key according to the preset device number, and generate a network configuration password according to the first communication key;

[0063] A first key acquisition module 52 is used to decrypt the received first data content to obtain a communication address if the network configuration password successfully matches the stored preset password, and to send a second communication key generated by the first communication key according to the communication address to a server;

[0064] A second key generation module 53, configured to receive a third communication key sent by the server, wherein the third communication key is generated by the server according to the second communication key;

[0065] The encryption communication module 54 is used to receive the temporary password generated by the server. If the target password generated by the smart door lock is the same as the temporary password, the information communicated with the server is encrypted according to the third communication key.

[0066] Furthermore, if Figure 4 As shown, based on the above-mentioned smart door lock encryption communication method and system, the present invention also provides a terminal accordingly, and the terminal includes a processor 10, a memory 20 and a display 30. Figure 4 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0067] The memory 20 may be an internal storage unit of the terminal in some embodiments, such as a hard disk or memory of the terminal. The memory 20 may also be an external storage device of the terminal in other embodiments, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed in the terminal, such as the program code of the installation terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a smart door lock encryption communication program 40 is stored on the memory 20, and the smart door lock encryption communication program 40 can be executed by the processor 10, thereby realizing the smart door lock encryption communication method in the present application.

[0068] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the smart door lock encryption communication method.

[0069] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.

[0070] In one embodiment, when the processor 10 executes the smart door lock encryption communication program 40 in the memory 20, the following steps are implemented:

[0071] Obtaining a device number, and if the device number belongs to a preset device number stored in the server, obtaining a first communication key according to the preset device number, and generating a network configuration password according to the first communication key;

[0072] If the network configuration password successfully matches the stored preset password, the received first data content is decrypted to obtain the communication address, and the second communication key generated by the first communication key is sent to the server according to the communication address;

[0073] receiving a third communication key sent by the server, wherein the third communication key is generated by the server according to the second communication key;

[0074] Receive the temporary password generated by the server. If the target password generated by the smart door lock is the same as the temporary password, encrypt the information communicated with the server according to the third communication key.

[0075] Wherein, the obtaining of the device number, if the device number belongs to a preset device number stored in the server, obtaining a first communication key according to the preset device number, and generating a network configuration password according to the first communication key, specifically includes:

[0076] Obtaining a device number, and matching the device number with a preset device number stored in the server;

[0077] If the match is successful, the first communication key associated with the successfully matched preset device number is obtained, and the network configuration password is generated according to the first communication key.

[0078] Wherein, if the network configuration password successfully matches the stored preset password, the received first data content is decrypted to obtain the communication address, and the second communication key generated by the first communication key is sent to the server according to the communication address, specifically including:

[0079] Matching the network configuration password with the stored preset password, if the match is successful, receiving the first data content assigned by the server, decrypting the first data content according to the first communication key, and obtaining the communication address;

[0080] A second communication key is generated according to the first communication key, and the second communication key is sent to the server according to the communication address.

[0081] Wherein, the receiving server generates a temporary password, if the target password generated by the smart door lock is the same as the temporary password, encrypting the information communicated with the server according to the third communication key, specifically including:

[0082] generating a target password according to the third communication key, and sending the target password to a server, and receiving a comparison result of the temporary password generated by the server and the target password;

[0083] If the comparison result is that the temporary password and the target password are the same, the information communicated with the server is encrypted using the third communication key.

[0084] Wherein, the smart door lock encryption communication method also includes:

[0085] Obtaining the life cycle of the second communication key and the life cycle of the third communication key;

[0086] When the server and the device perform encrypted communication, determining whether the life cycle of the second communication key and the life cycle of the third communication key meet a preset period;

[0087] If the life cycle of the second communication key and the life cycle of the third communication key meet the preset period, an update instruction is obtained, and the life cycle of the second communication key and the life cycle of the third communication key are updated according to the update instruction.

[0088] Wherein, the smart door lock encryption communication method also includes:

[0089] Decrypt the first data content according to the first communication key to obtain a network configuration timestamp, and determine whether the network configuration timestamp is within a preset time;

[0090] If the network configuration timestamp is within the preset time, the first data content is marked as successfully decrypted.

[0091] Wherein, the smart door lock encryption communication method also includes:

[0092] Obtain a network configuration token for a preset time, perform network configuration according to the network configuration token, and generate a network configuration duration;

[0093] It is determined whether the network configuration time exceeds the preset network configuration time. If the network configuration time exceeds the preset network configuration time, the control device automatically logs out of the operation interface.

[0094] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a smart door lock encryption communication program, and when the smart door lock encryption communication program is executed by a processor, the steps of the smart door lock encryption communication method as described above are implemented.

[0095] In summary, the present invention provides an intelligent door lock encryption communication method and system, the method comprising: obtaining a device number, if the device number belongs to a preset device number stored in a server, obtaining a first communication key according to the preset device number, and generating a network configuration password according to the first communication key; if the network configuration password matches the stored preset password successfully, decrypting the received first data content to obtain a communication address, generating a second communication key according to the communication address, and sending it to the server; receiving a third communication key sent by the server, the third communication key is generated by the server according to the second communication key; receiving a temporary password generated by the server, if the target password generated by the intelligent door lock is the same as the temporary password, then encrypting the information communicated with the server according to the third communication key. The present invention obtains the communication key and generates the network configuration password by the device number, decrypts the data to obtain the communication address after verifying the password, generates the second communication key and sends it to the server, receives the third communication key and temporary password of the server, and finally encrypts the communication information. The device uses multiple keys to encrypt and decrypt communication during the encryption process, which greatly improves the security of the data.

[0096] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or terminal system including the element.

[0097] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.

[0098] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A smart door lock encryption communication method, characterized in that: The smart door lock encryption communication method comprises: Obtaining a device number, and if the device number belongs to a preset device number stored in the server, obtaining a first communication key according to the preset device number, and generating a network configuration password according to the first communication key; If the network configuration password successfully matches the stored preset password, the received first data content is decrypted to obtain the communication address, and the second communication key generated by the first communication key is sent to the server according to the communication address; receiving a third communication key sent by the server, wherein the third communication key is generated by the server according to the second communication key; Receive the temporary password generated by the server. If the target password generated by the smart door lock is the same as the temporary password, encrypt the information communicated with the server according to the third communication key.

2. The smart door lock encryption communication method according to claim 1, characterized in that: The obtaining of the device number, if the device number belongs to a preset device number stored in the server, obtaining a first communication key according to the preset device number, and generating a network configuration password according to the first communication key, specifically includes: Obtaining a device number, and matching the device number with a preset device number stored in the server; If the match is successful, the first communication key associated with the successfully matched preset device number is obtained, and the network configuration password is generated according to the first communication key.

3. The smart door lock encryption communication method according to claim 1, characterized in that: If the network configuration password successfully matches the stored preset password, the received first data content is decrypted to obtain a communication address, and a second communication key generated by the first communication key is sent to a server according to the communication address, specifically including: Matching the network configuration password with the stored preset password, if the match is successful, receiving the first data content assigned by the server, decrypting the first data content according to the first communication key, and obtaining the communication address; A second communication key is generated according to the first communication key, and the second communication key is sent to the server according to the communication address.

4. The smart door lock encryption communication method according to claim 1, characterized in that: The receiving server generates a temporary password, and if the target password generated by the smart door lock is the same as the temporary password, encrypting the information communicated with the server according to the third communication key, specifically including: generating a target password according to the third communication key, and sending the target password to a server, and receiving a comparison result of the temporary password generated by the server and the target password; If the comparison result is that the temporary password and the target password are the same, the information communicated with the server is encrypted using the third communication key.

5. The smart door lock encryption communication method according to claim 1, characterized in that: The smart door lock encryption communication method also includes: Obtaining the life cycle of the second communication key and the life cycle of the third communication key; When the server and the device perform encrypted communication, determining whether the life cycle of the second communication key and the life cycle of the third communication key meet a preset period; If the life cycle of the second communication key and the life cycle of the third communication key meet the preset period, an update instruction is obtained, and the life cycle of the second communication key and the life cycle of the third communication key are updated according to the update instruction.

6. The smart door lock encryption communication method according to claim 2, characterized in that: The smart door lock encryption communication method also includes: Decrypt the first data content according to the first communication key to obtain a network configuration timestamp, and determine whether the network configuration timestamp is within a preset time; If the network configuration timestamp is within the preset time, the first data content is marked as successfully decrypted.

7. The smart door lock encryption communication method according to claim 1, characterized in that: The smart door lock encryption communication method also includes: Obtain a network configuration token for a preset time, perform network configuration according to the network configuration token, and generate a network configuration duration; It is determined whether the network configuration time exceeds the preset network configuration time. If the network configuration time exceeds the preset network configuration time, the control device automatically logs out of the operation interface.

8. A smart door lock encryption communication system, characterized in that: The smart door lock encryption communication system comprises: A network configuration password generation module, used to obtain a device number, if the device number belongs to a preset device number stored in the server, obtain a first communication key according to the preset device number, and generate a network configuration password according to the first communication key; A first key acquisition module is used to decrypt the received first data content to obtain a communication address if the network configuration password successfully matches the stored preset password, and to generate a second communication key from the first communication key according to the communication address and send it to a server; A second key generation module, used for receiving a third communication key sent by the server, wherein the third communication key is generated by the server according to the second communication key; The encryption communication module is used to receive a temporary password generated by a server. If the target password generated by the smart door lock is the same as the temporary password, the information communicated with the server is encrypted according to the third communication key.

9. A smart door lock, characterized in that: The smart door lock includes: a memory, a processor, and a smart door lock encryption communication program stored in the memory and executable on the processor. When the smart door lock encryption communication program is executed by the processor, the steps of the smart door lock encryption communication method as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a smart door lock encryption communication program, and when the smart door lock encryption communication program is executed by the processor, the steps of the smart door lock encryption communication method as described in any one of claims 1-7 are implemented.

Citation Information

Patent Citations

  • Method, device and system for generating key, equipment and medium

    CN109861817A

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

    CN113674455A

  • Encryption method in audio and video communication process and related equipment

    CN117692683A

  • Information processing system, information processing apparatus, server device, information processing method and program

    JP2011018976A

  • Data management device, user information notification device, user information acquisition device, and program therefor

    JP2020187247A