CN110176094A - Method for unlocking and device - Google Patents

Method for unlocking and device Download PDF

Info

Publication number
CN110176094A
CN110176094A CN201910489315.XA CN201910489315A CN110176094A CN 110176094 A CN110176094 A CN 110176094A CN 201910489315 A CN201910489315 A CN 201910489315A CN 110176094 A CN110176094 A CN 110176094A
Authority
CN
China
Prior art keywords
level
relay
electronic lock
code key
controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910489315.XA
Other languages
Chinese (zh)
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.)
Guangzhou Jiadu Marketing Data Services Ltd
Original Assignee
Guangzhou Jiadu Marketing Data Services 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 Guangzhou Jiadu Marketing Data Services Ltd filed Critical Guangzhou Jiadu Marketing Data Services Ltd
Priority to CN201910489315.XA priority Critical patent/CN110176094A/en
Publication of CN110176094A publication Critical patent/CN110176094A/en
Pending legal-status Critical Current

Links

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
    • 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
    • G07C2009/00412Electronically 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 the transmitted data signal being encrypted

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The disclosure proposes a kind of method for unlocking and device.It is related to electronic lock field, this method is by obtaining unlocking information and the corresponding mark of unlocking information, then it is encrypted according to the split lock information of mark, and encrypted unlocking information is sent to relay-operated controller, relay-operated controller is verified by the legitimacy of the unlocking information to encryption, if it is legal to obtain the unlocking information, then relay is controlled according to unlocking information to unlock, the application is electrically connected with relay-operated controller and lock respectively due to relay, and relay-operated controller is verified by split lock information, to control whether relay opens lock, avoid the electric signal by only changing lock, without verifying the purpose that can be unlocked, increase the safety of electronic lock.

Description

Method for unlocking and device
Technical field
This disclosure relates to electronic lock field, in particular to a kind of method for unlocking and device.
Background technique
Currently, the control method of electronic lock generally comprises: being powered, normally closed, power-off is normally closed, be powered normally opened and power-off normally opened four Kind control method.
Above-mentioned four kinds of control method for electronic lock are verified by the people of dual lock, if being proved to be successful, pass through control The electric current of electronic lock is connected to or disconnects to control turning on or off for electronic lock.
But if when the electric signal of electronic lock is artificially changed, it is basic to open electronic lock without verifying, cause Electronic lock safety is lower.
Summary of the invention
The disclosure is designed to provide a kind of method for unlocking and device, artificially to be changed in the electric signal for solving electronic lock When change, electronic lock, which does not have to verifying, to be opened, caused by the lower technical problem of safety.
To achieve the goals above, the disclosure the technical solution adopted is as follows:
In a first aspect, the disclosure proposes a kind of method for unlocking, it is applied to electronic lock control system, electronic lock control system packet Include electronic lock controller, relay-operated controller, relay and electronic lock, electronic lock controller and relay-operated controller communication link It connects, relay is electrically connected with relay-operated controller and electronic lock respectively, and method includes:
Electronic lock controller obtains unlocking information, and according to the mark of unlocking acquisition of information relay-operated controller;
Electronic lock controller is encrypted according to the mark and default level-one code key, split lock information of relay-operated controller, And encrypted unlocking information is sent to relay-operated controller;
Relay-operated controller verifies the legitimacy of encrypted unlocking information, if legal, then relay-operated controller control after Electric appliance opens electronic lock.
Optionally, before identification of steps of the electronic lock controller according to unlocking acquisition of information relay-operated controller, further includes:
Electronic lock controller is decrypted secret key pair level-one code key ciphertext by preset level-one code key and is parsed, and level-one is obtained The corresponding level-one code key of code key ciphertext is in plain text;
Electronic lock controller is encrypted in plain text by preset verification secret key pair level-one code key, obtains level-one code key in plain text Corresponding check value;
If corresponding check value is identical as the check value of level-one code key ciphertext in plain text for level-one code key, electronic lock controller is deposited Store up level-one code key in plain text.
Optionally, electronic lock controller is encrypted according to mark and default level-one code key, split lock information, and will encryption Unlocking information afterwards is sent to relay-operated controller, comprising:
Electronic lock controller counts the mark and level-one code key of relay-operated controller according to default code key decentralized algorithm It calculates, obtains second level code key;
Electronic lock controller obtains second level ciphertext after being encrypted by second level code key dual lock information, and by second level ciphertext It is sent to relay-operated controller.
Optionally, relay-operated controller verifies the legitimacy of encrypted unlocking information, if legal, then relay-operated controller Control the step of relay opens electronic lock, comprising:
Relay-operated controller is decrypted to obtain second level in plain text by second level secret key pair second level ciphertext;
Relay-operated controller verifies the legitimacy of second level plaintext, and if legal, then relay-operated controller controls relay Device opens electronic lock.
Optionally, if electronic lock is opened, relay-operated controller is unlocked to electronic lock controller transmission and is successfully instructed.
Second aspect, the disclosure also propose a kind of unlocking apparatus, are applied to electronic lock control system, electronic lock control system Including electronic lock controller, relay-operated controller, relay and electronic lock, electronic lock controller and relay-operated controller communication link It connects, relay is electrically connected with relay-operated controller and electronic lock respectively, and unlocking apparatus includes: to obtain module, the first encrypting module And correction verification module;
Module is obtained, for obtaining unlocking information, and according to the mark of unlocking acquisition of information relay-operated controller;
First encrypting module, for the mark and level-one code key according to relay-operated controller, split lock information is encrypted, And encrypted unlocking information is sent to relay-operated controller;
Correction verification module, for verifying the legitimacy of encrypted unlocking information, if legal, then relay-operated controller control after Electric appliance opens electronic lock.
Optionally, unlocking apparatus further include: parsing module, the second encrypting module and memory module;
Parsing module is parsed for decrypting secret key pair level-one code key ciphertext by preset level-one code key, obtains one The corresponding level-one code key of grade code key ciphertext is in plain text;
Second encrypting module is encrypted in plain text for verifying secret key pair level-one code key by preset level-one code key, is obtained To the corresponding check value of level-one code key plaintext;
Memory module, if corresponding check value is identical as the check value of level-one code key ciphertext in plain text for level-one code key, Electronic lock controller stores level-one code key in plain text.
Optionally, the first encrypting module, specifically for the mark according to default code key decentralized algorithm to relay-operated controller It is calculated with level-one code key, obtains second level code key;Second level ciphertext is obtained after being encrypted by second level code key dual lock information, And second level ciphertext is sent to relay-operated controller.
Optionally, correction verification module is also used to be decrypted to obtain by second level secret key pair second level ciphertext second level in plain text;To two The legitimacy of grade plaintext is verified, and if legal, then relay-operated controller control relay opens electronic lock.
Optionally, unlocking apparatus further includes sending module;
Sending module is unlocked to electronic lock controller transmission and is successfully instructed if opening for electronic lock.
The third aspect, the disclosure also propose a kind of electronic equipment, deposit including being stored with the computer-readable of computer program Storage media and processor when the computer program is read and run by the processor, are realized described in above-mentioned first aspect Method.
Fourth aspect, the disclosure also propose a kind of computer readable storage medium, are stored thereon with computer program, described When computer program is read out by the processor and runs, method described in above-mentioned first aspect is realized.
Compared with the prior art, the disclosure has the advantages that
Then the disclosure is carried out by obtaining unlocking information and the corresponding mark of unlocking information according to the split lock information of mark Encryption, and encrypted unlocking information is sent to relay-operated controller, relay-operated controller passes through the unlocking information to encryption Legitimacy verified, if it is legal to obtain the unlocking information, relay is controlled according to unlocking information and is unlocked, the application due to Relay is electrically connected with relay-operated controller and lock respectively, and relay-operated controller is verified by split lock information, is come Whether control relay opens lock, avoids the electric signal by only changing lock, without verifying the purpose that can be unlocked, increases The safety of electronic lock.
Other feature and advantage of the disclosure will be illustrated in subsequent specification, also, partly be become from specification It is clear that by implementing disclosure understanding.The purpose of the disclosure and other advantages can be by written specifications, power Specifically noted structure is achieved and obtained in sharp claim and attached drawing.
Detailed description of the invention
In order to illustrate more clearly of the technical solution of the disclosure, letter will be made to attached drawing needed in the embodiment below It singly introduces, it should be understood that the following drawings illustrates only some embodiments of the disclosure, therefore is not construed as to range It limits, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings Obtain other relevant attached drawings.
Fig. 1 is a kind of schematic device of electronic lock control system provided by the disclosure;
Fig. 2 is a kind of flow diagram of method for unlocking provided by the disclosure;
Fig. 3 is the flow diagram of another kind method for unlocking provided by the disclosure;
Fig. 4 is the flow diagram of another kind method for unlocking provided by the disclosure;
Fig. 5 is the flow diagram of another kind method for unlocking provided by the disclosure;
Fig. 6 is the flow diagram of another kind method for unlocking provided by the disclosure;
Fig. 7 is a kind of module diagram of unlocking apparatus provided by the disclosure;
Fig. 8 is the module diagram of another kind unlocking apparatus provided by the disclosure;
Fig. 9 is the functional block diagram of a kind of electronic equipment provided by the disclosure.
Specific embodiment
Below in conjunction with attached drawing in the disclosure, the technical solution in the disclosure is clearly and completely described.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
Fig. 1 is please referred to, Fig. 1 is a kind of schematic device of electronic lock control system provided by the disclosure.The present embodiment A kind of electronic lock control system is provided, which includes: electronic lock controller 11, relay-operated controller 12, relay 13 and electronic lock 14, electronic lock controller 11 and relay-operated controller 12 communicate to connect, relay 13 respectively with after Appliance controller 12 and electronic lock 14 are electrically connected.
Referring to figure 2., Fig. 2 is a kind of flow diagram of method for unlocking provided by the disclosure.It present embodiments provides A kind of method for unlocking is applied to above-mentioned electronic lock control system, which comprises
S101, electronic lock controller obtain unlocking information, and according to the mark of unlocking acquisition of information relay-operated controller.
Wherein, unlocking information includes at least one of finger print information or card number information of unlocking staff, and unlocking information is It is used to indicate the command information that electronic lock control system is unlocked, and is binary machine language, electronic lock controller can To include door open button, module of swiping the card, at least one of two dimensional code module, information of unlocking for identification, and split lock information into The operations such as row encryption, decryption, verifying, digital information to be resolved are used to carry out electronic lock by parsing, encryption, decrypting process Unlock.
Specifically, electronic lock controller obtains unlocking information, and obtain the mark of the corresponding relay-operated controller of unlocking information Know, it should be noted that an electronic lock controller can be electrically connected with a relay-operated controller, can also be with multiple relays The electrical connection of device controller, each relay-operated controller all have mark, and each relay-operated controller controls corresponding electronic lock.
The mark and default level-one code key of S102, electronic lock controller according to relay-operated controller, split lock information progress Encryption, and encrypted unlocking information is sent to relay-operated controller.
Specifically, electronic lock controller receives mark and unlocking information, code key point is passed through according to mark and level-one code key Second level code key is calculated in scattered algorithm, and second level code key dual lock information is encrypted, and the unlocking information after encryption is sent To relay-operated controller.
Wherein, preceding part of the code key decentralized algorithm by mark as input data, the data that mark step-by-step negates are made Cryptographic calculation is carried out to mark data, obtains the first half of second level code key using level-one code key as encryption code key for rear part Data;Mark data step-by-step is negated, then according to level-one code key as encryption code key, the data that mark data step-by-step is negated It is encrypted, obtains the latter half data of second level code key, above-mentioned first half data and latter half data connection are got up It is namely based on the second level code key that mark dispersion calculates;It is encrypted using second level code key dual lock information, the encryption of unlocking information Algorithm may include: in 3DES encryption algorithm, SM4 Encryption Algorithm, des encryption algorithm, RSA cryptographic algorithms and SM2 Encryption Algorithm One kind, be not specifically limited herein, it should be noted that Encryption Algorithm can be used for decrypting.
S103, relay-operated controller verify the legitimacy of encrypted unlocking information, if legal, then relay-operated controller control Relay processed opens electronic lock.
Relay-operated controller receives encrypted unlocking information, then using the Encryption Algorithm in above-mentioned S102 to encryption after Unlocking information operation is decrypted, then the unlocking information after being decrypted verifies the unlocking information after decryption, sentences The legitimacy of disconnected check results, if check results are legal, relay-operated controller control relay opening electronic lock;Wherein, The legitimacy of the check results is, if the data after verification meet the condition of pre-stored legitimacy in relay-operated controller, Indicate that the check results are legal, if the data after verification are not present in the well-formedness condition stored in relay-operated controller, It indicates that verification data are illegal, the condition of the legitimacy is set with staff's experience according to actual needs, herein not It limits, which may include: door-control lock and coded lock etc., and but not limited to this.
Gate inhibition's method for unlocking provided in this embodiment, this method is by obtaining unlocking information and the corresponding mark of unlocking information Know, is then encrypted according to the split lock information of mark, and encrypted unlocking information is sent to relay-operated controller, relay Device controller is verified by the legitimacy of the unlocking information to encryption, if it is legal to obtain the unlocking information, according to unlocking Information controls relay and unlocks, and the application is since relay is electrically connected with relay-operated controller and lock respectively, and relay control Device processed is verified by split lock information, to control whether relay opens lock, avoids the electric signal by only changing lock, Without verifying the purpose that can be unlocked, the safety of electronic lock is increased.
Optionally, referring to figure 3., Fig. 3 is the flow diagram of another kind method for unlocking provided by the disclosure.Above-mentioned electricity Before identification of steps of the sub- lock controller according to unlocking acquisition of information relay-operated controller, further include
S201, electronic lock controller are parsed by the decryption secret key pair level-one code key ciphertext of preset level-one code key, Obtain the corresponding level-one code key of level-one code key ciphertext in plain text.
Electronic lock controller obtains level-one code key ciphertext, and is carried out using level-one code key decryption secret key pair level-one code key ciphertext Decryption, obtains the corresponding plaintext of level-one code key, it should be noted that level-one code key decryption code key is preset in electronic lock controller , level-one code key ciphertext is parsed for electronic lock controller, obtains level-one code key in plain text.
S202, electronic lock controller verify secret key pair level-one code key by preset level-one code key and are encrypted in plain text, obtain To the corresponding check value of level-one code key plaintext.
Specifically, obtaining level-one code key in plain text, and according to level-one code key after by the way that level-one code key ciphertext is decrypted Verification secret key pair level-one code key is encrypted in plain text, obtains level-one code key corresponding check value in plain text, wherein the verification of level-one code key It is preset in code key electronic lock controller, it is encrypted to obtain check value according to level-one code key plaintext for electronic lock controller.
If corresponding check value is identical as the check value of level-one code key ciphertext in plain text for S203, level-one code key, electronic lock controlled Device storage level-one code key processed is in plain text.
The check value that code key obtains will be verified to compare with the check value by extracting level-one code key ciphertext Compared with proving that the level-one is secret if the check value that the verification code key obtains is identical as the check value that level-one code key ciphertext is extracted Key ciphertext is effective, and electronic lock controller stores level-one code key in plain text, is encrypted for split lock information next time.
Optionally, referring to figure 4., Fig. 4 is the flow diagram of another kind method for unlocking provided by the disclosure.Above-mentioned electricity Sub- lock controller is encrypted according to mark and default level-one code key, split lock information, and encrypted unlocking information is sent To relay-operated controller, comprising:
S301, electronic lock controller according to default code key decentralized algorithm to the mark of relay-operated controller and level-one code key into Row calculates, and obtains second level code key.
Specifically, electronic lock controller is according to default code key decentralized algorithm by the mark of relay-operated controller and level-one code key It is calculated, obtains the corresponding second level code key of mark of relay-operated controller, which is added for split lock information It is close.
Preceding part of the code key decentralized algorithm by mark as input data, the data that mark step-by-step negates are as rear portion Point, using level-one code key as encryption code key, cryptographic calculation is carried out to mark data, obtains the first half data of second level code key; Mark data step-by-step is negated, then the data that mark data step-by-step negates are carried out as encryption code key according to level-one code key Encryption, obtains the latter half data of second level code key, above-mentioned first half data and latter half data connection, which are got up, is exactly The second level code key calculated based on mark dispersion.
S302, electronic lock controller obtain second level ciphertext after being encrypted by second level code key dual lock information, and by two Grade ciphertext is sent to relay-operated controller.
Specifically, electronic lock controller receives unlocking information, is encrypted, opened using second level code key dual lock information The corresponding second level ciphertext of lock information encrypts second level ciphertext using 3DES algorithm to clearly illustrate, specific encrypted Journey is as follows:
Unlocking information is divided into several groups according to every group of 8 byte datas, and the supplement 0x80 less than 8 bytes forms one group. Using electronic lock controller use level-one code key and relay identify the second level code key that is calculated by above-mentioned code key decentralized algorithm as Code key is encrypted, encryption code key is equally divided into front and back two parts, and each group of data are all first using the front decilog of encryption code key According to des encryption is carried out, level one data is obtained, the rear part for reusing encryption code key carries out DES to level one data and decrypts to obtain two Grade data finally carry out des encryption to secondary data using the preceding part of encryption code key and obtain three-level data, finally by several groups Three-level data be stitched together according to order of packets the encrypted result of information of exactly unlocking.
Encryption Algorithm can also use SM4 algorithm, DES algorithm, RSA Algorithm and SM2 algorithm other than 3DES algorithm Deng no longer illustrating process herein.
Optionally, referring to figure 5., Fig. 5 is the flow diagram of another kind method for unlocking provided by the disclosure.It is above-mentioned after Appliance controller verifies the legitimacy of encrypted unlocking information, and if legal, then relay-operated controller control relay opens electricity The step of son lock, comprising:
S401, relay-operated controller are decrypted to obtain second level in plain text by second level secret key pair second level ciphertext.
Specifically, relay-operated controller receives the second level ciphertext that electronic lock controller is sent, and use second level secret key pair two Grade ciphertext is decrypted, and obtains the second level plaintext after the decryption of second level ciphertext, it should be noted that second level code key is preset in relay In device controller, for received second level ciphertext to be decrypted.In order to clearly illustrate, using 3DES algorithm to second level ciphertext It is decrypted, specific decrypting process is as follows:
Above-mentioned second level ciphertext is divided into several groups according to every group of 8 byte datas, less than the supplement 0x80 composition one of 8 bytes Group.Using the preset second level code key of relay-operated controller as decryption code key, decryption code key is equally divided into front and back two parts, and each group Data are all that first the front decilog using decryption code key obtains level one data according to DES decryption is carried out, and reuse decryption code key Afterwards part to level one data carry out des encryption obtain secondary data, finally using decryption code key preceding part to secondary data into Row DES decrypts to obtain three-level data, and it is exactly above-mentioned second level that finally the three-level data of several groups are stitched together according to order of packets The plaintext result of ciphertext.
S402, relay-operated controller verify the legitimacy of second level plaintext, and if legal, then relay-operated controller controls Relay opens electronic lock.
Relay-operated controller verifies the legitimacy of second level plaintext, wherein if there is pre-stored in relay-operated controller The condition of legitimacy, for example, electronic lock legal opening time are as follows: 8:00-20:00, relay-operated controller pass through bright to second level The time of the corresponding unlocking information of text is judged, if the time unlocked at this time is not in the time of the legal opening of electronic lock It is interior, then relay to second level plaintext be verified as it is illegal, then relay-operated controller control relay continue close electronic lock, if The time of unlocking, then relay-operated controller was to close to the check results of second level plaintext within the time of the legal opening of electronic lock Method, in plain text according to the legal corresponding second level of unlocking information, control relay opens electronic lock to relay-operated controller.
Optionally, the above method further include: if electronic lock is opened, relay-operated controller is opened to electronic lock controller transmission It locks and successfully instructs.
Specifically, if the corresponding second level ciphertext of the split lock information of relay-operated controller is verified, if check results are to close Method, then relay-operated controller control relay opens electronic lock, and relay-operated controller sends to electronic lock controller and unlocks later Success instructs.
Gate inhibition's method for unlocking provided in this embodiment, this method is by obtaining unlocking information and the corresponding mark of unlocking information Know, is then encrypted according to the split lock information of mark, and encrypted unlocking information is sent to relay-operated controller, relay Device controller is verified by the legitimacy of the unlocking information to encryption, if it is legal to obtain the unlocking information, according to unlocking Information controls relay and unlocks, and the application is since relay is electrically connected with relay-operated controller and lock respectively, and relay control Device processed is verified by split lock information, to control whether relay opens lock, avoids the electric signal by only changing lock, Without verifying the purpose that can be unlocked, the safety of electronic lock is increased.
Fig. 6 is please referred to, Fig. 6 is the flow diagram of another kind method for unlocking provided by the disclosure.This method comprises:
S501, electronic lock controller obtain level-one code key ciphertext.
S502, electronic lock controller obtain level-one code key in plain text according to level-one code key.
Specifically, electronic lock controller is carried out using level-one code key decryption secret key pair level-one code key ciphertext according to preset algorithm It is decrypted, obtains level-one code key in plain text.
S503, electronic lock controller storage verify successful level-one code key in plain text.
Specifically, electronic lock controller is encrypted in plain text by verification secret key pair level-one code key, it is bright to obtain level-one code key The corresponding check value of text, if corresponding check value is identical as the check value that level-one code key ciphertext is extracted in plain text for level-one code key, electricity Sub- lock controller is by level-one code key stored in clear.
S504, electronic lock controller obtain the mark of relay-operated controller.
Specifically, electronic lock controller obtains unlocking information, and according to the mark of unlocking acquisition of information relay-operated controller.
The split lock information of S505, electronic lock controller is encrypted.
Specifically, second level code key, second level secret key pair is calculated by code key decentralized algorithm using mark and level-one code key Unlocking information is encrypted, and the encrypted second level ciphertext in relation to unlocking information is obtained.
The unlocking information of encryption is sent to relay-operated controller by S506, electronic lock controller.
S507, relay-operated controller verify the legitimacy of encrypted unlocking information.
Relay-operated controller is decrypted using the encrypted second level ciphertext of second level secret key pair, and the second level after being decrypted is bright Then text verifies the legitimacy of the corresponding unlocking information of second level plaintext, obtains legal unlocking information.
S508, if legal, relay-operated controller send unlocking instruction to relay.
S509, relay receive unlocking instruction, unlock.
Specifically, relay-operated controller, according to the legal corresponding second level plaintext of unlocking information, control relay is opened Lock operation.
S510, relay-operated controller are unlocked to electronic lock controller transmission and are successfully instructed.
Optionally, Fig. 7 is please referred to, Fig. 7 is a kind of module diagram of unlocking apparatus provided by the disclosure.The present invention is real Apply example offer a kind of unlocking apparatus, be applied to electronic lock control system, electronic lock control system include electronic lock controller, after Appliance controller, relay and electronic lock, electronic lock controller and relay-operated controller communicate to connect, relay respectively with relay Device controller and electronic lock electrical connection, unlocking apparatus include: to obtain module 601, the first encrypting module 62 and correction verification module 60;
Module 601 is obtained, for obtaining unlocking information, and according to the mark of unlocking acquisition of information relay-operated controller;
First encrypting module 602, for the mark and level-one code key according to relay-operated controller, split lock information is added It is close, and encrypted unlocking information is sent to relay-operated controller;
Correction verification module 603, for verifying the legitimacy of encrypted unlocking information, if legal, then relay-operated controller control Relay processed opens electronic lock.
Optionally, Fig. 8 is please referred to, Fig. 8 is the module diagram of another kind unlocking apparatus provided by the disclosure, above-mentioned to open Locking device further include: parsing module 604, the second encrypting module 605 and memory module 606;
Parsing module 604 is parsed for decrypting secret key pair level-one code key ciphertext by preset level-one code key, is obtained The corresponding level-one code key of level-one code key ciphertext is in plain text;
Second encrypting module 605 is encrypted in plain text for verifying secret key pair level-one code key by preset level-one code key, Obtain level-one code key corresponding check value in plain text;
Memory module 606, if for the level-one code key check value that corresponding check value and level-one code key ciphertext are extracted in plain text Identical, then electronic lock controller stores level-one code key in plain text.
Optionally, above-mentioned first encrypting module 602 is specifically used for according to default code key decentralized algorithm to relay-operated controller Mark and level-one code key calculated, obtain second level code key;Two are obtained after being encrypted by second level code key dual lock information Grade ciphertext, and second level ciphertext is sent to relay-operated controller.
Optionally, above-mentioned correction verification module 603 is also used to be decrypted by second level secret key pair second level ciphertext to obtain second level bright Text;The legitimacy of second level plaintext is verified, if legal, then relay-operated controller control relay opens electronic lock.
Optionally, above-mentioned unlocking apparatus further includes sending module 607;
Above-mentioned sending module 607 is unlocked to electronic lock controller transmission and is successfully instructed if opening for electronic lock.
Unlocking apparatus provided in this embodiment, the device is by obtaining unlocking information and the corresponding mark of unlocking information, so It is encrypted afterwards according to the split lock information of mark, and encrypted unlocking information is sent to relay-operated controller, relay control Device processed is verified by the legitimacy of the unlocking information to encryption, if it is legal to obtain the unlocking information, according to unlocking information It controls relay to unlock, the application is since relay is electrically connected with relay-operated controller and lock respectively, and relay-operated controller It is verified by split lock information, to control whether relay opens lock, avoids the electric signal by only changing lock, do not have to The purpose that can be unlocked is verified, the safety of electronic lock is increased.
The method that above-mentioned apparatus is used to execute previous embodiment offer, it is similar that the realization principle and technical effect are similar, herein not It repeats again.
The above module can be arranged to implement one or more integrated circuits of above method, such as: one Or multiple specific integrated circuits (Application Specific Integrated Circuit, abbreviation ASIC), or, one Or multi-microprocessor (digital singnal processor, abbreviation DSP), or, one or more field programmable gate Array (Field Programmable Gate Array, abbreviation FPGA) etc..For another example, when some above module passes through processing elements When the form of part scheduler program code is realized, which can be general processor, such as central processing unit (Central Processing Unit, abbreviation CPU) or it is other can be with the processor of caller code.For another example, these modules can integrate Together, it is realized in the form of system on chip (system-on-a-chip, abbreviation SOC).
Fig. 9 is please referred to, Fig. 9 is the functional block diagram of a kind of electronic equipment provided by the disclosure.The electronic equipment It may include the computer readable storage medium 701 and processor 702 for being stored with computer program, processor 702 can call The computer program that computer readable storage medium 701 stores.It, can when the computer program is read and run by processor 702 To realize above method embodiment.Specific implementation is similar with technical effect, and which is not described herein again.
Optionally, the disclosure also provides a computer readable storage medium, is stored thereon with computer program, the computer When program is read out by the processor and runs, above method embodiment may be implemented.
In several embodiments provided by the disclosure, it should be understood that Installation practice described above is only Schematically, disclosed device and method, may be implemented in other ways.Such as the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed, such as each unit can integrate at one It manages in unit, is also possible to each unit and physically exists alone, can also be integrated in one unit with two or more units In.Above-mentioned integrated unit both can take the form of hardware realization, and the form of SFU software functional unit can also be added using hardware It realizes.
It should be noted that, in this document, the relational terms of such as " first " and " second " or the like are used merely to one A entity or operation with another entity or operate distinguish, without necessarily requiring or implying these entities or operation it Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to Cover non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or setting Standby intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in the process, method, article or apparatus that includes the element.
The foregoing is merely preferred embodiment of the present disclosure, are not limited to the disclosure, for the skill of this field For art personnel, the disclosure can have various modifications and variations.It is all within the spirit and principle of the disclosure, it is made any to repair Change, equivalent replacement, improvement etc., should be included within the protection scope of the disclosure.

Claims (10)

1. a kind of method for unlocking is applied to electronic lock control system, which is characterized in that the electronic lock control system includes electronics Lock controller, relay-operated controller, relay and electronic lock, the electronic lock controller and the relay-operated controller communication link It connects, the relay is electrically connected with the relay-operated controller and the electronic lock respectively, which comprises
The electronic lock controller obtains unlocking information, and the mark of the relay-operated controller according to the unlocking acquisition of information Know;
The electronic lock controller according to the mark and default level-one code key of the relay-operated controller, to the unlocking information into Row encryption, and encrypted unlocking information is sent to the relay-operated controller;
The relay-operated controller verifies the legitimacy of the encrypted unlocking information, if legal, then the relay control Device controls the relay and opens the electronic lock.
2. method for unlocking according to claim 1, which is characterized in that the electronic lock controller is according to the unlocking information Before the identification of steps for obtaining relay-operated controller, further includes:
Level-one code key ciphertext described in decryption secret key pair of the electronic lock controller by preset level-one code key is parsed, and is obtained In plain text to the corresponding level-one code key of the level-one code key ciphertext;
Level-one code key described in verification secret key pair of the electronic lock controller by preset level-one code key is encrypted in plain text, is obtained To the corresponding check value of the level-one code key plaintext;
If corresponding check value is identical as the check value of the level-one code key ciphertext in plain text for the level-one code key, the electronic lock Controller stores the level-one code key in plain text.
3. method for unlocking according to claim 1, which is characterized in that the electronic lock controller is according to the mark and in advance If level-one code key, the unlocking information is encrypted, and encrypted unlocking information is sent to the relay-operated controller, Include:
The electronic lock controller is pre- to the mark and level-one code key of the relay-operated controller according to default code key decentralized algorithm If code key decentralized algorithm is calculated, second level code key is obtained;
The electronic lock controller obtains second level ciphertext after being encrypted by unlocking information described in the second level secret key pair, and will The second level ciphertext is sent to the relay-operated controller.
4. method for unlocking according to claim 3, which is characterized in that the relay-operated controller verification is described encrypted The legitimacy of unlocking information, if legal, then the relay-operated controller controls the step of relay opens the electronic lock, Include:
The relay-operated controller is decrypted to obtain second level in plain text by second level ciphertext described in the second level secret key pair;
The relay-operated controller verifies the legitimacy of the second level plaintext, if legal, then the relay-operated controller It controls the relay and opens the electronic lock.
5. method for unlocking according to claim 1-4, which is characterized in that
If the electronic lock is opened, the relay-operated controller is unlocked to electronic lock controller transmission and is successfully instructed.
6. a kind of unlocking apparatus is applied to electronic lock control system, which is characterized in that electronic lock control system includes electronic lock controlled Device, relay-operated controller, relay and electronic lock processed, electronic lock controller and relay-operated controller communicate to connect, relay point It is not electrically connected with relay-operated controller and electronic lock, the unlocking apparatus includes: to obtain module, the first encrypting module and calibration mode Block;
The acquisition module, for obtaining unlocking information, and the mark of the relay-operated controller according to the unlocking acquisition of information Know;
First encrypting module, for the mark and level-one code key according to the relay-operated controller, to the unlocking information It is encrypted, and encrypted unlocking information is sent to the relay-operated controller;
The correction verification module, for verifying the legitimacy of the encrypted unlocking information, if legal, then the relay control Device controls the relay and opens the electronic lock.
7. unlocking apparatus according to claim 6, which is characterized in that the unlocking apparatus further include: parsing module, second Encrypting module and memory module;
The parsing module is parsed for decrypting level-one code key ciphertext described in secret key pair by preset level-one code key, is obtained In plain text to the corresponding level-one code key of the level-one code key ciphertext;
Second encrypting module is added in plain text for verifying level-one code key described in secret key pair by preset level-one code key It is close, obtain the level-one code key corresponding check value in plain text;
The memory module, if the check value for the level-one code key plaintext corresponding check value and the level-one code key ciphertext Identical, then the electronic lock controller stores the level-one code key in plain text.
8. unlocking apparatus according to claim 6, which is characterized in that first encrypting module is specifically used for according to pre- If code key decentralized algorithm calculates the mark and level-one code key of the relay-operated controller, second level code key is obtained;Pass through institute It states and obtains second level ciphertext after unlocking information described in second level secret key pair is encrypted, and the second level ciphertext is sent to the relay Device controller.
9. unlocking apparatus according to claim 8, which is characterized in that the correction verification module is also used to through the second level Second level ciphertext described in secret key pair is decrypted to obtain second level in plain text;The legitimacy of the second level plaintext is verified, if legal, Then the relay-operated controller controls the relay and opens the electronic lock.
10. according to the described in any item unlocking apparatus of claim 6-9, which is characterized in that the unlocking apparatus further includes sending Module;
The sending module is unlocked to electronic lock controller transmission and is successfully instructed if opening for the electronic lock.
CN201910489315.XA 2019-06-06 2019-06-06 Method for unlocking and device Pending CN110176094A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910489315.XA CN110176094A (en) 2019-06-06 2019-06-06 Method for unlocking and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910489315.XA CN110176094A (en) 2019-06-06 2019-06-06 Method for unlocking and device

Publications (1)

Publication Number Publication Date
CN110176094A true CN110176094A (en) 2019-08-27

Family

ID=67697017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910489315.XA Pending CN110176094A (en) 2019-06-06 2019-06-06 Method for unlocking and device

Country Status (1)

Country Link
CN (1) CN110176094A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113345135A (en) * 2021-04-26 2021-09-03 合肥美的智能科技有限公司 Control method and device of intelligent sales counter, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102800141A (en) * 2012-07-24 2012-11-28 东信和平科技股份有限公司 Entrance guard controlling method and system based on bidirectional authentication
EP3125201A1 (en) * 2015-07-29 2017-02-01 Docapost Iot Method for controlling the opening of a lock by one-time passcode
CN108551455A (en) * 2018-04-24 2018-09-18 北京小米移动软件有限公司 The configuration method and device of smart card
CN109035519A (en) * 2018-07-26 2018-12-18 杭州晟元数据安全技术股份有限公司 A kind of biometric devices and method
CN109429203A (en) * 2017-08-22 2019-03-05 深圳光启智能光子技术有限公司 Data transmission method, terminal, storage medium and processor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102800141A (en) * 2012-07-24 2012-11-28 东信和平科技股份有限公司 Entrance guard controlling method and system based on bidirectional authentication
EP3125201A1 (en) * 2015-07-29 2017-02-01 Docapost Iot Method for controlling the opening of a lock by one-time passcode
CN109429203A (en) * 2017-08-22 2019-03-05 深圳光启智能光子技术有限公司 Data transmission method, terminal, storage medium and processor
CN108551455A (en) * 2018-04-24 2018-09-18 北京小米移动软件有限公司 The configuration method and device of smart card
CN109035519A (en) * 2018-07-26 2018-12-18 杭州晟元数据安全技术股份有限公司 A kind of biometric devices and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113345135A (en) * 2021-04-26 2021-09-03 合肥美的智能科技有限公司 Control method and device of intelligent sales counter, electronic equipment and storage medium
WO2022227648A1 (en) * 2021-04-26 2022-11-03 合肥美的智能科技有限公司 Control method and apparatus for intelligent vending cabinet, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
US8752165B2 (en) Provisioning secrets in an unsecured environment
CN1707999B (en) Distributed management of a certificate revocation list
CN102682506B (en) Intelligent Bluetooth door access control method and device based on symmetric cryptographic technique
CN110462691A (en) Method for unlocking, mobile terminal, intelligent door lock and the Cloud Server of intelligent door lock
JP6049301B2 (en) Method and apparatus for verifying access and / or starting
CN107038777A (en) A kind of safety communicating method and its intelligent door lock system based on intelligent door lock system
EP1882346B1 (en) Communication protocol and electronic communication system, in particular authentication control system, as well as corresponding method
CN109672538A (en) A kind of lightweight vehicle bus safety communicating method and safe communication system
CN110891061B (en) Data encryption and decryption method and device, storage medium and encrypted file
EP2942922A1 (en) System and method for controlled device access
CN109035519B (en) Biological feature recognition device and method
CN109474419A (en) A kind of living body portrait photo encryption and decryption method and encrypting and deciphering system
CN106055932A (en) MCU program anti-plagiarizing method and system with Boost loader function
CN107222306A (en) A kind of key updating method, apparatus and system
CN106027473A (en) Identity card reading terminal and cloud authentication platform data transmission method and system
CN102025486A (en) Secret key management method for safe intelligent chip
CN112950813A (en) Intelligent lock device, scooter, intelligent lock body control method thereof and storage medium
EP1999677B1 (en) Method to enforce the use of a certificate revocation list
Liao et al. Toward authenticating the master in the modbus protocol
CN106599697B (en) A kind of method and system of safety upgrade PCI cipher card card internal program
CN115664659A (en) Method, device, equipment and medium for supervising blockchain transaction data
CN110176094A (en) Method for unlocking and device
CN113328979B (en) Method and device for recording access behaviors
CN116684870B (en) Access authentication method, device and system of electric power 5G terminal
US20200092096A1 (en) Method for secure management of secrets in a hierarchical multi-tenant environment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190827