A kind of double-encryption gate control system based on mobile phone two-dimension code
Technical field
The present invention relates to a kind of gate control system, particularly a kind of double-encryption gate control system based on mobile phone two-dimension code.
Background technology
In recent years, along with the raising of people's living standard, awareness of safety also progressively strengthens, and people are also more and more higher to the requirement of gate control system, in many occasions, gate control system is all installed with the generation of prevention security incident.Domestic existing gate control system is varied at present, and relevant document patent is many, only enumerates several representative gate control systems here and is illustrated.The design > > of the wireless access control system of < < based on RFID technology, this class gate control system is opened door lock by the mode of radio communication.The intelligent household access control system > > that < < communicates by letter with 3G based on recognition of face and < < Intelligent fingerprint entrance guard system > >, this class gate control system judges whether automatic door opening by the mode of identification biological characteristic.< < photoelectric intelligent door safety system > > provide a kind of intelligent access control system that relates to infrared chest card and infrared key.< < modulated reflecting type optical access control system > > provides a kind of mode by optical modulation to determine whether the gate control system of opening the door.The constructive method > > of the gate control system of a < < New Two Dimensional bar code, this gate control system is the Quick Response Code of printing by papery, used Quick Response Code, but owing to being that papery is printed, be easily replicated and steal two-dimension code image.
Summary of the invention
The object of the invention is to overcome insecurity and the high in cost of production deficiency of existing gate control system, the double-encryption gate control system based on mobile phone two-dimension code that a kind of cost is low, use plain code and mobile phone two-dimension code double-encryption is provided, this gate control system adopts Quick Response Code as carrier, and recognition method is simple, safe and reliable.
The object of the invention is to be achieved through the following technical solutions: a kind of double-encryption gate control system based on mobile phone two-dimension code, it comprises key part and lock body part, described key partly comprises plain code encrypting module, private mark encrypting module and Quick Response Code private mark block, and lock body part comprises image processing module and information discrimination module:
Plain code encrypting module: manually input password by user and obtain plain code sequence;
Private mark encrypting module: by the plain code code element inputted successively with corresponding private mark is set obtains plain code code element-private mark table of comparisons, by Quick Response Code maker, the private mark in plain code code element-private mark table of comparisons is generated to corresponding Quick Response Code again, obtain plain code code element-Quick Response Code table of comparisons;
Quick Response Code private mark block: by plain code sequence by search resulting and plain code sequence Quick Response Code sequence one to one in plain code code element-Quick Response Code table of comparisons, and every pictures interval regular time of Quick Response Code sequence is presented on mobile phone screen successively, and system automatically sequence start to add pure white first frame, finish to add the tail frame of black;
Image processing module: every pictures of Quick Response Code sequence is automatically identified successively and is decoded, and by the Quick Response Code sequence content communication decoding to information discrimination module;
Information discrimination module: Quick Response Code content information is differentiated, if Quick Response Code content information lock body identical with the information prestoring opened, re-entered password if difference is pointed out.
The keying sequence being formed by numeral 0~9 or upper and lower case letter of any number that described plain code sequence is set by user oneself.
Each plain code in described plain code code element-private mark table of comparisons is numeral or a upper and lower case letter of 0~9, each private mark is comprised of one or more Chinese characters, letter, numeral or symbol, plain code code element-private mark table of comparisons is by plain code code element and the corresponding formed table of comparisons one to one of private mark, wherein the one-to-one relationship between each plain code code element and private mark is set by user oneself, do not have rule to follow, and after setting up, be sightless.
Quick Response Code in described plain code code element-Quick Response Code table of comparisons is that the information of each private mark in plain code code element-private mark table of comparisons is generated to a corresponding two-dimension code image with Quick Response Code maker, and plain code code element-Quick Response Code table of comparisons is the table of comparisons one to one that plain code and corresponding two-dimension code image form.
Described key is partly mobile phone.
Described key is partly mobile phone.
The present invention is used for gate control system mobile phone two-dimension code first, adopts plain code and two kinds of passwords of Quick Response Code private mark, has realized double-encryption, has greatly improved security, the reliability of gate control system.And using mobile phone as key platform, increased the convenience of gate control system.Simultaneously, using mobile phone as key platform, increased the convenience of gate control system, reduced gate control system cost, the sequence that plain code adopts 0~9 numeral or upper and lower case letter to form, private mark adopt with plain code sequence one to one Quick Response Code sequence as carrier, the one-to-one relationship of plain code and private mark is set by user oneself, do not have rule to follow, and after setting up, be sightless, identify more safe and reliable.
Accompanying drawing explanation
Fig. 1 is system architecture schematic diagram of the present invention;
In figure, 1-key part, 2-lock body part, 11-plain code encrypting module, 12-private mark encrypting module, 13-Quick Response Code private mark block, 21-image processing module, 22-Quick Response Code sequence content information, 23-information discrimination module, 111-plain code sequence, 121-plain code code element-private mark table of comparisons, 122-Quick Response Code maker, 123-plain code code element-Quick Response Code table of comparisons.
Embodiment
Below in conjunction with accompanying drawing, further illustrate technical scheme of the present invention, but the content that the present invention protects is not limited to the following stated.
As shown in Figure 1, a kind of double-encryption gate control system based on mobile phone two-dimension code, it comprises key part 1 and lock body part 2, described key part 1 comprises plain code encrypting module 11, private mark encrypting module 12 and Quick Response Code private mark block 13, and lock body part 2 comprises image processing module 21 and information discrimination module 23:
Plain code encrypting module 11: manually input password by user and obtain plain code sequence 111;
Private mark encrypting module 12: by the plain code code element inputted successively with corresponding private mark is set obtains plain code code element-private mark table of comparisons 121, by Quick Response Code maker 122, the private mark in plain code code element-private mark table of comparisons 121 is generated to corresponding Quick Response Code again, obtain plain code code element-Quick Response Code table of comparisons 123;
Quick Response Code private mark block 13: by plain code sequence 111 by search resulting and plain code sequence 111 Quick Response Code sequence one to one in plain code code element-Quick Response Code table of comparisons 123, and every pictures interval regular time of Quick Response Code sequence is presented on mobile phone screen successively, and system automatically sequence start to add pure white first frame, finish to add the tail frame of black;
Image processing module 21: every pictures of Quick Response Code sequence is automatically identified successively and decoded, and the Quick Response Code sequence content information 22 decoding is transferred to information discrimination module 23;
Information discrimination module 23: Quick Response Code content information 22 is differentiated, if Quick Response Code content information 22 lock body identical with the information prestoring opened, re-entered password if difference is pointed out.
The keying sequence being formed by numeral 0~9 or upper and lower case letter of any number that described plain code sequence 111 is set by user oneself.
Each plain code in described plain code code element-private mark table of comparisons 121 is numeral or a upper and lower case letter of 0~9, each private mark is comprised of one or more Chinese characters, letter, numeral or symbol, plain code code element-private mark table of comparisons 121 is by plain code code element and the corresponding formed table of comparisons one to one of private mark, wherein the one-to-one relationship between each plain code code element and private mark is set by user oneself, do not have rule to follow, and after setting up, be sightless.
Quick Response Code in described plain code code element-Quick Response Code table of comparisons 123 is that the information of each private mark in plain code code element-private mark table of comparisons 121 is generated to a corresponding two-dimension code image with Quick Response Code maker 122, and plain code code element-Quick Response Code table of comparisons 123 is the table of comparisons one to one that plain code and corresponding two-dimension code image form.
Described key part 1 is mobile phone.
The course of work of the present invention is: need to be first key part 1 private mark corresponding for plain code arranges at mobile phone before use, each plain code by one 0~9 numeral or a upper and lower case letter forms, each private mark is comprised of one or more Chinese characters, letter, numeral, symbol etc., for arranging the plain code that each may be used private mark being exactly, plain code has a corresponding text message with it, so just form each plain code and its private mark relation, i.e. plain code code element-private mark table of comparisons 121 one to one.Again the private mark content in plain code code element-private mark table of comparisons 121 is generated to a corresponding two-dimension code image with Quick Response Code maker 122, obtain the one-to-one relationship between each plain code code element and a two-dimension code image of its private mark generation, i.e. plain code code element-Quick Response Code table of comparisons 123.This set does not all carry out before not needing to access to your password at every turn, but can change at any time yet.After setting completes, during use, only need to input the plain code sequence being provided with by any number, after input, system can automatically be tabled look-up and obtain the Quick Response Code private mark sequence corresponding with plain code sequence 111 in plain code code element-Quick Response Code table of comparisons 123, every two-dimension code image interval regular time of Quick Response Code private mark sequence is presented on mobile phone screen successively, and system meeting adds pure white and head and the tail frame picture black in beginning and the end of sequence automatically, by image processing module 21, gather the Quick Response Code sequence image showing again, pure white first frame detected and start identification, the identification of black tail frame end detected, 21 pairs of two-dimension code image of image processing module are decoded and are obtained the content information 22 of Quick Response Code, 23 pairs of Quick Response Code content informations 22 of information discrimination module are differentiated, if Quick Response Code content information 22 is identical with the information prestoring, lock body is opened, otherwise password is re-entered in prompting.