CN110298941A - A kind of disposable temporary password generation method of intelligent door lock - Google Patents
A kind of disposable temporary password generation method of intelligent door lock Download PDFInfo
- Publication number
- CN110298941A CN110298941A CN201910421564.5A CN201910421564A CN110298941A CN 110298941 A CN110298941 A CN 110298941A CN 201910421564 A CN201910421564 A CN 201910421564A CN 110298941 A CN110298941 A CN 110298941A
- Authority
- CN
- China
- Prior art keywords
- door lock
- temporary
- temporary password
- password
- intelligent door
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C9/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
- G07C9/00817—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys where the code of the lock can be programmed
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Lock And Its Accessories (AREA)
Abstract
The present invention discloses a kind of disposable temporary password generation method of intelligent door lock, comprising the following steps: temporary key dissemination system obtains the application temporary password request initiated from App;Temporary key dissemination system compares the difference of current time and fiducial time, and TID value is calculated;Temporary key dissemination system obtains ciphertext and Tag value to TID value computations according to the intelligent door lock facility information being stored in temporary key dissemination system;And ciphertext and Tag value are obtained into temporary password by operation;Temporary key dissemination system issues the temporary password of generation to App.By the present invention in that after obtaining temporary password, visitor passes through digital key input temporary password with App directly to temporary key dissemination system application temporary password, after door lock is proved to be successful, door lock will be opened.In the mechanism, often use password without transmitting householder, password temporarily generated by temporary key dissemination system it is interim effective, it is highly-safe.
Description
Technical field
The present invention relates to intelligent door lock field more particularly to a kind of disposable temporary password generting machanisms.
Background technique
In intelligent door lock field, there are householders not in room, and has temporary visitor access scenario, for the scene, if will
Householder often informs temporary visitor with password, and the transmission of common password will cause great security risk.In order to solve this problem, originally
Invention is by using App directly to temporary key dissemination system application temporary password, and after obtaining temporary password, visitor passes through number
Key input temporary password, after door lock is proved to be successful, door lock will be opened.In the mechanism, often use password without transmitting householder, password by
Temporary key dissemination system temporarily generate it is interim effective, it is highly-safe.
Summary of the invention
In order to solve the above technical problems, the present invention provides a kind of disposable temporary password generation method of intelligent door lock and one
Kind intelligent door lock casual user method for unlocking.
The invention adopts the following technical scheme:
A kind of disposable temporary password generation method of intelligent door lock, comprising the following steps:
A) temporary key dissemination system obtains the application temporary password request initiated from App;
B) temporary key dissemination system compares the difference of current time and fiducial time, and TID value is calculated;
C) temporary key dissemination system is according to the intelligent door lock facility information being stored in temporary key dissemination system to TID
Value computations obtain ciphertext and Tag value;And ciphertext and Tag value are obtained into temporary password by operation;
D) temporary key dissemination system issues the temporary password of generation to App.
Further, the TID value calculating method is as follows: current time and the difference of fiducial time divided by 20min resulting value,
TID value length is 20bit.For example current time is 2 points of January 1 in 2019, fiducial time is 0 point of January 1 in 2019, then
TID (20bit) is 120min/20min=6, then corresponding TID value be by 6 (current time and the difference of fiducial time divided by
20min resulting value), the binary value for being converted to 20bit is 00000000000000000110bit.
Further, if temporary key dissemination system obtains repeatedly asking for the application temporary password initiated from App in 20min
Ask, then be converted to after current time and the difference of fiducial time being added 1 divided by 20min resulting value the binary value of 20bit as
New TID value.Ensure that different temporary passwords uses different TID values.Such as current time be 10 minutes 2 points of on January 1st, 2019 again
The request of application temporary password is once received, then TID (20bit) is 120min/20min+1=7, then corresponding TID value is
00000000000000000111bit。
Further, the intelligent door lock facility information is EK key configured in door lock sequence number and the front door lock that dispatches from the factory
(Encryption KEY, 16 bytes).
Further, the EK key of each door lock is different, if temporary key dissemination system inconvenience stores the EK of each door lock
Key, can also be temporarily close in this way by carrying out the obtained value of hash (Hash) algorithm as the EK key to door lock sequence number
Key dissemination system needs temporarily generate when EK key.
Further, described that TID value is encrypted according to the intelligent door lock facility information being stored in temporary key dissemination system
Ciphertext and Tag value is calculated are as follows: according to EK key configured in door lock sequence number and factory front door lock, carry out to TID value
The ciphertext of 20bit and the Tag value of 12 bytes are obtained after AES-GCM-128 encryption.
Further, the temporary password=ciphertext (20bit) | | the high 6bit of Tag value, and gained temporary password is switched to
The decimal system simultaneously polishing 8, a high position mends 0.
A kind of intelligent door lock casual user method for unlocking, comprising:
Casual user initiates to obtain the request of temporary password to temporary key dissemination system by App;
Temporary key dissemination system according to claim 1~one of 7 described in generate the temporary password and App issued and face
When password;
Casual user obtains temporary password and inputs temporary password on intelligent door lock;
Whether the temporary password of intelligent door lock detection input is correct, and success of unlocking if correct, otherwise, intelligent door lock mentions
Show password mistake.
Further, whether the temporary password of the intelligent door lock detection input is correct specifically: intelligent door lock judgement input
Whether Password Length is 8, if it is, password is changed into hexadecimal, decrypt high 20bit using AES-GCM-128 and is tested
The Tag value of low 6bit is demonstrate,proved, error then prompt cipher mistake is verified;Verification correctly then checks whether the TID value after decryption is greater than and works as
The TID value saved in preceding lock, is success of unlocking, and update current TID value, otherwise prompt cipher mistake.
Further, the casual user is sent out by that could pass through App after authentication to system temporary key dissemination system
Act the request for obtaining temporary password.
Compared with prior art, the invention has the following advantages that
(1) by the present invention in that obtaining temporary password with APP directly to temporary key dissemination system application temporary password
Afterwards, visitor passes through digital key input temporary password, and after door lock is proved to be successful, door lock will be opened.In the mechanism, without transmitting householder
Common password, password is temporarily generated by temporary key dissemination system it is temporarily effective, it is highly-safe.
(2) the input factor encrypted when TID value is generated as temporary password is introduced, it can be ensured that temporary password
Uniqueness.Ensure that temporary password will not be repeated attack.
(3) it is divided between TID value calculation in the period of 20min in the case where not repeating to generate temporary key, the algorithm
39 years temporary keys generated can be supported different.Even if temporary key generates the period than comparatively dense, also ensure that in longer cycle
Temporary key does not repeat.
(4) the temporary password calculation method that the present invention designs, the temporary password of generation are 8 ten's digits, Bu Huiyin
Password Length is too long, the inconvenience for bringing user to input, while Encryption Algorithm used in the algorithm contains door lock sequence number,
TID value etc. inputs the factor, it is ensured that the safety of temporary password, uniqueness.
(5) as long as intelligent door lock supports password unlocking that the solution of the present invention can be realized, without networking.
Detailed description of the invention
Fig. 1 is work flow diagram of the invention.
Fig. 2 is temporary password generting machanism figure of the invention.
Specific embodiment
Technical solution to facilitate the understanding of the present invention is described in detail below in conjunction with attached drawing and specific embodiment.
As shown in Figure 1, 2,
A kind of disposable temporary password generation method of intelligent door lock, comprising the following steps:
A) temporary key dissemination system obtains the application temporary password request initiated from App.
B) temporary key dissemination system compares the difference of current time and fiducial time, introduces TID value as password factor.
TID value calculation formula are as follows: divided by 20min resulting value, TID value length is 20bit for current time and the difference of fiducial time.Such as
Current time is 2 points of January 1 in 2019, and fiducial time is 0 point of January 1 in 2019, then TID (20bit) is 120min/
20min=6, then corresponding TID value is 00000000000000000110bit.
If temporary key dissemination system obtains the multiple request for the application temporary password initiated from App in 20min, will be former
TID (20bit) plus 1 is as new TID (20bit), that is, current time and the difference of fiducial time are divided by 20min resulting value
The binary value of 20bit is converted to after adding 1 as new TID value, it is ensured that different temporary passwords uses different TID values.Than
If current time is the request that 2 points of January 1 receives again application temporary password for 10 minutes in 2019, then TID (20bit) is
120min/20min+1=7, then corresponding TID value is 00000000000000000111bit.
C) according to EK key configured in door lock sequence number and factory front door lock, AES-GCM-128 is carried out to TID value and is added
The ciphertext of 20bit and the Tag value of 12 bytes are obtained after close, and ciphertext and Tag value are obtained into temporary password by operation.
As shown in Fig. 2, four input factor IVs, ADD, EK key, TID value after AES-GCM-128 algorithm for encryption by obtaining
To the ciphertext of 20bit and the Tag value of 12 bytes.Wherein, IV, ADD are all based on door lock sequence number, the difference is that IV is fixed as 12
Byte, in insufficient or extra 12 byte, only with 12 bytes, and ADD is then actual door lock sequence number information.AES-GCM-
The corresponding original text of 128 algorithms is identical as ciphertext length, so being still 20bit after encryption if original TID value is 20bit.It should
The corresponding Tag value of algorithm is to fix 16 bytes, takes preceding 12 byte.
After obtaining the ciphertext of 20bit and the Tag value of 12 bytes, temporary password (16 systems, the 26bit)=ciphertext
(20bit) | | the high 6bit of Tag value, and gained temporary password is switched into the decimal system and polishing 8 (high position mends 0).Herein " | | "
Indicate cascade, i.e. character string connects.
It is exemplified below:
It mends the 0 of 4bit behind TID 20bit to become: 001120
12 byte of door lock sequence number: 001122334455667000000000
16 byte of AK: 00112233445566700011223344556670
16 byte of EK: 000102030405060708090a0b0c0d0e0f
Ciphertext: 89 9a fb
97 28d6fe dc ff of Tag:a7,62 0d 23dc 86
Then, temporary password are as follows: 000000 | | the high 20bit of ciphertext | | the 02 26 6B E9 of high 6bit=0x of Tag
0000 0,010 0,010 0,110 0,110 1,011 1110 1001=0x, 02 26 6B E9, switchs to the decimal system simultaneously
Temporary password 36072425 is obtained after polishing 8.
D) temporary key dissemination system issues the temporary password of generation to App.It is produced uniquely, no by the above method
Duplicate, highly-safe temporary password.
The present invention also provides a kind of intelligent door lock casual user method for unlocking, comprising:
After casual user passes through authentication, initiate to obtain asking for temporary password to temporary key dissemination system by App
It asks;
The temporary password that temporary key dissemination system generates, and temporary password is issued to App;
Casual user obtain temporary password and on intelligent door lock by door lock keyboard be manually entered 8 it is metric temporarily
Password;
Intelligent door lock judges to input whether Password Length is 8, if it is, password is changed into hexadecimal, uses
AES-GCM-128 decrypts high 20bit and verifies the Tag value of low 6bit, verifies error then prompt cipher mistake;Verification is correctly then examined
Whether the TID value after looking into decryption is greater than the TID value saved in current lock, is success of unlocking, and update current TID value, no
Then prompt cipher mistake.TID (20bit) initial value saved in lock is 0, the binary value for the 20bit that corresponding TID value is 0.
Any unrelated visitor can apply for temporary password in order to prevent, it is ensured that the safety of temporary password is applied in App
It when temporary password, need to log in or register account number, have corresponding user name, password authentification is authenticated as temporary user identification.It tests
There are many kinds of card modes, associated with the cell-phone number of owner when such as verifying, and App sends identifying code, casual user to master cellular phone
The permission of App request for utilization temporary password can be just logged in after asking for identifying code to owner.
The above is only the preferred embodiment of the present invention, protection scope of the present invention is with claim limited range
Standard, several improvements and modifications that those skilled in the art make without departing from the spirit and scope of the present invention also should be regarded as this
The protection scope of invention.
Claims (10)
1. a kind of disposable temporary password generation method of intelligent door lock, comprising the following steps:
A) temporary key dissemination system obtains the application temporary password request initiated from App;
B) temporary key dissemination system compares the difference of current time and fiducial time, and TID value is calculated;
C) temporary key dissemination system adds TID value according to the intelligent door lock facility information being stored in temporary key dissemination system
It is close that ciphertext and Tag value is calculated;And ciphertext and Tag value are obtained into temporary password by operation;
D) temporary key dissemination system issues the temporary password of generation to App.
2. the disposable temporary password generation method of intelligent door lock as described in claim 1, it is characterised in that: the TID value is
Divided by 20min resulting value, TID value length is 20bit for current time and the difference of fiducial time.
3. the disposable temporary password generation method of intelligent door lock as described in claim 1, it is characterised in that: the intelligent door lock
Facility information is EK key configured in door lock sequence number and the front door lock that dispatches from the factory.
4. the disposable temporary password generation method of intelligent door lock as described in claim 1, it is characterised in that: the EK key
It can be obtained by carrying out hash algorithm to door lock sequence number.
5. the disposable temporary password generation method of intelligent door lock as described in claim 1, it is characterised in that described to TID value root
Ciphertext and Tag value are obtained according to the intelligent door lock facility information computations being stored in temporary key dissemination system are as follows: according to door
EK key configured in sequence number and factory front door lock is locked, obtains 20bit's after carrying out AES-GCM-128 encryption to TID value
The Tag value of ciphertext and 12 bytes.
6. the disposable temporary password generation method of intelligent door lock as described in claim 1, it is characterised in that: the temporary password
=ciphertext (20bit) | | the high 6bit of Tag value, and gained temporary password is switched into the decimal system and polishing 8.
7. the disposable temporary password generation method of intelligent door lock as claimed in claim 2, it is characterised in that: if facing in 20min
When key distribution system obtain the multiple request for applying for temporary password initiated from App, then by current time and fiducial time
Difference is converted to the binary value of 20bit as new TID value after adding 1 divided by 20min resulting value.
8. a kind of intelligent door lock casual user method for unlocking, characterized by comprising:
Casual user initiates to obtain the request of temporary password to temporary key dissemination system by App;
Temporary key dissemination system according to claim 1~one of 7 described in generate the temporary password and App issued interim close
Code;
Casual user obtains temporary password and inputs temporary password on intelligent door lock;
Whether the temporary password of intelligent door lock detection input is correct, and success of unlocking if correct, otherwise, intelligent door lock prompt is close
Code mistake.
9. method according to claim 8, it is characterised in that whether the temporary password of the intelligent door lock detection input is correct
Specifically: intelligent door lock judges whether input Password Length is 8, if it is, password is changed into hexadecimal, uses AES-
GCM-128 decrypts high 20bit and verifies the Tag value of low 6bit, verifies error then prompt cipher mistake;Verification correctly then checks solution
Whether the TID value after close is greater than the TID value saved in current lock, is success of unlocking, and update current TID value, otherwise mentions
Show password mistake.
10. method according to claim 8, it is characterised in that: the casual user could pass through App after passing through authentication
The request of acquisition temporary password is initiated to system temporary key dissemination system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910421564.5A CN110298941A (en) | 2019-05-21 | 2019-05-21 | A kind of disposable temporary password generation method of intelligent door lock |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910421564.5A CN110298941A (en) | 2019-05-21 | 2019-05-21 | A kind of disposable temporary password generation method of intelligent door lock |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110298941A true CN110298941A (en) | 2019-10-01 |
Family
ID=68026979
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910421564.5A Pending CN110298941A (en) | 2019-05-21 | 2019-05-21 | A kind of disposable temporary password generation method of intelligent door lock |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110298941A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112383919A (en) * | 2020-11-13 | 2021-02-19 | 歌尔科技有限公司 | Information processing method and device, intelligent doorbell and storage medium |
CN113362510A (en) * | 2021-05-10 | 2021-09-07 | 华翔翔能科技股份有限公司 | Cell visitor management method and system |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005029985A (en) * | 2003-07-08 | 2005-02-03 | Toshiba Corp | Person authenticating device |
CN103413109A (en) * | 2013-08-13 | 2013-11-27 | 江西理工大学 | Bidirectional authentication method of radio frequency identification system |
CN103905195A (en) * | 2012-12-28 | 2014-07-02 | 中国电信股份有限公司 | User card authentication method and system based on dynamic password |
CN204759558U (en) * | 2015-07-14 | 2015-11-11 | 深圳市亲邻科技有限公司 | Intelligent entrance guard , equipment and system |
CN106131179A (en) * | 2016-07-05 | 2016-11-16 | 林哲敏 | The password Rights Management System of a kind of intelligent door lock and method |
CN106683281A (en) * | 2016-12-28 | 2017-05-17 | 宁波三星医疗电气股份有限公司 | Intelligent electric meter switchable in function and usage method thereof |
CN107403486A (en) * | 2017-06-28 | 2017-11-28 | 宁波久婵物联科技有限公司 | A kind of disposal password verification method of electronic lock |
CN108462686A (en) * | 2018-01-08 | 2018-08-28 | 平安科技(深圳)有限公司 | Acquisition methods, device, terminal device and the storage medium of dynamic key |
-
2019
- 2019-05-21 CN CN201910421564.5A patent/CN110298941A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005029985A (en) * | 2003-07-08 | 2005-02-03 | Toshiba Corp | Person authenticating device |
CN103905195A (en) * | 2012-12-28 | 2014-07-02 | 中国电信股份有限公司 | User card authentication method and system based on dynamic password |
CN103413109A (en) * | 2013-08-13 | 2013-11-27 | 江西理工大学 | Bidirectional authentication method of radio frequency identification system |
CN204759558U (en) * | 2015-07-14 | 2015-11-11 | 深圳市亲邻科技有限公司 | Intelligent entrance guard , equipment and system |
CN106131179A (en) * | 2016-07-05 | 2016-11-16 | 林哲敏 | The password Rights Management System of a kind of intelligent door lock and method |
CN106683281A (en) * | 2016-12-28 | 2017-05-17 | 宁波三星医疗电气股份有限公司 | Intelligent electric meter switchable in function and usage method thereof |
CN107403486A (en) * | 2017-06-28 | 2017-11-28 | 宁波久婵物联科技有限公司 | A kind of disposal password verification method of electronic lock |
CN108462686A (en) * | 2018-01-08 | 2018-08-28 | 平安科技(深圳)有限公司 | Acquisition methods, device, terminal device and the storage medium of dynamic key |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112383919A (en) * | 2020-11-13 | 2021-02-19 | 歌尔科技有限公司 | Information processing method and device, intelligent doorbell and storage medium |
CN113362510A (en) * | 2021-05-10 | 2021-09-07 | 华翔翔能科技股份有限公司 | Cell visitor management method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108055235B (en) | A smart lock control method, related equipment and system | |
US10680808B2 (en) | 1:N biometric authentication, encryption, signature system | |
US7178025B2 (en) | Access system utilizing multiple factor identification and authentication | |
CN101291224B (en) | Method and system for processing data in communication system | |
US7934096B2 (en) | Integrity protected smart card transaction | |
US9467293B1 (en) | Generating authentication codes associated with devices | |
US20070257813A1 (en) | Secure network bootstrap of devices in an automatic meter reading network | |
EP3398289B1 (en) | A method, system and apparatus using forward-secure cryptography for passcode verification | |
CN112565265B (en) | Authentication method, authentication system and communication method between terminal devices of Internet of things | |
WO2003065169A2 (en) | Access system utilizing multiple factor identification and authentication | |
US9647842B2 (en) | Dual-party session key derivation | |
CN109474419A (en) | A kind of living body portrait photo encryption and decryption method and encrypting and deciphering system | |
WO2021111824A1 (en) | Electronic signature system and tamper-proof device | |
CN106936588A (en) | A kind of trustship method, the apparatus and system of hardware controls lock | |
CN107958513A (en) | A kind of offline authorization method and system of electronic lock | |
CN113114475A (en) | PUF identity authentication system and protocol based on bit self-checking | |
JP2021090114A (en) | Electronic signature system and anti-tamper device | |
CN111125456A (en) | Virtual password comparison method and system and intelligent lock | |
CN110298941A (en) | A kind of disposable temporary password generation method of intelligent door lock | |
CN106921501B (en) | intelligent password signature identity authentication method and system | |
CN108989051B (en) | Method for generating dynamic password | |
CN112446982A (en) | Method, device, computer readable medium and equipment for controlling intelligent lock | |
CN101424142B (en) | Lock, unlocking method thereof, lock administrative center and control method thereof | |
CN111428232A (en) | Password processing method and device for encrypted input and intelligent lock | |
CN111181917A (en) | FPGA safety protection method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191001 |
|
RJ01 | Rejection of invention patent application after publication |