CN105184931B - A kind of method for unlocking based on bluetooth, system, handheld terminal and electronic lock - Google Patents
A kind of method for unlocking based on bluetooth, system, handheld terminal and electronic lock Download PDFInfo
- Publication number
- CN105184931B CN105184931B CN201510642506.7A CN201510642506A CN105184931B CN 105184931 B CN105184931 B CN 105184931B CN 201510642506 A CN201510642506 A CN 201510642506A CN 105184931 B CN105184931 B CN 105184931B
- Authority
- CN
- China
- Prior art keywords
- electronic lock
- unlocking
- bluetooth
- handheld terminal
- lock
- 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
Links
Abstract
The present invention provides a kind of method for unlocking based on bluetooth, system, handheld terminal and electronic lock, and methods described includes:Handheld terminal with Bluetooth function is bound by way of Bluetooth communication with electronic lock and the unlocking cipher of electronic lock is generated;When electronic lock is unlocked, handheld terminal sends the request and after the one group of random number fed back from electronic lock is being received unlocked to electronic lock, and ID, unlocking cipher and random number combines to carry out that the hashed value for calculating acquisition will be hashed after hash calculating and sent to the electronic lock;Electronic lock is matched the hashed value that the combination of the random number, ID and unlocking cipher obtained after hash calculating with the hashed value received from the handheld terminal, after the match is successful, opens electronic lock.The present invention interacts certification by using the cipher mode of hash, can prevent third party from being monitored from centre, and the situation and unlocking speed that the present invention is leaked in the absence of key are fast, effectively improve the security of electronic lock.
Description
Technical field
The present invention relates to the startup control technology field of technical field of mobile terminals, more particularly to mobile terminal, specifically
For a kind of method for unlocking based on bluetooth, system, handheld terminal and electronic lock.
Background technology
Bluetooth is with a wide range of applications, just by the whole world as a kind of new short-distance wireless communication technology standard
The extensive concern of all circles.Emerging Bluetooth technology enters period of expansion from the budding period, although with other short distance wireless technicals
Compared to (such as:IEEE802.11b, HomeRF, IrDA), also there is very big dispute in the advantage of Bluetooth technology.But, tend to be ripe
Blue tooth productses into market be still inevitable trend.Bluetooth technology has following characteristics:User is supported to enter between many equipment
Row wireless data exchange and file synchronization, make between mobile phone, portable computer and various portable communication devices
Closely interior resource-sharing;The communication and connection in non-visual range are supported, and wireless connection and communication can be carried out on the move;
Wireless device is supported to the wireless connection between cable network, as long as being connected to the Bluetooth accessing point of LAN, it is possible to realize
The wireless data connection of cable LAN;Support circuit-switched and packet switch, support voice, data and video signal transmission.
Blue tooth wireless technology uses a kind of digital coding for extending narrowband signal spectrum, and transmission is added by encoding operation
The quantity of bit, expands the bandwidth used.Bluetooth carrys out spread-spectrum using frequency-hopping mode.FHSS causes signal in bandwidth
Power spectral density reduction, so as to substantially increase system electromagnetism interference, the ability of anti-cross talk so that bluetooth it is wireless
Data transfer is relatively reliable.
In intelligent electronic lock field, situation about being unlocked now with IC-card is very universal;But when also to go out every time,
Except take mobile phone, lock spoon, electronics key and filled card wallet in addition to, an IC-card is also taken, if for multiple
Lockset, then need the multiple IC-cards of correspondence to unlock, carry too many thing, inconvenient.Bluetooth is controlled by smart mobile phone
Lock has become a kind of trend.But in existing application, the password set by between smart mobile phone and bluetooth lock control terminal is excessively
It is single, most technical scheme be all physical address simply using Bluetooth of mobile phone uniqueness as crypto carrier, or with
One section of cryptopart being manually set, when needing unblock, hand is represented as long as being sent by mobile phone application software as crypto carrier
The physical address of machine uniqueness or default several passwords, bluetooth lock control terminal are that unblock operation can be achieved.It is this traditional
Cipher mode is easy to be replicated by wireless signal, once it is cracked, it is easy to cause the heavy losses of property.
The content of the invention
The shortcoming of prior art in view of the above, it is an object of the invention to provide a kind of unlocking side based on bluetooth
Method, system, handheld terminal and electronic lock, for solving to exist in the technology use of the electronic lock based on bluetooth in the prior art
The problem of secret grade is low and key is easily leaked.
In order to achieve the above objects and other related objects, the present invention provides a kind of method for unlocking based on bluetooth, is applied to
In the unlocking control process of electronic lock with Bluetooth function, the method for unlocking based on bluetooth includes:There to be bluetooth work(
The handheld terminal of energy is bound with the electronic lock by way of Bluetooth communication and generates the unlocking cipher of the electronic lock;In electricity
When son locks unlocking, the handheld terminal is sent to the electronic lock unlocks request and is receiving one from electronic lock feedback
After group random number, the combination of the ID in handheld terminal, the unlocking cipher and the random number is carried out hashing calculating
The hash is calculated to the hashed value obtained afterwards to send to the electronic lock;The electronic lock is tested the hashed value received
After card is matched and the match is successful in checking, the electronic lock is opened.
Preferably, the handheld terminal with Bluetooth function is bound and given birth to the electronic lock by way of Bluetooth communication
Unlocking cipher into the electronic lock is specifically included:The handheld terminal is set up by way of Bluetooth communication with the electronic lock
During bluetooth connection, according to the electronic lock send administrator password send bind request, and to from the electronic lock receive it is anti-
The hashed value that feedforward information carries out that the hash is calculated into acquisition after hash calculating is sent to the electronic lock;The handheld terminal
The MAC Address of bluetooth in the electronic lock is recorded after the check information of the electronic lock is received, while adding for the electronic lock
Lock name;The handheld terminal is receiving the encrypted AES used afterwards and for unlocking cipher encryption of the electronic lock
After key, the AES key is preserved;The handheld terminal generates the electronic lock according to the AES key of preservation
Unlocking cipher and the unlocking cipher is sent after AES encryption to the electronic lock.
Preferably, the unlocking request that the handheld terminal is sent to the electronic lock includes presetting in the handheld terminal
ID and the unlocking request instruction including at least unlocking cipher.
Preferably, the electronic lock carries out checking matching and after verifying that the match is successful to the hashed value received, opens
The detailed process of the electronic lock includes:The electronic lock is corresponding by the random number, the ID and the ID
Unlocking cipher combination carry out hash calculating after the hashed value of the hashed value that obtains with being received from the handheld terminal enter
Row matching, after the match is successful, opens the electronic lock.
To achieve the above object, the present invention also provides a kind of unlocking handheld terminal based on bluetooth, applied to bluetooth
In the unlocking control process of the electronic lock of function, the unlocking handheld terminal includes:Bluetooth binding module, for logical by bluetooth
The mode of letter is bound with the electronic lock;Unlocking cipher generation module, is connected with the bluetooth binding module, described for generating
The unlocking cipher of electronic lock;Unlocking control module, is connected with the unlocking cipher generation module, for being sent to the electronic lock
Request unlock simultaneously after the one group of random number fed back from the electronic lock is being received, by the ID in handheld terminal, described opens
Lock cipher is sent to described with the hashed value for carrying out that the hash is calculated into acquisition after hash calculating that combines of the random number
Electronic lock, so that the electronic lock carries out checking matching to the hashed value received and the electricity is opened after verifying that the match is successful
Son lock.
Preferably, the bluetooth binding module includes:Bind request processing unit, for what is sent according to the electronic lock
Administrator password sends bind request;Hashed value obtains transmitting element, is connected with the bind request processing unit, for from institute
The feedback information for stating electronic lock reception send the hashed value of the hash calculating acquisition to the electricity after hash calculating
Son lock;Binding unit, obtains transmitting element with the hashed value and is connected, institute is recorded after the check information of the electronic lock is received
The MAC Address of bluetooth in electronic lock is stated, while being electronic lock addition lock name;The unlocking cipher generation module includes:AES
Cipher key unit, is connected with the binding unit, for receive the electronic lock it is encrypted after and for the unlocking cipher
Encrypt after the AES key used, the AES key is preserved;Password generates transmitting element, with the AES key unit
It is connected, the unlocking cipher of the electronic lock is generated and by the unlocking cipher after AES encryption according to the AES key of preservation
Send to the electronic lock.
Preferably, the unlocking request in the unlocking control module includes default user in the handheld terminal
ID and the unlocking request instruction including at least unlocking cipher.
To achieve the above object, the present invention also provides a kind of electronic lock based on bluetooth, and the electronic lock at least includes:It is blue
Tooth module, for carrying out Bluetooth communication with Bluetooth function and for the handheld terminal for opening the electronic lock;Control module,
It is connected with the bluetooth module, for after the unlocking request that the handheld terminal is sent is received, one group of random number of generation to be simultaneously
The random number back is subjected to checking matching to the handheld terminal and to the hashed value received from the handheld terminal
And after the match is successful in checking, open the electronic lock;Lock core module, is connected with the control module, in the control
Module verification opens the electronic lock after the match is successful.
Preferably, the control module is additionally operable to the random number, the ID and the ID is corresponding
The combination of unlocking cipher carries out the hashed value obtained after hash calculating and the hashed value progress received from the handheld terminal
Matching, after the match is successful, opens the electronic lock.
To achieve the above object, the present invention also provides a kind of unlocking system based on bluetooth, the unlocking based on bluetooth
System includes unlocking handheld terminal as described above and the electronic lock as described above based on bluetooth.
As described above, a kind of method for unlocking based on bluetooth, system, handheld terminal and the electronic lock of the present invention, have
Following beneficial effect:
The present invention is by during the interactive authentication of unlocking handheld terminal unlocking electronic lock, using the cipher mode of hash
Interact during certification, such unlocking handheld terminal and electronic lock intercommunication it is prevented that third party supervises from centre
Listen, cause key to leak, so situation and unlocking speed that the present invention is leaked in the absence of key are fast, effectively improve electronic lock
Security.
Brief description of the drawings
Fig. 1 is shown as the schematic flow sheet of the labyrinth unlocking method of the present invention.
Fig. 2 is shown as hand-held end when handheld terminal is bound with electronic lock in a kind of method for unlocking based on bluetooth of the present invention
The handling process schematic diagram at end.
Fig. 3 is shown as electronic lock when handheld terminal is bound with electronic lock in a kind of method for unlocking based on bluetooth of the present invention
Handling process schematic diagram.
Fig. 4 is shown as generating the schematic flow sheet of unlocking cipher in a kind of method for unlocking based on bluetooth of the present invention.
The handling process signal of handheld terminal when Fig. 5 is shown as unlocking in a kind of method for unlocking based on bluetooth of the present invention
Figure.
The handling process signal of electronic lock when Fig. 6 is shown as unlocking in a kind of method for unlocking based on bluetooth of the present invention
Figure.
Fig. 7 is shown as a kind of structural representation of unlocking system based on bluetooth of the present invention.
Fig. 8 is shown as a kind of structural representation of unlocking handheld terminal based on bluetooth of the present invention.
Fig. 9 is shown as a kind of structural representation of electronic lock based on bluetooth of the present invention.
Figure 10 is shown as the interaction of unlocking handheld terminal and electronic lock in a kind of unlocking system based on bluetooth of the present invention
Schematic diagram.
Component label instructions
1 unlocking system
11 unlocking handheld terminals
111 bluetooth binding modules
112 unlocking cipher generation modules
113 unlocking control modules
12 electronic locks
121 bluetooth modules
122 control modules
123 lock core modules
S11~S13 steps
Embodiment
Illustrate embodiments of the present invention below by way of specific instantiation, those skilled in the art can be by this specification
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through specific realities different in addition
The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints with application, without departing from
Various modifications or alterations are carried out under the spirit of the present invention.
The purpose of the present embodiment is a kind of method for unlocking based on bluetooth of offer, system, handheld terminal and electronic lock,
For solving, secret grade present in the technology use of the electronic lock based on bluetooth in the prior art is low and key is easily leaked
The problem of.A kind of method for unlocking based on bluetooth, system, handheld terminal and electronic lock of the present embodiment described in detail below
Principle and embodiment, make those skilled in the art do not need creative work be appreciated that the present embodiment one kind be based on indigo plant
Method for unlocking, system, handheld terminal and the electronic lock of tooth.
The present embodiment provides a kind of method for unlocking based on bluetooth, the unlocking control applied to the electronic lock with Bluetooth function
During system, in a kind of method for unlocking based on bluetooth of the present embodiment, the hand-held end with Bluetooth function is used in user
When end performs unlocking action, handheld terminal will receive one group of random number, and the handheld terminal of user passes through after random number is received
Combination of user profile and random number of itself etc. carries out hash calculating, calculates and hashed result is sent into electronics after completing
Lock, electronic lock will be matched to the hashed value received, if the match is successful, perform unlocking action, failure of otherwise unlocking.Electricity
Son will also calculate hashed value while being locked in transmission random number.So during intercommunication it is prevented that third party therefrom
Between monitor, cause key to leak, improve the security of unlocking.Specifically, as shown in figure 1, the unlocking side based on bluetooth
Method comprises the following steps.
Step S11, the handheld terminal with Bluetooth function is bound simultaneously by way of Bluetooth communication with the electronic lock
Generate the unlocking cipher of the electronic lock.
Specifically, in the present embodiment, by the handheld terminal with Bluetooth function by way of Bluetooth communication with it is described
Electronic lock is bound and generates the unlocking cipher of the electronic lock and specifically includes:The handheld terminal by way of Bluetooth communication with
When the electronic lock sets up bluetooth connection, the administrator password sent according to the electronic lock sends bind request, and to from described
The hashed value that the feedback information that electronic lock is received carries out that the hash is calculated into acquisition after hash calculating is sent to the electronics
Lock;The handheld terminal records the MAC Address of bluetooth in the electronic lock after the check information of the electronic lock is received, simultaneously
For electronic lock addition lock name;The handheld terminal receive the electronic lock it is encrypted after and for the unlocking cipher
Encrypt after the AES key used, the AES key is preserved.
Specifically in implementation steps S11, as shown in Figures 2 and 3, need to bind electronic lock after user purchases new lock
MAC Address, this MAC Address be electronic lock in bluetooth MAC Address., it is necessary to press binding key on electronic lock before user's binding,
The Bluetooth broadcast of electronic lock, which will change, broadcasts title, is easy to the search of mobile phone terminal.Initial title will be changeed back after binding.User exists
The MAC Address that can be locked after new electronic lock with recorded electronic is bound, and adds title, facilitates user management and shares key.
User keys in 4 bit encryption passwords after being verified by keeper on electronic lock, and electronics lock end will generate new AES key, leads to
Mobile phone terminal is transferred to after crossing the numerical ciphers encryption keyed in, mobile phone terminal is preserved to new key, and the later stage is being keeper behaviour
In work, it is encrypted when being related to addition new cell-phone password using the key.If mobile phone is lost, it is necessary in electronics lock end again
The binding of the person's of being managed mobile phone.
As shown in figure 4, the handheld terminal generates the unlocking cipher of the electronic lock simultaneously according to the AES key of preservation
The unlocking cipher is sent after AES encryption to the electronic lock.Keeper passes through after hash certifications, can be to electronic lock
System carries out AES encryption during addition key in the new key of interior addition, electronic lock, and the key of encryption is being managed by user
Generated during member's handset binding.
Step S12, when electronic lock is unlocked, the handheld terminal sends to unlock to the electronic lock and asks and receiving
After the one group of random number fed back from the electronic lock, by the ID in handheld terminal, the unlocking cipher and the random number
Combination carry out hash calculating after by it is described hash calculate obtain hashed value send to the electronic lock.Wherein, in this reality
Apply in example, the unlocking request that the handheld terminal is sent to the electronic lock includes default ID in the handheld terminal
With the unlocking request instruction including at least unlocking cipher.
As shown in figure 5, the handheld terminal unlock when inside handling process it is as follows:User is using with bluetooth work(
, it is necessary to first open and the supporting mobile phone application software of electronic lock when the mobile phone of energy performs unlocking action, and bluetooth equipment is opened, entered
Enter after mobile phone application, user needs to select unlocking function, and mobile phone will send unlocking request to electronic lock this when, transmission
The content asked of unlocking is included:Preserved in electronic lock No. ID of user and to corresponding unlocking cipher, electronic lock is being received
The rear of the unlocking request that mobile phone is sent sends the random number that one group of long degree is 32 to mobile phone, and handheld terminal is received after random number
Using SHA256 algorithms, computing is carried out to random number+unlocking cipher+ID, the result after calculating will be sent to electronics lock end.
Step S13, the electronic lock carries out checking matching and after verifying that the match is successful to the hashed value received, opens
The electronic lock.
Specifically, in the present embodiment, the electronic lock carries out checking matching and in checking to the hashed value received
After success, opening the detailed process of the electronic lock includes:The electronic lock is by the random number, the ID and institute
The combination for stating the corresponding unlocking cipher of ID carries out the hashed value obtained after hash calculating with being received from the handheld terminal
To hashed value matched, after the match is successful, open the electronic lock.
As shown in fig. 6, the electronic lock unlock when inside handling process it is as follows:Electronic lock is sending random to mobile phone
Also SHA256 computings are carried out after number, operation content includes (random number+unlocking cipher+ID), the SHA256 fortune inside electronic lock
The operation content of calculation is that the unlocking asks No. ID of user, this No. ID corresponding unlocking cipher and just now to mobile phone send it is same
One random number.Electronic lock is after the SHA256 operation results of mobile phone transmission are received by the SAH256 operation results with itself
Matching operation is carried out, if the password on both sides is consistent, random number is consistent and ID is consistent, then electronic lock will just be opened, otherwise
Electronic lock is not opened and sends unlocking failure information to mobile phone.
The advantage of such unlocking mode is:Because the cipher mode used is transported for SHA256 irreversible HASH
Calculate, even if so the Content of Communication between mobile phone and electronic lock is listened to by third party, but can not inversely decrypt acquisition and open
Lock cipher.Because unlock has the participation of random number each time, the unlocking checking content communicated each time is all different, even if on
Content of Communication once is sent after being replicated to electronic lock, and electronic lock will not also be opened.
To realize a kind of above-mentioned method for unlocking based on bluetooth, as shown in fig. 7, the present embodiment correspondence provides a kind of based on indigo plant
The unlocking system 1 of tooth, the unlocking system 1 based on bluetooth includes unlocking handheld terminal 11 and the electronic lock 12 based on bluetooth.
Here, the unlocking handheld terminal 11 can carry out numerical computations automatically including a kind of according to the instruction for being previously set or storing
And information processing, and the electronic equipment with multimedia video function, it includes but is not limited to mobile phone, computer, touch screen terminal
Deng.
As shown in Figure 7 and Figure 8, the unlocking handheld terminal 11 based on bluetooth is applied to the electronic lock with Bluetooth function
In 12 unlocking control process, the unlocking handheld terminal 11 at least includes:Unlocking handheld terminal 111, unlocking cipher generation mould
Block 112 and unlocking control module 113.
The unlocking handheld terminal 111 is used to bind with the electronic lock 12 by way of Bluetooth communication;Specifically, exist
In the present embodiment, the unlocking handheld terminal 111 includes:Bind request processing unit, for being sent according to the electronic lock 12
Administrator password send bind request;Hashed value obtain transmitting element, be connected with the bind request processing unit, for from
The hashed value that the feedback information that the electronic lock 12 is received carries out that the hash is calculated into acquisition after hash calculating is sent to institute
State electronic lock 12;Binding unit, obtains transmitting element with the hashed value and is connected, receiving the check information of the electronic lock 12
The MAC Address of bluetooth in the electronic lock 12 is recorded afterwards, while being the electronic lock 12 addition lock name;The unlocking cipher generation
Module 112 includes:AES key unit, is connected with the binding unit, for receive the electronic lock 12 it is encrypted after and
Encrypted for the unlocking cipher after the AES key used, the AES key is preserved;Password generates transmitting element, with
The AES key unit is connected, and generates the unlocking cipher of the electronic lock 12 according to the AES key of preservation and is opened described
Lock cipher is sent after AES encryption to the electronic lock 12.
The unlocking cipher generation module 112 is connected with the unlocking handheld terminal 111 for generating the electronic lock 12
Unlocking cipher;The unlocking control module 113 is connected with the unlocking cipher generation module 112, for the electronic lock
12 send unlocking request and after the one group of random number fed back from the electronic lock 12 is being received, by the user in handheld terminal
ID, the unlocking cipher are sent out with the hashed value for carrying out that the hash is calculated into acquisition after hash calculating that combines of the random number
The electronic lock 12 is delivered to, so that the hashed value that 12 pairs of the electronic lock is received carries out checking matching and the match is successful in checking
After open the electronic lock 12.
Wherein, the unlocking request in the unlocking control module 113 includes default use in the handheld terminal
Family ID and the unlocking request instruction including at least unlocking cipher.
As shown in figures 7 and 9, the electronic lock 12 based on bluetooth at least includes:Bluetooth module 121, control module 122
And lock core module 123.
The bluetooth module 121 is used for being carried out with Bluetooth function and for the handheld terminal for opening the electronic lock 12
Bluetooth communication;The control module 122 is connected with the bluetooth module 121, for receiving what the handheld terminal was sent
Unlock after request, generate one group of random number and by the random number back to the handheld terminal and to from the handheld terminal
The hashed value received carries out checking matching and after verifying that the match is successful, opens the electronic lock 12.In addition, the control mould
Block 122 is additionally operable to be hashed the combination of the random number, the ID and the corresponding unlocking cipher of the ID
The hashed value obtained after calculating is matched with the hashed value received from the handheld terminal, after the match is successful, is opened
The electronic lock 12.The lock core module 123 is connected with the control module 122, in the control module 122 checking
With opening the electronic lock 12 after success.
Specifically, in the present embodiment, as shown in Figure 10, the unlocking handheld terminal 11 and the electronics based on bluetooth
The specific interaction of lock 12 is as follows:Need to bind the MAC Address of electronic lock 12, this MAC Address after user purchases new lock
For the MAC Address of bluetooth in electronic lock 12., it is necessary to press binding key on electronic lock 12 before user's binding, the bluetooth of electronic lock 12
Broadcast, which will change, broadcasts title, is easy to the search of mobile phone terminal.Initial title will be changeed back after binding.User is binding new electronic lock
12 MAC Address can be locked with recorded electronic after 12, and add title, facilitated user management and share key.User is logical
Cross after keeper's checking, 4 bit encryption passwords are keyed on electronic lock 12, the end of electronic lock 12 will generate new AES key, and pass through key
Mobile phone terminal is transferred to after the numerical ciphers encryption entered, mobile phone terminal carries out that preservation to new key, and the later stage is being keeper behaviour
In work, it is encrypted when being related to addition new cell-phone password using the key.If mobile phone is lost, it is necessary in the end of electronic lock 12 weight
The binding of the new person's of being managed mobile phone.
The handheld terminal generates the unlocking cipher of the electronic lock 12 according to the AES key of preservation and opened described
Lock cipher is sent after AES encryption to the electronic lock 12.Keeper passes through after hash certifications, can add into electronic lock 12
Plus new key, system carries out AES encryption during addition key in electronic lock 12, and the key of encryption is by user in keeper
Generated during handset binding.
User using the mobile phone with Bluetooth function when performing unlocking action, it is necessary to first open supporting with electronic lock 12
Mobile phone application software, and open bluetooth equipment, into after mobile phone application, user needs to select unlocking function, this when hand
Machine will send unlocking request to electronic lock 12, and the content of the unlocking request of transmission is included:The ID that user preserves in electronic lock 12
Number and to corresponding unlocking cipher, electronic lock 12 is receiving the rear to mobile phone one group of long degree of transmission of the unlocking request of mobile phone transmission
For the random number of 32, handheld terminal uses SHA256 algorithms after receiving random number, random number+unlocking cipher+ID is carried out
Computing, the result after calculating will be sent to the end of electronic lock 12.
Electronic lock 12 also carries out SHA256 computings after random number is sent to mobile phone, and operation content includes (random number+open
Lock cipher+ID), the operation content of the SHA256 computings inside electronic lock 12 asks No. ID of user for the unlocking, and this No. ID is right
The unlocking cipher answered and the same random number sent just now to mobile phone.Electronic lock 12 is receiving the SHA256 of mobile phone transmission
Matching operation will be carried out with the SAH256 operation results of itself after operation result, if the password on both sides is consistent, random number one
Show and ID is consistent, then electronic lock 12 will just be opened, otherwise electronic lock 12 is not opened and sends unlocking failure information to mobile phone.
Due to the irreversible HASH computings of the cipher mode that uses for SHA256, so the Content of Communication between mobile phone and electronic lock 12
Even if being listened to by third party, but it can not inversely decrypt acquisition unlocking cipher.Because unlock has the ginseng of random number each time
With so the unlocking checking content communicated each time is all different, even if last Content of Communication is replicated backward electronic lock 12
Send, electronic lock 12 will not also be opened.
In summary, the present invention is by during the interactive authentication of unlocking handheld terminal unlocking electronic lock, using hash
Cipher mode interact during certification, such unlocking handheld terminal and electronic lock intercommunication it is prevented that third party
From centre monitoring, key is caused to leak, so situation and unlocking speed that the present invention is leaked in the absence of key are fast, effectively lifting
The security of electronic lock.So, the present invention effectively overcomes of the prior art kind of shortcoming and has high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, not for the limitation present invention.It is any ripe
Know the personage of this technology all can carry out modifications and changes under the spirit and scope without prejudice to the present invention to above-described embodiment.Cause
This, those of ordinary skill in the art is complete without departing from disclosed spirit and institute under technological thought such as
Into all equivalent modifications or change, should by the present invention claim be covered.
Claims (7)
1. a kind of method for unlocking based on bluetooth, applied in the unlocking control process of the electronic lock with Bluetooth function, it is special
Levy and be:The method for unlocking based on bluetooth includes:
Handheld terminal with Bluetooth function is bound by way of Bluetooth communication with the electronic lock and the electronics is generated
The unlocking cipher of lock;
When electronic lock is unlocked, the handheld terminal sends to unlock to the electronic lock and asks and receiving from the electronic lock
After one group of random number of feedback, the ID in handheld terminal, the unlocking cipher and the combination of the random number are dissipated
The hash is calculated to the hashed value obtained after column count to send to the electronic lock;
The electronic lock carries out checking matching and after verifying that the match is successful to the hashed value received, opens the electronic lock;
Handheld terminal with Bluetooth function is bound by way of Bluetooth communication with the electronic lock and the electronics is generated
The unlocking cipher of lock is specifically included:
When the handheld terminal sets up bluetooth connection by way of Bluetooth communication with the electronic lock, sent out according to the electronic lock
The administrator password sent sends bind request, and the feedback information received from the electronic lock is carried out to incite somebody to action described after hash calculating
Hash calculates the hashed value obtained and sent to the electronic lock;
The handheld terminal records the MAC Address of bluetooth in the electronic lock after the check information of the electronic lock is received, together
When for the electronic lock addition lock name;
The handheld terminal is receiving the encrypted AES key used afterwards and for unlocking cipher encryption of the electronic lock
Afterwards, the AES key is preserved;
The handheld terminal generates the unlocking cipher of the electronic lock and by the unlocking cipher according to the AES key of preservation
Sent after AES encryption to the electronic lock.
2. the method for unlocking according to claim 1 based on bluetooth, it is characterised in that:The handheld terminal is to the electronics
The unlocking request that lock is sent, which includes default ID and the unlocking including at least unlocking cipher in the handheld terminal, asks
Instruction.
3. the method for unlocking according to claim 2 based on bluetooth, it is characterised in that:The electronic lock is to dissipating for receiving
Train value carries out checking matching and after verifying that the match is successful, opens the detailed process of the electronic lock and includes:The electronic lock will
Obtained after the combination progress hash calculating of the random number, the ID and the corresponding unlocking cipher of the ID
Hashed value is matched with the hashed value received from the handheld terminal, after the match is successful, opens the electronic lock.
4. a kind of unlocking handheld terminal based on bluetooth, applied in the unlocking control process of the electronic lock with Bluetooth function,
It is characterized in that:The unlocking handheld terminal includes:
Bluetooth binding module, for being bound by way of Bluetooth communication with the electronic lock;
Unlocking cipher generation module, is connected with the bluetooth binding module, the unlocking cipher for generating the electronic lock;
Unlocking control module, is connected with the unlocking cipher generation module, for the electronic lock send unlock request and
Receive from the electronic lock feed back one group of random number after, by the ID in handheld terminal, the unlocking cipher with it is described
The hashed value that the combination of random number carries out that the hash is calculated into acquisition after hash calculating is sent to the electronic lock, so that institute
Electronic lock is stated to carry out checking matching to the hashed value received and open the electronic lock after verifying that the match is successful;
The bluetooth binding module includes:
Bind request processing unit, the administrator password for being sent according to the electronic lock sends bind request;
Hashed value obtain transmitting element, be connected with the bind request processing unit, for from the electronic lock receive it is anti-
The hashed value that feedforward information carries out that the hash is calculated into acquisition after hash calculating is sent to the electronic lock;
Binding unit, obtains transmitting element with the hashed value and is connected, institute is recorded after the check information of the electronic lock is received
The MAC Address of bluetooth in electronic lock is stated, while being electronic lock addition lock name;
The unlocking cipher generation module includes:
AES key unit, is connected with the binding unit, for receive the electronic lock it is encrypted after and opened for described
After the AES key that lock cipher encryption is used, the AES key is preserved;
Password generates transmitting element, is connected with the AES key unit, and the electronics is generated according to the AES key of preservation
The unlocking cipher of lock simultaneously sends the unlocking cipher to the electronic lock after AES encryption.
5. unlocking handheld terminal according to claim 4, it is characterised in that:The unlocking in the unlocking control module
Request includes default ID and the unlocking request instruction including at least unlocking cipher in the handheld terminal.
6. a kind of electronic lock based on bluetooth, it is characterised in that:The electronic lock at least includes:
Bluetooth module, for carrying out Bluetooth communication with Bluetooth function and for the handheld terminal for opening the electronic lock;
Control module, is connected with the bluetooth module, for after the unlocking request that the handheld terminal is sent is received, generating
One group of random number and the hashed value by the random number back to the handheld terminal and to being received from the handheld terminal
Carry out checking matching and after verifying that the match is successful, the electronic lock is opened in control;
Lock core module, is connected with the control module, for opening the electronics after the match is successful in control module checking
Lock;
The control module is additionally operable to the random number, the ID of the handheld terminal and the ID is corresponding opens
The combination of lock cipher carries out the hashed value obtained after hash calculating and the hashed value progress received from the handheld terminal
Match somebody with somebody, after the match is successful, open the electronic lock;
The electronic lock binds the MAC Address of electronic lock provided with binding key, and this MAC Address is the MAC of bluetooth in electronic lock
Location;Crypted password is keyed on electronic lock, electronic lock will generate new AES key, by being transmitted after the numerical ciphers encryption of key entry
To handheld terminal, handheld terminal is preserved to new key;The handheld terminal generates institute according to the AES key of preservation
State the unlocking cipher of electronic lock and send the unlocking cipher to the electronic lock after AES encryption.
7. a kind of unlocking system based on bluetooth, it is characterised in that the unlocking system based on bluetooth includes such as claim 4
To the unlocking handheld terminal described in claim 5 any claim and the electronic lock as claimed in claim 6 based on bluetooth.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510642506.7A CN105184931B (en) | 2015-09-30 | 2015-09-30 | A kind of method for unlocking based on bluetooth, system, handheld terminal and electronic lock |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510642506.7A CN105184931B (en) | 2015-09-30 | 2015-09-30 | A kind of method for unlocking based on bluetooth, system, handheld terminal and electronic lock |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105184931A CN105184931A (en) | 2015-12-23 |
CN105184931B true CN105184931B (en) | 2017-09-22 |
Family
ID=54906979
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510642506.7A Active CN105184931B (en) | 2015-09-30 | 2015-09-30 | A kind of method for unlocking based on bluetooth, system, handheld terminal and electronic lock |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105184931B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111243133A (en) * | 2020-01-07 | 2020-06-05 | 杭州涂鸦信息技术有限公司 | Bluetooth door lock system based on dynamic password generation and matching and unlocking method |
Families Citing this family (34)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105894627B (en) * | 2016-03-30 | 2019-04-16 | 北京千丁互联科技有限公司 | A kind of control of bluetooth access equipment, control of bluetooth access management system and method |
CN105931339A (en) * | 2016-06-07 | 2016-09-07 | 杭州虹云网络科技有限公司 | Intelligent lock capable of realizing security certificate based on mobile equipment Bluetooth and certificating method of intelligent lock |
CN106211048A (en) * | 2016-08-31 | 2016-12-07 | 重庆智城互盈科技发展有限公司 | The password unlocking method of smart lock, Apparatus and system |
CN107040289B (en) * | 2016-12-01 | 2021-06-08 | 广州捷泰通贸易有限公司 | Information transmission method and device based on near field communication |
CN106683242A (en) * | 2016-12-02 | 2017-05-17 | 歌尔科技有限公司 | Intelligent lock system, intelligent lock and intelligent wearable equipment |
CN106898065B (en) * | 2017-01-21 | 2020-01-17 | 云丁网络技术(北京)有限公司 | Unlocking method of intelligent door lock |
CN108460862A (en) * | 2017-02-20 | 2018-08-28 | 掌握科技无锡有限公司 | The method and electric lockset, lock system having with palmprint authentication and Mobile phone control lock |
CN106952370B (en) * | 2017-03-16 | 2019-05-31 | 武汉世纪金桥安全技术有限公司 | A kind of blue-tooth intelligence lock secret key composite authentication system |
CN106952378A (en) * | 2017-04-11 | 2017-07-14 | 徐士兰 | Method for unlocking and device, electronic lock |
CN107134039B (en) * | 2017-06-27 | 2023-04-07 | 上海星尘电子科技有限公司 | Acoustic communication intelligent lock and acoustic communication intelligent lock system |
CN108320355A (en) * | 2017-12-29 | 2018-07-24 | 中国船舶重工集团公司第七八研究所 | A kind of the emergency cryptosystem open system and its open method of intelligent door lock |
CN107948213A (en) * | 2018-01-17 | 2018-04-20 | 深圳中电国际信息科技有限公司 | A kind of encryption and authentication method, system, device and computer-readable recording medium |
CN110555924B (en) * | 2018-06-01 | 2021-09-17 | 杭州海康威视数字技术股份有限公司 | Method and device for unlocking processing |
CN109889596A (en) * | 2018-12-29 | 2019-06-14 | 珠海汇金科技股份有限公司 | Smart lock binding method, smart lock and smart lock binding system |
CN109785490A (en) * | 2019-01-29 | 2019-05-21 | 上海博泰悦臻网络技术服务有限公司 | Bi-directional verification method and system, intelligent terminal and the T-BOX of bluetooth key |
CN109801423A (en) * | 2019-02-20 | 2019-05-24 | 北京首汽智行科技有限公司 | A kind of control method for vehicle and system based on bluetooth |
CN110232756A (en) * | 2019-05-28 | 2019-09-13 | 韦勇 | Intelligent door lock exchange method, storage medium, electronic equipment towards meeting |
CN110211265A (en) * | 2019-05-28 | 2019-09-06 | 韦勇 | Household intelligent door lock exchange method, storage medium, electronic equipment based on AR |
WO2021023164A1 (en) | 2019-08-02 | 2021-02-11 | 云丁网络技术(北京)有限公司 | Intelligent lock control method and system |
CN110827449A (en) * | 2019-10-31 | 2020-02-21 | 广东科裕智能科技有限公司 | Intelligent door lock control system and control method |
CN110853191A (en) * | 2019-11-12 | 2020-02-28 | 珠海格力电器股份有限公司 | Intelligent door lock unlocking method, equipment and medium |
CN110821303A (en) * | 2019-12-05 | 2020-02-21 | 上海新微技术研发中心有限公司 | BLE intelligence lock |
CN110886555A (en) * | 2019-12-05 | 2020-03-17 | 上海新微技术研发中心有限公司 | BLE intelligent door lock interaction method |
CN111137245B (en) * | 2019-12-17 | 2022-08-02 | 重庆邮电大学 | Opening and closing method for automobile door lock |
CN111080852B (en) * | 2019-12-17 | 2022-03-11 | 重庆邮电大学 | Method for setting automobile door lock member |
CN113269909A (en) * | 2020-02-17 | 2021-08-17 | 上海新微技术研发中心有限公司 | Intelligent lock data management system based on Bluetooth communication |
CN112087295B (en) * | 2020-09-17 | 2023-03-10 | 湖南三一中型起重机械有限公司 | Encryption and decryption method and device for electronic lock, electronic lock and storage medium |
CN114360100A (en) * | 2020-09-27 | 2022-04-15 | 比亚迪半导体股份有限公司 | Control method, device, system and medium for intelligent door lock |
CN112562146B (en) * | 2020-10-29 | 2023-09-22 | 重庆恢恢信息技术有限公司 | Method for realizing personnel flow in building site based on intelligent cloud platform |
CN112562145B (en) * | 2020-10-29 | 2023-05-23 | 重庆恢恢信息技术有限公司 | Construction personnel investigation working method for intelligent construction site |
CN112530068B (en) * | 2020-10-29 | 2023-09-22 | 重庆恢恢信息技术有限公司 | Personnel identification method for realizing intelligent building site through Internet of things |
CN112884947A (en) * | 2021-01-12 | 2021-06-01 | 深圳讯声智控科技有限公司 | Offline remote electronic door lock control method and system |
CN114944025A (en) * | 2022-04-24 | 2022-08-26 | 深圳市魔力信息技术有限公司 | Method and system for realizing flexible networking of furniture lock Bluetooth |
CN116527409B (en) * | 2023-07-05 | 2023-10-20 | 深圳市旭子科技有限公司 | Internet of things lock-based network access identity recognition method and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US3996449A (en) * | 1975-08-25 | 1976-12-07 | International Business Machines Corporation | Operating system authenticator |
CN101593380A (en) * | 2008-05-28 | 2009-12-02 | 北京飞天诚信科技有限公司 | A kind of gate control system and authentication method that generates and verify based on dynamic password |
CN103136819A (en) * | 2011-12-01 | 2013-06-05 | 联想(北京)有限公司 | Unlocking method for door control system based on mobile terminal and mobile terminal |
CN104537738A (en) * | 2014-02-24 | 2015-04-22 | 袁磊 | Dynamic coded lock system for acquiring codes by virtue of table look-up |
CN104574593A (en) * | 2014-12-24 | 2015-04-29 | 浙江银江研究院有限公司 | Virtual key based on Bluetooth communication as well as anti-theft lock system and application method thereof |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2583430B1 (en) * | 2010-06-16 | 2019-09-25 | Delphian Systems, LLC | Wireless device enabled locking system |
CN104821031B (en) * | 2015-05-27 | 2017-11-17 | 重庆大学 | Bluetooth cellular phone intelligent lock control system dynamic confirming method |
-
2015
- 2015-09-30 CN CN201510642506.7A patent/CN105184931B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US3996449A (en) * | 1975-08-25 | 1976-12-07 | International Business Machines Corporation | Operating system authenticator |
CN101593380A (en) * | 2008-05-28 | 2009-12-02 | 北京飞天诚信科技有限公司 | A kind of gate control system and authentication method that generates and verify based on dynamic password |
CN103136819A (en) * | 2011-12-01 | 2013-06-05 | 联想(北京)有限公司 | Unlocking method for door control system based on mobile terminal and mobile terminal |
CN104537738A (en) * | 2014-02-24 | 2015-04-22 | 袁磊 | Dynamic coded lock system for acquiring codes by virtue of table look-up |
CN104574593A (en) * | 2014-12-24 | 2015-04-29 | 浙江银江研究院有限公司 | Virtual key based on Bluetooth communication as well as anti-theft lock system and application method thereof |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111243133A (en) * | 2020-01-07 | 2020-06-05 | 杭州涂鸦信息技术有限公司 | Bluetooth door lock system based on dynamic password generation and matching and unlocking method |
Also Published As
Publication number | Publication date |
---|---|
CN105184931A (en) | 2015-12-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105184931B (en) | A kind of method for unlocking based on bluetooth, system, handheld terminal and electronic lock | |
CN101114901B (en) | Safety authentication system, apparatus and method for non-contact type wireless data transmission | |
CN105684344B (en) | A kind of cipher key configuration method and apparatus | |
CN102685749B (en) | Wireless safety authentication method orienting to mobile terminal | |
CN111935714B (en) | Identity authentication method in mobile edge computing network | |
CN106788977A (en) | Low-power consumption bluetooth device talk encryption method and system | |
CN103795534A (en) | Password-based authentication method and apparatus executing the method | |
CN108599925A (en) | A kind of modified AKA identity authorization systems and method based on quantum communication network | |
CN105681538A (en) | System and method for device authentication | |
CN107769913A (en) | A kind of communication means and system based on quantum UKey | |
CN106453318A (en) | Data transmission system and method based on security module | |
CN102281143B (en) | Remote unlocking system of intelligent card | |
CN101741823B (en) | Cross-validation safety communication method and system | |
CN107454590A (en) | A kind of data ciphering method, decryption method and wireless router | |
CN101964805B (en) | Method, equipment and system for safely sending and receiving data | |
CN103118363A (en) | Method, system, terminal device and platform device of secret information transmission | |
CN101707767B (en) | Data transmission method and devices | |
CN110493162A (en) | Identity identifying method and system based on wearable device | |
CN106453391A (en) | Long repeating data encryption and transmission method and system | |
CN105791258A (en) | Data transmission method, terminal and open platform | |
CN107707562A (en) | A kind of method, apparatus of asymmetric dynamic token Encrypt and Decrypt algorithm | |
CN111416712B (en) | Quantum secret communication identity authentication system and method based on multiple mobile devices | |
CN110519052A (en) | Data interactive method and device based on Internet of Things operating system | |
CN103458401B (en) | A kind of voice encryption communication system and communication means | |
CN206042014U (en) | Quantum network service station and quantum communication network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |