Intelligent door lock encryption communication method, system, terminal and storage medium
By employing a multi-key intelligent door lock encryption communication method, the problem of data leakage caused by single-key encryption is solved, achieving highly secure encrypted communication, preventing hacker attacks and data leakage, and ensuring system security.
Patent Information
- Application Number
- CN202411402596.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2044-10-09
AI Technical Summary
In existing technologies, smart door locks use a single key for encryption and decryption when connecting to a server via network configuration. This poses a risk of being cracked and increases the possibility of data leakage.
The encryption communication method employs multiple keys, including obtaining the device number to generate a network configuration password, verifying the password and decrypting the data to obtain the communication address, generating a second communication key and sending it to the server, and receiving a third communication key generated by the server and encrypting the communication information.
It improves data security, prevents hacker attacks and data leaks, and ensures system security by using a fixed lifespan and lifespan update mechanism for temporary passwords, preventing replay attacks and ensuring communication between legitimate devices and servers.
Smart Images

Figure CN119274253B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, in particular to a smart door lock encryption communication method, system, terminal and computer readable storage medium. BACKGROUND
[0002] In recent years, the current smart lock technology has been continuously improved and integrated with more advanced functions, such as biometric identification, remote control, temporary password generation, remote key distribution, and smart lock data collection (such as door opening and closing records, fingerprints, and facial information), which has triggered discussions among users about privacy protection. With the increasing number of data breaches, users' awareness of protecting their personal sensitive information is increasing. With the continuous evolution of network security threats, smart lock manufacturers are increasingly focusing on the encryption and security protocols of their products to prevent hacking and data breaches. Therefore, how to encrypt communication between devices and servers during device network configuration has become a problem that needs to be solved.
[0003] Therefore, the prior art still needs to be improved and developed. SUMMARY
[0004] The main purpose of the present application is to provide a smart door lock encryption communication method, system and computer readable storage medium, which aims to solve the problem that in the prior art, when a device is connected to a server during network configuration, the device uses a single key for encryption and decryption during the encryption process, which has the risk of being cracked, thereby causing data leakage.
[0005] To achieve the above-mentioned purpose, the present application provides a smart door lock encryption communication method, which comprises the following steps:
[0006] Obtain the device number, if the device number belongs to the preset device number stored in the server, obtain the first communication key according to the preset device number, and generate a network configuration password according to the first communication key;
[0007] If the network configuration password matches the stored preset password successfully, decrypt the received first data content to obtain a communication address, generate a second communication key from the first communication key according to the communication address, and send it to the server;
[0008] Receive the third communication key sent by the server, which 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 the 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, and specifically includes:
[0011] The device number is obtained, and the device number is matched with the preset device number stored in the server.
[0012] If the matching is successful, the first communication key associated with the matching successful preset device number is obtained, and a 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 matches the stored preset password, the received first data content is decrypted to obtain a communication address, a second communication key generated by the first communication key is generated according to the communication address, and is sent to the server, and specifically includes:
[0014] The network configuration password is matched with the stored preset password, if the matching is successful, the first data content distributed by the server is received, the first data content is decrypted according to the first communication key, and a communication address is obtained;
[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 temporary password generated by the server is received, 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, and specifically includes:
[0017] The target password is generated according to the third communication key, and the target password is sent to the server, the comparison result of comparing the temporary password generated by the server with the target password is received;
[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 through the third communication key.
[0019] Optionally, the smart door lock encryption communication method, wherein the smart door lock encryption communication method further includes:
[0020] The life cycle of the second communication key and the life cycle of the third communication key are obtained.
[0021] When the server and the device perform encrypted communication, it is judged whether the life cycle of the second communication key and the life cycle of the third communication key conform to a preset period;
[0022] If the life cycle of the second communication key and the life cycle of the third communication key conform to the preset period, an update instruction is acquired, 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 encrypted communication method of the smart door lock further comprises:
[0024] The first data content is decrypted according to the first communication key to obtain a network configuration timestamp, and it is judged 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 decryption success.
[0026] Optionally, the encrypted communication method of the smart door lock further comprises:
[0027] A network configuration token of a preset time is acquired, network configuration is performed according to the network configuration token, and a network configuration duration is generated;
[0028] It is judged whether the network configuration duration exceeds a preset network configuration duration, and if the network configuration duration exceeds the preset network configuration duration, the device is controlled to automatically log out an operation interface.
[0029] In addition, in order to achieve the above-mentioned purpose, the application further provides a smart door lock encrypted communication system, wherein the smart door lock encrypted communication system:
[0030] A network configuration password generation module is configured to acquire a device number, and if the device number belongs to a preset device number stored in a server, a first communication key is acquired according to the preset device number, and a network configuration password is generated according to the first communication key;
[0031] A first key acquisition module is configured to decrypt the received first data content to obtain a communication address if the network configuration password matches a stored preset password successfully, a second communication key generated by the first communication key is generated according to the communication address, and the second communication key is sent to the server;
[0032] A second key generation module is configured to receive a third communication key sent by the server, and the third communication key is generated by the server according to the second communication key;
[0033] The encryption communication module is configured to receive a temporary password generated by the server, and if a target password generated by the smart door lock is the same as the temporary password, encrypt information communicated with the server according to the third communication key.
[0034] In addition, the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a smart door lock encryption communication program, and the smart door lock encryption communication program realizes the steps of the smart door lock encryption communication method when executed by a processor.
[0035] In the application, the device number is acquired, and if the device number belongs to preset device numbers stored in the server, a first communication key is acquired according to the preset device numbers, and a network configuration password is generated according to the first communication key; if the network configuration password matches a preset password stored successfully, the received first data content is decrypted to obtain a communication address, a second communication key generated by the first communication key is generated according to the communication address, and is sent to the server; a third communication key sent by the server is received, the third communication key is generated by the server according to the second communication key; a temporary password generated by the server is received, and if a target password generated by the smart door lock is the same as the temporary password, information communicated with the server is encrypted according to the third communication key. In the application, the communication key is acquired and the network configuration password is generated through the device number, the data is decrypted to obtain the communication address after the password is verified, the second communication key is generated and sent to the server, the third communication key and the temporary password sent by the server are received, and finally the communication information is encrypted. The device uses multiple keys for encryption and decryption communication in the encryption process, and the security of the data is greatly improved. BRIEF DESCRIPTION OF DRAWINGS
[0036] Figure 1 is a flow chart of a preferred embodiment of the smart door lock encryption communication method of the application;
[0037] Figure 2 is a flow chart of a preferred embodiment of the smart door lock encryption communication method of the application;
[0038] Figure 3 is a principle schematic diagram of a preferred embodiment of the smart door lock encryption communication system of the application;
[0039] Figure 4 is a composition schematic diagram of a terminal control device in a preferred embodiment of the smart door lock encryption communication system of the application. DETAILED DESCRIPTION
[0040] In order to make the objects, technical solutions and advantages of the present application clearer and more explicit, the present application will be further described in detail below with reference to the drawings and examples. It should be understood that the specific examples described herein are only used to explain the present application and not to limit the present application.
[0041] The prior art has many deficiencies in encrypted communication for intelligent door locks. Because the prior art intelligent lock collects data (such as door opening and closing records, fingerprints, and facial information), with the increase in data leakage events, the encrypted communication of the prior art cannot use a single key for encryption and decryption in the encryption process, and there is a risk of cracking. Therefore, an intelligent door lock encrypted communication method is needed, which not only uses a single key for encryption and decryption in the encryption process when the device connects to the server, but also prevents hacking and data leakage.
[0042] The intelligent door lock encrypted communication method of the preferred embodiment of the present application, as shown in Figure 1 and Figure 2 The intelligent door lock encrypted communication method comprises the following steps:
[0043] Step S10, obtain the device number, if the device number belongs to the preset device number stored in the server, obtain the first communication key according to the preset device number, and generate a network configuration password according to the first communication key.
[0044] Specifically, the device number (SN) is obtained, and the device number is matched 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, and after successful matching, a five-minute valid period network configuration password is generated using the first communication key corresponding to the device number; if the matching fails, the session is logged out, and the process is ended); if the matching is successful, the first communication key associated with the matching successful preset device number is obtained (the first communication key is a permanent key written in the production test stage, which serves as a basic key when the device does not negotiate the second communication key and the third communication key with the server, and the first communication key is saved in the server database and managed by the platform), and a network configuration password is generated according to the first communication key.
[0045] Further, 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 a connection request, and the decrypted data should be the network configuration timestamp), and it is judged whether the network configuration timestamp is within the preset time; if the network configuration timestamp is within the preset time, the first data content is marked as decrypted successfully (after successful matching, it is judged whether the timestamp is within five minutes, and if so, the first data content is considered to be decrypted successfully).
[0046] Step S20, if the matching of the network configuration password and the stored preset password is successful, the received first data content is decrypted to obtain a communication address, a second communication key is generated according to the first communication key based on the communication address, and is sent to the server.
[0047] Specifically, the network configuration password is matched with the stored preset password (whether the network configuration password can be matched is judged, if the matching fails, an error is returned, the network configuration session is logged out, and if the matching succeeds, it is judged whether the time stamp is within five minutes, if yes, it is considered that the decryption is successful), if the matching succeeds, the first data content distributed by the server is received, the first data content is decrypted according to the first communication key (PWD1) to obtain a communication address (device address and server address); a second communication key (PWD2) is generated according to the first communication key, the second communication key is sent to the server according to the communication address (at this time, the message sent by the device to the server is that the source address is the device address, the target address is the server address; the reply content is the second communication key, the first communication key is used as a random number seed to randomly generate the second communication key, the life cycle of the second communication key is self-defined, and the communication address is encrypted by the first communication key).
[0048] Step S30, receiving the third communication key sent by the server, the third communication key being generated by the server according to the second communication key.
[0049] Specifically, the third communication key (PWD3) sent by the server is received, the third communication key being 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 and the life cycle of the second communication key, returns the third communication key to the device according to the self-defined message format that the source address and the target address are set to default values before the address is distributed, the default value can be all 0xFF data, uses the second communication key and the time stamp SHA1 and the life cycle of the third communication key, the length of the life cycle is self-defined, and the communication address is encrypted by the second communication key).
[0050] Further, the life cycle of the second communication key and the life cycle of the third communication key are acquired; when the server and the device perform encrypted communication, it is judged whether the life cycle of the second communication key and the life cycle of the third communication key conform to a preset period; if the life cycle of the second communication key and the life cycle of the third communication key conform to the preset period, an update instruction is acquired, 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 encrypted communication is established, it is needed to judge whether the life cycle of the second communication key and the life cycle of the third communication key will expire, and the second communication key and the third communication key are updated in time before the key expires).
[0051] In step S40, 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.
[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 the third communication key and the life cycle of the third communication key; the third communication key is used as the key key to generate a target password using the TOTP algorithm and return to the server, the communication address is encrypted using the second communication key, the comparison result of comparing the temporary password generated by the server and the target password is received, the server also uses the third communication key as the key key to generate a temporary password using the TOTP algorithm and compares it with the received target password to obtain a comparison result, and if the comparison is successful, a success 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 through the third communication key.
[0053] The beneficial effects of the present application are as follows:
[0054] (1) According to the encryption scheme, the temporary password generated has a fixed life cycle and is automatically invalidated after a period of time.
[0055] (2) The present application does not need a special encryption chip, and will not increase the cost of the device.
[0056] (3) In the present application, the second communication key and the third communication key have a life cycle and can be updated at any time, rather than being valid before unbinding, and users will almost not unbind and update the key in the normal use process.
[0057] (4) In the present application, the communication password and the key encryption key are separated, even if the communication key is cracked, the key is not transmitted in plaintext, and the second communication key and the third communication key will be updated within a certain period of time.
[0058] (5), the session timeout and re-authentication mechanism of the application ensures that the security of the system will not be reduced even in the process of network deployment.
[0059] (6) Even if the attacker intercepts the network deployment request, it cannot use the request after the network deployment token expires, thereby effectively preventing replay attacks.
[0060] (7), the application uses device encrypted data packets for identity authentication, ensuring that only legitimate devices communicate with the server.
[0061] Further, as Figure 3 shown, based on the above-mentioned smart door lock encryption communication method, the application also correspondingly provides a smart door lock encryption communication system, wherein the smart door lock encryption communication system comprises:
[0062] The network deployment password generation module 51 is configured to obtain a device number, and 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 deployment password is generated according to the first communication key.
[0063] The first key acquisition module 52 is configured to decrypt the received first data content to obtain a communication address if the network deployment password matches the stored preset password successfully, generate a second communication key from the first communication key according to the communication address, and send it to the server.
[0064] The second key generation module 53 is configured to receive the 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 configured to receive the temporary password generated by the server, and if the target password generated by the smart door lock is the same as the temporary password, the information for communicating with the server is encrypted according to the third communication key.
[0066] Further, as Figure 4 shown, based on the above-mentioned smart door lock encryption communication method and system, the application also correspondingly provides a terminal, which comprises a processor 10, a memory 20 and a display 30. Figure 4 Only part of the components of the terminal are shown, but it should be understood that all the shown components are not required to be implemented, and more or less components can be alternatively implemented.
[0067] The memory 20 can be an internal storage unit of the terminal in some embodiments, such as a hard disk or a memory of the terminal. The memory 20 can also be an external storage device of the terminal in other embodiments, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal. Further, the memory 20 can include both the internal storage unit and the external storage device of the terminal. The memory 20 is used to store application software and various data installed on the terminal, such as program codes of the terminal, etc. The memory 20 can also be used to temporarily store data that has been output or will be output. In an embodiment, the memory 20 stores a smart door lock encryption communication program 40, which can be executed by the processor 10 to implement the smart door lock encryption communication method in the present application.
[0068] The processor 10 can be a central processing unit (CPU), a microprocessor or other data processing chip in some embodiments, which is used to run program codes or process data stored in the memory 20, such as to execute the smart door lock encryption communication method, etc.
[0069] The display 30 can be an LED display, a liquid crystal display, a touch liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, etc. in some embodiments. The display 30 is used to display information of the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other through a system bus.
[0070] In an embodiment, the following steps are implemented when the processor 10 executes the smart door lock encryption communication program 40 in the memory 20:
[0071] 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;
[0072] If the network configuration password matches a preset password stored successfully, the received first data content is decrypted to obtain a communication address, a 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, the third communication key being generated by the server according to the second communication key;
[0074] receiving the temporary password generated by the server, and if the target password generated by the smart door lock is the same as the temporary password, encrypting information communicated with the server according to the third communication key.
[0075] The method further includes: obtaining the 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.
[0076] obtaining the device number, and matching the device number with a preset device number stored in the server.
[0077] If the matching is successful, obtaining a first communication key associated with the matched preset device number, and generating a network configuration password according to the first communication key.
[0078] If the network configuration password matches the stored preset password, the received first data content is decrypted to obtain a communication address, a second communication key generated according to the first communication key is sent to the server according to the communication address.
[0079] matching the network configuration password with the stored preset password, and if the matching is successful, receiving first data content distributed by the server, and decrypting the first data content according to the first communication key to obtain a communication address.
[0080] generating a second communication key according to the first communication key, and sending the second communication key to the server according to the communication address.
[0081] receiving the temporary password generated by the server, and if the target password generated by the smart door lock is the same as the temporary password, encrypting information communicated with the server according to the third communication key.
[0082] generating a target password according to the third communication key, sending the target password to the server, and receiving a comparison result of comparing the temporary password generated by the server with the target password.
[0083] If the comparison result is that the temporary password and the target password are the same, information communicated with the server is encrypted through the third communication key.
[0084] The smart door lock encryption communication method further includes:
[0085] obtaining a life cycle of the second communication key and a life cycle of the third communication key.
[0086] When the server and the device perform encrypted communication, it is judged whether the life cycle of the second communication key and the life cycle of the third communication key conform to a preset period;
[0087] If the life cycle of the second communication key and the life cycle of the third communication key conform to the preset period, an update instruction is acquired, 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] The smart door lock encrypted communication method further comprises:
[0089] The first data content is decrypted according to the first communication key to obtain a network configuration timestamp, and it is judged 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 decryption success.
[0091] The smart door lock encrypted communication method further comprises:
[0092] A network configuration token of a preset time is acquired, network configuration is performed according to the network configuration token, and a network configuration duration is generated.
[0093] It is judged whether the network configuration duration exceeds a preset network configuration duration, and if the network configuration duration exceeds the preset network configuration duration, the device is controlled to automatically log out an operation interface.
[0094] The application further provides a computer readable storage medium, wherein the computer readable storage medium stores a smart door lock encrypted communication program, and the smart door lock encrypted communication program is executed by a processor to realize the steps of the smart door lock encrypted communication method.
[0095] In summary, the application provides a smart 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 from the first communication key according to the communication address, and sending to the server; receiving a third communication key sent by the server, the third communication key being 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 smart door lock is the same as the temporary password, encrypting the information communicated with the server according to the third communication key. The application obtains a communication key and generates a network configuration password through a device number, decrypts data to obtain a communication address after verifying the password, generates a second communication key and sends it to the server, receives a third communication key and a temporary password from the server, and finally encrypts the communication information. The device uses multiple keys to encrypt and decrypt communication in the encryption process, greatly improving the security of data.
[0096] It should be noted that in this document, the terms "comprising", "including", or any other variant thereof are intended to cover non-exclusive inclusions, so that processes, methods, articles or terminal systems including a series of elements not only include those elements, but also include other elements not explicitly listed, or include elements inherent to such processes, methods, articles or terminal systems. Without more limitations, the element defined by the statement "including a" does not exclude the presence of another identical element 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 embodiment methods can be completed by instructing relevant hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable computer-readable storage medium, 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 is not limited to the above examples, and those skilled in the art can make improvements or changes according to the above description, and all these improvements and changes should be within the protection scope of the claims of the application.
Claims
1. A smart door lock encrypted communication method, characterized in that, The intelligent door lock encrypted communication method includes: Obtain the device number; if the device number belongs to a preset device number stored in the server, obtain the first communication key according to the preset device number, and generate a network configuration password according to the first communication key. If the network configuration password matches the stored preset password, the received first data content is decrypted to obtain the communication address, and the second communication key generated from the first communication key is sent to the server based on the communication address. The server receives a third communication key, which is generated by the server based on the second communication key. The device uses the second communication key to decrypt and obtain the third communication key and its lifecycle. Using the third communication key as a key, it generates a target password using the TOTP algorithm and returns it to the server. The communication address is encrypted using the second communication key. The device receives the temporary password generated by the server and compares it with the target password. The server also uses the third communication key as a key to generate a temporary password using the TOTP algorithm and compares it with the received target password. If the target password generated by the smart lock is the same as the temporary password, the device encrypts the information communicating with the server according to the third communication key.
2. The intelligent door lock encrypted communication method according to claim 1, characterized in that, The process of obtaining the device ID, if the device ID belongs to a preset device ID stored in the server, involves obtaining a first communication key based on the preset device ID and generating a network configuration password based on the first communication key, specifically including: Obtain the device number and match it with a preset device number stored in the server; If a match is successful, the first communication key associated with the preset device number that was successfully matched is obtained, and a network configuration password is generated based on the first communication key.
3. The intelligent door lock encrypted communication method according to claim 1, characterized in that, If the network configuration password matches the stored preset password, the received first data content is decrypted to obtain the communication address. Then, a second communication key generated from the first communication key is sent to the server based on the communication address. Specifically, this includes: The network configuration password is matched with the stored preset password. If the match is successful, the first data content allocated by the server is received, and the first data content is decrypted according to the first communication key to obtain the communication address. A second communication key is generated based on the first communication key, and the second communication key is sent to the server based on the communication address.
4. The intelligent door lock encrypted communication method according to claim 1, characterized in that, The intelligent door lock encrypted communication method further includes: Obtain the lifecycle of the second communication key and the lifecycle of the third communication key; When the server and device conduct encrypted communication, it is determined whether the lifecycle of the second communication key and the lifecycle of the third communication key conform to a preset period; If the lifecycles of the second communication key and the third communication key meet a preset period, an update instruction is obtained, and the lifecycles of the second communication key and the third communication key are updated according to the update instruction.
5. The intelligent door lock encrypted communication method according to claim 2, characterized in that, The intelligent door lock encrypted communication method further includes: The first data content is decrypted using the first communication key to obtain the network distribution timestamp, and it is determined whether the network distribution timestamp is within a preset time. If the distribution network timestamp is within the preset time period, then the first data content is marked as successfully decrypted.
6. The intelligent door lock encrypted communication method according to claim 1, characterized in that, The intelligent door lock encrypted communication method further includes: Obtain a network distribution token for a preset time, perform network distribution based on the network distribution token, and generate a network distribution duration; Determine whether the network distribution time exceeds the preset network distribution time. If the network distribution time exceeds the preset network distribution time, the control device will automatically log out of the operation interface.
7. A smart door lock encrypted communication system, characterized in that, The intelligent door lock encrypted communication system is applied to the intelligent door lock encrypted communication method according to any one of claims 1-6, and the intelligent door lock encrypted communication system comprises: The network configuration password generation module is used to obtain the device number. If the device number belongs to a 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. The first key acquisition module is used to decrypt the received first data content to obtain the communication address if the network configuration password matches the stored preset password, and then send the second communication key generated by the first communication key to the server based on the communication address. The second key generation module is used to receive a third communication key sent by the server, wherein the third communication key is generated by the server based on the second communication key; An encrypted communication module is used to receive a temporary password generated by the server. If the target password generated by the smart lock is the same as the temporary password, the information used to communicate with the server is encrypted according to the third communication key.
8. A smart door lock, characterized in that, The smart lock includes: a memory, a processor, and a smart lock encryption communication program stored in the memory and executable on the processor. When the smart lock encryption communication program is executed by the processor, it implements the steps of the smart lock encryption communication method as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a smart lock encrypted communication program, which, when executed by a processor, implements the steps of the smart lock encrypted communication method as described in any one of claims 1-6.
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