Intelligent door lock password setting method and system based on password similarity of adjacent users

By detecting the geographical location of smart door lock users and nearby user passwords, calculating password similarity and prompting for reset, the problem of similar password settings in smart door locks increasing security risks is solved, and the complexity and security of passwords are improved.

CN118570911AActive Publication Date: 2024-08-30SHENZHEN KAADAS INTELLIGENT TECH CO LTD

Patent Information

Application Number
CN202410746342.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-08-30
Estimated Expiration
2044-06-11

AI Technical Summary

Technical Problem

When setting unlocking passwords for existing smart door locks, users are prone to set similar passwords, which increases security risks. Especially among users in the same area, similar passwords can be easily guessed after being cracked.

Method used

By detecting the user's current geographical location, it finds nearby users within a distance, and calculates the similarity between the newly set password and the passwords of nearby users. If the similarity exceeds the threshold, the user is prompted to reset the password and provides improvement suggestions based on the password strength score.

Benefits of technology

It improves users' security awareness when setting passwords, reduces the risk of passwords being guessed or cracked, and enhances the overall security of smart door locks, especially in densely populated areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570911A
    Figure CN118570911A
Patent Text Reader

Abstract

The invention discloses an intelligent door lock password setting method and system based on adjacent user password similarity, and the method comprises the steps: obtaining the current geographic position information of a user when it is detected that the user registers a password or changes the password; searching all adjacent users of which the distance from the current geographic position is smaller than a preset threshold distance from a preset password database; judging whether at least one adjacent user exists when the distance requirement is met; if it is judged that at least one adjacent user exists, the password similarity between the new password of the user and all the adjacent user passwords is calculated, and whether the password similarity is larger than a preset similarity threshold value or not is judged; and if the password similarity is greater than the preset similarity threshold, prompting the user that the currently set or updated new password has potential safety hazards, and prompting the user to reset the new password. The invention aims to improve the security awareness of the user when setting the password, guide the user to create a more complex and unique password, and improve the security of the password of the intelligent door lock.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart door locks, and in particular to a method and system for setting a password for a smart door lock based on similarity of passwords of adjacent users, a smart door lock, and a computer-readable storage medium. Background Art

[0002] As part of smart home, smart door locks have been widely used in homes, offices and other places. When setting unlock passwords, users often only consider personal preferences and memory convenience, and ignore the security of passwords. Especially among users in the same community or on the same floor, similar passwords may be set inadvertently, such as using simple number combinations such as birthdays and phone numbers. Such similar password settings increase security risks, because once a password is cracked or leaked, other similar passwords may also be easily guessed.

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

[0004] The main purpose of the present invention is to provide a method, system, smart door lock and computer-readable storage medium for setting a smart door lock password based on the similarity of passwords of neighboring users, aiming to solve the problem in the prior art that similar passwords are easily set in the same area, increasing security risks.

[0005] To achieve the above object, the present invention provides a method for setting a password for a smart door lock based on the similarity of passwords of neighboring users, and the method for setting a password for a smart door lock based on the similarity of passwords of neighboring users comprises the following steps:

[0006] When a user registers a password or changes a password, obtain the user's current geographic location information;

[0007] According to the current geographical location information, searching from a preset password database for all neighboring users whose distance from the current geographical location is less than a preset threshold;

[0008] Determine whether there is at least one neighboring user among all neighboring users whose distance from the current geographic location is less than a preset threshold;

[0009] If it is determined that there is at least one neighboring user, the password similarity between the new password of the user and the passwords of all the neighboring users is calculated, and it is determined whether the similarity of all the passwords is greater than a preset similarity threshold;

[0010] If the password similarity is greater than the preset similarity threshold, the user is prompted that the currently set or updated new password has security risks, and the user is prompted to set a new password.

[0011] Optionally, the method for setting a password for a smart door lock based on the similarity of passwords of neighboring users, wherein the step of determining whether there is at least one neighboring user among all neighboring users whose distance from the current geographical location is less than a preset threshold, further comprises:

[0012] If it is determined that there are no neighboring users, the new password currently set or updated by the user is scored to obtain a scoring result, and a password strength level prompt is given according to the scoring result.

[0013] Optionally, the method for setting a password for a smart door lock based on the similarity of passwords of neighboring users, wherein the step of determining whether the similarity of all passwords is greater than a preset similarity threshold, further comprises:

[0014] If there is no password similarity greater than the preset similarity threshold, the new password currently set or updated by the user is scored to obtain a scoring result, and a prompt of the password strength level is given according to the scoring result.

[0015] Optionally, in the method for setting a password for a smart door lock based on the similarity of passwords of neighboring users, the step of calculating the similarity between the new password of the user and the passwords of all the neighboring users comprises:

[0016] Get the user's new password and any adjacent user's password;

[0017] Converting the new user password and the adjacent user password into a user character sequence and an adjacent user character sequence;

[0018] Calculating the edit distance between the user character sequence and the adjacent user character sequence;

[0019] The edit distance is normalized to obtain the password similarity between the new password of the user and the passwords of neighboring users.

[0020] Optionally, the method for setting a password for a smart door lock based on the similarity of passwords of neighboring users, wherein scoring the new password currently set or updated by the user to obtain a scoring result, specifically includes:

[0021] Extract multiple features of the new password currently set or updated by the user;

[0022] Develop different scoring criteria for different characteristics;

[0023] Assign different weights to each feature based on how much it affects password security;

[0024] The total score of the new password is calculated using the weighted scoring formula to obtain a scoring result.

[0025] Optionally, the method for setting a password for a smart door lock based on the similarity of passwords of neighboring users, wherein the step of providing a prompt of the password strength level according to the scoring result specifically includes:

[0026] Divide passwords into different password strength levels based on their overall password scores and set score thresholds;

[0027] Compare the total score of the new password with the score threshold to determine the password strength level of the total score of the new password;

[0028] Provides password scoring and password strength rating feedback to users, with suggestions for password improvement.

[0029] Optionally, in the method for setting a password for a smart door lock based on similarity of passwords of neighboring users, the preset password database contains multiple preset user passwords and corresponding location information.

[0030] In addition, to achieve the above-mentioned purpose, the present invention also provides a smart door lock password setting system based on the similarity of neighboring user passwords, wherein the smart door lock password setting system based on the similarity of neighboring user passwords includes:

[0031] The geographic location acquisition module is used to obtain the user's current geographic location information when it is detected that the user registers a password or changes the password;

[0032] A neighboring user search module, used to search for all neighboring users whose distance from the current geographic location is less than a preset threshold from a preset password database according to the current geographic location information;

[0033] A neighboring user determination module, used to determine whether there is at least one neighboring user among all neighboring users whose distance from the current geographical location is less than a preset threshold;

[0034] A password similarity determination module, for calculating the password similarity between the new password of the user and the passwords of all the neighboring users if it is determined that there is at least one neighboring user, and determining whether the similarity of all the passwords is greater than a preset similarity threshold;

[0035] The password risk warning module is used to remind the user that the currently set or updated new password has security risks if the password similarity is greater than the preset similarity threshold, and prompt the user to reset the new password.

[0036] In addition, to achieve the above-mentioned objectives, the present invention also provides a smart door lock, wherein the smart door lock includes: a memory, a processor, and a smart door lock password setting program based on the similarity of neighboring user passwords stored on the memory and run on the processor, wherein the smart door lock password setting program based on the similarity of neighboring user passwords implements the steps of the smart door lock password setting method based on the similarity of neighboring user passwords as described above when the smart door lock password setting program based on the similarity of neighboring user passwords is executed by the processor.

[0037] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a smart door lock password setting program based on the similarity of neighboring user passwords, and when the smart door lock password setting program based on the similarity of neighboring user passwords is executed by a processor, the steps of the smart door lock password setting method based on the similarity of neighboring user passwords as described above are implemented.

[0038] In the present invention, when it is detected that a user registers a password or changes a password, the user's current geographical location information is obtained; all neighboring users whose distance from the current geographical location is less than a preset threshold are searched from a preset password database according to the current geographical location information; it is determined whether there is at least one neighboring user among all the neighboring users whose distance from the current geographical location is less than the preset threshold; if it is determined that there is at least one neighboring user, the password similarity between the user's new password and the passwords of all the neighboring users is calculated, and it is determined whether all password similarities are greater than a preset similarity threshold; if there is a password similarity greater than the preset similarity threshold, the user is prompted that the currently set or updated new password has a security risk, and the user is prompted to reset the new password. The present invention aims to improve the user's security awareness when setting passwords, and guide users to create more complex and unique passwords, thereby improving the security of smart door lock passwords. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a flow chart of a preferred embodiment of the method for setting a password for an intelligent door lock based on the similarity of passwords of adjacent users of the present invention;

[0040] Figure 2 It is a schematic diagram of the entire process of prompting the strength of the smart door lock password in a preferred embodiment of the smart door lock password setting method based on the similarity of the passwords of adjacent users of the present invention;

[0041] Figure 3 It is a structural diagram of a preferred embodiment of the intelligent door lock password setting system based on the similarity of neighboring user passwords of the present invention;

[0042] Figure 4 This is a structural diagram of a preferred embodiment of the smart door lock of the present invention. DETAILED DESCRIPTION

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

[0044] The method for setting a password for a smart door lock based on the similarity of passwords of neighboring users described in the preferred embodiment of the present invention is as follows: Figure 1 and Figure 2 As shown, the method for setting a smart door lock password based on the similarity of neighboring user passwords includes the following steps:

[0045] Step S10: When it is detected that the user registers a password or changes the password, the user's current geographical location information is obtained.

[0046] Specifically, when the smart door lock detects that the user registers a password (setting a password for the first time) or changes the password, the smart door lock system can obtain the user's current geographic location information through the built-in positioning function of the smart door lock or through linkage with the user's mobile phone (for example, the user's mobile phone obtains the current location and sends it to the smart door lock).

[0047] Step S20: searching a preset password database for all neighboring users whose distance from the current geographical location is less than a preset threshold according to the current geographical location information.

[0048] Specifically, the smart door lock system maintains a preset password database, which contains multiple preset user passwords and corresponding location information; at the same time, the smart door lock system presets a preset threshold distance to determine which users are considered "neighboring users". Then, according to the current geographic location information, all neighboring users whose distance from the current geographic location is less than the preset threshold distance (for example, within 500 meters, which can be set according to actual conditions) are searched from the maintained preset password database, and the user's location information is used to identify the neighboring users, so as to facilitate the subsequent evaluation of password security.

[0049] Step S30: Determine whether there is at least one neighboring user among all neighboring users whose distance from the current geographical location is less than a preset threshold.

[0050] Specifically, after the current geographical location information is acquired, the current geographical location is obtained, and then it can be determined whether there is at least one neighboring user among all neighboring users whose distance from the current geographical location is less than a preset threshold.

[0051] Step S40: If it is determined that there is at least one neighboring user, the password similarity between the new password of the user and the passwords of all the neighboring users is calculated, and it is determined whether all the password similarities are greater than a preset similarity threshold.

[0052] Specifically, the smart door lock system first sets a preset similarity threshold to determine whether the passwords are too similar. Then the system uses a password similarity algorithm to compare the similarity between the password set or modified by the current user and the passwords of neighboring users, that is, to determine whether the similarity of all passwords is greater than the preset similarity threshold.

[0053] The purpose of the password similarity comparison algorithm (used to compare the similarity of the password set by the current user with the passwords of neighboring users to determine the relative security of the passwords) is to evaluate the degree of similarity between two passwords to determine whether they are unique enough to reduce security risks.

[0054] The calculating the password similarity between the new password of the user and the passwords of all the neighboring users includes:

[0055] (1) Password acquisition: Obtain the user's new password and any adjacent user's password.

[0056] (2) Converting the password into a character sequence: Convert the new user password and the adjacent user password into a user character sequence and an adjacent user character sequence; for example, the password "P@ssw0rd" can be represented as a sequence ['P', '@', 's', 's', 'w', '0', 'r', 'd'].

[0057] (3) Calculating the edit distance: Calculate the edit distance between the user character sequence and the adjacent user character sequence; use the Levenshtein distance algorithm to calculate the difference between the two passwords. The edit distance refers to the minimum number of editing operations (insertion, deletion, replacement of characters) required to convert one string into another.

[0058] (4) Normalized edit distance: Normalize the edit distance to get the password similarity between the new password of the user and the passwords of the neighboring users; in order to compare passwords of different lengths, the edit distance can be divided by the length of the longer password to get a similarity score between 0 and 1. 0 means completely different and 1 means exactly the same. Subtract the normalized edit distance from 1 to get the similarity.

[0059] (5) Similarity threshold setting: Set a preset similarity threshold, such as 0.5, to determine whether two passwords are too similar. If the similarity score is greater than the preset similarity threshold, the two passwords are considered too similar.

[0060] Step S50: If the password similarity is greater than a preset similarity threshold, the user is prompted that the currently set or updated new password has a security risk, and the user is prompted to reset a new password.

[0061] Specifically, if the password similarity is greater than a preset similarity threshold, the smart door lock system prompts the user that the currently set or modified password is not safe and recommends resetting it. For example, the user may be prompted to increase the password length or use more types of characters.

[0062] For example, suppose there are two passwords set by adjacent users:

[0063] Password for user A: P@ssw0rd and password for user B: P@ssw0rD.

[0064] Step 1: Convert the password into a sequence of characters.

[0065] User A's password sequence: ['P','@','s','s','w','0','r','d'];

[0066] User B's password sequence: ['P','@','s','s','w','0','r','D'].

[0067] Step 2: Calculate the edit distance.

[0068] Replacing the last character 'd' -> 'D' requires one operation, with an edit distance of 1.

[0069] Step 3: Normalize the edit distance.

[0070] The edit distance is 1, and the length of the longer password is 8 (P@ssw0rD). The standardized edit distance is 1 / 8=0.125, resulting in a similarity score of 1-0.125=0.875.

[0071] Step 4: Determine similarity.

[0072] The similarity score is 0.875, which is greater than the preset similarity threshold of 0.5. Therefore, the two passwords are considered to be very similar and there is a security risk.

[0073] In actual applications, the password similarity comparison algorithm may be more complex, considering more factors, such as the similarity weight of character types (letters, numbers, special characters), the position of characters, etc. In addition, other algorithms such as Hamming distance, Jaccard similarity coefficient, etc. can be combined to improve the accuracy of the evaluation.

[0074] Furthermore, if Figure 2 As shown, if it is determined that there are no neighboring users or if there is no password similarity greater than a preset similarity threshold, the new password currently set or updated by the user is scored to obtain a scoring result, and a password strength level prompt is given according to the scoring result.

[0075] The smart door lock system scores passwords based on factors such as password complexity, length, and diversity; the smart door lock system provides users with password strength level prompts based on the password score; the purpose of password scoring is to evaluate the strength of passwords set by users and provide corresponding scores and prompts to encourage users to create more secure passwords.

[0076] The scoring of the new password currently set or updated by the user to obtain a scoring result specifically includes:

[0077] (1) Feature extraction: Extract multiple features of the new password currently set or updated by the user; that is, extract multiple features of the password, including password length, character diversity (including uppercase and lowercase letters, numbers, special characters), and whether it contains common patterns (such as consecutive numbers, repeated characters, etc.).

[0078] (2) Scoring criteria development: Different scoring criteria are developed for different features; scoring criteria are developed for each password feature based on research and best practices in password security. For example, longer passwords, passwords containing multiple character types, and passwords without common patterns should receive higher scores.

[0079] (3) Feature weight assignment: Different weights are assigned to each feature based on its impact on password security; for example, password length and character diversity may have a higher weight than whether it contains common patterns.

[0080] (4) Rating calculation: Use the weighted scoring formula to calculate the total score of the new password to obtain the scoring result. For example, the score of each feature can be multiplied by its weight and then summed to obtain the total score.

[0081] (5) Password level classification: Based on the total password score, passwords are classified into different levels, such as weak, medium, strong, etc. A score threshold can be set to determine the range of each level.

[0082] (6) Rating feedback and tips: Password ratings and grades are fed back to users, and suggestions for password improvement are provided. For example, if the password score is low, the user can be prompted to increase the password length or use a wider variety of characters.

[0083] For example, suppose a user sets the password to: P@ssw0rd.

[0084] Step 1: Extract password features.

[0085] Password length: 8; Character diversity: Contains uppercase letters, lowercase letters, numbers and special characters; Common patterns: No consecutive numbers or repeated characters.

[0086] Step 2: Develop scoring criteria.

[0087] Password length: add 10 points for each additional character; Character diversity: add 20 points for each character type; Common patterns: add 10 points if there are no common patterns.

[0088] Step 3: Assign weights.

[0089] Password length: Weight 1; Character diversity: Weight 2; Common patterns: Weight 1.

[0090] Step 4: Calculate the score.

[0091] Password length score: 8*10=80; character diversity score: 4*20=80; common pattern score: 10; total score: 80*1+80*2+10*1=250.

[0092] Step 5: Classify passwords.

[0093] The scoring thresholds are set as follows: 0-100 is weak, 101-200 is medium, and 201-300 is strong. Therefore, the current level of this password is strong.

[0094] Step 6: Provide feedback and tips.

[0095] Feedback to users: "Your password is strong."

[0096] Improvement suggestions: Provide specific suggestions based on the user's password situation. For example, if the password does not contain special characters, you can prompt the user to add special characters to increase the password strength.

[0097] Through this password scoring system, the present invention can help users create safer and more unique passwords, thereby improving the overall security of smart door locks. It should be noted that this is only an example scoring system, and actual applications may need to be adjusted and optimized according to specific circumstances.

[0098] The present invention can effectively help users realize the risks of setting similar passwords in specific geographical locations and motivate them to create more complex and unique passwords. This method can theoretically significantly improve the security of smart door locks, especially in densely populated areas such as residential areas or apartment buildings.

[0099] Furthermore, prompts in the smart door lock system (the way of displaying information to users, including how to display password strength level prompts and how to guide users to set more secure passwords) can be achieved in the following ways:

[0100] (1) Display prompt: The smart door lock device itself can be equipped with a touch screen or digital display. When the user enters the password, the screen will display the password security score and related prompt information. For example, if the password entered by the user is too simple or similar to the password of a nearby user, the screen can display a warning message and suggest that the user use a more complex password.

[0101] (2) Voice prompts: Smart door locks can have built-in voice modules to provide feedback on the security of passwords through voice prompts. For example, when a user sets a less secure password, the door lock can inform the user through voice prompts and suggest a more secure password setting.

[0102] (3) User interface design: In the user interface for setting passwords, intuitive indicator icons or color codes can be designed to indicate the security level of the password. For example, green indicates a secure password, yellow indicates an average password, and red indicates a risky password.

[0103] When implementing these features, it is necessary to ensure that the user interface is user-friendly, the information is clearly conveyed, and it does not cause confusion or excessive intervention to users. At the same time, all prompts and feedback should be based on the analysis results of password similarity and geographic location information to provide truly useful security suggestions.

[0104] For example, if Xiaoming sets a simple password on the 10th floor, and the passwords are similar to those of other residents on the same floor, the application will prompt Xiaoming that the password is not secure and suggest him to create a more complex password. For example, if Xiaohong sets a complex password on the 5th floor, and the passwords are not similar to those of other residents on the same floor, the application will prompt Xiaohong that the password is more secure. For example, if Xiaoli sets a complex password on the 10th floor, but the passwords are similar to those of other residents on the same floor, the application will prompt Xiaoli that the password is not secure and suggest him to create a unique password.

[0105] For example, scenario: a student dormitory building in a university, where each dormitory room is equipped with a smart door lock. User E's password setting process: User E selects a password "abc12345" and tries to set it. The smart door lock system starts the password similarity comparison algorithm: the system looks for the passwords of other students in the dormitory building where user E is located. User F's password "Abc12345" is identified as a neighboring user password. Password similarity comparison: the system calculates the edit distance between user E's password and user F's password and finds that they are very similar because only the case of the first character is different. Because the password similarity is too high, the system prompts user E: "The security is low, please try to reset it."

[0106] Beneficial effects of the present invention:

[0107] (1) Improve password security: By evaluating and prompting the similarity between the password set by the user and the passwords of neighboring users, the risk of passwords being guessed or cracked is reduced, thereby improving the security of smart door locks.

[0108] (2) Enhance user security awareness: The system prompts users with information about password strength, which increases users' awareness of password security and prompts them to be more cautious when setting passwords.

[0109] (3) Reduce password similarity: In densely populated areas, such as residential areas or apartment buildings, the security risks caused by the high similarity of passwords between users are reduced.

[0110] (4) Promoting the use of complex passwords: The system encourages users to create more complex and unique passwords, which are more difficult to crack, thereby improving the overall security level.

[0111] (5) Customized security tips: The system provides customized security tips based on the user’s geographic location and the password status of neighboring users, making the tips more relevant and effective.

[0112] (6) Preventive security measures: Providing security assessments before passwords are set can prevent potential security issues, rather than taking action after security issues occur.

[0113] (7) Data privacy protection: Although the system needs to process the user's password and location data, it can compare and evaluate without revealing the specific password content, thereby protecting the user's privacy.

[0114] (8) Adaptability and scalability: The system can adjust the distance threshold and similarity threshold according to different geographical locations and user groups to adapt to different security needs and scenarios.

[0115] Through these technical effects, the present invention can improve the overall safety performance of the smart door lock system without significantly increasing the burden on users, providing users with a safer and more reliable user experience.

[0116] Furthermore, if Figure 3 As shown, based on the above-mentioned smart door lock password setting method based on the similarity of neighboring user passwords, the present invention also provides a smart door lock password setting system based on the similarity of neighboring user passwords, wherein the smart door lock password setting system based on the similarity of neighboring user passwords includes:

[0117] The geographic location acquisition module 51 is used to acquire the user's current geographic location information when it is detected that the user registers a password or changes the password;

[0118] A neighboring user search module 52, configured to search, from a preset password database, all neighboring users whose distance from the current geographic location is less than a preset threshold according to the current geographic location information;

[0119] A neighboring user determination module 53, used to determine whether there is at least one neighboring user among all neighboring users whose distance from the current geographical location is less than a preset threshold;

[0120] The password similarity determination module 54 is used to calculate the password similarity between the new password of the user and the passwords of all the neighboring users if it is determined that there is at least one neighboring user, and to determine whether the password similarities of all the passwords are greater than a preset similarity threshold;

[0121] The password risk warning module 55 is used to warn the user that the currently set or updated new password has security risks and to prompt the user to reset a new password if the password similarity is greater than a preset similarity threshold.

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

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

[0124] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the smart door lock password setting method based on the similarity of passwords of neighboring users.

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

[0126] In one embodiment, when the processor 10 executes the smart door lock password setting program 40 based on the similarity of neighboring user passwords in the memory 20, the following steps are implemented:

[0127] When a user registers a password or changes a password, obtain the user's current geographic location information;

[0128] According to the current geographical location information, searching from a preset password database for all neighboring users whose distance from the current geographical location is less than a preset threshold;

[0129] Determine whether there is at least one neighboring user among all neighboring users whose distance from the current geographic location is less than a preset threshold;

[0130] If it is determined that there is at least one neighboring user, the password similarity between the new password of the user and the passwords of all the neighboring users is calculated, and it is determined whether the similarity of all the passwords is greater than a preset similarity threshold;

[0131] If the password similarity is greater than the preset similarity threshold, the user is prompted that the currently set or updated new password has security risks, and the user is prompted to set a new password.

[0132] The step of determining whether there is at least one neighboring user among all neighboring users whose distance from the current geographic location is less than a preset threshold may further include:

[0133] If it is determined that there are no neighboring users, the new password currently set or updated by the user is scored to obtain a scoring result, and a password strength level prompt is given according to the scoring result.

[0134] The step of determining whether the similarity of all passwords is greater than a preset similarity threshold may further include:

[0135] If there is no password similarity greater than the preset similarity threshold, the new password currently set or updated by the user is scored to obtain a scoring result, and a prompt of the password strength level is given according to the scoring result.

[0136] The step of calculating the password similarity between the new password of the user and the passwords of all the neighboring users includes:

[0137] Get the user's new password and any adjacent user's password;

[0138] Converting the new user password and the adjacent user password into a user character sequence and an adjacent user character sequence;

[0139] Calculating the edit distance between the user character sequence and the adjacent user character sequence;

[0140] The edit distance is normalized to obtain the password similarity between the new password of the user and the passwords of neighboring users.

[0141] The scoring of the new password currently set or updated by the user to obtain a scoring result specifically includes:

[0142] Extract multiple features of the new password currently set or updated by the user;

[0143] Develop different scoring criteria for different characteristics;

[0144] Assign different weights to each feature based on how much it affects password security;

[0145] The total score of the new password is calculated using the weighted scoring formula to obtain a scoring result.

[0146] The password strength level prompt provided according to the scoring result specifically includes:

[0147] Divide passwords into different password strength levels based on their overall password scores and set score thresholds;

[0148] Compare the total score of the new password with the score threshold to determine the password strength level of the total score of the new password;

[0149] Provides password scoring and password strength rating feedback to users, with suggestions for password improvement.

[0150] The preset password database includes a plurality of preset user passwords and corresponding location information.

[0151] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a smart door lock password setting program based on the similarity of neighboring user passwords, and when the smart door lock password setting program based on the similarity of neighboring user passwords is executed by a processor, the steps of the smart door lock password setting method based on the similarity of neighboring user passwords as described above are implemented.

[0152] In summary, the present invention provides a method, system, smart door lock and storage medium for setting passwords of smart door locks based on the similarity of passwords of neighboring users, the method comprising: when detecting that a user registers a password or changes a password, obtaining the user's current geographic location information; searching for all neighboring users whose distance from the current geographic location is less than a preset threshold from a preset password database according to the current geographic location information; judging whether there is at least one neighboring user among all neighboring users whose distance from the current geographic location is less than the preset threshold; if it is judged that there is at least one neighboring user, calculating the password similarity between the user's new password and the passwords of all the neighboring users, and judging whether all password similarities are greater than a preset similarity threshold; if there is a password similarity greater than the preset similarity threshold, prompting the user that the currently set or updated new password has a security risk, and prompting the user to reset the new password. The present invention aims to improve the user's security awareness when setting passwords, and guide the user to create more complex and unique passwords, thereby improving the security of smart door lock passwords.

[0153] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or smart door lock 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 smart door lock. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or smart door lock including the element.

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

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

Claims

1. A method for setting a password for a smart door lock based on the similarity of passwords of neighboring users, characterized in that: The method for setting a password for a smart door lock based on the similarity of passwords of neighboring users includes: When a user registers a password or changes a password, obtain the user's current geographic location information; According to the current geographical location information, searching from a preset password database for all neighboring users whose distance from the current geographical location is less than a preset threshold; Determine whether there is at least one neighboring user among all neighboring users whose distance from the current geographic location is less than a preset threshold; If it is determined that there is at least one neighboring user, the password similarity between the new password of the user and the passwords of all the neighboring users is calculated, and it is determined whether the similarity of all the passwords is greater than a preset similarity threshold; If the password similarity is greater than the preset similarity threshold, the user is prompted that the currently set or updated new password has security risks, and the user is prompted to set a new password.

2. The method for setting a password for a smart door lock based on the similarity of passwords of neighboring users according to claim 1, characterized in that: The step of determining whether there is at least one neighboring user among all neighboring users whose distance from the current geographical location is less than a preset threshold is followed by: If it is determined that there are no neighboring users, the new password currently set or updated by the user is scored to obtain a scoring result, and a password strength level prompt is given according to the scoring result.

3. The method for setting a password for a smart door lock based on the similarity of passwords of neighboring users according to claim 1, characterized in that: The step of determining whether all password similarities are greater than a preset similarity threshold may further include: If there is no password similarity greater than the preset similarity threshold, the new password currently set or updated by the user is scored to obtain a scoring result, and a prompt of the password strength level is given according to the scoring result.

4. The method for setting a password for a smart door lock based on the similarity of passwords of neighboring users according to claim 1, characterized in that: The calculating the password similarity between the new password of the user and the passwords of all the neighboring users includes: Get the user's new password and any adjacent user's password; Converting the new user password and the adjacent user password into a user character sequence and an adjacent user character sequence; Calculating the edit distance between the user character sequence and the adjacent user character sequence; The edit distance is normalized to obtain the password similarity between the new password of the user and the passwords of neighboring users.

5. The method for setting a password for a smart door lock based on the similarity of passwords of adjacent users according to claim 2 or 3, characterized in that: The scoring of the new password currently set or updated by the user to obtain a scoring result specifically includes: Extract multiple features of the new password currently set or updated by the user; Develop different scoring criteria for different characteristics; Assign different weights to each feature based on how much it affects password security; The total score of the new password is calculated using the weighted scoring formula to obtain a scoring result.

6. The method for setting a password for a smart door lock based on the similarity of passwords of adjacent users according to claim 2 or 3, characterized in that: The password strength level prompt given according to the scoring result specifically includes: Divide passwords into different password strength levels based on their overall password scores and set score thresholds; Compare the total score of the new password with the score threshold to determine the password strength level of the total score of the new password; Provides password scoring and password strength rating feedback to users, with suggestions for password improvement.

7. The method for setting a password for a smart door lock based on similarity of passwords of neighboring users according to claim 1, characterized in that: The preset password database includes a plurality of preset user passwords and corresponding location information.

8. A smart door lock password setting system based on the similarity of neighboring user passwords, characterized in that: The smart door lock password setting system based on the similarity of neighboring user passwords includes: The geographic location acquisition module is used to obtain the user's current geographic location information when it is detected that the user registers a password or changes the password; A neighboring user search module, used to search for all neighboring users whose distance from the current geographic location is less than a preset threshold from a preset password database according to the current geographic location information; A neighboring user determination module, used to determine whether there is at least one neighboring user among all neighboring users whose distance from the current geographical location is less than a preset threshold; A password similarity determination module, for calculating the password similarity between the new password of the user and the passwords of all the neighboring users if it is determined that there is at least one neighboring user, and determining whether the similarity of all the passwords is greater than a preset similarity threshold; The password risk warning module is used to remind the user that the currently set or updated new password has security risks if the password similarity is greater than the preset similarity threshold, and prompt the user to reset the new password.

9. A smart door lock, characterized in that: The smart door lock includes: a memory, a processor, and a smart door lock password setting program based on the similarity of neighboring user passwords stored in the memory and runnable on the processor. When the smart door lock password setting program based on the similarity of neighboring user passwords is executed by the processor, the steps of the smart door lock password setting method based on the similarity of neighboring user passwords are implemented as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a smart door lock password setting program based on the similarity of neighboring user passwords. When the smart door lock password setting program based on the similarity of neighboring user passwords is executed by the processor, the steps of the smart door lock password setting method based on the similarity of neighboring user passwords are implemented as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Lightweight evaluation algorithm for password strength

    CN110362987A

  • Smart door lock and its operating method

    KR101954449B1

  • Apparatus, method and program for access control based on pattern recognition

    KR1020180084720A

  • Password requirement conformity check

    US11930108B1

  • Preventing trivial character combinations

    US20090133120A1

Cited By

  • Method and device for setting password sequence of intelligent lock, computer equipment and medium

    CN119323844A

  • Method, device, computer equipment and medium for setting password sequence of smart lock

    CN119323844B