An intelligent cabinet lock security management and control system based on the Internet of Things
By collecting and verifying input passwords, fingerprints and card swiping data in the smart cabinet lock system, and using hash function encryption processing, combined with the button click limit, the risk of hackers being attacked by traditional systems is solved, significantly improving the security of smart cabinet locks and data protection.
Patent Information
- Application Number
- CN202410667366.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-05-28
AI Technical Summary
Traditional smart cabinet lock security control systems based on the Internet of Things have the risk of being hacked, especially due to insufficient system security, which may be hacked through network vulnerabilities or weak passwords, resulting in the cabinet lock being remotely controlled or tampered with.
A smart cabinet lock security control system including data acquisition module, verification identification module and security control module was designed. By collecting input password data, fingerprint verification data, card verification data and user clicking buttons, data matching verification is used to verify the data using formulas. And security protection is carried out based on the matching results to enhance system security.
By enhancing the security of password, fingerprint and card verification, preventing unauthorized lock-opening operations, ensuring that the system allows lock-opening when the password comparison results or fingerprint comparison results are verified, and blocking the cabinet door if the button clicks more than 5 times , further improving the safety of smart cabinet locks.
Smart Images

Figure CN118629108B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent cabinet lock security management and control, and in particular to an intelligent cabinet lock security management and control system based on the Internet of Things. Background Art
[0002] Smart cabinet locks can achieve intelligent management, such as setting temporary passwords, authorized access time, remote unlocking and other functions. This intelligent management improves the flexibility and convenience of cabinet locks and is suitable for various scenarios, such as public places, enterprises, schools, etc. Smart cabinet locks can be connected to the Internet through the Internet of Things, allowing users to remotely monitor and manage the status of cabinet locks, including switch status, usage records, power, etc. In this way, users can control cabinet locks anytime and anywhere through mobile phones or computers.
[0003] Traditional IoT-based smart cabinet lock security management systems are connected to the Internet and are at risk of being attacked by hackers. If the system security is not strong enough, hackers may invade the system through network vulnerabilities or weak passwords, causing the cabinet locks to be remotely controlled or tampered with. Summary of the invention
[0004] 1. Technical issues to be resolved
[0005] In view of the shortcomings of the prior art, the present invention provides a smart cabinet lock security management and control system based on the Internet of Things, which has the advantages of collecting input password data, fingerprint verification data, card swiping verification data and the number of times the user clicks a button through a data acquisition module, and the verification and identification module performs data matching and verification through a formula based on the above data values, and the security management and control module makes security protection based on the matching verification results, thereby solving the above problems.
[0006] (II) Technical solution
[0007] To achieve the above-mentioned purpose, the present invention provides the following technical solutions: an intelligent cabinet lock security management and control system based on the Internet of Things, comprising a data acquisition module, a verification and identification module and a security management and control module;
[0008] The data acquisition module is connected to the verification and identification module via a network;
[0009] The verification and identification module is connected to the security management and control module via a network;
[0010] The data acquisition module includes a password acquisition unit, a fingerprint acquisition unit, a card swiping data acquisition unit and a user terminal operation data acquisition unit;
[0011] The password collection unit is used to collect the input password data Srmm of the smart cabinet lock;
[0012] The fingerprint collection unit is used to collect fingerprint verification data Zwsj of the intelligent cabinet lock;
[0013] The card swiping data collection unit is used to collect the card swiping verification data Skyz of the smart cabinet lock;
[0014] The user-side operation data collection unit is used to collect the number of times a user clicks a button on the smart lock Djcs;
[0015] The data collection module transmits the collected input password data Srmm, fingerprint verification data Zwsj, card swipe verification data Skyz and the number of times the user clicks the button Djcs to the verification and identification module through the network;
[0016] The verification and identification module has a correct password database set inside. The verification and identification module converts the input password data Srmm of the smart cabinet lock transmitted by the data acquisition module through a formula to obtain a converted password data value Zhmm. The verification and identification module matches the converted password data value Zhmm with the correct password value Zqmm set inside the verification and identification module, and sets a password comparison result receiving parameter Xt to receive the password matching result.
[0017] The verification and identification module is internally provided with a fingerprint database. The verification and identification module converts the fingerprint into a number according to the fingerprint verification data Zwsj of the smart cabinet lock transmitted by the data acquisition module, and obtains the fingerprint digital value Szzw through a formula. The verification and identification module compares the converted fingerprint digital value Szzw with the correct fingerprint data Zqzw set inside the verification and identification module and sets the fingerprint comparison result receiving parameter Qt to receive the fingerprint comparison result;
[0018] The verification and identification module has a built-in magnetic stripe card reader. The verification and identification module performs a formula comparison based on the card swipe verification data Skyz of the smart cabinet lock transmitted by the data acquisition module and the correct card swipe data Zqsk built into the module, and receives the card swipe verification comparison result through the card swipe verification receiving parameter Yt;
[0019] The verification and identification module has a built-in touch sensor. When the user clicks the unlock button, the number of times the user clicks the button Djcs automatically increases by 1 and cannot be greater than 5;
[0020] The verification and identification module transmits the above-calculated password comparison result receiving parameter Xt, fingerprint comparison result receiving parameter Qt, card swipe verification receiving parameter Yt and the number of button clicks Djcs to the security management and control module through the network;
[0021] The security management and control module receives the password comparison result receiving parameter Xt, the fingerprint comparison result receiving parameter Qt, the card verification receiving parameter Yt and the number of button clicks Djcs transmitted by the verification and identification module. When the password comparison result receiving parameter Xt or the fingerprint comparison result receiving parameter Qt or the card verification receiving parameter Yt is equal to 1, it is displayed that the verification is passed. When the password comparison result receiving parameter Xt or the fingerprint comparison result receiving parameter Qt or the card verification receiving parameter Yt is equal to 0, it is displayed that the verification is failed. When the number of button clicks Djcs is greater than 5, it is displayed that there is no authority to unlock the door.
[0022] Preferably, the password collection unit compiles the collected input password of the smart cabinet lock into a data set through touch screen input, and the input password data set is {Srmm n-9 ,Srmm n-8 ,Srmm n-7 ,...,Srmm n}.
[0023] Preferably, the fingerprint collection unit compiles the collected fingerprint verification data of the smart cabinet lock into a data set through an optical sensor, and the fingerprint verification data set is {Zwsj n-9 ,Zwsj n-8 ,Zwsj n-7 ,...Zwsj n}.
[0024] Preferably, the fingerprint collection unit compiles the collected fingerprint verification data of the smart cabinet lock into a data set through an optical sensor, and the fingerprint verification data set is {Zwsj n-9 ,Zwsj n-8 ,Zwsj n-7 ,...Zwsj n}.
[0025] Preferably, the user-side operation data collection unit compiles the collected times of the user clicking the button of the smart cabinet lock into a data set through a sensor, and the data set of the user clicking the button times is {Djcs n-4 ,Djcs n-3 ,...Djcs n}.
[0026] Preferably, the verification and identification module converts the input password data Srmm through a formula to obtain a converted password data value Zhmm, matches the converted password data value Zhmm with the correct password value Zqmm set inside the verification and identification module, sets a password comparison result receiving parameter Xt, and receives the password matching result. The password conversion formula is as follows:
[0027]
[0028] In the formula, Zhmm represents the converted password data value, and n=1 represents the Srmm in the input password data set. n The first password value is used as the starting calculation position, and the 10th password value is used as the ending calculation position. Hash represents the hash function, which converts the password data into a hash value. Represents the average value of the input password data set;
[0029] The matching formula is as follows:
[0030] Xt=(Zqmm=Zhmm?1:0)
[0031] In the formula, Xt represents the password comparison result receiving parameter, Zqmm represents the correct password value set inside the verification and identification module, and Zhmm represents the converted password data value Zhmm.
[0032] Preferably, the verification and identification module converts the fingerprint into a number through a formula to obtain a fingerprint digital value Szzw. The verification and identification module compares the converted fingerprint digital value Szzw with the correct fingerprint data Zqzw set inside the verification and identification module and sets a fingerprint comparison result receiving parameter Qt to receive the fingerprint comparison result. The fingerprint conversion formula is as follows:
[0033]
[0034] In the formula, Szzw represents the fingerprint digital value, and n=1 represents the Zwsj in the fingerprint verification data set. n The first fingerprint data value is used as the starting calculation position, and the 10th password value is used as the ending calculation position. Hash represents the hash function, which converts the fingerprint data into a hash value. represents the average value of the fingerprint verification data set;
[0035] The matching formula is as follows:
[0036] Qt=(Zqzw=Szzw?1:0)
[0037] In the formula, Qt represents the fingerprint comparison result receiving parameter, Zqzw represents the correct fingerprint data set inside the verification and identification module, and Szzw represents the fingerprint digital value.
[0038] Preferably, the verification and identification module verifies the card swipe verification data Skyz of the smart cabinet lock transmitted by the data acquisition module and compares it with the correct card swipe data Zqsk built into the module by formula, and receives the card swipe verification comparison result through the card swipe verification receiving parameter Yt. The comparison formula is as follows:
[0039]
[0040] In the formula, Yt represents the card verification receiving parameter, and n=1 represents the Skyz in the card verification data set. n The first password value is used as the starting calculation position, the 10th password value is used as the ending calculation position, Hash represents the hash function, which converts the card swipe verification data into a hash value, and Zqsk represents the correct card swipe data built into the verification and identification module.
[0041] Preferably, the verification and identification module has a built-in touch sensor. When the user clicks the unlock button, the number of times the user clicks the button Djcs automatically increases by 1 and cannot be greater than 5. The number of times the button is clicked is increased by a digital accumulator. The implementation code is as follows:
[0042] #include studio.h
[0043] int main(){
[0044] int Djcs=0,i=0;
[0045] char input;
[0046] for{i=0;i<5;i++
[0047] scanf("%c", &input);
[0048] if(input == 'c')
[0049] Djcs++;
[0050] printf("Number of button clicks: %d\n",Djcs)}}.
[0051] Preferably, the security management and control module receives the above-mentioned calculated values, and when the password comparison result receiving parameter Xt or the fingerprint comparison result receiving parameter Qt or the card swiping verification receiving parameter Yt is equal to 1, the display terminal displays that the verification is passed; when the password comparison result receiving parameter Xt or the fingerprint comparison result receiving parameter Qt or the card swiping verification receiving parameter Yt is equal to 0, the display terminal displays that the verification is failed; when the number of button clicks Djcs is greater than 5, the display terminal displays that there is no authority to unlock the door again.
[0052] Compared with the prior art, the present invention provides an intelligent cabinet lock security management and control system based on the Internet of Things, which has the following beneficial effects:
[0053] The system of the present invention collects the input password data Srmm of the smart lock through the password collection unit of the data collection module, collects the fingerprint verification data Zwsj of the smart lock through the fingerprint collection unit, collects the card verification data SKyz of the smart lock through the card swiping data collection unit, and collects the number of times the user clicks the button of the smart lock Djcs through the user-end operation data collection unit. The verification and identification module receives the above values, and obtains the password comparison result receiving parameter Zt, the fingerprint comparison result receiving parameter Qt, the card verification receiving parameter Yt and the number of button clicks Djcs through formula matching calculation. The security management and control module calculates the password comparison result receiving parameter Zt, the fingerprint comparison result receiving parameter Qt, the card verification receiving parameter Yt and the number of button clicks Djcs according to the above calculation. The calculated value is used for verification operation. When the password comparison result receiving parameter Xt or the fingerprint comparison result receiving parameter Qt or the card verification receiving parameter Yt is equal to 1, the display terminal displays that the verification is passed, and the unlocking operation is allowed. At the same time, the password change security question interface is displayed. When the password comparison result receiving parameter Xt or the fingerprint comparison result receiving parameter Qt or the card verification receiving parameter Yt is equal to 0, and the number of button clicks Djcs is greater than 5, the unlocking operation is not allowed. The system will block the cabinet door and it will be impossible to unlock it within 24 hours. Through the above operations, the security of the smart cabinet lock is further enhanced. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 It is a schematic diagram of the system flow of the present invention. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] See also Figure 1 , an intelligent cabinet lock security management and control system based on the Internet of Things, including a data acquisition module, a verification and identification module and a security management and control module;
[0057] The password collection unit of the data collection module is used to collect the input password data Srmm of the smart cabinet lock, the fingerprint collection unit is used to collect the fingerprint verification data Zwsj of the smart cabinet lock, the card swiping data collection unit is used to collect the card swiping verification data Skyz of the smart cabinet lock, and the user-side operation data collection unit collects the number of times the user clicks the button of the smart cabinet lock Djcs. The data collection module transmits the collected input password data Srmm, fingerprint verification data Zwsj, card swiping verification data Skyz, and the number of times the user clicks the button Djcs to the verification and identification module through the network;
[0058] The verification and identification module sets up a correct password database inside. The verification and identification module converts the input password data Srmm of the smart cabinet lock transmitted by the data acquisition module through a formula to obtain the converted password data value Zhmm. The verification and identification module matches the converted password data value Zhmm with the correct password value Zqmm set inside the verification and identification module and sets the password comparison result receiving parameter Xt to receive the password matching result. The conversion formula and matching formula are as follows:
[0059] Conversion formula:
[0060]
[0061] The hash function can convert the password into a hash value of fixed length, so that even if the hash value is leaked, the original password cannot be directly deduced. Storing the password as a hash value can improve the security of the password and reduce the risk of password leakage. In the formula, Zhmm represents the converted password data value, and n=1 represents the Srmm in the input password data set. n The first password value is used as the starting calculation position, and the 10th password value is used as the ending calculation position. Hash represents the hash function, which converts the password data into a hash value. It represents the average value of the input password data set. By converting the password into a hash value, data security is further improved.
[0062] The matching formula is as follows:
[0063] Xt=(Zqmm=Zhmm?1:0)
[0064] In the formula, Xt represents the password comparison result receiving parameter, Zqmm represents the correct password value set inside the verification and identification module, and Zhmm represents the converted password data value Zhmm. Through the conditional expression, the values of Zqmm and Zhmm are compared. When the values of the two are equal, the value 1 is returned, and when they are not equal, the value 0 is returned. The conditional expression accurately reflects the data matching situation;
[0065] The verification and identification module receives the fingerprint verification data Zwsj transmitted by the data acquisition module, converts the fingerprint into a number through a formula, and obtains the fingerprint digital value Szzw. The verification and identification module compares the converted fingerprint digital value Szzw with the correct fingerprint data Zqzw set inside the verification and identification module and sets the fingerprint comparison result receiving parameter Qt to receive the fingerprint comparison result. The fingerprint conversion formula is as follows:
[0066]
[0067] The hash function algorithm is an irreversible algorithm, that is, the original password cannot be restored from the hash value. This feature ensures the security of the user's password. Even if the system is attacked or the data is leaked, hackers cannot restore the user's password through the hash value. In the formula, Szzw represents the fingerprint digital value, and n=1 represents the Zwsj in the fingerprint verification data set. n The first fingerprint data value is used as the starting calculation position, and the 10th password value is used as the ending calculation position. Hash represents the hash function, which converts the fingerprint data into a hash value. It represents the average value of the fingerprint verification data set, and improves the privacy of the fingerprint by converting the fingerprint data into a hash value of fixed length;
[0068] The matching formula is as follows:
[0069] Qt=(Zqzw=Szzw?1:0)
[0070] In the formula, Qt represents the fingerprint comparison result receiving parameter, Zqzw represents the correct fingerprint data set inside the verification and identification module, and Szzw represents the fingerprint digital value. The values of Zqzw and Szzw are compared through the conditional expression. When the two values are equal, the value 1 is returned, and when they are not equal, the value 0 is returned. This expression can accurately identify the data matching result;
[0071] The verification and identification module verifies the card swipe verification data Skyz of the smart cabinet lock transmitted by the data acquisition module and compares it with the correct card swipe data Zqsk built into the module by formula, and receives the card swipe verification comparison result through the card swipe verification receiving parameter Yt. The comparison formula is as follows:
[0072]
[0073] Storing passwords as hash values can protect the privacy of user passwords, prevent plain text passwords from being stored or transmitted in the system, and reduce the possibility of malicious access to user passwords. In the formula, Yt represents the card verification receiving parameter, and n=1 represents the Skyz in the card verification data set. n As the starting position of the calculation of the first password value, the 10th password value is the end position of the calculation, Hash represents the hash function, which converts the card verification data into a hash value, and Zqsk represents the correct card verification data built into the verification recognition module. The card verification data is converted into a hash value of fixed length to enhance the uniqueness of the data. The calculated value is compared with the value of the correct card swiping data Zqsk built into the verification and identification module. When the two are equal, the value 1 is returned, and when they are not equal, the value 0 is returned. This is used as the basis for whether the information matching is successful, thereby improving the accuracy of data verification.
[0074] The verification and identification module uses a digital accumulator to increase the number of button clicks. When the user clicks the unlock button, the number of times the user clicks the button Djcs automatically increases by 1 and cannot be greater than 5. The implementation code is as follows:
[0075] #include studio.h
[0076] int main(){
[0077] int Djcs=0,i=0;
[0078] char input;
[0079] for{i=0;i<5;i++
[0080] scanf("%c", &input);
[0081] if(input == 'c')
[0082] Djcs++;
[0083] printf("Number of button clicks: %d\n", Djcs)}}
[0084] The code initializes a parameter Djcs as the number of times the user clicks the button, defines the input parameter input, and the loop count flag i. In the for loop, when the input parameter is equal to the click button 'c', the for loop is repeated once, the loop count flag i is increased by one, and the number of times the user clicks the button Djcs is increased by one. The maximum value of the number of times the user clicks within five loops is 5.
[0085] The security management and control module receives the above calculated values. When the password comparison result receiving parameter Xt or the fingerprint comparison result receiving parameter Qt or the card verification receiving parameter Yt is equal to 1, the display terminal displays that the verification is passed and the unlocking operation is allowed. At the same time, the password change security question interface is displayed. When the password comparison result receiving parameter Xt or the fingerprint comparison result receiving parameter Qt or the card verification receiving parameter Yt is equal to 0, and the number of button clicks Djcs is greater than 5, the display terminal displays that the verification is not passed and the unlocking operation is not allowed. The system will block the cabinet door and it will not be able to unlock it within 24 hours. If it is an erroneous operation, you need to contact the system maintenance personnel to unlock it. The comparison and matching of different numerical parameters further enhances the security management function of the system.
[0086] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. An intelligent cabinet lock security management and control system based on the Internet of Things, characterized by: Including data collection module, verification and identification module and security control module; The data acquisition module is connected to the verification and identification module via a network; The verification and identification module is connected to the security management and control module via a network; The data acquisition module includes a password acquisition unit, a fingerprint acquisition unit, a card swiping data acquisition unit and a user terminal operation data acquisition unit; The password collection unit is used to collect the input password data Srmm of the smart cabinet lock; The password collection unit compiles the collected input password of the smart cabinet lock into a data set through the touch screen input, and the input password data set is {Srmm n-9 ,Srmm n-8 , Srmm n-7 , ..., Srmm n }; The fingerprint collection unit is used to collect fingerprint verification data Zwsj of the intelligent cabinet lock; The fingerprint collection unit compiles the collected fingerprint verification data of the smart cabinet lock into a data set through an optical sensor. The fingerprint verification data set is {Zwsj n-9 ,Zwsj n-8 , Zwsj n-7 , ..., Zwsj n }; The card swiping data collection unit is used to collect the card swiping verification data Skyz of the smart cabinet lock; The card swiping data collection unit compiles the collected card swiping verification data of the smart cabinet lock into a data set through wireless radio frequency identification technology. The card swiping verification data set is {Skyz n-9 ,Skyz n-8 , Skyz n-7 , …, Skyz n }; The user-side operation data collection unit is used to collect the number of times a user clicks a button on the smart lock Djcs; The data collection module transmits the collected input password data Srmm, fingerprint verification data Zwsj, card swipe verification data Skyz and the number of times the user clicks the button Djcs to the verification and identification module through the network; The verification and identification module has a correct password database set inside. The verification and identification module converts the input password data Srmm of the smart cabinet lock transmitted by the data acquisition module through a formula to obtain a converted password data value Zhmm. The verification and identification module matches the converted password data value Zhmm with the correct password value Zqmm set inside the verification and identification module, and sets a password comparison result receiving parameter Xt to receive the password matching result. The password conversion formula is as follows: In the formula, Zhmm represents the converted password data value, and n=1 represents the Srmm in the input password data set. n The first password value is used as the starting calculation position, and the 10th password value is used as the ending calculation position. Hash represents the hash function, which converts the password data into a hash value. Represents the average value of the input password data set; The matching formula is as follows: Xt=(Zqmm=Zhmm?1:0) In the formula, Xt represents the password comparison result receiving parameter, Zqmm represents the correct password value set inside the verification and identification module, and Zhmm represents the converted password data value Zhmm; The verification and identification module has a fingerprint database set inside. The verification and identification module converts the fingerprint into a number according to the fingerprint verification data Zwsj of the smart cabinet lock transmitted by the data acquisition module, and obtains the fingerprint digital value Szzw through a formula. The verification and identification module compares the converted fingerprint digital value Szzw with the correct fingerprint data Zqzw set inside the verification and identification module, and sets the fingerprint comparison result receiving parameter Qt to receive the fingerprint comparison result; The fingerprint conversion formula is as follows: In the formula, Szzw represents the fingerprint digital value, and n=1 represents the Zwsj in the fingerprint verification data set. n The first fingerprint data value is used as the starting calculation position, and the 10th password value is used as the ending calculation position. Hash represents the hash function, which converts the fingerprint data into a hash value. represents the average value of the fingerprint verification data set; The matching formula is as follows: Qt=(Zqzw=Szzw?1:0) In the formula, Qt represents the fingerprint comparison result receiving parameter, Zqzw represents the correct fingerprint data set inside the verification and identification module, and Szzw represents the fingerprint digital value; The verification and identification module has a built-in magnetic stripe card reader. The verification and identification module performs a formula comparison based on the card swipe verification data Skyz of the smart cabinet lock transmitted by the data acquisition module and the correct card swipe data Zqsk built into the module, and receives the card swipe verification comparison result through the card swipe verification receiving parameter Yt; The verification comparison formula is as follows: In the formula, Yt represents the card verification receiving parameter, and n=1 represents the Skyz in the card verification data set. n The first password value is used as the starting calculation position, and the 10th password value is used as the ending calculation position. Hash represents the hash function, which converts the card swipe verification data into a hash value. Zqsk represents the correct card swipe data built into the verification identification module. The verification and identification module has a built-in touch sensor. When the user clicks the unlock button, the number of times the user clicks the button Djcs automatically increases by 1 and cannot be greater than 5; The verification and identification module transmits the password comparison result receiving parameter Xt, the fingerprint comparison result receiving parameter Qt, the card swipe verification receiving parameter Yt and the number of button clicks Djcs to the security management and control module through the network; The security management and control module receives the password comparison result receiving parameter Xt, the fingerprint comparison result receiving parameter Qt, the card verification receiving parameter Yt and the number of button clicks Djcs transmitted by the verification and identification module. When the password comparison result receiving parameter Xt or the fingerprint comparison result receiving parameter Qt or the card verification receiving parameter Yt is equal to 1, it displays that the verification is passed. When the password comparison result receiving parameter Xt or the fingerprint comparison result receiving parameter Qt or the card verification receiving parameter Yt is equal to 0, it displays that the verification is failed. When the number of button clicks Djcs is greater than 5, it displays that there is no authority to unlock the door.
