Password retrieving method and device, equipment and storage medium

The device unlock code is generated by the smart lawn mower and cooperates with the device management cloud platform to achieve safe and efficient retrieval of the smart lawn mower password, solving the problems of low security and cumbersome operation when the user forgets the password, and improving the work of the device efficiency.

CN118784333APending Publication Date: 2024-10-15ZHEJIANG YAT ELECTRICAL APPLIANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411008690.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

The password retrieval process of smart lawn mowers has problems such as low security and cumbersome operations, which makes it difficult to quickly recover when users forget their passwords, affecting the work efficiency of the equipment.

Method used

Generate a device unlock code through the smart lawn mower and send a verification code acquisition request to the device management cloud platform. After receiving the verification code, the user terminal sends a password retrieval request to the cloud platform. After verification, the cloud platform generates the original password of the device, simplifying the retrieval process. and added security.

Benefits of technology

It improves the security and efficiency of password retrieval, avoids the risk of password being deciphered, and improves the overall working efficiency of the smart lawn mower.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784333A_ABST
    Figure CN118784333A_ABST
Patent Text Reader

Abstract

The invention discloses a password retrieving method and device, equipment and a storage medium, and relates to the technical field of computers, and the method comprises the steps: obtaining a current network state of an intelligent mower; if the network state is an online state, generating an equipment unlocking code through the intelligent mower, and sending a verification code acquisition request for retrieving a password to an equipment management cloud platform, so that a first verification code is generated through the equipment management cloud platform, and the first verification code is sent to a user terminal bound with the intelligent mower; after the equipment control software located at the user terminal receives the first verification code and the equipment unlocking code input by the front end, a password retrieving request is sent to the equipment management cloud platform, so that the first verification code is verified through the equipment management cloud platform, and an equipment original password is generated based on the equipment unlocking code after verification is passed. According to the method, the process of manually retrieving the password can be simplified, the security and retrieval efficiency of the password retrieval process are improved, and the risk that the password is decoded is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a password retrieval method, device, equipment and storage medium. Background Art

[0002] With the rapid development of science and technology, IoT (Internet of Things) technology has penetrated into all aspects of life, from smart homes to industrial automation, from smart cities to health care, and IoT devices (such as smart lawn mowers) have been widely used. Therefore, device and data security protection has gradually become a thorny issue.

[0003] At present, the working environment of smart lawn mowers is usually open and they are kept outdoors for a long time without supervision. In order to ensure the safe use of smart lawn mowers, it is necessary to enter a power-on password before the smart lawn mowers work. This requires users to record the power-on password of the smart lawn mowers. Once the password is forgotten, the user will not be able to use the device (i.e., lawn mower).

[0004] In order to prevent users from forgetting the power-on password of the smart lawn mower, the smart lawn mower needs to have the function of retrieving the device password. The current mainstream method is to retrieve the password by key operation on the smart lawn mower. However, the manual operation steps of retrieving the password by key operation are fixed. As long as the user has used the password retrieval function, the password can be retrieved, and there is a risk of the password being cracked. Therefore, this method is not very secure. In addition, this method is cumbersome to operate and takes up a lot of time, thereby reducing the overall working efficiency of the smart lawn mower. Summary of the invention

[0005] In view of this, the purpose of this application is to provide a password retrieval method, device, equipment and storage medium, which can simplify the process of manual password retrieval, improve the security and efficiency of the password retrieval process, avoid the risk of password cracking, and thus improve the overall working efficiency of the smart lawn mower. The specific scheme is as follows:

[0006] In a first aspect, the present application discloses a password recovery method, comprising:

[0007] Get the current network status of the smart lawn mower;

[0008] If the network status indicates that the smart lawn mower is online, a device unlock code is generated by the smart lawn mower, and a request for obtaining a verification code for retrieving a password is sent to the device management cloud platform, so that a first verification code is generated by the device management cloud platform, and the first verification code is sent to a user terminal bound to the smart lawn mower;

[0009] When the device control software located at the user terminal receives the first verification code and the device unlock code input by the front end, it sends a password retrieval request containing the first verification code and the device unlock code to the device management cloud platform, so that the first verification code can be verified by the device management cloud platform, and the original device password of the smart lawn mower is generated based on the device unlock code after the verification is passed.

[0010] Optionally, after obtaining the current network status of the smart lawn mower, the method further includes:

[0011] If the network status indicates that the smart lawn mower is offline, a device unlock code is generated by the smart lawn mower, and a verification code acquisition request for retrieving the password is sent to the device management cloud platform through the device control software located at the user terminal, so as to generate a second verification code through the device management cloud platform, and send the second verification code to the user terminal bound to the smart lawn mower;

[0012] When the device control software located at the user terminal receives the second verification code and the device unlock code input by the front end, it sends a password retrieval request containing the second verification code and the device unlock code to the device management cloud platform, so that the second verification code can be verified by the device management cloud platform, and the original device password of the smart lawn mower is generated based on the device unlock code after the verification is passed.

[0013] Optionally, after obtaining the current network status of the smart lawn mower, the method further includes:

[0014] If the network status indicates that the smart lawn mower is in a no-network state, generating a device unlock code through the smart lawn mower;

[0015] When the user terminal receives the device unlock code and the device information of the smart lawn mower input by the front end, it sends a password retrieval request containing the device unlock code and the device information to the third-party terminal, so as to verify the device of the smart lawn mower based on the device information, and generate the original device password of the smart lawn mower based on the device unlock code after the verification is passed.

[0016] Optionally, sending a password retrieval request including the device unlock code and the device information to a third-party terminal to perform device verification on the smart lawn mower based on the device information, and generating an original device password of the smart lawn mower based on the device unlock code after the verification is passed, includes:

[0017] A password retrieval request including the device unlock code, the device information and the terminal information of the user terminal is sent to a third-party terminal to authenticate the user terminal and the smart lawn mower based on the terminal information and the device information respectively, and generate the original device password of the smart lawn mower based on the device unlock code after the authentication is passed.

[0018] Optionally, generating a device unlock code by using the smart lawn mower includes:

[0019] Generate a random number through the smart lawn mower, and determine a target salt code encryption algorithm corresponding to the random number;

[0020] The target salt code encryption algorithm is used to encrypt the local plaintext salt code to obtain the encrypted salt code;

[0021] The original device password of the smart lawn mower is encrypted using the SIMON algorithm and the encrypted salt code to obtain encrypted data, and the random number is added to the encrypted data to obtain a device unlocking code corresponding to the original device password.

[0022] Optionally, generating an original device password of the smart lawn mower based on the device unlock code includes:

[0023] Parsing the device unlock code to obtain the random number and the encrypted data;

[0024] Determine the salt code encryption algorithm corresponding to the random number to obtain the target salt code encryption algorithm;

[0025] Encrypting the local plaintext salt code using the target salt code encryption algorithm to obtain the encrypted salt code;

[0026] The encrypted data is decrypted using the SIMON algorithm and the encrypted salt code to obtain the original password of the device.

[0027] Optionally, the password retrieval method further includes:

[0028] Create multiple algorithm numbers and configure a different salt code encryption algorithm for each algorithm number;

[0029] Accordingly, the step of determining the target salt code encryption algorithm corresponding to the random number includes:

[0030] Find the target algorithm number corresponding to the random number, and determine the target salt code encryption algorithm corresponding to the target algorithm number.

[0031] In a second aspect, the present application discloses a password retrieval device, comprising:

[0032] The network status acquisition module is used to obtain the current network status of the smart lawn mower;

[0033] an unlock code generating module, configured to generate a device unlock code through the smart lawn mower if the network status indicates that the smart lawn mower is online;

[0034] A first request sending module, used for sending a verification code acquisition request for retrieving a password to the device management cloud platform, so as to generate a first verification code through the device management cloud platform, and send the first verification code to a user terminal bound to the smart lawn mower;

[0035] The second request sending module is used to send a password retrieval request containing the first verification code and the device unlocking code to the device management cloud platform after the device control software located at the user terminal receives the first verification code and the device unlocking code input by the front end, so as to verify the first verification code through the device management cloud platform, and generate the original device password of the smart lawn mower based on the device unlocking code after the verification is passed.

[0036] In a third aspect, the present application discloses an electronic device, comprising a processor and a memory; wherein the processor implements the aforementioned password retrieval method when executing a computer program stored in the memory.

[0037] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned password retrieval method is implemented.

[0038] It can be seen that the present application first obtains the network status of the current smart lawn mower. If the network status indicates that the smart lawn mower is online, a device unlock code is generated by the smart lawn mower, and a verification code acquisition request for retrieving the password is sent to the device management cloud platform, so as to generate a first verification code through the device management cloud platform, and send the first verification code to the user terminal bound to the smart lawn mower; when the device control software located at the user terminal receives the first verification code and the device unlock code input by the front end, a password retrieval request containing the first verification code and the device unlock code is sent to the device management cloud platform, so as to verify the first verification code through the device management cloud platform, and generate the original device password of the smart lawn mower based on the device unlock code after the verification is passed. When the smart lawn mower is online, the present application generates a device unlock code through the smart lawn mower, and sends a verification code acquisition request to the device management cloud platform, thereby generating a verification code through the device management cloud platform, and sending the verification code to the bound user terminal, and then sending the verification code and the device unlock code to the device management cloud platform through the device control software of the user terminal, so as to obtain the original password of the device. Through the above method, the process of manual password retrieval is simplified, and tedious manual operation is not required. In addition, a verification mechanism is added, thereby improving the security and efficiency of the password retrieval process, avoiding the risk of password cracking, and thereby improving the overall working efficiency of the smart lawn mower. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] 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, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0040] Figure 1 A flowchart of a password retrieval method disclosed in this application;

[0041] Figure 2 A specific PUK code generation schematic diagram disclosed in this application;

[0042] Figure 3 A flowchart of a specific password retrieval method disclosed in this application;

[0043] Figure 4 A flowchart of a specific password retrieval method disclosed in this application;

[0044] Figure 5 This is a schematic diagram of the structure of a password retrieval device disclosed in this application;

[0045] Figure 6 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present 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 are within the scope of protection of this application.

[0047] The present application embodiment discloses a password retrieval method, see Figure 1 As shown, the method includes:

[0048] Step S11: Obtain the current network status of the smart lawn mower.

[0049] In this embodiment, when the user forgets the power-on password (i.e., the original password of the device) of the smart lawn mower and needs to retrieve the password, the password retrieval request can be triggered by operating the button on the smart lawn mower. At this time, the smart lawn mower first obtains the current network status of the smart lawn mower; wherein, the network status can specifically include online status, offline status, and no network status; the online status means that the smart lawn mower is online, and the user terminal and the smart lawn mower can communicate instantly at this time; the offline status means that the smart lawn mower is offline, and the user terminal and the smart lawn mower can be connected through other means such as Bluetooth, and instant communication can also be achieved; the no network status means that the smart lawn mower has no network and cannot communicate with the user terminal instantly. It should be pointed out that the number of digits of the original password of the smart lawn mower can be selected according to the actual application situation. The more digits, the higher the security of the password, such as using a 4-digit or 6-digit password. The types of smart lawn mowers include but are not limited to OPP (i.e., basic perimeter lawn mower) type, HPP (i.e., RTK (real-time dynamic carrier phase difference technology) smart lawn mower) type, etc.

[0050] Step S12: If the network status indicates that the smart lawn mower is online, a device unlock code is generated by the smart lawn mower, and a verification code acquisition request for retrieving the password is sent to the device management cloud platform, so that a first verification code is generated by the device management cloud platform, and the first verification code is sent to the user terminal bound to the smart lawn mower.

[0051] In this embodiment, if the current network status of the smart lawn mower indicates that the smart lawn mower is online, a device unlock code can be generated by the smart lawn mower, for example, see Figure 2As shown, the user operates the control panel on the smart lawn mower, such as pressing and holding the OK button on the control panel for more than 10 seconds, and then a device unlocking code (i.e., PUK, PIN Unblocking Key, referring to the unlocking password of the PIN code, i.e., personal unlocking code) of "80010a1a" is generated on the control panel of the smart lawn mower. Then, the smart lawn mower sends a verification code acquisition request for retrieving the password to the device management cloud platform. When the device management cloud platform receives the verification code acquisition request sent by the smart lawn mower, it first randomly generates a verification code, and then sends the verification code to the user terminal bound to the smart lawn mower, which can be sent via email and / or text message. In addition, the number of user terminals pre-bound to the smart lawn mower can be one or more, and the user terminals include but are not limited to mobile phones, computers, tablets, etc.

[0052] Specifically, generating a device unlock code through the smart lawn mower may include: generating a random number through the smart lawn mower, and determining a target salt code encryption algorithm corresponding to the random number; encrypting a local plaintext salt code using the target salt code encryption algorithm to obtain an encrypted salt code; encrypting an original device password of the smart lawn mower using a SIMON algorithm and the encrypted salt code to obtain encrypted data, and adding the random number to the encrypted data to obtain a device unlock code corresponding to the original device password. In this embodiment, when the smart lawn mower generates the device unlock code, it will generate it according to the preset rules. First, a random number is randomly generated, and then the target salt code encryption algorithm corresponding to the random number is determined, and the determined target salt code encryption algorithm is used to encrypt the plaintext salt code pre-stored locally, thereby obtaining the encrypted salt code, and then the SIMON algorithm (Simon algorithm) and the above-mentioned encrypted salt code are used to encrypt the original device password (i.e., PIN code, personal identification number) of the smart lawn mower to obtain the encrypted data, and then the random number is added to the above-mentioned encrypted data to obtain the device unlock code corresponding to the original device password. As can be seen from the above, this application adopts a random dynamic salt code generation method and combines a double encryption method to generate a device unlock code, thereby improving the security of the key during the encryption process and increasing the difficulty of the key being cracked. It should be pointed out that the number of digits of the device unlock code (i.e., PUK) is greater than the number of digits of the original device password (i.e., PIN code). In addition, this application pre-creates multiple algorithm numbers, and configures different salt code encryption algorithms for each algorithm number; wherein the salt code encryption algorithm includes but is not limited to AES (Advanced Encryption Standard, a symmetric encryption algorithm) encryption algorithm, DES (Data Encryption Standard, a symmetric encryption algorithm) encryption algorithm, MD5 (Message-Digest5 Algorithm) encryption algorithm and custom encryption algorithm, etc. For example, number 1 corresponds to the AES encryption algorithm, number 2 corresponds to the DES encryption algorithm, etc.

[0053] Correspondingly, the determination of the target salt code encryption algorithm corresponding to the random number may specifically include: searching for the target algorithm number corresponding to the random number, and determining the target salt code encryption algorithm corresponding to the target algorithm number. In this embodiment, through the mapping relationship between the preset algorithm number and the salt code encryption algorithm, when the random number is obtained, the target algorithm number corresponding to the random number can be searched, and the search method can be obtained by dividing by 16 and taking the remainder. For example, when the random number is 17, the target algorithm number obtained is the remainder of 17 / 16, that is, number 1 corresponds to the AES encryption algorithm.

[0054] Step S13: When the device control software located at the user terminal receives the first verification code and the device unlock code input by the front end, it sends a password retrieval request containing the first verification code and the device unlock code to the device management cloud platform, so as to verify the first verification code through the device management cloud platform, and generate the original device password of the smart lawn mower based on the device unlock code after the verification is passed.

[0055] In this embodiment, when the device control software (APP, Application) pre-installed in the user terminal receives the above-mentioned first verification code and the above-mentioned device unlocking code (i.e., PUK code) entered by the user through the front-end page, it sends a password retrieval request containing the first verification code and the above-mentioned device unlocking code to the above-mentioned device management cloud platform; when the device management cloud platform receives the password retrieval request sent by the user terminal, it first compares the above-mentioned first verification code with the latest verification code saved locally. If the two are consistent, it indicates that the user terminal is a legal terminal and communication can be carried out. At this time, the original device password (i.e., PIN code) of the current smart lawn mower can be generated based on the above-mentioned device unlocking code (i.e., PUK code).

[0056] Specifically, the generating of the original device password of the smart lawn mower based on the device unlock code may include: parsing the device unlock code to obtain the random number and the encrypted data; determining the salt code encryption algorithm corresponding to the random number to obtain the target salt code encryption algorithm; using the target salt code encryption algorithm to encrypt the plaintext salt code located locally to obtain the encrypted salt code; using the SIMON algorithm and the encrypted salt code to decrypt the encrypted data to obtain the original device password. In this embodiment, after receiving the device unlock code, the device management cloud platform first parses the device unlock code to obtain a random number and an encrypted data, then determines the salt code encryption algorithm corresponding to the random number, and uses the determined salt code encryption algorithm to encrypt the plaintext salt code pre-stored locally to obtain the encrypted salt code, and then uses the preset SIMON algorithm and the above-mentioned encrypted salt code to decrypt the encrypted data to obtain the original device password (i.e., PIN code) of the smart lawn mower, such as 8001.

[0057] It can be seen that the embodiment of the present application first obtains the network status of the current smart lawn mower. If the network status indicates that the smart lawn mower is online, a device unlock code is generated by the smart lawn mower, and a verification code acquisition request for retrieving the password is sent to the device management cloud platform, so as to generate a first verification code through the device management cloud platform, and send the first verification code to the user terminal bound to the smart lawn mower; when the device control software located at the user terminal receives the first verification code and the device unlock code input by the front end, a password retrieval request containing the first verification code and the device unlock code is sent to the device management cloud platform, so as to verify the first verification code through the device management cloud platform, and generate the original device password of the smart lawn mower based on the device unlock code after the verification is passed. In the embodiment of the present application, when the smart lawn mower is online, the smart lawn mower generates a device unlock code and sends a verification code acquisition request to the device management cloud platform, thereby generating a verification code through the device management cloud platform and sending the verification code to the bound user terminal. The device control software of the user terminal then sends the verification code and the device unlock code to the device management cloud platform to obtain the original password of the device. In the above manner, the process of manual password retrieval is simplified, without the need for tedious manual operations, and a verification mechanism is added, thereby improving the security and efficiency of the password retrieval process, avoiding the risk of password cracking, and thereby improving the overall working efficiency of the smart lawn mower.

[0058] The present application embodiment discloses a specific password retrieval method, see Figure 2 As shown, the method includes:

[0059] Step S21: Obtain the current network status of the smart lawn mower.

[0060] Step S22: If the network status indicates that the smart lawn mower is offline, a device unlock code is generated by the smart lawn mower, and a verification code acquisition request for retrieving the password is sent to the device management cloud platform through the device control software located at the user terminal, so as to generate a second verification code through the device management cloud platform, and send the second verification code to the user terminal bound to the smart lawn mower.

[0061] In this embodiment, if the current network status of the smart lawn mower indicates that the smart lawn mower is offline, a device unlocking code (i.e., PUK code) is generated by the smart lawn mower, and then a verification code acquisition request for retrieving the password is sent to the device management cloud platform through the device control software pre-installed on the user terminal; when the device management cloud platform receives the verification code acquisition request sent by the device control software, it first randomly generates a verification code with a preset number of digits (such as 4 or 6 digits) (i.e., the second verification code), and then sends the verification code with the preset number of digits to the above-mentioned user terminal pre-bound to the current smart lawn mower via SMS or email.

[0062] Step S23: When the device control software located at the user terminal receives the second verification code and the device unlock code input by the front end, it sends a password retrieval request containing the second verification code and the device unlock code to the device management cloud platform, so that the second verification code can be verified by the device management cloud platform, and after the verification is passed, the original device password of the smart lawn mower is generated based on the device unlock code.

[0063] In this embodiment, when the device control software located in the user terminal receives the second verification code and the device unlock code (i.e., PUK code) inputted on the front-end page, it sends a password retrieval request containing the second verification code and the device unlock code to the device management cloud platform; when the device management cloud platform receives the password retrieval request, it first compares the second verification code with the latest locally saved verification code to see if they are consistent. If they are consistent, it generates the original device password of the current smart lawn mower based on the device unlock code (i.e., PUK code). It should be noted that the specific generation process of the original device password and the device unlock code can refer to the description in steps S12 and S13, which will not be repeated here.

[0064] For a more specific processing procedure of the above step S21, reference may be made to the corresponding contents disclosed in the above embodiments, which will not be described in detail here.

[0065] It can be seen that in the embodiment of the present application, when the network status of the smart lawn mower is offline, the smart lawn mower generates a device unlock code, and the device control software located in the user terminal sends a request for obtaining a verification code for retrieving the password to the device management cloud platform, so as to generate a second verification code through the device management cloud platform, and send the second verification code to the user terminal bound to the smart lawn mower; when the device control software located in the user terminal receives the second verification code and the device unlock code input by the front end, it sends a password retrieval request containing the second verification code and the device unlock code to the device management cloud platform, so as to verify the second verification code through the device management cloud platform, and generate the original device password of the smart lawn mower based on the device unlock code after the verification is passed. The embodiment of the present application is applied to the scenario where the smart lawn mower is offline, which simplifies the complexity of manual password retrieval operation, does not require cumbersome manual operation, and improves the security and retrieval efficiency of the password retrieval process, avoids the risk of password cracking, and thus improves the overall working efficiency of the smart lawn mower.

[0066] The present application embodiment discloses a specific password retrieval method, see Figure 2 As shown, the method includes:

[0067] Step S31: Obtain the current network status of the smart lawn mower.

[0068] Step S32: If the network status indicates that the smart lawn mower is in a no-network state, a device unlocking code is generated by the smart lawn mower.

[0069] In this embodiment, if the current network state of the smart lawn mower is no network state, a device unlocking code (i.e., PUK code) is generated by the smart lawn mower. The specific generation process can refer to the relevant description in step S12, that is, the device unlocking code is generated by using a random salt code and combined with double encryption.

[0070] Step S33: After the user terminal receives the device unlock code and the device information of the smart lawn mower input by the front end, it sends a password retrieval request containing the device unlock code and the device information to the third-party terminal, so as to perform device verification on the smart lawn mower based on the device information, and generate the original device password of the smart lawn mower based on the device unlock code after the verification is passed.

[0071] It should be pointed out that the present embodiment is applied to the scenario where the smart lawn mower is in an off-network state and the user terminal has not installed the device control software. When the user terminal receives the above-mentioned device unlocking code and the device information of the above-mentioned smart lawn mower (such as the device number 202311A027013000001) input by the user through the front-end page, the password retrieval request including the above-mentioned device unlocking code and the above-mentioned device information (such as the device number) is sent to the third-party terminal (such as the manufacturer's terminal); when the third-party terminal receives the above-mentioned password retrieval request, the device identity of the smart lawn mower can be verified based on the above-mentioned device information (such as the device number), and after the verification is passed, the original device password (i.e., PIN code) of the current smart lawn mower is generated based on the above-mentioned device unlocking code (i.e., PUK code). Furthermore, after the original device password (i.e., PIN code) is generated, it can be sent to the user terminal by email or SMS, so that the user can input the original device password into the smart lawn mower after receiving it, so as to start the machine and then control the smart lawn mower to perform corresponding work. The specific generation process may refer to the relevant description in step S13, that is, the device unlock code is generated by adopting a random salt code generation method combined with salt code encryption and encrypted data decryption.

[0072] Specifically, the sending of a password retrieval request including the device unlock code and the device information to a third-party terminal to perform device verification on the smart lawn mower based on the device information, and generating the original device password of the smart lawn mower based on the device unlock code after the verification is passed, may include: sending a password retrieval request including the device unlock code, the device information and the terminal information of the user terminal to a third-party terminal to perform identity verification on the user terminal and the smart lawn mower respectively based on the terminal information and the device information, and generating the original device password of the smart lawn mower based on the device unlock code after the verification is passed. In this embodiment, after the user terminal receives the device unlocking code and the device information of the smart lawn mower input by the front end, it sends a password retrieval request containing the device unlocking code, the device information and the terminal information of the user terminal to the third-party terminal; when the third-party terminal receives the password retrieval request, it first verifies the terminal information of the user terminal, such as finding out whether the terminal information is located in a preset terminal information list. If so, it indicates that the user terminal is a legal terminal, that is, a pre-bound user terminal. At this time, the device information can be further verified, such as finding out whether the terminal information is located in a preset device information list. If so, it indicates that the smart lawn mower is a legal device. After double verification, the original device password (i.e., PIN code) of the smart lawn mower is generated based on the above-mentioned device unlocking code (i.e., PUK code).

[0073] For a more specific processing procedure of the above step S31, reference may be made to the corresponding contents disclosed in the above embodiments, which will not be described in detail here.

[0074] It can be seen that the embodiment of the present application is applied to the scenario where the smart lawn mower is in a non-network state and the user terminal has not installed the device control software. When the user terminal receives the device unlock code and the device information of the smart lawn mower input by the front end, it sends a password retrieval request containing the device unlock code and the device information to the third-party terminal, so as to verify the device of the smart lawn mower based on the device information, and generate the original device password of the smart lawn mower based on the device unlock code after the verification is passed. The embodiment of the present application is applied to the scenario where the smart lawn mower is offline, which simplifies the complexity of manual password retrieval operation, does not require tedious manual operation, and improves the security and efficiency of the password retrieval process, avoids the risk of password cracking, and thus improves the overall working efficiency of the smart lawn mower.

[0075] Correspondingly, the present application also discloses a password retrieval device, see Figure 5 As shown, the device comprises:

[0076] The network status acquisition module 11 is used to acquire the current network status of the intelligent lawn mower;

[0077] an unlock code generating module 12, configured to generate a device unlock code through the smart lawn mower if the network status indicates that the smart lawn mower is online;

[0078] A first request sending module 13, used for sending a verification code acquisition request for retrieving a password to the device management cloud platform, so as to generate a first verification code through the device management cloud platform, and send the first verification code to a user terminal bound to the smart lawn mower;

[0079] The second request sending module 14 is used to send a password retrieval request including the first verification code and the device unlocking code to the device management cloud platform after the device control software located at the user terminal receives the first verification code and the device unlocking code input by the front end, so as to verify the first verification code through the device management cloud platform, and generate the original device password of the smart lawn mower based on the device unlocking code after the verification is passed.

[0080] Among them, the specific working processes of the above-mentioned modules can refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0081] It can be seen that in the embodiment of the present application, the network status of the current smart lawn mower is first obtained. If the network status indicates that the smart lawn mower is online, a device unlock code is generated by the smart lawn mower, and a verification code acquisition request for retrieving the password is sent to the device management cloud platform, so as to generate a first verification code through the device management cloud platform, and send the first verification code to the user terminal bound to the smart lawn mower; when the device control software located at the user terminal receives the first verification code and the device unlock code input by the front end, a password retrieval request containing the first verification code and the device unlock code is sent to the device management cloud platform, so as to verify the first verification code through the device management cloud platform, and generate the original device password of the smart lawn mower based on the device unlock code after the verification is passed. In the embodiment of the present application, when the smart lawn mower is online, the smart lawn mower generates a device unlock code and sends a verification code acquisition request to the device management cloud platform, thereby generating a verification code through the device management cloud platform and sending the verification code to the bound user terminal. The device control software of the user terminal then sends the verification code and the device unlock code to the device management cloud platform to obtain the original password of the device. In the above manner, the process of manual password retrieval is simplified, without the need for tedious manual operations, and a verification mechanism is added, thereby improving the security and efficiency of the password retrieval process, avoiding the risk of password cracking, and thereby improving the overall working efficiency of the smart lawn mower.

[0082] In some specific embodiments, after the network status acquisition module 11, the following may also be included:

[0083] a first unlock code generating unit, configured to generate a device unlock code by the smart lawn mower if the network status indicates that the smart lawn mower is in an offline state;

[0084] A first request sending unit, configured to send a verification code acquisition request for retrieving a password to a device management cloud platform through device control software located at a user terminal, so as to generate a second verification code through the device management cloud platform, and send the second verification code to the user terminal bound to the smart lawn mower;

[0085] The second request sending unit is used to send a password retrieval request including the second verification code and the device unlocking code to the device management cloud platform after the device control software located at the user terminal receives the second verification code and the device unlocking code input by the front end, so as to verify the second verification code through the device management cloud platform, and generate the original device password of the smart lawn mower based on the device unlocking code after the verification is passed.

[0086] In some specific embodiments, after the network status acquisition module 11, the following may also be included:

[0087] a second unlock code generating unit, configured to generate a device unlock code through the smart lawn mower if the network status indicates that the smart lawn mower is in a no-network state;

[0088] The third request sending unit is used to send a password retrieval request containing the device unlock code and the device information to a third-party terminal after the user terminal receives the device unlock code and the device information of the smart lawn mower input by the front end, so as to perform device verification on the smart lawn mower based on the device information, and generate the original device password of the smart lawn mower based on the device unlock code after the verification is passed.

[0089] In some specific embodiments, the third request sending unit may specifically include:

[0090] The fourth request sending unit is used to send a password retrieval request containing the device unlock code, the device information and the terminal information of the user terminal to a third-party terminal, so as to authenticate the user terminal and the smart lawn mower respectively based on the terminal information and the device information, and generate the original device password of the smart lawn mower based on the device unlock code after the verification is passed.

[0091] In some specific embodiments, the unlock code generation module 12 may specifically include:

[0092] A numerical value generating unit, used for generating a random salt code and a random number by the intelligent lawn mower;

[0093] A first algorithm determination unit, used to determine a target salt code encryption algorithm corresponding to the random number;

[0094] A first encryption unit is used to encrypt the plaintext salt code located locally using the target salt code encryption algorithm to obtain an encrypted salt code;

[0095] A second encryption unit is used to encrypt the original device password of the intelligent lawn mower by using the SIMON algorithm and the encrypted salt code to obtain encrypted data;

[0096] The adding unit is used to add the random number to the encrypted data to obtain a device unlocking code corresponding to the original password of the device.

[0097] In some specific embodiments, the second request sending module 14 may specifically include:

[0098] A parsing unit, used to parse the device unlocking code to obtain the random number and the encrypted data;

[0099] A second algorithm determination unit is used to determine the salt code encryption algorithm corresponding to the random number to obtain the target salt code encryption algorithm;

[0100] A third encryption unit is used to encrypt the plaintext salt code located locally by using the target salt code encryption algorithm to obtain the encrypted salt code;

[0101] The decryption unit is used to decrypt the encrypted data using the SIMON algorithm and the encrypted salt code to obtain the original password of the device.

[0102] In some specific embodiments, the password retrieval device may further include:

[0103] A creation and configuration unit, used to create multiple algorithm numbers and configure a different salt code encryption algorithm for each algorithm number;

[0104] Accordingly, the first algorithm determination unit may specifically include:

[0105] A search unit, used to search for a target algorithm number corresponding to the random number;

[0106] The third algorithm determination unit is used to determine a target salt code encryption algorithm corresponding to the target algorithm number.

[0107] Furthermore, the present application also discloses an electronic device. Figure 6 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.

[0108] Figure 6 The present invention provides a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the password retrieval method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0109] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0110] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0111] The operating system 221 is used to manage and control the hardware devices and computer program 222 on the electronic device 20, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the password retrieval method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

[0112] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the aforementioned disclosed password retrieval method. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.

[0113] Furthermore, an embodiment of the present application also discloses a computer program product, including a computer program / instruction, which implements the steps of the password retrieval method disclosed above when executed by a processor.

[0114] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0115] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0116] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0117] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device 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 device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0118] The above is a detailed introduction to a password retrieval method, device, equipment and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for a person skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A password retrieval method, characterized in that: include: Get the current network status of the smart lawn mower; If the network status indicates that the smart lawn mower is online, a device unlock code is generated by the smart lawn mower, and a request for obtaining a verification code for retrieving a password is sent to the device management cloud platform, so that a first verification code is generated by the device management cloud platform, and the first verification code is sent to a user terminal bound to the smart lawn mower; When the device control software located at the user terminal receives the first verification code and the device unlock code input by the front end, it sends a password retrieval request containing the first verification code and the device unlock code to the device management cloud platform, so that the first verification code can be verified by the device management cloud platform, and the original device password of the smart lawn mower is generated based on the device unlock code after the verification is passed.

2. The password retrieval method according to claim 1, characterized in that: After obtaining the current network status of the intelligent lawn mower, the method further includes: If the network status indicates that the smart lawn mower is offline, a device unlock code is generated by the smart lawn mower, and a verification code acquisition request for retrieving the password is sent to the device management cloud platform through the device control software located at the user terminal, so as to generate a second verification code through the device management cloud platform, and send the second verification code to the user terminal bound to the smart lawn mower; When the device control software located at the user terminal receives the second verification code and the device unlock code input by the front end, it sends a password retrieval request containing the second verification code and the device unlock code to the device management cloud platform, so that the second verification code can be verified by the device management cloud platform, and the original device password of the smart lawn mower is generated based on the device unlock code after the verification is passed.

3. The password retrieval method according to claim 1, characterized in that: After obtaining the current network status of the intelligent lawn mower, the method further includes: If the network status indicates that the smart lawn mower is in a no-network state, generating a device unlock code through the smart lawn mower; When the user terminal receives the device unlock code and the device information of the smart lawn mower input by the front end, it sends a password retrieval request containing the device unlock code and the device information to the third-party terminal, so as to verify the device of the smart lawn mower based on the device information, and generate the original device password of the smart lawn mower based on the device unlock code after the verification is passed.

4. The password retrieval method according to claim 3, characterized in that: The sending of a password retrieval request including the device unlock code and the device information to a third-party terminal to perform device verification on the smart lawn mower based on the device information, and generating an original device password of the smart lawn mower based on the device unlock code after the verification is passed, includes: A password retrieval request including the device unlock code, the device information and the terminal information of the user terminal is sent to a third-party terminal to authenticate the user terminal and the smart lawn mower based on the terminal information and the device information respectively, and generate the original device password of the smart lawn mower based on the device unlock code after the authentication is passed.

5. The password retrieval method according to any one of claims 1 to 4, characterized in that: The step of generating a device unlock code by using the smart lawn mower includes: Generate a random number through the smart lawn mower, and determine a target salt code encryption algorithm corresponding to the random number; The target salt code encryption algorithm is used to encrypt the local plaintext salt code to obtain the encrypted salt code; The original device password of the smart lawn mower is encrypted using the SIMON algorithm and the encrypted salt code to obtain encrypted data, and the random number is added to the encrypted data to obtain a device unlocking code corresponding to the original device password.

6. The password retrieval method according to claim 5, characterized in that: The generating of the original device password of the smart lawn mower based on the device unlocking code comprises: Parsing the device unlock code to obtain the random number and the encrypted data; Determine the salt code encryption algorithm corresponding to the random number to obtain the target salt code encryption algorithm; The target salt code encryption algorithm is used to encrypt the local plaintext salt code to obtain the encrypted salt code; The encrypted data is decrypted using the SIMON algorithm and the encrypted salt code to obtain the original password of the device.

7. The password retrieval method according to claim 6, characterized in that: Also includes: Create multiple algorithm numbers and configure a different salt code encryption algorithm for each algorithm number; Accordingly, the step of determining the target salt code encryption algorithm corresponding to the random number includes: Find the target algorithm number corresponding to the random number, and determine the target salt code encryption algorithm corresponding to the target algorithm number.

8. A password retrieval device, characterized in that: include: The network status acquisition module is used to obtain the current network status of the smart lawn mower; an unlock code generating module, configured to generate a device unlock code through the smart lawn mower if the network status indicates that the smart lawn mower is online; A first request sending module, used for sending a verification code acquisition request for retrieving a password to the device management cloud platform, so as to generate a first verification code through the device management cloud platform, and send the first verification code to a user terminal bound to the smart lawn mower; The second request sending module is used to send a password retrieval request containing the first verification code and the device unlocking code to the device management cloud platform after the device control software located at the user terminal receives the first verification code and the device unlocking code input by the front end, so as to verify the first verification code through the device management cloud platform, and generate the original device password of the smart lawn mower based on the device unlocking code after the verification is passed.

9. An electronic device, characterized in that: It comprises a processor and a memory; wherein, when the processor executes the computer program stored in the memory, the password retrieval method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the password retrieval method according to any one of claims 1 to 7 is implemented.