CN106971441B - Unlocking method, door lock, key and lockset - Google Patents

Unlocking method, door lock, key and lockset Download PDF

Info

Publication number
CN106971441B
CN106971441B CN201710296592.XA CN201710296592A CN106971441B CN 106971441 B CN106971441 B CN 106971441B CN 201710296592 A CN201710296592 A CN 201710296592A CN 106971441 B CN106971441 B CN 106971441B
Authority
CN
China
Prior art keywords
key
random number
door lock
lock
serial number
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.)
Active
Application number
CN201710296592.XA
Other languages
Chinese (zh)
Other versions
CN106971441A (en
Inventor
杨从新
李远威
任娟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Simpusun Information Technology Co ltd
Original Assignee
Shenzhen Simpusun Information Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Simpusun Information Technology Co ltd filed Critical Shenzhen Simpusun Information Technology Co ltd
Priority to CN201710296592.XA priority Critical patent/CN106971441B/en
Publication of CN106971441A publication Critical patent/CN106971441A/en
Application granted granted Critical
Publication of CN106971441B publication Critical patent/CN106971441B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME 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/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05BLOCKS; ACCESSORIES THEREFOR; HANDCUFFS
    • E05B45/00Alarm locks
    • E05B45/06Electric alarm locks
    • E05B45/061Electric alarm locks for combination locks
    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05BLOCKS; ACCESSORIES THEREFOR; HANDCUFFS
    • E05B45/00Alarm locks
    • E05B45/06Electric alarm locks
    • E05B45/08Electric alarm locks with contact making inside the lock or in the striking plate
    • E05B45/10Electric alarm locks with contact making inside the lock or in the striking plate by introducing the key or another object

Abstract

The invention provides an unlocking method, a door lock, a key and a lock, which are characterized in that whether a mechanical structure of the key is matched with a lock core structure or not is detected, if so, the door lock sends a first random number to the key, the key generates a second random number, the key and the door lock are respectively subjected to bidirectional authentication through the first random number and the second random number, a ciphertext is generated and sent to the door lock, the door lock decrypts the ciphertext, after the verification is successful, a secret key is obtained through a preset operation method and sent to the key, the key encrypts a first serial number through the secret key and sends the first serial number to the door lock, the door lock matches the first serial number with the second serial number, and after the matching is successful, a door bolt is started to unlock the door lock. Through the implementation of the invention, the security of the encryption and decryption process is effectively improved by a plurality of bidirectional encryption and decryption operations, and the invention is applied to the traditional mechanical lock, improves the security of the mechanical lock lockset and makes up the security short plate of the existing intelligent coded lock.

Description

Unlocking method, door lock, key and lockset
Technical Field
The invention relates to the technical field of security protection, in particular to an unlocking method, a door lock, a key and a lockset.
Background
In existing mechanical smart locks, it comprises at least two parts: a mechanical part and an intelligent part. Wherein, the mechanical part is the cooperation of traditional key and lockhole and unblanks, and intelligent part, common can include: fingerprint unblock, face identification unblock, vocal print unblock, pupil unblock and so on mode, these intelligent unblock modes often have a characteristic: it is left with the direct key and lock correspondence of traditional locks and with the user and lock correspondence of choice. For a natural person, the existence of the lock is necessarily unique, and the safety of the lock can be obviously improved to a certain extent by the mode; however, this is only the improvement of the security performance brought by the intelligent part, and in the mechanical part, because it still adopts the mechanical mode, it makes the mechanical part become the security short board of the intelligent lock.
According to relevant regulations of 'mechanical anti-theft lock' in China, main technical indexes of the mechanical anti-theft lock cylinder are limited to A-level and B-level national standards.
The corresponding indices for stage a and B are explained as follows:
1. preventing the technology from starting time: the A-level lock cylinder is more than 1min (but less than or equal to 5 minutes); the B-level lock cylinder is more than 5 min;
2. the mutual opening rate: grade A is less than or equal to 0.03%; grade B is less than or equal to 0.01 percent;
3. amount of key: a level: the key amount of the spring lock is not less than 6x104The key amount of the magnetic spring lock, the leaf lock and the lever lock is not less than 2.5x104Seed, the number of differential exchanges is one; the theoretical key amount of the mechanical coded lock is not less than 1x106Seed growing; b stage: the key amount of the spring lock is not less than 3x104The key amount of the magnetic spring lock, the leaf lock and the lever lock is not less than 1x104Seed, the number of differential exchanges is two; the theoretical key amount of the mechanical coded lock is not less than 6x107The actual amount of keys that can be exchanged should be no less than 60% of the theoretical amount of keys.
From the above data, it can be seen that even if all of the above national regulations are met, the mechanical anti-theft lock still has a great safety hazard. Besides the repeated hidden danger brought by the lock, due to the characteristic of mechanical unlocking, lawless persons can easily prepare keys with mechanical structures, so that greater potential safety hazard is brought.
Disclosure of Invention
The invention aims to solve the technical problems of how to improve the safety of a lock and reduce the possibility of damaging the lock, and provides an unlocking method, a door lock, a key and the lock aiming at the technical problems.
In order to solve the technical problem, the invention provides an unlocking method, which comprises the following steps:
the method comprises the following steps that a door lock detects whether a mechanical structure of an inserted key is matched with a lock cylinder structure of the door lock;
when the mechanical structure of the key matches the lock cylinder structure, the door lock sends a first random number to the key;
the door lock receives a ciphertext sent by the key, the ciphertext is the key to generate a second random number, and the first random number and the second random number are encrypted to obtain the ciphertext;
the door lock decrypts the ciphertext and verifies the decrypted first random number;
after the verification is successful, the first random number and the second random number are operated through a preset operation method to obtain a secret key;
encrypting and sending the key to the key;
the door lock receives a first serial number which is sent by the key and encrypted by the secret key, and the first serial number is arranged in the key;
the door lock matches the first serial number with a second serial number built in the door lock; if the two are matched, the lock bolt is started to unlock the door lock.
Optionally, the calculating the first random number and the second random number by using a preset budget method includes: performing logic operation on the first random number and the second random number; or, performing hash operation on the first random number and the second random number.
Optionally, the sending, at the door lock, the first random number to the key further includes: the door lock supplies power to the key in an antenna coupling mode.
Optionally, when the key mechanical structure is not matched with the lock cylinder structure, or when the door lock fails to verify the decrypted first random number, or when the first serial number is not matched with a second serial number built in the door lock, an alarm is given.
The invention also provides an unlocking method, which comprises the following steps:
the mechanical structure of the key is inserted into the lock core structure of the door lock;
when the mechanical structure of the key is matched with the lock cylinder structure, the key receives a first random number sent by the door lock;
generating a second random number;
encrypting the first random number and the second random number to obtain a ciphertext;
sending the ciphertext to the door lock;
receiving a key sent by the door lock in an encrypted manner, wherein the key is obtained by calculating a first random number and a second random number through a preset calculation method after the first random number obtained by decrypting the ciphertext by the door lock is successfully verified;
decrypting the key, encrypting a first serial number arranged in the key through the key, and sending the encrypted first serial number to the door lock;
and when the first serial number is successfully matched with a second serial number arranged in the door lock by the door lock, starting a lock bolt and opening the door lock.
Optionally, the calculating the first random number and the second random number by using a preset budget method includes: performing logic operation on the first random number and the second random number; or, performing hash operation on the first random number and the second random number.
Optionally, before the receiving the first random number sent by the door lock, the method further includes: the key obtains power from the door lock in an antenna coupled manner.
The invention also provides a door lock, which comprises a door lock control module, a first communication module, a lock cylinder module and a lock bolt module; wherein:
the lock cylinder module detects whether a mechanical structure inserted into the door lock key is matched with a lock cylinder structure of the door lock;
the first communication module sends a first random number to the key when the mechanical structure of the key matches the cylinder structure;
the first communication module receives a ciphertext sent by the key, the ciphertext is obtained by the key generating a second random number according to the first random number and encrypting the first random number and the second random number;
the door lock control module decrypts the ciphertext and verifies the decrypted first random number; after the verification is successful, the first random number and the second random number are operated through a preset operation method to obtain a secret key;
the first communication module encrypts the key and sends the key to the key;
the first communication module receives a first serial number which is sent by the key and encrypted by the secret key, wherein the first serial number is arranged in the key;
the door lock control module matches the first serial number with a built-in second serial number; and if the matching is successful, starting the latch module and unlocking the door lock.
Optionally, the calculating the first random number and the second random number by using a preset budget method includes: performing logic operation on the first random number and the second random number; or, performing hash operation on the first random number and the second random number.
Optionally, the system further comprises an alarm module, configured to alarm when the key mechanical structure is not matched with the lock cylinder structure, or when the door lock control module fails to verify the decrypted first random number, or when the first serial number is not matched with a second serial number built in the door lock.
The present invention also provides a key comprising: the key control module and the second communication module; wherein:
the mechanical structure of the key is inserted into a lock cylinder structure of the door lock, and when the mechanical structure of the key is matched with the lock cylinder structure, the second communication module receives a first random number sent by the door lock;
the key control module generates a second random number, and encrypts the first random number and the second random number to obtain a ciphertext;
the second communication module sends the ciphertext to the door lock;
the second communication module receives a key sent by the door lock in an encrypted mode, and the key is obtained by calculating the first random number and the second random number through a preset operation method after the first random number obtained by the door lock after decrypting the ciphertext is successfully verified;
the key control module decrypts the key and encrypts a first serial number built in the key through the key, and the second communication module sends the encrypted first serial number to the door lock;
and when the first serial number is successfully matched with a second serial number arranged in the door lock by the door lock, starting a lock bolt and opening the door lock.
Optionally, the second communication module obtains power from the door lock in a manner of antenna coupling.
The invention also provides a lockset, which is characterized by comprising the door lock and a key.
Advantageous effects
The invention provides an unlocking method, a door lock, a key and a lock, which are characterized in that whether a mechanical structure of the key is matched with a lock core structure or not is detected, if so, the door lock sends a first random number to the key, the key generates a second random number according to the first random number of the door lock and then generates a ciphertext, the door lock decrypts the ciphertext, after the verification is successful, a preset operation method is used for obtaining the key, the key is sent to the key, the key encrypts a first serial number through the key and sends the first serial number to the door lock, the door lock matches the first serial number with the second serial number, and after the matching is successful, a door bolt is started to unlock the door lock. Through the implementation of the invention, the security of the encryption and decryption process is effectively improved by a plurality of bidirectional encryption and decryption operations, and the invention is applied to the traditional mechanical lock, improves the security of the mechanical lock lockset and makes up the security short plate of the existing intelligent coded lock.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic flow chart of an unlocking method according to a first embodiment of the present invention;
fig. 2 is a schematic flow chart of an unlocking method according to a second embodiment of the present invention;
FIG. 3 is a schematic view of a door lock assembly according to a third embodiment of the present invention;
FIG. 4 is a key assembly diagram according to a fourth embodiment of the present invention;
fig. 5 is a schematic flow chart of an unlocking method according to a fifth embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The specific concept of the invention is that for the existing intelligent lock, the traditional mechanical lock part is ensured in addition to the intelligent unlocking modes such as fingerprint, retina, voiceprint, face recognition and the like, so as to avoid the situation that the intelligent recognition system has accidents and cannot unlock. However, the security of the mechanical lock has a great disadvantage compared to the intelligent unlocking, and due to its mechanical characteristics, it cannot exhaust all mechanical forms, and its configuration is relatively simple and easy to be used by lawless persons. According to the invention, multiple safety verifications are added to the mechanical lock part of the lock, so that the safety short plate of the mechanical lock is compensated, the safety of the lock is integrally improved, and the life and property safety of people is ensured.
The following is a detailed description of specific examples.
First embodiment
Referring to fig. 1, fig. 1 is a schematic flow chart of an unlocking method according to a first embodiment of the present invention.
S101, detecting whether a mechanical structure of an inserted key is matched with a lock core structure of a door lock by the door lock; if not, go to S109;
s102, when the mechanical structure of the key is matched with the lock core structure, the door lock sends a first random number to the key;
s103, the door lock receives a ciphertext sent by the key, the ciphertext is the key to generate a second random number, and the first random number and the second random number are encrypted to obtain the ciphertext;
s104, the door lock decrypts the ciphertext and verifies the decrypted first random number; if the verification fails, go to S109;
s105, after the verification is successful, the first random number and the second random number are operated through a preset operation method to obtain a secret key;
s106, encrypting the key and sending the encrypted key to the key;
s107, the door lock receives a first serial number which is sent by a key and encrypted by a secret key, wherein the first serial number is built-in of the key;
s108, the door lock matches the first serial number with a second serial number built in the door lock; if the two pieces of lock are matched, the lock bolt is started to unlock the door lock; if not, go to S109;
and S109, starting an alarm system to alarm.
In S101, the door lock detects whether the mechanical structure of the inserted key matches the key cylinder structure of the door lock. The mechanical part of the unlocking method is inserted into a lock hole of a door lock in a conventional mode, and the mechanical structure of the key is matched with the structure of a lock cylinder. The mechanical structure in this embodiment may be any one of the mechanical structures in the prior art, such as a straight line, a cross, a star, etc., and the number of teeth may also be any, for a lock, the mechanical structure of the key and the lock cylinder structure of the door lock are necessarily matched, if they are not matched, the subsequent security verification process may be interrupted at this time, an alarm is directly made on the door lock in the form of sound, or the owner is remotely notified in the form of short message, mail, telephone, etc., so that the owner knows that someone may try to open the door lock in an abnormal manner.
In S102, if the mechanical structure of the key matches the structure of the key cylinder, the door lock sends a first random number to the key. If the mechanical structure and the lock core structure are matched, the key and the mechanical part of the door lock are satisfied; at this point, the door lock sends a first random number to the key. The first random number is a completely random number, which can be generated by a random algorithm, and in order to further enhance the security of the unlocking process, the random number may be set to be valid only this time, that is, valid in the unlocking process this time, and invalid in other unlocking processes.
In order to send the first random number to the key, the door lock and the key are required to have electric energy, wherein the door lock can be powered by a storage battery, a dry battery, a rechargeable battery, or an external alternating current power supply after voltage reduction and the like; for the key, because the power consumption in the unlocking process is extremely low, a small battery, a detachable battery or a rechargeable battery can be arranged in the key; in addition, the key can be powered by the door lock in an antenna coupling mode, so that electric energy can be supplied to the circuit in the key.
In S103, the door lock receives a ciphertext transmitted by the key, where the ciphertext is obtained by generating a second random number by the key and encrypting the first random number and the second random number. The second random number is a randomly generated number similar to the first random number, and the first random number and the second random number serve as authentication means between the key and the door lock before the key unlocks the door lock. The second random number may also be set to be valid only in the unlocking process of this time, and invalid in other unlocking processes.
The first random number and the second random number are encrypted by the first sequence number, and the first random number and the second random number can be combined, and the combination rule should be arbitrary and determined, for example, the first random number can be preceded by the second random number, or vice versa, or the two can be combined in an overlapping manner, and the numbers in the random numbers are arranged at intervals. In this embodiment, the specific combination mode may be preset, that is, the door lock and the key are fixed in such a combination mode, or different combination modes are adopted in different time periods, and the combination mode of the current first random number and the current second random number may be determined by the generated first random number itself.
After combining, the first random number and the second random number may be encrypted. The encryption of the first random number and the second random number is for security of transmission between the KEY and the door lock, and the KEY used for encryption and decryption should be identical. In this embodiment, the first random number and the second random number may be encrypted by a first serial number built in the key. Because the encryption is carried out through the first serial number, similarly, the decryption process of the door lock is also carried out based on the first serial number, and after the door lock is decrypted, the first random number and the second random number returned by the key can be known after the combinational logic of the first random number and the second random number is known.
In S104, the door lock decrypts the ciphertext and verifies the decrypted first random number. The first random number is generated by the door lock, and the door lock verifies the decrypted first random number, namely verifies whether the first random number is the first random number sent by the door lock to the key. If the verification fails, the first random number received by the door lock is not the first random number sent by the door lock to the key before, and then an alarm system can be started to alarm.
In S105, if the verification is successful, the first random number and the second random number are calculated by a preset calculation method to obtain the secret key. If the received first random number is the first random number sent before, then the first random number and the second random number are operated by a preset operation method to obtain the secret key. The calculating the first random number and the second random number by a preset calculating method may include: performing logic operation on the first random number and the second random number; or, performing hash operation on the first random number and the second random number. Regardless of the type of operation, the objective is to operate the first random number and the second random number in an irreversible manner to obtain a unique and exact result, which is then provided to the lock and the KEY as an encryption/decryption KEY for interaction. Because the first random number and the second random number are completely random and valid at this time, the obtained KEY is also random and valid at this time, and the KEY is used as an encryption and decryption KEY interacted between the KEY and the door lock in the unlocking process at this time.
In S106, the key is encrypted and then transmitted to the key. The tool used in the encryption process may be the first serial number or other means known between the key and the door lock, and the purpose of the tool is to ensure that the transmission process of the key is not stolen. Correspondingly, the door lock adopts which mode to encrypt, then the key adopts which mode to decrypt, and after the decryption, the key knows the secret key therein.
In S107, the door lock receives the first serial number encrypted by the key transmitted by the key. After the KEY receives and decrypts the KEY to obtain the KEY, the KEY is used as an encryption KEY to encrypt the first serial number arranged in the KEY, and then the encrypted first serial number is sent to the door lock. After receiving the encrypted serial number, the door lock decrypts the serial number through the secret key, and matches the decrypted result, namely the first serial number, with a second serial number built in the door lock. At the moment, if the matching is successful, the lock bolt is started to unlock the door lock; and if the matching fails, alarming. Since one door lock often corresponds to a plurality of keys, the first serial numbers of the plurality of keys may be the same or different, and the matching relationship between the first serial number and the second serial number may be specifically defined according to this, which is not specifically limited in this embodiment.
And S109, starting an alarm system to alarm. Wherein, the triggering bar of the alarm may include: when the key mechanical structure is not matched with the lock core structure, or the door lock fails to verify the decrypted first random number, or the first serial number is not matched with the built-in second serial number of the door lock, under the conditions, the alarm can be given, and the steps after the step are interrupted while the alarm is given, so that the unlocking operation is not continued.
In this embodiment, the communication frequency of the wireless communication between the door lock and the key is below 100MHz, and optionally, the wireless communication frequency may be 1 to 10KHz of low frequency, and may also be 13.56 MHz.
In addition, in order to further improve the security performance and save the electric energy, in this embodiment, if the interaction time between the door lock and the key exceeds the set time threshold, the interaction between the door lock and the key is stopped, and the wireless communication part of the door lock enters the sleep state until being triggered and awakened next time.
In addition, the unlocking method in the embodiment can be applied to any scenes suitable for locks, such as doors, vehicle doors, cabinet doors, automobile driving parts and the like.
The embodiment provides an unlocking method, which includes detecting whether a mechanical structure of a key is matched with a lock cylinder structure, if so, sending a first random number to the key by a door lock, generating a second random number by the key according to the first random number of the door lock, generating a ciphertext therewith, decrypting the ciphertext by the door lock, obtaining a secret key through a preset operation method after verification is successful, sending the secret key to the key, encrypting a first serial number by the key and sending the first serial number to the door lock, matching the first serial number with the second serial number by the door lock, and starting a bolt to unlock the door lock after matching is successful. Through the implementation of this embodiment to a lot of two-way encryption and decryption operations, the effectual security that has promoted the encryption and decryption process, it is applied to traditional mechanical lock moreover, has promoted the security of mechanical lock tool to lock, has compensatied the safety short slab of current intelligent trick lock.
Second embodiment
Referring to fig. 2, fig. 2 is a schematic flow chart of an unlocking method according to a second embodiment of the present invention.
S201, inserting a mechanical structure of a key into a lock cylinder structure of a door lock;
s202, when the mechanical structure of the key is matched with the lock core structure, the key receives a first random number sent by a door lock;
s203, generating a second random number;
s204, encrypting the first random number and the second random number to obtain a ciphertext;
s205, sending the ciphertext to the door lock;
s206, receiving a key sent by the door lock in an encrypted mode, wherein the key is obtained by calculating a first random number and a second random number through a preset operation method after the door lock successfully verifies the first random number obtained after the ciphertext is decrypted;
s207, decrypting the key, encrypting a first serial number arranged in the key through the key, and sending the encrypted first serial number to the door lock;
and S208, when the door lock successfully matches the first serial number with a second serial number built in the door lock, starting a lock bolt and unlocking the door lock.
In S201, the mechanical structure of the key is inserted into the key cylinder structure of the door lock. The mechanical part of the unlocking method is inserted into a lock hole of a door lock in a conventional mode, and the mechanical structure of the key is matched with the structure of a lock cylinder. The mechanical structure in this embodiment may be any one of the mechanical structures in the prior art, such as a straight line, a cross, a star, etc., and the number of teeth may also be any, for a lock, the mechanical structure of the key and the lock cylinder structure of the door lock are necessarily matched, if they are not matched, the subsequent security verification process may be interrupted at this time, an alarm is directly made on the door lock in the form of sound, or the owner is remotely notified in the form of short message, mail, telephone, etc., so that the owner knows that someone may try to open the door lock in an abnormal manner.
In S202, if the mechanical structure of the key matches the structure of the key cylinder, the key receives the first random number sent by the door lock. If the mechanical structure and the lock core structure are matched, the key and the mechanical part of the door lock are satisfied; at this point, the door lock sends a first random number to the key. The first random number is a completely random number, which can be generated by a random algorithm, and in order to further enhance the security of the unlocking process, the random number may be set to be valid only this time, that is, valid in the unlocking process this time, and invalid in other unlocking processes.
In order to send the first random number to the key, the door lock and the key are required to have electric energy, wherein the door lock can be powered by a storage battery, a dry battery, a rechargeable battery, or an external alternating current power supply after voltage reduction and the like; for the key, because the power consumption in the unlocking process is extremely low, a small battery, a detachable battery or a rechargeable battery can be arranged in the key; in addition, the key can be powered by the door lock in an antenna coupling mode, so that electric energy can be supplied to the circuit in the key.
In S203, a second random number is generated. The second random number is a randomly generated number similar to the first random number, and the second random number is generated on the key, the first random number and the second random number serving as authentication means between the key and the door lock before the key unlocks the door lock. The second random number may also be set to be valid only in the unlocking process of this time, and invalid in other unlocking processes.
In S204, the ciphertext is obtained by encrypting the first random number and the second random number.
The first random number and the second random number are encrypted, the first random number and the second random number can be combined, the combination rule is arbitrary and determined, for example, the first random number can be crown-connected to the second random number, or vice versa, or the first random number and the second random number can be combined in an overlapping manner, and the numbers in the random numbers are arranged at intervals. In this embodiment, the specific combination mode may be preset, that is, the door lock and the key are fixed in such a combination mode, or different combination modes are adopted in different time periods, and the combination mode of the current first random number and the current second random number may be determined by the generated first random number itself.
After combining, the first random number and the second random number may be encrypted. The encryption of the first random number and the second random number is for security of transmission between the KEY and the door lock, and the KEY used for encryption and decryption should be identical. In this embodiment, the first random number and the second random number may be encrypted by a first serial number built in the key. Because the encryption is carried out through the first serial number, similarly, the decryption process of the door lock is also carried out based on the first serial number, and after the door lock is decrypted, the first random number and the second random number returned by the key can be known after the combinational logic of the first random number and the second random number is known.
In S205, the ciphertext is transmitted to the door lock. The door lock decrypts the ciphertext and verifies the decrypted first random number. The first random number is generated by the door lock, and the door lock verifies the decrypted first random number, namely verifies whether the first random number is the first random number sent by the door lock to the key. If the verification fails, the first random number received by the door lock is not the first random number sent by the door lock to the key before, and then an alarm system can be started to alarm.
And S206, receiving a key sent by the door lock in an encrypted manner, wherein the key is obtained by calculating the first random number and the second random number through a preset calculation method after the first random number obtained by decrypting the ciphertext by the door lock is successfully verified. If the received first random number is the first random number sent before, then the first random number and the second random number are operated by a preset operation method to obtain the secret key. The calculating the first random number and the second random number by a preset calculating method may include: performing logic operation on the first random number and the second random number; or, performing hash operation on the first random number and the second random number. Regardless of the type of operation, the objective is to operate the first random number and the second random number in an irreversible manner to obtain a unique and exact result, which is then provided to the lock and the KEY as an encryption/decryption KEY for interaction. Because the first random number and the second random number are completely random and valid at this time, the obtained KEY is also random and valid at this time, and the KEY is used as an encryption and decryption KEY interacted between the KEY and the door lock in the unlocking process at this time.
In S207, the encrypted key is decrypted, and then the first serial number is encrypted by the key and sent to the door lock. After the KEY receives and decrypts the KEY to obtain the KEY, the KEY is used as an encryption KEY to encrypt the first serial number arranged in the KEY, and then the encrypted first serial number is sent to the door lock. After receiving the encrypted serial number, the door lock decrypts the serial number through the secret key, and matches the decrypted result, namely the first serial number, with a second serial number built in the door lock. At the moment, if the matching is successful, the lock bolt is started to unlock the door lock; and if the matching fails, alarming. Since one door lock often corresponds to a plurality of keys, the first serial numbers of the plurality of keys may be the same or different, and the matching relationship between the first serial number and the second serial number may be specifically defined according to this, which is not specifically limited in this embodiment.
In this embodiment, the communication frequency of the wireless communication between the door lock and the key is below 100MHz, and optionally, the wireless communication frequency may be 1 to 10KHz of low frequency, and may also be 13.56 MHz.
In addition, in order to further improve the security performance and save the electric energy, in this embodiment, if the interaction time between the door lock and the key exceeds the set time threshold, the interaction between the door lock and the key is stopped, and the wireless communication part of the door lock enters the sleep state until being triggered and awakened next time.
The embodiment provides an unlocking method, which includes detecting whether a mechanical structure of a key is matched with a lock cylinder structure, if so, sending a first random number to the key by a door lock, generating a second random number by the key according to the first random number of the door lock, generating a ciphertext therewith, decrypting the ciphertext by the door lock, obtaining a secret key through a preset operation method after verification is successful, sending the secret key to the key, encrypting a first serial number by the key and sending the first serial number to the door lock, matching the first serial number with the second serial number by the door lock, and starting a bolt to unlock the door lock after matching is successful. Through the implementation of this embodiment to a lot of two-way encryption and decryption operations, the effectual security that has promoted the encryption and decryption process, it is applied to traditional mechanical lock moreover, has promoted the security of mechanical lock tool to lock, has compensatied the safety short slab of current intelligent trick lock.
Third embodiment
Referring to fig. 3, fig. 3 is a schematic view of a door lock according to a third embodiment of the present invention.
The door lock 30 in the present embodiment includes: a door lock control module 301, a first communication module 302, a key cylinder module 303, a bolt module 304; wherein:
the lock cylinder module 303 detects whether the mechanical structure into which the door lock key is inserted is matched with the lock cylinder structure of the door lock;
when the mechanical structure of the key matches the cylinder structure, the first communication module 302 sends a first random number to the key;
the first communication module 302 receives a ciphertext sent by the key, the ciphertext is used as the key to generate a second random number, and the first random number and the second random number are obtained by encryption;
the door lock control module 301 decrypts the ciphertext and verifies the decrypted first random number; after the verification is successful, the first random number and the second random number are operated through a preset operation method to obtain a secret key;
the first communication module 302 encrypts and sends the key to the key;
the first communication module 302 receives a first serial number which is sent by a key and encrypted by a secret key, wherein the first serial number is a built-in key;
the door lock control module 301 matches the first serial number with a built-in second serial number; if the matching is successful, the bolt module 304 is started to unlock the door lock.
In this embodiment, the key cylinder module 303 detects whether the mechanical structure of the inserted key matches the key cylinder structure of the door lock. The mechanical part of the unlocking method is inserted into a lock hole of a door lock in a conventional mode, and the mechanical structure of the key is matched with the structure of a lock cylinder. The mechanical structure in this embodiment may be any one of the mechanical structures in the prior art, such as a straight line, a cross, a star, etc., and the number of teeth may also be any, for a lock, the mechanical structure of the key and the lock cylinder structure of the door lock are necessarily matched, if they are not matched, the subsequent security verification process may be interrupted at this time, an alarm is directly made on the door lock in the form of sound, or the owner is remotely notified in the form of short message, mail, telephone, etc., so that the owner knows that someone may try to open the door lock in an abnormal manner.
In this embodiment, if the mechanical configuration of the key matches the cylinder configuration, the first communication module 302 transmits a first random number to the key. If the mechanical structure and the lock core structure are matched, the key and the mechanical part of the door lock are satisfied; at this point, the door lock sends a first random number to the key. The first random number is a completely random number, which can be generated by a random algorithm, and in order to further enhance the security of the unlocking process, the random number may be set to be valid only this time, that is, valid in the unlocking process this time, and invalid in other unlocking processes. The first communication module 302 may include an antenna module 3021, through which the antenna module 3021 interacts with the key.
In order to send the first random number to the key, the door lock and the key are required to have electric energy, wherein the door lock can be powered by a storage battery, a dry battery, a rechargeable battery, or an external alternating current power supply after voltage reduction and the like; for the key, because the power consumption in the unlocking process is extremely low, a small battery, a detachable battery or a rechargeable battery can be arranged in the key; in addition, the key can be powered by the door lock in an antenna coupling mode, so that electric energy can be supplied to the circuit in the key.
In this embodiment, the first communication module 302 receives a ciphertext transmitted by the key, where the ciphertext is obtained by the key generating the second random number and encrypting the first random number and the second random number. The second random number is similar to the first random number and is a randomly generated number. The first random number and the second random number serve as authentication means between the key and the door lock before the key unlocks the door lock. The second random number may also be set to be valid only in the unlocking process of this time, and invalid in other unlocking processes.
In this embodiment, the first random number and the second random number are encrypted by the first sequence number, and the first random number and the second random number may be combined, and the combination rule should be arbitrary and determined, for example, the first random number may be preceded by the second random number, or vice versa, or the first random number and the second random number may be combined in an overlapping manner, and the numbers in the random numbers are arranged at intervals. In this embodiment, the specific combination mode may be preset, that is, the door lock and the key are fixed in such a combination mode, or different combination modes are adopted in different time periods, and the combination mode of the current first random number and the current second random number may be determined by the generated first random number itself.
After combining, the first random number and the second random number may be encrypted. The encryption of the first random number and the second random number is for security of transmission between the KEY and the door lock, and the KEY used for encryption and decryption should be identical. In this embodiment, the first random number and the second random number may be encrypted by a first serial number built in the key. Because the encryption is carried out through the first serial number, similarly, the decryption process of the door lock is also carried out based on the first serial number, and after the door lock is decrypted, the first random number and the second random number returned by the key can be known after the combinational logic of the first random number and the second random number is known.
Then, the door lock control module 301 decrypts the ciphertext and verifies the decrypted first random number. The first random number is generated by the door lock, and the door lock verifies the decrypted first random number, namely verifies whether the first random number is the first random number sent by the door lock to the key. If the verification fails, the first random number received by the door lock is not the first random number sent by the door lock to the key before, and then an alarm system can be started to alarm.
In this embodiment, if the verification is successful, the door lock control module 301 calculates the first random number and the second random number by a preset calculation method to obtain the key. If the received first random number is the first random number sent before, then the first random number and the second random number are operated by a preset operation method to obtain the secret key. The calculating the first random number and the second random number by a preset calculating method may include: performing logic operation on the first random number and the second random number; or, performing hash operation on the first random number and the second random number. Regardless of the type of operation, the objective is to operate the first random number and the second random number in an irreversible manner to obtain a unique and exact result, which is then provided to the lock and the KEY as an encryption/decryption KEY for interaction. Because the first random number and the second random number are completely random and valid at this time, the obtained KEY is also random and valid at this time, and the KEY is used as an encryption and decryption KEY interacted between the KEY and the door lock in the unlocking process at this time.
In this embodiment, the first communication module 302 sends the encrypted key to the key. The tool used in the encryption process may be the first serial number or other means known between the key and the door lock, and the purpose of the tool is to ensure that the transmission process of the key is not stolen. Correspondingly, the door lock adopts which mode to encrypt, then the key adopts which mode to decrypt, and after the decryption, the key knows the secret key therein.
In this embodiment, the first communication module 302 receives the first serial number encrypted by the key. After the KEY receives and decrypts the KEY to obtain the KEY, the KEY is used as an encryption KEY to encrypt the first serial number arranged in the KEY, and then the encrypted first serial number is sent to the door lock. After receiving the encrypted serial number, the door lock decrypts the serial number through the secret key, and matches the decrypted result, namely the first serial number, with a second serial number built in the door lock. At the moment, if the matching is successful, the lock bolt is started to unlock the door lock; and if the matching fails, alarming. Since one door lock often corresponds to a plurality of keys, the first serial numbers of the plurality of keys may be the same or different, and the matching relationship between the first serial number and the second serial number may be specifically defined according to this, which is not specifically limited in this embodiment.
In this embodiment, the system may further include an alarm module 305, configured to alarm when the key mechanical structure is not matched with the lock cylinder structure, or when the door lock control module 301 fails to verify the decrypted first random number, or when the first serial number is not matched with a second serial number built in the door lock. Under these circumstances, the alarm can be given, and at the same time, the steps after the step are interrupted, and the unlocking operation is not continued.
In this embodiment, the wireless communication frequency of the first communication module 302 is less than 100MHz, and optionally, the wireless communication frequency may be 1 to 10KHz of low frequency, and may also be 13.56 MHz.
In addition, in order to further improve the security performance and save the electric energy, in this embodiment, if the interaction time between the door lock and the key exceeds the set time threshold, the interaction between the door lock and the key is stopped, and the first communication module 302 of the door lock enters the sleep state, and is not woken up until the next unlocking operation.
In addition, the unlocking method in the embodiment can be applied to any scenes suitable for locks, such as doors, vehicle doors, cabinet doors, automobile driving parts and the like.
The embodiment provides a door lock, which detects whether a mechanical structure of a key is matched with a lock core structure, if so, the door lock sends a first random number to the key, the key generates a second random number according to the first random number of the door lock, and then generates a ciphertext, the door lock decrypts the ciphertext, and after the verification is successful, a secret key is obtained through a preset operation method, the secret key is sent to the key, the key encrypts a first serial number through the secret key and sends the first serial number to the door lock, the door lock matches the first serial number with the second serial number, and after the matching is successful, a bolt is started to unlock the door lock. Through the implementation of this embodiment to a lot of two-way encryption and decryption operations, the effectual security that has promoted the encryption and decryption process, it is applied to traditional mechanical lock moreover, has promoted the security of mechanical lock tool to lock, has compensatied the safety short slab of current intelligent trick lock.
Fourth embodiment
Referring to fig. 4, fig. 4 is a schematic view of a key assembly according to a fourth embodiment of the present invention.
The key 40 in the present embodiment includes: a key control module 401, a second communication module 402; wherein:
the mechanical structure of the key is inserted into the lock cylinder structure of the door lock, and when the mechanical structure of the key is matched with the lock cylinder structure, the second communication module 402 receives a first random number sent by the door lock;
the key control module 401 generates a second random number, and encrypts the first random number and the second random number to obtain a ciphertext;
the second communication module 402 sends the ciphertext to the door lock;
the second communication module 402 receives a key sent by the encrypted door lock, wherein the key is obtained by calculating the first random number and the second random number through a preset calculation method after the door lock successfully verifies the first random number obtained by decrypting the ciphertext;
the key control module 401 decrypts the key, encrypts a first serial number in the key through the key, and then the second communication module 402 sends the encrypted first serial number to the door lock;
and when the door lock successfully matches the first serial number with a second serial number built in the door lock, starting the lock bolt and unlocking the door lock.
In this embodiment, the mechanical structure of the key is inserted into the cylinder structure of the door lock. The mechanical part of the unlocking method is inserted into a lock hole of a door lock in a conventional mode, and the mechanical structure of the key is matched with the structure of a lock cylinder. The mechanical structure in this embodiment may be any one of the mechanical structures in the prior art, such as a straight line, a cross, a star, etc., and the number of teeth may also be any, for a lock, the mechanical structure of the key and the lock cylinder structure of the door lock are necessarily matched, if they are not matched, the subsequent security verification process may be interrupted at this time, an alarm is directly made on the door lock in the form of sound, or the owner is remotely notified in the form of short message, mail, telephone, etc., so that the owner knows that someone may try to open the door lock in an abnormal manner.
If the mechanical configuration of the key matches the configuration of the lock cylinder, then the second communication module 402 receives the first random number transmitted by the door lock. If the mechanical structure and the lock core structure are matched, the key and the mechanical part of the door lock are satisfied; at this point, the door lock sends a first random number to the key. The first random number is a completely random number, which can be generated by a random algorithm, and in order to further enhance the security of the unlocking process, the random number may be set to be valid only this time, that is, valid in the unlocking process this time, and invalid in other unlocking processes.
In order to send the first random number to the key, the door lock and the key are required to have electric energy, wherein the door lock can be powered by a storage battery, a dry battery, a rechargeable battery, or an external alternating current power supply after voltage reduction and the like; for the key, because the power consumption in the unlocking process is extremely low, a small battery, a detachable battery or a rechargeable battery can be arranged in the key; in addition, the key can be powered by the door lock in an antenna coupling mode, so that electric energy can be supplied to the circuit in the key. The second communication module 402 on the key may also include an antenna module 403, perform information interaction with the door lock through the antenna module 403, and may obtain power through antenna coupling.
In this embodiment, the key control module 401 generates a second random number. The second random number is a randomly generated number similar to the first random number, and the second random number is generated on the key, the first random number and the second random number serving as authentication means between the key and the door lock before the key unlocks the door lock. The second random number may also be set to be valid only in the unlocking process of this time, and invalid in other unlocking processes.
In this embodiment, the key control module 401 encrypts the first random number and the second random number to obtain a ciphertext.
The first random number and the second random number are encrypted, the first random number and the second random number can be combined, the combination rule is arbitrary and determined, for example, the first random number can be crown-connected to the second random number, or vice versa, or the first random number and the second random number can be combined in an overlapping manner, and the numbers in the random numbers are arranged at intervals. In this embodiment, the specific combination mode may be preset, that is, the door lock and the key are fixed in such a combination mode, or different combination modes are adopted in different time periods, and the combination mode of the current first random number and the current second random number may be determined by the generated first random number itself.
After combining, the first random number and the second random number may be encrypted. The encryption of the first random number and the second random number is for security of transmission between the KEY and the door lock, and the KEY used for encryption and decryption should be identical. In this embodiment, the first random number and the second random number may be encrypted by a first serial number built in the key. Because the encryption is carried out through the first serial number, similarly, the decryption process of the door lock is also carried out based on the first serial number, and after the door lock is decrypted, the first random number and the second random number returned by the key can be known after the combinational logic of the first random number and the second random number is known.
In this embodiment, the second communication module 402 sends the ciphertext to the door lock. The door lock decrypts the ciphertext and verifies the decrypted first random number. The first random number is generated by the door lock, and the door lock verifies the decrypted first random number, namely verifies whether the first random number is the first random number sent by the door lock to the key. If the verification fails, the first random number received by the door lock is not the first random number sent by the door lock to the key before, and then an alarm system can be started to alarm.
In this embodiment, the second communication module 402 receives a key sent by the door lock in an encrypted manner, where the key is obtained by the door lock computing the first random number and the second random number through a preset computing method after the first random number obtained by decrypting the ciphertext by the door lock is successfully verified. If the received first random number is the first random number sent before, then the first random number and the second random number are operated by a preset operation method to obtain the secret key. The calculating the first random number and the second random number by a preset calculating method may include: performing logic operation on the first random number and the second random number; or, performing hash operation on the first random number and the second random number. Regardless of the type of operation, the objective is to operate the first random number and the second random number in an irreversible manner to obtain a unique and exact result, which is then provided to the lock and the KEY as an encryption/decryption KEY for interaction. Because the first random number and the second random number are completely random and valid at this time, the obtained KEY is also random and valid at this time, and the KEY is used as an encryption and decryption KEY interacted between the KEY and the door lock in the unlocking process at this time.
In this embodiment, the key control module 401 decrypts the encrypted key, encrypts the first serial number by the key, and sends the encrypted first serial number to the door lock. After the KEY receives and decrypts the KEY to obtain the KEY, the KEY is used as an encryption KEY to encrypt the first serial number arranged in the KEY, and then the encrypted first serial number is sent to the door lock. After receiving the encrypted serial number, the door lock decrypts the serial number through the secret key, and matches the decrypted result, namely the first serial number, with a second serial number built in the door lock. At the moment, if the matching is successful, the lock bolt is started to unlock the door lock; and if the matching fails, alarming. Since one door lock often corresponds to a plurality of keys, the first serial numbers of the plurality of keys may be the same or different, and the matching relationship between the first serial number and the second serial number may be specifically defined according to this, which is not specifically limited in this embodiment.
In this embodiment, the wireless communication between the door lock and the key, that is, the wireless communication frequency of the second communication module 402 is less than 100MHz, and optionally, the wireless communication frequency may be 1 to 10KHz of low frequency, and may also be 13.56 MHz.
The embodiment provides a key, which is used for detecting whether a mechanical structure of the key is matched with a lock cylinder structure, if so, a door lock sends a first random number to the key, the key generates a second random number according to the first random number of the door lock and then generates a ciphertext, the door lock decrypts the ciphertext, after the verification is successful, a secret key is obtained through a preset operation method and sent to the key, the key encrypts a first serial number through the secret key and sends the first serial number to the door lock, the door lock matches the first serial number with the second serial number, and after the matching is successful, a door bolt is started to unlock the door lock. Through the implementation of this embodiment to a lot of two-way encryption and decryption operations, the effectual security that has promoted the encryption and decryption process, it is applied to traditional mechanical lock moreover, has promoted the security of mechanical lock tool to lock, has compensatied the safety short slab of current intelligent trick lock.
In addition, the embodiment further provides a lock, which includes a door lock 30 and a key 40, and the specific composition of the door lock and the specific composition of the key are as described in the previous embodiment and are not described herein again.
Fifth embodiment
Referring to fig. 5, fig. 5 is a flowchart of an unlocking method according to a fifth embodiment of the present invention.
S501, detecting that a key is inserted into a lock cylinder by a door lock;
s502, detecting whether a lock core structure of the door lock is matched with a mechanical structure of a key; when the current door lock is matched with the current door lock, the door lock triggers and starts a first communication module in the current door lock; if not, turning to S, and if matching, turning to S503;
s503, starting a first communication module by a door lock control module of a door lock to send a first random number to a key through an antenna;
s504, the key is coupled to a key control module and a second communication module in the energy operation key through an antenna, and a first random number transmitted by the door lock is received;
s505, the key generates a second random number and is spliced with the first random number, and the second random number and the first random number are encrypted by using a first serial number built in the key to generate a ciphertext and are transmitted back to the door lock;
s506, the door lock control module of the door lock receives the ciphertext through the first communication module and decrypts the ciphertext to obtain a first random number and a second random number;
s507, the door lock control module of the door lock compares whether the received first random number is matched with the sent first random number, if not, the operation goes to S514;
if the first random number and the second random number are matched, the first random number and the second random number are operated in a preset operation mode to obtain a secret key; the first random number and the second random number are both single-time valid; the method comprises the steps of presetting an operation mode, wherein a group of irreversible operation data is generated, and the irreversible operation data can be obtained by performing logic operation on a first random number and a second random number or performing hash operation on the first random number and the second random number;
s508, a door lock control module of the door lock encrypts and processes the KEY by using the first serial number as a KEY and sends the KEY to the KEY;
s509, the KEY decrypts the received KEY by using the first serial number to obtain the KEY therein; the door lock and the KEY use a KEY obtained by the operation of the first random number and the second random number as a KEY for subsequent data communication;
s510, the KEY acquires a built-in first serial number, uses a KEY as a KEY, encrypts the first serial number, and transmits the encrypted content through an antenna of the second communication module;
s511, the door lock receives the encrypted first serial number sent by the key, analyzes the encrypted first serial number, and compares whether the received first serial number is matched with a second serial number in the intelligent door lock;
if not, go to S515;
s512-513, if the two are matched, the door lock starts the lock bolt to unlock the door lock.
And S514, starting an alarm function, and carrying out alarm, wherein the alarm can comprise a sound alarm, a short message alarm, a telephone alarm, a mail alarm and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (13)

1. A method of unlocking comprising:
the method comprises the following steps that a door lock detects whether a mechanical structure of an inserted key is matched with a lock cylinder structure of the door lock;
when the mechanical structure of the key matches the lock cylinder structure, the door lock sends a first random number to the key;
the door lock receives a ciphertext sent by the key, the ciphertext is obtained by combining and encrypting the first random number and a second random number, and the second random number is generated by the key;
the door lock decrypts the ciphertext and verifies the decrypted first random number;
after the verification is successful, the first random number and the second random number are operated through a preset operation method to obtain a secret key;
encrypting and sending the key to the key;
the door lock receives a first serial number which is sent by the key and encrypted by the secret key, and the first serial number is arranged in the key;
the door lock matches the first serial number with a second serial number built in the door lock; if the two are matched, the lock bolt is started to unlock the door lock.
2. The unlocking method according to claim 1, wherein the operating the first random number and the second random number by a predetermined operation method includes: performing logic operation on the first random number and the second random number; or, performing hash operation on the first random number and the second random number.
3. The method of unlocking a lock of claim 1, wherein when said door lock transmits a first random number to said key, further comprising: the door lock supplies power to the key in an antenna coupling mode.
4. The unlocking method according to any one of claims 1 to 3, wherein an alarm is given when the key mechanism does not match the key cylinder mechanism, or when the door lock fails to verify the decrypted first random number, or when the first serial number does not match a second serial number built in the door lock.
5. A method of unlocking comprising:
the mechanical structure of the key is inserted into the lock core structure of the door lock;
when the mechanical structure of the key is matched with the lock cylinder structure, the key receives a first random number sent by the door lock;
generating a second random number;
encrypting the first random number and the second random number to obtain a ciphertext;
sending the ciphertext to the door lock;
receiving a key sent by the door lock in an encrypted manner, wherein the key is obtained by calculating a first random number and a second random number through a preset calculation method after the first random number obtained by decrypting the ciphertext by the door lock is successfully verified;
decrypting the key, encrypting a first serial number arranged in the key through the key, and sending the encrypted first serial number to the door lock;
and when the first serial number is successfully matched with a second serial number arranged in the door lock by the door lock, starting a lock bolt and opening the door lock.
6. The unlocking method according to claim 5, wherein the operating the first random number and the second random number by a predetermined operation method includes: performing logic operation on the first random number and the second random number; or, performing hash operation on the first random number and the second random number.
7. The method for unlocking a door of claim 5, wherein prior to said receiving said first random number transmitted by said door lock, further comprising: the key obtains power from the door lock in an antenna coupled manner.
8. A door lock is characterized by comprising a door lock control module, a first communication module, a lock cylinder module and a lock bolt module; wherein:
the lock cylinder module detects whether a mechanical structure inserted into the door lock key is matched with a lock cylinder structure of the door lock;
the first communication module sends a first random number to the key when the mechanical structure of the key matches the cylinder structure;
the first communication module receives a ciphertext sent by the key, the ciphertext is obtained by combining and encrypting the first random number and a second random number, and the second random number is generated by the key;
the door lock control module decrypts the ciphertext and verifies the decrypted first random number; after the verification is successful, the first random number and the second random number are operated through a preset operation method to obtain a secret key;
the first communication module encrypts the key and sends the key to the key;
the first communication module receives a first serial number which is sent by the key and encrypted by the secret key, wherein the first serial number is arranged in the key;
the door lock control module matches the first serial number with a built-in second serial number; and if the matching is successful, starting the latch module and unlocking the door lock.
9. The door lock of claim 8, wherein the operating the first random number and the second random number by a preset operation method comprises: performing logic operation on the first random number and the second random number; or, performing hash operation on the first random number and the second random number.
10. The door lock according to claim 8 or 9, further comprising an alarm module for giving an alarm when the key mechanism is not matched with the key cylinder mechanism, or when the door lock control module fails to verify the decrypted first random number, or when the first serial number is not matched with a second serial number built in the door lock.
11. A key, characterized by comprising: the key control module and the second communication module; wherein:
the mechanical structure of the key is inserted into a lock cylinder structure of the door lock, and when the mechanical structure of the key is matched with the lock cylinder structure, the second communication module receives a first random number sent by the door lock;
the key control module generates a second random number, and encrypts the first random number and the second random number to obtain a ciphertext;
the second communication module sends the ciphertext to the door lock;
the second communication module receives a key sent by the door lock in an encrypted mode, and the key is obtained by calculating the first random number and the second random number through a preset operation method after the first random number obtained by the door lock after decrypting the ciphertext is successfully verified;
the key control module decrypts the key and encrypts a first serial number built in the key through the key, and the second communication module sends the encrypted first serial number to the door lock;
and when the first serial number is successfully matched with a second serial number arranged in the door lock by the door lock, starting a lock bolt and opening the door lock.
12. The key of claim 11, wherein said second communication module obtains power from said door lock by way of an antenna coupling.
13. A lock comprising a door lock according to any one of claims 8 to 10 and a key according to claim 11 or 12.
CN201710296592.XA 2017-04-28 2017-04-28 Unlocking method, door lock, key and lockset Active CN106971441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710296592.XA CN106971441B (en) 2017-04-28 2017-04-28 Unlocking method, door lock, key and lockset

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710296592.XA CN106971441B (en) 2017-04-28 2017-04-28 Unlocking method, door lock, key and lockset

Publications (2)

Publication Number Publication Date
CN106971441A CN106971441A (en) 2017-07-21
CN106971441B true CN106971441B (en) 2020-04-17

Family

ID=59330865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710296592.XA Active CN106971441B (en) 2017-04-28 2017-04-28 Unlocking method, door lock, key and lockset

Country Status (1)

Country Link
CN (1) CN106971441B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107610292B (en) * 2017-09-15 2021-08-27 广州市雅天网络科技有限公司 Bluetooth-based unlocking method of controllable-distance intelligent door lock
CN108171831B (en) * 2017-12-22 2020-08-21 武汉瑞纳捷电子技术有限公司 Bidirectional security authentication method based on NFC mobile phone and intelligent lock
CN109979043A (en) * 2017-12-28 2019-07-05 国民技术股份有限公司 A kind of lockset working method, lockset and key system
CN108320356B (en) * 2018-02-02 2021-07-23 陈旭 Lock control method, device and system
CN108833086A (en) * 2018-05-04 2018-11-16 深圳绿米联创科技有限公司 Fingerprint lock and its working method
CN109326018B (en) * 2018-08-08 2020-09-22 珠海优特电力科技股份有限公司 Authentication method, device and system for preventing lock from being copied and electronic key
CN109869046B (en) * 2019-03-27 2021-05-28 南京英维尔科技服务有限公司 Control method and device for triggering door and window anti-theft alarm
CN110005262A (en) * 2019-03-29 2019-07-12 深圳市创维群欣安防科技股份有限公司 A kind of anti-the take out stitches electronic lock system cracked and its control method
CN110176092A (en) * 2019-05-23 2019-08-27 杭州咸亨国际科研中心有限公司 A kind of single-point communication method for unlocking and unlocking apparatus
CN110443915B (en) * 2019-06-24 2023-04-18 深圳绿米联创科技有限公司 Door lock control method, control device, door lock and storage medium
WO2020259397A1 (en) * 2019-06-26 2020-12-30 国民技术股份有限公司 Smart lock, security platform and authentication method therefor
CN113763599A (en) * 2020-06-04 2021-12-07 曾惠瑜 System and method for executing encryption, decryption and unlocking management
CN112950817B (en) * 2021-01-28 2022-12-02 深圳市凯迪仕智能科技有限公司 Encryption communication method of split type intelligent lock and split type intelligent lock
CN115331336B (en) * 2022-07-28 2023-08-04 上海荃信信息技术有限公司 NFC digital key mobile equipment adaptation method and device based on card simulation scheme

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5612683A (en) * 1994-08-26 1997-03-18 Trempala; Dohn J. Security key holder
CN102568061B (en) * 2010-12-30 2014-08-06 中国移动通信集团公司 Method, system and device for achieving entrance guard control
CN105096409A (en) * 2014-05-15 2015-11-25 李仕平 Bi-directional communication electronic lock
CN104680630A (en) * 2014-12-29 2015-06-03 深圳市进林科技有限公司 Method and system for controlling door locks
CN104727658B (en) * 2015-01-26 2017-03-29 湖南银宝科技发展有限公司 Smart lock, Intelligent key and its control method and device
CN105069864A (en) * 2015-07-10 2015-11-18 西安电子科技大学 Door lock control secure communication scheme based on NFC (near field communication) function of smart phone
CN105006051B (en) * 2015-07-31 2018-02-23 深圳广田智能科技有限公司 The wireless communications method and system of intelligent distant control door lock
CN106522686A (en) * 2016-12-30 2017-03-22 卓捷创芯科技(深圳)有限公司 Intelligent door lock based on passive radio frequency identification tag

Also Published As

Publication number Publication date
CN106971441A (en) 2017-07-21

Similar Documents

Publication Publication Date Title
CN106971441B (en) Unlocking method, door lock, key and lockset
CN106898065B (en) Unlocking method of intelligent door lock
US8526606B2 (en) On-demand secure key generation in a vehicle-to-vehicle communication network
CN102800141B (en) A kind of access control method based on two-way authentication and system
CN109741500B (en) Temporary password setting and verification method for intelligent lock
US20110084799A1 (en) Lock system including an electronic key and a passive lock
CN106972926B (en) encryption and decryption method, device and system for wireless automobile key
CN106056713B (en) A kind of remote-authorization method of coded lock
CN104851159B (en) A kind of network-type access control system
CN109035519B (en) Biological feature recognition device and method
CN107657692A (en) A kind of temporary password generates system and method
CN103332166A (en) Automobile intelligent key system based on mobile phone storage extension card
CN104724057B (en) A kind of hybrid vehicle electronic locking theft preventing method of high security
CN105574966A (en) Intelligent mobile phone door lock
CN109658547A (en) Vehicle shared system
CN109905869A (en) Data transmission method between a kind of charging equipment and smart machine
CN204463267U (en) A kind of intelligent access control system
CN103593892A (en) Challenge response and symmetrical encryption based electronic lock unlocking method
CN105383443B (en) A kind of motor vehicle can position automatic alarm intelligent burglary-resisting system
CN104392525A (en) Intelligent lock system
CN204641672U (en) A kind of hybrid vehicle electronic locking anti-theft system of high security
CN207123882U (en) A kind of antitheft cloud service door-locking system of multiple intelligent
CN104282059A (en) Bluetooth-based safety intelligent lock system with video monitoring function and unlocking and locking methods
CN203759781U (en) Bluetooth intelligent lock
CN206376639U (en) A kind of theftproof lock

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant