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 the requirement of people to gate control system is also more and more higher, is all provided with gate control system to prevent the generation of security incident in many occasions.Current domestic existing gate control system is varied, and relevant document patent is many, only enumerates several representative gate control system here and is illustrated." design based on the wireless access control system of RFID technique ", this kind of gate control system opens door lock by the mode of radio communication." intelligent household access control system based on recognition of face communicates with 3G " and " Intelligent fingerprint entrance guard system ", this kind of gate control system is by identifying that the mode of biological characteristic judges whether automatic door opening." photoelectric intelligent door safety system " provides a kind of intelligent access control system relating to infrared chest card and infrared key." a kind of 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." a kind of constructive method of gate control system of New Two Dimensional bar code ", this gate control system is the Quick Response Code printed by papery, employs Quick Response Code, but owing to being that papery prints, being easily replicated and stealing two-dimension code image.
Summary of the invention
The object of the invention is to the insecurity and the high in cost of production deficiency that overcome 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 part 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: obtain plain code code element-private mark table of comparisons with the private mark arranging correspondence by the plain code code element inputted successively, by two-dimension code generator, the private mark in plain code code element-private mark table of comparisons is generated corresponding Quick Response Code again, obtain plain code code element-Quick Response Code table of comparisons;
Quick Response Code private mark block: obtained with plain code sequence Quick Response Code sequence one to one by searching in plain code code element-Quick Response Code table of comparisons by plain code sequence, and every pictures interval regular time of Quick Response Code sequence is presented on mobile phone screen successively, and system automatically sequence start add pure white first frame, terminate to add the tail frame of black;
Image processing module: every pictures of Quick Response Code sequence is automatically identified successively and decoded, and by the Quick Response Code sequence content information transmission that decodes to information discrimination module;
Information discrimination module: differentiate Quick Response Code content information, if Quick Response Code content information is identical with the information prestored, lock body is opened, if difference, points out and re-enters password.
The keying sequence be made up of 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 one 0 ~ 9, each private mark is made up of one or more Chinese character, letter, numeral or symbol, plain code code element-private mark table of comparisons is the table of comparisons one to one formed by plain code code element and corresponding private mark, one-to-one relationship wherein between each plain code code element and private mark is set by user oneself, do not have rule to follow, and be sightless after setting up.
Quick Response Code in described plain code code element-Quick Response Code table of comparisons is that the information two-dimension code generator of each private mark in plain code code element-private mark table of comparisons is generated a corresponding two-dimension code image, the table of comparisons one to one of plain code code element-Quick Response Code table of comparisons and plain code and the formation of corresponding two-dimension code image.
Described key part is mobile phone.
Described key part is mobile phone.
The present invention is used for gate control system mobile phone two-dimension code first, adopts plain code and Quick Response Code private mark two kinds of passwords, achieves double-encryption, substantially increase the security of gate control system, reliability.And using mobile phone as key platform, add the convenience of gate control system.Simultaneously, using mobile phone as key platform, add the convenience of gate control system, reduce gate control system cost, plain code adopt 0 ~ 9 numeral or upper and lower case letter composition sequence, 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 be sightless after setting up, 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-two-dimension code generator, 123-plain code code element-Quick Response Code table of comparisons.
Embodiment
Further illustrate technical scheme of the present invention below in conjunction with accompanying drawing, 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: obtain plain code code element-private mark table of comparisons 121 with the private mark arranging correspondence by the plain code code element inputted successively, by two-dimension code generator 122, the private mark in plain code code element-private mark table of comparisons 121 is generated corresponding Quick Response Code again, obtain plain code code element-Quick Response Code table of comparisons 123;
Quick Response Code private mark block 13: obtained with plain code sequence 111 Quick Response Code sequence one to one by searching in plain code code element-Quick Response Code table of comparisons 123 by plain code sequence 111, and every pictures interval regular time of Quick Response Code sequence is presented on mobile phone screen successively, and system automatically sequence start add pure white first frame, terminate 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 decoded is transferred to information discrimination module 23;
Information discrimination module 23: differentiate Quick Response Code content information 22, if Quick Response Code content information 22 is identical with the information prestored, lock body is opened, if difference, points out and re-enters password.
The keying sequence be made up of 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 one 0 ~ 9, each private mark is made up of one or more Chinese character, letter, numeral or symbol, plain code code element-private mark table of comparisons 121 is the tables of comparisons one to one formed by plain code code element and corresponding private mark, one-to-one relationship wherein between each plain code code element and private mark is set by user oneself, do not have rule to follow, and be sightless after setting up.
Quick Response Code in described plain code code element-Quick Response Code table of comparisons 123 is that the information two-dimension code generator 122 of each private mark in plain code code element-private mark table of comparisons 121 is generated a corresponding two-dimension code image, the table of comparisons one to one that the plain code code element-Quick Response Code table of comparisons 123 i.e. plain code and corresponding two-dimension code image are formed.
Described key part 1 is mobile phone.
The course of work of the present invention is: first need before use at mobile phone and key part 1 for plain code arranges corresponding private mark, each plain code by one 0 ~ 9 numeral or a upper and lower case letter forms, each private mark is made up of one or more Chinese character, letter, numeral, symbol etc., each plain code that may use is allowed to have a corresponding with it text message for plain code arranges private mark being exactly, so just form each plain code and its private mark relation one to one, i.e. plain code code element-private mark table of comparisons 121.Again the private mark content two-dimension code generator 122 in plain code code element-private mark table of comparisons 121 is generated a corresponding two-dimension code image, obtain the one-to-one relationship between a two-dimension code image that each plain code code element and its private mark generate, i.e. plain code code element-Quick Response Code table of comparisons 123.All carry out before this set does not need to access to your password at every turn, but also can change at any time.After being provided with, only need during use to input the plain code sequence be provided with by any number, after input, system automatically can be tabled look-up and be obtained 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, the two-dimension code image interval regular time of often opening 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 that is black in the beginning of sequence and end automatically, the Quick Response Code sequence image of display is gathered again by image processing module 21, detect that pure white first frame starts to identify, the identification of black tail frame end detected, image processing module 21 pairs of two-dimension code image are decoded and are obtained the content information 22 of Quick Response Code, information discrimination module 23 pairs of Quick Response Code content informations 22 differentiate, if Quick Response Code content information 22 is identical with the information prestored, lock body is opened, otherwise password is re-entered in prompting.