Method, device, computer equipment and medium for setting password sequence of smart lock
By obtaining and comparing the feature set of smart lock passwords, the security risks easily caused by similar passwords in the smart door lock password settings are solved, and higher password security and reliability are achieved.
Patent Information
- Application Number
- CN202411876776.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-12-19
AI Technical Summary
The passwords of smart door locks are easily risky in setting up smart door lock passwords, and the existing solutions to avoid similar passwords are at risk of leakage, which cannot fundamentally protect the security and privacy of user passwords.
When the password setting function is triggered by detecting the target smart lock, the password sequence entered by the user is obtained, the first feature set is determined, and the second feature set of other smart locks within the preset range is obtained for comparison. If it is similar, the user is reminded to reset the password to avoid hidden dangers.
It effectively avoids security risks caused by password similarity, improves the security and rationality of the password setting process, and ensures the security and reliability of the smart lock password system.
Smart Images

Figure CN119323844B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart locks, and in particular to a method, device, computer equipment and medium for setting a password sequence of a smart lock. Background Art
[0002] In the application of smart door locks, users tend to focus on personal preferences and memory convenience when setting unlock passwords, and often use simple digital combinations such as birthdays and phone numbers as passwords. Especially among user groups in the same community or on the same floor, this phenomenon of setting similar passwords is relatively common. Once a password is cracked or leaked, other similar passwords can be easily guessed, which undoubtedly poses a great threat to the security of smart door locks.
[0003] The prior art discloses a method for setting passwords for smart door locks based on the similarity of passwords of neighboring users, which is committed to avoiding similar passwords, but has obvious defects. It needs to determine the user's geographical location and obtain the user's password, and upload the relevant information to the cloud. This process exposes the user's password to the risk of leakage and cannot fundamentally guarantee the security and privacy of the user's password. Summary of the invention
[0004] In view of this, embodiments of the present invention provide a method, apparatus, computer device and medium for setting a smart lock password sequence to solve the problem of risks caused by similar passwords in setting smart lock passwords and the risk of leakage in existing schemes to avoid similar passwords.
[0005] In a first aspect, an embodiment of the present invention provides a method for setting a password sequence of a smart lock, which is applied to a target smart lock, and the method includes:
[0006] When it is detected that the target smart lock triggers the password setting function, obtaining a password sequence input by the user in an interactive area, wherein the interactive area is set on a panel of the smart lock and / or an application associated with the smart lock;
[0007] Determine a first feature set according to the password sequence, and obtain a second feature set corresponding to other smart locks within a preset range of the target smart lock, wherein the second feature set is generated according to the password sequences of the other smart locks;
[0008] The first feature set is compared with the second feature set to obtain a comparison result, and a reminder operation corresponding to the comparison result is performed, wherein the reminder operation is used to remind the user to reset the password sequence.
[0009] Further, determining the first feature set according to the password sequence includes:
[0010] Acquire a preset characteristic indicator matching the password setting function from a preset configuration library of the target smart lock;
[0011] Extracting a first password feature of the password sequence according to the preset feature indicator, and encrypting the first password feature using a preset encryption algorithm to obtain an encrypted first password feature;
[0012] A corresponding first feature set is constructed based on the encrypted first password feature.
[0013] Furthermore, the obtaining of a second feature set corresponding to other smart locks within a preset range of the target smart lock includes:
[0014] Identify other smart locks within a preset range of the target smart lock;
[0015] Generate a request signal using the preset characteristic indicator and the preset encryption algorithm;
[0016] The request signal is sent to the other smart locks, and a second feature set is received by the other smart locks based on the request signal.
[0017] Furthermore, the comparing the first feature set with the second feature set to obtain a comparison result includes:
[0018] Obtaining comparison conditions associated with each indicator in the preset characteristic indicators;
[0019] According to the preset feature index, the first feature set and the second feature set are decomposed into a plurality of feature combinations;
[0020] Each of the feature combinations is analyzed based on the comparison conditions to obtain a comparison result.
[0021] Furthermore, the analysis of each of the feature combinations based on the comparison conditions to obtain a comparison result includes:
[0022] Calculate similarity according to the indicator type corresponding to the feature combination;
[0023] Determine whether the similarity of each of the feature combinations meets the corresponding comparison condition, and obtain the number of combinations that meet the comparison condition;
[0024] The number of combinations is compared with a preset threshold. If the number of combinations is greater than or equal to the preset threshold, it is determined that the comparison result is that the first feature set is similar to the second feature set. Alternatively, if the number of combinations is less than the preset threshold, it is determined that the comparison result is that the first feature set is not similar to the second feature set.
[0025] Furthermore, the performing of the reminder operation corresponding to the comparison result includes:
[0026] If the comparison result is that the first feature set is similar to the second feature set, prohibiting the setting operation of the password sequence, and sending a preset prompt message through the interactive area associated with the target smart lock;
[0027] Or, if the comparison result is that the first feature set is not similar to the second feature set, the password sequence is stored as a valid password in a preset space, and when a request signal from other smart locks within a preset range is received, the first feature set corresponding to the password sequence is fed back to the other smart locks.
[0028] In a second aspect, an embodiment of the present invention provides a method for sharing password features of a smart lock, which is applied to other smart locks, and the method includes:
[0029] Receive a request signal sent by a target smart lock;
[0030] Parsing the request signal to obtain a preset characteristic indicator and a preset encryption algorithm;
[0031] Extracting a second password feature of the local password sequence according to the preset feature indicator, and performing an encryption operation on the second password feature using the preset encryption algorithm to obtain an encrypted second password feature;
[0032] A second feature set is constructed based on the encrypted second password feature, and the second feature set is fed back to the target smart lock.
[0033] In a third aspect, an embodiment of the present invention provides a device for setting a password sequence of a smart lock, which is applied to a target smart lock, and the device includes:
[0034] An acquisition module, configured to acquire a password sequence input by a user in an interactive area when it is detected that a target smart lock triggers the password setting function, wherein the interactive area is set on a panel of the smart lock and / or an application associated with the smart lock;
[0035] A determination module, configured to determine a first feature set according to the password sequence, and obtain a second feature set corresponding to other smart locks within a preset range of the target smart lock, wherein the second feature set is generated according to the password sequences of the other smart locks;
[0036] The comparison module is used to compare the first feature set with the second feature set to obtain a comparison result, and execute a reminder operation corresponding to the comparison result, wherein the reminder operation is used to remind the user to reset the password sequence.
[0037] In a fourth aspect, an embodiment of the present invention provides a device for sharing password features of a smart lock, which is applied to other smart locks, and the device includes:
[0038] A receiving module, used to receive a request signal sent by a target smart lock;
[0039] A parsing module, used to parse the request signal to obtain a preset characteristic index and a preset encryption algorithm;
[0040] An extraction module, configured to extract a second password feature of the local password sequence according to the preset feature index, and perform an encryption operation on the second password feature using the preset encryption algorithm to obtain an encrypted second password feature;
[0041] A construction module is used to construct a second feature set based on the encrypted second password feature, and feed the second feature set back to the target smart lock.
[0042] In a fifth aspect, an embodiment of the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, computer instructions being stored in the memory, and the processor executing the method of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0043] In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method of the first aspect or any corresponding embodiment thereof.
[0044] The method provided in the embodiment of the present application has the following beneficial effects:
[0045] The method provided in the embodiment of the present application obtains the password sequence input by the user when it is detected that the target smart lock triggers the password setting function. It can accurately capture the setting intention, provide basic data for subsequent analysis and verification, ensure that the password setting process is started according to user needs, and start operations related to password security. By determining the first feature set according to the password sequence and obtaining the corresponding second feature set, the password can be quantified from multiple dimensions, and the abstract password can be converted into a comparable data set, which is convenient for measuring password similarity, avoiding potential security risks, and making the password security assessment more comprehensive and detailed. Compare the first feature set with the second feature set and perform corresponding reminder operations. Based on a reasonable comparison mechanism, it can accurately determine whether the current password is similar to the surrounding passwords. If similar, the user is reminded to reset to avoid hidden dangers; if not similar, it is stored and used normally, thereby improving the security and rationality of the password setting link and protecting the security of the smart lock password system in all directions.
[0046] The method provided in the embodiment of the present application clarifies the specific operations of obtaining preset feature indicators from the preset configuration library, extracting features according to the indicators and encrypting them when determining the first feature set and obtaining the second feature set, so that the feature extraction is more standardized and accurate, and the effectiveness of the subsequent comparison is guaranteed; in the comparison operation, the steps of obtaining comparison conditions, disassembling feature combinations and conditional analysis are stipulated, so that the judgment of password similarity is more rigorous and scientific, and the occurrence of misjudgment is reduced; in the processing of different situations of the reminder operation, similar passwords can be specifically prohibited and prompted, and qualified passwords can be properly stored and fed back, which improves the convenience and security of the entire system. At the same time, the smart lock password feature sharing method ensures the accuracy, privacy and efficiency of information interaction between different smart locks from receiving request signals to parsing, extracting features and encrypting feedback, which helps the entire smart lock system to coordinate password security management, better adapt to complex and changing usage environments, further enhance the security and reliability of the overall system in password use, effectively prevent security accidents caused by password problems, and improve user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 is a flowchart of a method for setting a password sequence for a smart lock according to an embodiment of the present invention;
[0049] Figure 2 is a flow chart of a method for sharing password features of a smart lock according to an embodiment of the present invention;
[0050] Figure 3 It is a schematic diagram of the process of smart lock password similarity reminder and feature sharing according to an embodiment of the present invention;
[0051] Figure 4 is a structural block diagram of a device for setting a password sequence for a smart lock according to an embodiment of the present invention;
[0052] Figure 5 is a structural block diagram of a device for sharing password features of a smart lock according to an embodiment of the present invention;
[0053] Figure 6 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0055] According to an embodiment of the present invention, a method, apparatus, computer device and medium for setting a smart lock password sequence are provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.
[0056] In this embodiment, a method for setting a password sequence of a smart lock is provided, which is applied to a target smart lock. Figure 1 is a flow chart of a method for setting a password sequence for a smart lock according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0057] Step S11, when it is detected that the target smart lock triggers the password setting function, obtain the password sequence entered by the user in the interactive area, wherein the interactive area is set on the panel of the smart lock and / or the application associated with the smart lock.
[0058] In an embodiment of the present application, when a user operates the target smart lock and triggers its password setting function (for example, pressing a button on the smart lock specifically for setting a password, or clicking a "set password" button in an associated application, etc.), the smart lock obtains the password sequence entered by the user in the interactive area. If the interactive area is on the back panel of the smart lock, the character combination entered by the user is received through the buttons on the back panel to form a password sequence; if it is in an associated application, the character content filled in by the user in the corresponding input box of the application is obtained as the password sequence. The obtained password sequence will be used for further feature extraction, comparison with the password features of surrounding smart locks, and other operations to ensure the security of the newly set password and avoid excessive similarity with the passwords of surrounding smart locks.
[0059] Step S12, determine the first feature set according to the password sequence, and obtain the second feature set corresponding to other smart locks within the preset range of the target smart lock, wherein the second feature set is generated according to the password sequences of the other smart locks.
[0060] In the embodiment of the present application, determining the first feature set according to the password sequence includes the following steps A1-A3:
[0061] Step A1, obtaining a preset feature indicator matching the password setting function from a preset configuration library of the target smart lock.
[0062] Specifically, when the smart lock is shipped or pre-configured, a series of indicators for measuring password characteristics will be pre-set in its configuration library. These indicators are designed specifically for the password setting function. For example, the configuration library can pre-set character types (distinguishing between letters, numbers, special symbols, etc.), character order (analyzing whether characters appear in a specific pattern), character frequency (the frequency of characters appearing in the password), password length, and character position pattern as preset characteristic indicators. When the user triggers the password setting function, these corresponding preset characteristic indicators are retrieved from this configuration library to prepare for the subsequent analysis of the newly set password characteristics. These indicators are the basis of the entire password similarity judgment mechanism. They cover the standards for measuring password characteristics from different angles, so as to comprehensively and accurately judge the similarity between passwords.
[0063] Step A2: extracting the first password feature of the password sequence according to a preset feature index, and encrypting the first password feature using a preset encryption algorithm to obtain the encrypted first password feature.
[0064] Specifically, after obtaining the preset characteristic indicators, for the password sequence entered by the user in the interactive area, the corresponding features are extracted according to these indicators. For example, if there is a character type item in the preset characteristic indicators, the number of letters, numbers, and special symbols in the password sequence is analyzed to determine the password characteristics in terms of character type; for the character order, it is determined whether the characters have a specific arrangement pattern such as increasing, decreasing, and repeated characters; for the character frequency, the frequency of each character appearing in the password is counted. In this way, the password features corresponding to each preset characteristic indicator are extracted to form the first password feature. Then, in order to protect the privacy of these password features and improve security, the extracted first password features are encrypted using a pre-set encryption algorithm (such as a common symmetric encryption algorithm or an asymmetric encryption algorithm, etc.), and the content obtained after encryption is the encrypted first password feature. In this way, even if these feature data are obtained during transmission or storage, their true content cannot be known without corresponding decryption means, thereby ensuring the security of password-related information.
[0065] Step A3: construct a corresponding first feature set based on the encrypted first password feature.
[0066] Specifically, after obtaining the encrypted first password feature, these encrypted features are organized according to certain rules or logic to form a set, which is the first feature set. For example, the encrypted character type feature, the encrypted character sequence feature, the encrypted character frequency feature, etc. can be put into this set in sequence to form an overall data structure. This first feature set will be used to compare with the second feature sets corresponding to other smart locks to determine whether there are similarities between the passwords. It carries the key feature information of the password currently set for the target smart lock after encryption, which is convenient for unified calling and processing in operations such as similarity comparison.
[0067] In the embodiment of the present application, obtaining the second feature set corresponding to other smart locks within the preset range of the target smart lock includes the following steps B1-B3:
[0068] Step B1, identifying other smart locks within a preset range of the target smart lock.
[0069] Specifically, when the target smart lock performs password-related operations, it needs to identify which smart locks in its vicinity are within the range for password feature comparison. It can use its own communication module to scan the surrounding environment, and based on a pre-set communication protocol (such as Bluetooth protocol, ZigBee protocol, and other protocols suitable for short-range communication or wireless communication protocols based on a specific frequency band, etc.), find other smart lock devices that can establish a connection with it or are within the signal coverage range, and mark these detectable smart locks as smart locks within the preset range. It can also be combined with the effective communication range determined by previous operations such as signal strength calibration, and all smart locks within this established range are identified as other smart locks within the preset range of the target smart lock.
[0070] Step B2: Generate a request signal using a preset characteristic indicator and a preset encryption algorithm.
[0071] Specifically, the preset feature indicators that match the password setting function have been obtained from the preset configuration library of the target smart lock, and the corresponding encryption algorithm (such as common encryption methods such as AES encryption algorithm) has been pre-set in the system. At this time, the preset feature indicators and key information related to the encryption algorithm are organized and packaged according to a certain data format to generate a request signal. The request signal contains the specific password features that need to be obtained (such as feature indicator requirements in terms of character type, character order, etc.) and what encryption algorithm should be used for encryption when the data is subsequently returned, so that the smart lock that receives the request signal can clearly know the needs of the sender (that is, the target smart lock), extract the features corresponding to its own password sequence according to unified rules, and return the corresponding data after encryption processing, so as to ensure the standardization and consistency of the entire password feature acquisition and comparison process.
[0072] Step B3, sending a request signal to other smart locks, and receiving a second feature set returned by other smart locks based on the request signal.
[0073] Specifically, the communication module (e.g., wireless communication module) of the target smart lock sends the generated request signal to each smart lock within the preset range in accordance with the corresponding communication method (e.g., broadcast transmission or directional transmission, etc., depending on the specific communication protocol and system design). The smart lock that receives the request signal will extract the second password feature corresponding to its own password sequence according to the preset feature indicators and encryption algorithm requirements contained in the request signal, encrypt it and construct it into a second feature set, and then send this second feature set back to the target smart lock through its own communication module. The target smart lock receives and temporarily stores the second feature sets received from each smart lock.
[0074] Step S13, comparing the first feature set with the second feature set to obtain a comparison result, and performing a reminder operation corresponding to the comparison result, wherein the reminder operation is used to remind the user to reset the password sequence.
[0075] In the embodiment of the present application, the first feature set is compared with the second feature set to obtain a comparison result, including the following steps C1-C3:
[0076] Step C1, obtaining comparison conditions associated with each indicator in the preset characteristic indicators.
[0077] Specifically, for character type indicators, the comparison condition can be set as the difference range of the number and proportion of each type of characters (letters, numbers, special symbols) in the two passwords, such as the difference in the number of letters does not exceed a specific number, and the difference in proportion is within a certain specific ratio to meet the comparison condition. For character sequence indicators, the comparison condition can be to determine the matching degree of the same sequence pattern (such as increasing, decreasing, repeating characters, etc.), for example, it is required that more than a certain percentage of the character sequence pattern is consistent to meet the comparison condition. For character frequency indicators, the comparison condition can be to specify the difference range of the frequency of occurrence of characters, such as when the difference in the frequency of occurrence of a certain character in two passwords is less than a certain set value, the comparison condition is met. For password length, the comparison condition can be set to satisfy the condition when the length difference is within a certain numerical range, such as the length difference does not exceed 3 characters. For character position patterns, the comparison condition can be to determine the similarity of the position of the corresponding character type in the password, such as the overlap of the position pattern reaches a certain ratio to meet the condition.
[0078] By determining the corresponding comparison conditions for each preset feature indicator, the foundation is laid for the subsequent accurate analysis of the similarities between the two feature sets, so that the system can judge whether there are similarities between passwords based on these clear standards.
[0079] Step C2: according to preset feature indicators, decompose the first feature set and the second feature set into multiple feature combinations.
[0080] Specifically, according to the preset feature indicators, for example, first according to the character type indicator, the relevant feature information about various types of characters such as letters, numbers, special symbols, etc. in the target smart lock password is extracted from the first feature set, and the character type-related feature information corresponding to each smart lock password is also extracted from the second feature set, thus forming a feature combination about the character type. Then, according to the character sequence indicator, the feature content related to the character sequence pattern of each password is taken out from the two feature sets respectively to form a feature combination about the character sequence. Similarly, for each preset feature indicator such as character frequency, password length, character position pattern, etc., the corresponding feature information is extracted from the first feature set and the second feature set in turn, and then a plurality of different feature combinations are disassembled, each feature combination corresponds to a specific preset feature indicator, which is convenient for the subsequent analysis of the similarity of these feature combinations one by one based on the comparison conditions associated with each indicator.
[0081] Step C3, analyzing each feature combination based on the comparison conditions to obtain a comparison result.
[0082] In the embodiment of the present application, step C3 includes the following steps C31-C33:
[0083] Step C31, calculating the similarity according to the indicator type corresponding to the feature combination.
[0084] As an example, in terms of character types: the character type code of the password in the first feature set is "1112223" (3 letters, 3 numbers, 1 symbol), and the character type code of the password to be compared in the second feature set is "1122233". Their similarity can be measured by a specific calculation method, such as calculating the sum of the absolute values of the differences in the number of character types, and then dividing it by the total number of characters, etc., to obtain a value between 0 and 1 to represent the similarity of the character types. The closer the value is to 1, the more similar they are.
[0085] In terms of character sequence patterns: if the character sequence pattern of the password in the first feature set is encoded as "101" (assuming that they correspond to increasing, non-increasing, and increasing judgment results respectively), and the other password is encoded as "100" in the second feature set, the similarity can be determined by counting the proportion of consistent encodings at the same position. For example, here there are 2 positions with the same encoding, for a total of 3 positions, then the similarity is 2 / 3, which reflects the degree of similarity in the character sequence pattern.
[0086] In terms of character frequency: First, extract the normalized numerical list of the frequency of each character in the password, and then calculate the Euclidean distance or cosine similarity and other appropriate mathematical methods (measure the similarity between vectors, and regard the character frequency as a vector element) to obtain the similarity value of the character frequency.
[0087] Password length: Divide the absolute value of the password length difference by the length of the longer password, and then subtract the result from 1 to get the similarity of the password length. For example, if one password is 8 and the other is 6, the absolute value of the difference is 2, and the longer password is 8, the similarity can be calculated to be 1-2 / 8=0.75.
[0088] Step C32, determining whether the similarity of each feature combination satisfies the corresponding comparison condition, and obtaining the number of combinations that meet the comparison condition.
[0089] As an example, for the character type feature combination, the previously set comparison condition is that the similarity value must be greater than or equal to 0.8 to meet the condition. If the calculated similarity of the feature combination is 0.9, it meets the comparison condition. For the character sequence pattern feature combination, if the set comparison condition is that the similarity is greater than 0.6, and the actual calculated similarity is 0.7, the comparison condition is also met. Similarly, the similarity values of each feature combination such as character frequency, password length, character position pattern, etc. are judged one by one according to their corresponding comparison conditions. Whenever the similarity of a feature combination meets its corresponding comparison condition, the number of combinations that meet the condition is counted and added by 1. The final number of combinations that meet the comparison condition will be used for subsequent comparison with the preset threshold value to comprehensively determine whether the first feature set and the second feature set are similar as a whole.
[0090] Step C33, comparing the number of combinations with a preset threshold, if the number of combinations is greater than or equal to the preset threshold, determining that the comparison result is that the first feature set is similar to the second feature set, or, if the number of combinations is less than the preset threshold, determining that the comparison result is that the first feature set is not similar to the second feature set.
[0091] As an example, suppose there are 5 different feature combinations (corresponding to different feature dimensions), and the preset threshold is set to 3. After statistics, the number of combinations that meet the comparison conditions is 4. Since 4 is greater than or equal to the preset threshold 3, it can be determined that the comparison result is that the first feature set is similar to the second feature set. This means that from the perspective of multiple password feature dimensions, the passwords represented by the two sets have a high similarity and there is a security risk, so corresponding measures need to be taken. On the contrary, if the number of combinations that meet the comparison conditions is 2, because 2 is less than the preset threshold 3, it is determined that the comparison result is that the first feature set is not similar to the second feature set. This means that from the perspective of the overall password features, the similarity between the passwords corresponding to the two sets is within an acceptable range, the password setting is relatively safe and reasonable, and no additional password change operations are required.
[0092] The method provided in the embodiment of the present application compares the number of combinations that meet the conditions with the preset threshold value to give a clear judgment result as to whether the first feature set and the second feature set are similar, thereby providing a basis for subsequent execution of corresponding reminder operations (such as reminding the user to reset the password or store the password as a valid password, etc.), ensuring that the entire smart lock password setting process can effectively prevent potential security risks caused by similar passwords and maintain the security and reliability of password use.
[0093] In the embodiment of the present application, executing the reminder operation corresponding to the comparison result includes the following steps D1-D2:
[0094] Step D1, if the comparison result is that the first feature set is similar to the second feature set, the setting operation of the password sequence is prohibited, and a preset prompt message is sent through the interactive area associated with the target smart lock.
[0095] Specifically, if the comparison result shows that the first feature set is similar to the second feature set, the password sequence setting operation is first prohibited, that is, similar passwords are prevented from being saved and applied to the target smart lock, such as blocking the process of writing to the storage password related module in its internal program logic. Then, a preset prompt message is sent to the user through the interactive area associated with the smart lock (such as the display screen, flashing indicator light, or mobile phone application message push, voice prompt, etc.), informing the user that the password needs to be reset. For example, the display screen displays "The password you set is highly similar to the surrounding passwords, please reset it", guiding the user to re-enter the password until the new password meets the security requirements after feature comparison.
[0096] Step D2, if the comparison result is that the first feature set and the second feature set are not similar, the password sequence is stored as a valid password in the preset space, and when a request signal from other smart locks within the preset range is received, the first feature set corresponding to the password sequence is fed back to other smart locks.
[0097] Specifically, if the comparison result shows that the first feature set is not similar to the second feature set, the password sequence will be stored as a valid password in a special preset space inside the smart lock (such as a specific area of the flash memory chip), and written according to the storage instructions, data format and encryption method (if encryption is required), so that the user can unlock the lock normally later. At the same time, when receiving a request signal from other smart locks within the preset range (such as performing a password similarity prevention operation), the target smart lock will follow the established process and rules, based on the previous communication method and encryption method, and feedback the first feature set corresponding to the password sequence to the other party, to ensure data privacy and security, help each smart lock carry out password similarity monitoring and prevention work, and ensure the safe and reasonable use of system passwords.
[0098] In this embodiment, a method for sharing the password feature of a smart lock is also provided, which is applied to other smart locks. Figure 2 is a flow chart of a method for setting a password sequence for a smart lock according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0099] Step S21, receiving a request signal sent by the target smart lock.
[0100] In the embodiment of the present application, in the smart lock system, each smart lock needs to exchange information to realize functions such as password feature sharing and similarity judgment. After the target smart lock sends a request signal according to the established process (such as judging the similarity of the password with the surrounding locks when setting the password), other smart locks will use their own communication modules (such as Bluetooth, ZigBee and other wireless communication modules) to receive the signal, just like listening to the signal that conforms to the protocol within a specific communication range. After detection, they will carry out subsequent processing and prepare to respond to the needs of the target smart lock.
[0101] Step S22, parse the request signal to obtain preset characteristic indicators and preset encryption algorithm.
[0102] In the embodiment of the present application, the received request signal is encapsulated according to a specific data format and rules, and contains the key information required by the target smart lock. The smart lock parses the signal through a built-in program or module, extracts preset feature indicators that match the password setting function, such as character type, sequence, frequency, password length, position mode and other specific requirements, clearly extracts the dimensions of its own password features, and can also obtain the preset encryption algorithm required by the target smart lock (such as symmetric or asymmetric encryption algorithms such as AES) to ensure the consistency and compatibility of encryption when the two parties interact with each other, so as to facilitate the processing and interaction of data according to unified rules.
[0103] Step S23: extracting the second password feature of the local password sequence according to the preset feature index, and performing an encryption operation on the second password feature using a preset encryption algorithm to obtain an encrypted second password feature.
[0104] In the embodiment of the present application, according to the preset characteristic index obtained by parsing, the smart lock extracts the characteristics of the local password sequence, such as analyzing the number of each type of characters in the password according to the character type index to determine the corresponding characteristics, judging the character arrangement mode according to the character sequence index, and counting the frequency of character occurrence according to the character frequency index, etc., to extract the second password characteristics. Then, the preset encryption algorithm parsed from the request signal is used to encrypt the second password characteristics according to its encryption key and operation logic to obtain the encrypted second password characteristics, so as to ensure the privacy and security of the data when it is transmitted to the target smart lock, and prevent the information from being stolen or tampered with.
[0105] Step S24, constructing a second feature set based on the encrypted second password feature, and feeding back the second feature set to the target smart lock.
[0106] In the embodiment of the present application, after obtaining the encrypted second password feature, the encrypted features are integrated in a specific organization method to construct a second feature set, such as the encrypted character type, sequence, frequency and other features are sequentially put into the set. Then, the smart lock's own communication module is used to send the second feature set back to the target smart lock according to the communication method agreed with the target smart lock (such as wireless communication directional transmission or broadcast reply, etc.) for comparison and analysis, to determine the password similarity, and to complete the relevant operation process, so as to ensure the safe and reasonable use of the apartment lock system password.
[0107] In the embodiments of the present application, Figure 3 As shown, the target smart lock is first set by the user with the corresponding password sequence, and then feature extraction and encryption processing are carried out for the password sequence to generate a first feature set. Then, a request signal is constructed based on this first feature set, the established encryption strategy and the preset feature indicators, and it is sent to other smart locks within the preset range. After receiving the request signal, other smart locks parse it to obtain the first feature set, and then store the first feature set in a local specific storage space. When the smart lock resets the password sequence again, the system will compare and analyze the new password sequence with the stored first feature set. Once it is determined that the new password sequence is similar to the first feature set, it will immediately prompt to prohibit the setting of similar passwords, so as to effectively ensure the security and uniqueness of the password and avoid potential security risks caused by similar passwords.
[0108] In this embodiment, a device for setting a smart lock password sequence and a device for sharing a smart lock password feature are also provided. The devices are used to implement the above-mentioned embodiments and preferred implementations, and those that have been described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0109] This embodiment provides a device for setting a password sequence of a smart lock, which is applied to a target smart lock, such as Figure 4 As shown, including:
[0110] An acquisition module 41 is used to acquire a password sequence input by a user in an interactive area when a target smart lock is detected to trigger a password setting function, wherein the interactive area is set on a panel of the smart lock and / or an application associated with the smart lock;
[0111] A determination module 42 is used to determine a first feature set according to a password sequence, and obtain a second feature set corresponding to other smart locks within a preset range of the target smart lock, wherein the second feature set is generated according to the password sequences of the other smart locks;
[0112] The comparison module 43 is used to compare the first feature set with the second feature set to obtain a comparison result, and to perform a reminder operation corresponding to the comparison result, wherein the reminder operation is used to remind the user to reset the password sequence.
[0113] In an optional implementation of the present application, the determination module 42 includes an encryption submodule and a sending submodule;
[0114] The encryption submodule is used to obtain a preset feature indicator that matches the password setting function from the preset configuration library of the target smart lock; extract the first password feature of the password sequence according to the preset feature indicator, and encrypt the first password feature using a preset encryption algorithm to obtain the encrypted first password feature; and construct a corresponding first feature set based on the encrypted first password feature.
[0115] The sending submodule is used to identify other smart locks within a preset range of the target smart lock; generate a request signal using preset feature indicators and a preset encryption algorithm; send the request signal to other smart locks, and receive a second feature set returned by other smart locks based on the request signal.
[0116] In an optional embodiment of the present application, the comparison module 43 includes an analysis submodule and an execution submodule;
[0117] The analysis submodule is used to obtain the comparison conditions associated with each indicator in the preset feature indicators; according to the preset feature indicators, the first feature set and the second feature set are decomposed into multiple feature combinations; based on the comparison conditions, each feature combination is analyzed to obtain a comparison result.
[0118] The analysis submodule is used to calculate the similarity according to the indicator type corresponding to the feature combination; determine whether the similarity of each feature combination meets the corresponding comparison condition, and obtain the number of combinations that meet the comparison condition; compare the number of combinations with a preset threshold, if the number of combinations is greater than or equal to the preset threshold, determine that the comparison result is that the first feature set is similar to the second feature set, or, if the number of combinations is less than the preset threshold, determine that the comparison result is that the first feature set is not similar to the second feature set.
[0119] An execution submodule is used to prohibit the setting operation of the password sequence if the comparison result is that the first feature set and the second feature set are similar, and send a preset prompt message through the interactive area associated with the target smart lock; or, if the comparison result is that the first feature set and the second feature set are not similar, store the password sequence as a valid password in a preset space, and when receiving a request signal from other smart locks within a preset range, feedback the first feature set corresponding to the password sequence to other smart locks.
[0120] This embodiment provides a sharing device for smart lock password features, which is applied to other smart locks, such as Figure 5 As shown, including:
[0121] A receiving module 51 is used to receive a request signal sent by a target smart lock;
[0122] The parsing module 52 is used to parse the request signal and obtain a preset characteristic index and a preset encryption algorithm;
[0123] An extraction module 53 is used to extract a second password feature of the local password sequence according to a preset feature index, and perform an encryption operation on the second password feature using a preset encryption algorithm to obtain an encrypted second password feature;
[0124] The construction module 54 is used to construct a second feature set based on the encrypted second password feature and feed the second feature set back to the target smart lock.
[0125] See also Figure 6 , Figure 6 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 6 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system).
[0126] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0127] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0128] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0129] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0130] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0131] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0132] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for setting a password sequence of a smart lock, applied to a target smart lock, characterized in that: The method comprises: When it is detected that the target smart lock triggers the password setting function, obtaining the password sequence entered by the user in the interactive area, wherein the interactive area is set on the panel of the smart lock and / or the application associated with the smart lock; Determine a first feature set according to the password sequence, identify other smart locks within a preset range of the target smart lock, generate a request signal using a preset feature indicator and a preset encryption algorithm, and send the request signal to the other smart locks, wherein the other smart locks are used to parse the request signal, obtain a preset feature indicator and a preset encryption algorithm, extract a second password feature of the local password sequence according to the preset feature indicator, perform an encryption operation on the second password feature using the preset encryption algorithm to obtain an encrypted second password feature, construct a second feature set based on the encrypted second password feature, and feed the second feature set back to the target smart lock; Receiving a second feature set returned by the other smart lock based on the request signal; The first feature set is compared with the second feature set to obtain a comparison result, and a reminder operation corresponding to the comparison result is performed, wherein the reminder operation is used to remind the user to reset the password sequence.
2. The method according to claim 1, characterized in that The determining of a first feature set according to the password sequence comprises: Acquire a preset characteristic indicator matching the password setting function from a preset configuration library of the target smart lock; Extracting a first password feature of the password sequence according to the preset feature indicator, and encrypting the first password feature using a preset encryption algorithm to obtain an encrypted first password feature; A corresponding first feature set is constructed based on the encrypted first password feature.
3. The method according to claim 2, characterized in that The comparing the first feature set with the second feature set to obtain a comparison result includes: Obtaining comparison conditions associated with each indicator in the preset characteristic indicators; According to the preset feature index, the first feature set and the second feature set are decomposed into a plurality of feature combinations; Each of the feature combinations is analyzed based on the comparison conditions to obtain a comparison result.
4. The method according to claim 3, characterized in that The analyzing each of the feature combinations based on the comparison conditions to obtain a comparison result includes: Calculate similarity according to the indicator type corresponding to the feature combination; Determine whether the similarity of each of the feature combinations meets the corresponding comparison condition, and obtain the number of combinations that meet the comparison condition; The number of combinations is compared with a preset threshold. If the number of combinations is greater than or equal to the preset threshold, it is determined that the comparison result is that the first feature set is similar to the second feature set. Alternatively, if the number of combinations is less than the preset threshold, it is determined that the comparison result is that the first feature set is not similar to the second feature set.
5. The method according to claim 1, characterized in that The performing of the reminder operation corresponding to the comparison result includes: If the comparison result is that the first feature set is similar to the second feature set, prohibiting the setting operation of the password sequence, and sending a preset prompt message through the interactive area associated with the target smart lock; Or, if the comparison result is that the first feature set is not similar to the second feature set, the password sequence is stored as a valid password in a preset space, and when a request signal from other smart locks within a preset range is received, the first feature set corresponding to the password sequence is fed back to the other smart locks.
6. A device for setting a password sequence for a smart lock, applied to a target smart lock, characterized in that: The device comprises: An acquisition module, configured to acquire a password sequence input by a user in an interactive area when it is detected that a target smart lock triggers the password setting function, wherein the interactive area is set on a panel of the smart lock and / or an application associated with the smart lock; A determination module, used to determine a first feature set according to the password sequence, identify other smart locks within a preset range of the target smart lock, generate a request signal using a preset feature indicator and a preset encryption algorithm, and send the request signal to the other smart locks, wherein the other smart locks are used to parse the request signal, obtain a preset feature indicator and a preset encryption algorithm, extract a second password feature of the local password sequence according to the preset feature indicator, perform an encryption operation on the second password feature using the preset encryption algorithm to obtain an encrypted second password feature, construct a second feature set based on the encrypted second password feature, and feed the second feature set back to the target smart lock; A receiving module, configured to receive a second feature set returned by the other smart lock based on the request signal; The comparison module is used to compare the first feature set with the second feature set to obtain a comparison result, and execute a reminder operation corresponding to the comparison result, wherein the reminder operation is used to remind the user to reset the password sequence.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Binary file detection method and device, electronic equipment and storage medium
CN117435480A
Intelligent door lock password setting method and system based on password similarity of adjacent users
CN118570911A