Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The embodiment of the invention provides a kind of dynamic cipher input method, device and gate control system.The below is elaborated respectively.
See also Fig. 1, dynamic cipher input method the first embodiment in the embodiment of the invention comprises:
101, when receiving commencing signal, obtain random value;
The random value module of dynamic password input media is obtained random value when receiving commencing signal, described commencing signal can be that specific coordinate triggers from the touch-screen, for example in the standby picture of display screen, show beginning, if touch has been sensed in the position in the above demonstration beginning of touch-screen, then produce commencing signal, described commencing signal also can be that machine for punching the card produces, the action of swiping the card of described machine for punching the card induction access card, obtain the information of access card, if information exchange is crossed checking and is then produced commencing signal, the random value module is obtained a random value when receiving commencing signal, concrete, and described random value module comprises timer, when receiving commencing signal, as random value, the random value module is obtained described random value with the value of timer, further, timer adds one every its value of clock frequency, and when its value reaches maximal value, reset to zero, when receiving commencing signal, with the value of timer current time as random value.
102, generate random keyboard according to random value;
The generation module of dynamic password input media generates random keyboard according to random value, described random keyboard comprises the enter key of stochastic distribution, described enter key comprises complete numerical key, further, described enter key comprises complete numerical key, letter key and function key, described function key comprises backspace key and clear key, described random keyboard also comprises the acknowledgement key for generation of confirmation signal, generate some letter keys according to random value, position according to the described some letter keys of random value Random assignment and complete numerical key, thereby generation random keyboard, described complete numerical key comprises 0 key to 9 key, the present embodiment is in random keyboard, the position of function key and acknowledgement key is fixed, the position of numerical key and letter key is stochastic distribution, the position of described random keyboard on display screen also can be determined according to random value, like this so that in each random keyboard that generates, the quantity of letter key is all different, and with the numerical key stochastic distribution, can prevent effectively that more other people from cracking, in other embodiment, the position of described function key also can be to be randomly dispersed on each position of random keyboard with numerical key and letter key, further, the corresponding more than one numerical key of the digital key assignments of each of described random keyboard, for example key assignments is that 1 numerical key has two, and is randomly dispersed on the random keyboard, and the user can select a plurality of different positions to input in numeral of needs input like this, more can effectively prevent from cracking, ensure the safety of password.
103, display screen shows described random keyboard;
The display screen of dynamic password input media shows described random keyboard, when described generation module has generated random keyboard, display screen just shows described random keyboard, otherwise display screen keeps standby picture, further, described display screen is LCDs, and the angle of visibility of LCDs is narrower, can prevent that the people at the wide-angle place from seeing the content that screen shows.
104, touch-screen reads touch coordinate, and obtains the key assignments of enter key corresponding to described touch coordinate;
The touch-screen of dynamic password input media reads in the touch coordinate on the touch-screen, described touch coordinate refers to the coordinate that the contact point on the touch-screen is corresponding, touch-screen is by calculating the key assignments that obtains enter key corresponding to described touch coordinate, the processing module of dynamic password input media is processed described key assignments, if described key assignments is digital key assignments or alphabetical key assignments, this key assignments of buffer memory then, if the described key assignments corresponding backspace key assignments that is backspace key, then remove last key assignments in the buffer memory, if the described key assignments corresponding removing key assignments that is clear key is then removed the key assignments that all have been preserved in the buffer memory.
105, when receiving the confirmation signal, hide described random keyboard.
The processing module of dynamic password input media is when receiving the confirmation signal, hide described random keyboard, if described random keyboard comprises acknowledgement key, then pass through the correspondence position of contact check key place touch-screen, touch-screen just produces confirmation signal and sends to processing module, if described acknowledgement key is secondary or physical bond and is located on the dynamic password input media, then just produce confirmation signal and send to processing module by pressing acknowledgement key, processing module is when receiving the confirmation signal, hide described random keyboard, and will carry out password authentification with the key assignments of buffer memory, further, if password by checking, is then showing that screen display is by printed words or pattern, if password is not by checking, then at the printed words or the pattern that show the screen display failure.
In the present embodiment, by the generation random keyboard, and be presented on the display screen, obtain the key assignments of input from touch-screen, hide random keyboard after confirming, thereby obtain the password of input, owing to generated random keyboard, so that other people can not be by fixing gesture decryption, hide afterwards random keyboard in affirmation, also so that other people can't know the position of each key of random keyboard, can't crack, thereby ensure the safety of password.
See also Fig. 2, dynamic cipher input method the second embodiment in the embodiment of the invention comprises:
201, machine for punching the card is responded to the action of swiping the card, and obtains the upper information of card, then produces commencing signal if information exchange is crossed checking;
202, when receiving commencing signal or reset signal, obtain random value;
The random value module of dynamic password input media is obtained random value when receiving commencing signal or reset signal, concrete, described random value module comprises timer, when receiving commencing signal or reset signal, with the value of timer as random value, the random value module is obtained described random value, further, timer adds one every its value of clock frequency, and when reaching maximal value, its value resets to zero, when receiving commencing signal or reset signal, with the value of timer current time as random value.
203, generate random keyboard and disturb noise according to random value;
The generation module of dynamic password input media generates random keyboard and disturbs noise according to random value, described random keyboard comprises enter key and the acknowledgement key of stochastic distribution, described enter key comprises complete numerical key, letter key and function key, described function key comprises backspace key and clear key, generate some letter keys according to random value, position according to the described some letter keys of random value Random assignment and complete numerical key, thereby generation random keyboard, described complete numerical key comprises 0 key to 9 key, the present embodiment is in random keyboard, the position of function key and acknowledgement key is fixed, the position of numerical key and letter key is stochastic distribution, the position of described random keyboard on display screen also can be determined according to random value, like this so that in each random keyboard that generates, the quantity of letter key is all different, and with the numerical key stochastic distribution, can prevent effectively that more other people from cracking, in other embodiment, the position of described function key also can be to be randomly dispersed on each position of random keyboard with numerical key and letter key, further, the corresponding more than one numerical key of the digital key assignments of each of described random keyboard, for example key assignments is that 1 numerical key has two, and be randomly dispersed on the random keyboard, the user can select a plurality of different positions to input in numeral of needs input like this, more can effectively prevent from cracking, ensured the safety of password, described interference noise is when showing the screen display random keyboard, numeral or the alphabetical point that shows on every side at random keyboard, so that the numeral that shows or letter are more coarse, to reduce the angle of visibility of display screen, prevent that the people at the wide-angle place from seeing the content that screen shows.
204, display screen shows described random keyboard and disturbs noise;
The display screen of dynamic password input media shows described random keyboard and disturbs noise, when described generation module has generated random keyboard, display screen shows described random keyboard, otherwise display screen keeps standby picture, and described interference noise and random keyboard together generate, and together shows, further, described display screen is LCDs, and the angle of visibility of LCDs is narrower, prevents that further the people at the wide-angle place from seeing the content that shows screen display.
205, touch-screen reads touch coordinate, if touch coordinate corresponding be enter key, then execution in step 206, if touch coordinate corresponding be acknowledgement key, then execution in step 207;
The touch-screen of dynamic password input media reads in the touch coordinate on the touch-screen, described touch coordinate refers to the coordinate that the contact point on the touch-screen is corresponding, calculating by touch-screen, if what described touch coordinate was corresponding is enter key, then execution in step 206, if what described touch coordinate was corresponding is acknowledgement key, then execution in step 207.
206, obtain the key assignments of enter key corresponding to touch coordinate, produce reset signal, execution in step 202;
The touch-screen of dynamic password input media is by calculating the key assignments that obtains enter key corresponding to described touch coordinate, and generation reset signal, send to the random value module, execution in step 202, make the random value module again obtain random value with the replacement random keyboard, the processing module of dynamic password input media is processed described key assignments, if described key assignments is digital key assignments or alphabetical key assignments, this key assignments of buffer memory then, if the described key assignments corresponding backspace key assignments that is backspace key, then remove last key assignments in the buffer memory, if the described key assignments corresponding removing key assignments that is clear key is then removed the key assignments that all have been preserved in the buffer memory.
207, hide random keyboard.
If what touch coordinate was corresponding on the touch-screen of dynamic password input media is acknowledgement key, then touch-screen sends confirmation signal, the processing module of dynamic password input media is when receiving the confirmation signal, hide described random keyboard, and will carry out password authentification with the key assignments of buffer memory, further, if password is by checking, then showing screen display by printed words or pattern, if password is not by checking, then at the printed words or the pattern that show the screen display failure.
In the present embodiment, by the generation random keyboard, and be presented on the display screen, obtain the key assignments of input from touch-screen, hide random keyboard after confirming, thereby obtain the password of input, owing to generated random keyboard, so that other people can not be by fixing gesture decryption, hide afterwards random keyboard in affirmation, also so that other people can't know the position of each key of random keyboard, can't crack, thereby ensure the safety of password.
Seeing also Fig. 3 is dynamic password input media embodiment schematic diagram in the embodiment of the invention, the embodiment of the invention provides a kind of gate control system, and by swiping the card and inputting password and carry out authentication, described gate control system comprises the dynamic password input media, wherein, the dynamic password input media comprises:
Random value module 301 is used for obtaining random value when receiving commencing signal;
Generation module 302 is connected with random value module 301, is used for receiving the random value of random value module 301, generates random keyboard according to random value, and described random keyboard comprises the enter key of stochastic distribution, and described enter key comprises numerical key;
Display screen 303 is connected with generation module 302, is used for receiving the random keyboard of generation module, shows described random keyboard;
Touch-screen 304 is used for reading touch coordinate, and obtains the key assignments of enter key corresponding to described touch coordinate;
Processing module 305 is connected with touch-screen 305, for the treatment of the key assignments that obtains, when receiving the confirmation signal, hides described random keyboard.
Further, described enter key comprises numerical key, letter key and function key, and described function key comprises backspace key and clear key, described random keyboard also comprises the acknowledgement key for generation of confirmation signal;
Described generation module 302 is further used for: generate some letter keys according to random value, according to the position of the described some letter keys of random value Random assignment and complete numerical key, described complete numerical key comprises 0 key to 9 key.
Further, described touch-screen 304 is further used for: read the touch coordinate on the touch-screen 304, and obtain the key assignments of enter key corresponding to described touch coordinate, produce reset signal;
Described random value module 301 is further used for: receive commencing signal and reset signal, obtain random value when receiving commencing signal or reset signal.
Further, described generation module 302 is further used for, and random the generation disturbed noise; Described display screen 303 is further used for showing described interference noise.
Further, described dynamic password input media also comprises, machine for punching the card 300 is used for responding to the action of swiping the card, and then produces commencing signal if information exchange is crossed checking, and sends to the random value module.
Preferably, described display screen is LCD display.
In the present embodiment, by the generation random keyboard, and be presented on the display screen, obtain the key assignments of input from touch-screen, hide random keyboard after confirming, thereby obtain the password of input, owing to generated random keyboard, so that other people can not be by fixing gesture decryption, hide afterwards random keyboard in affirmation, also so that other people can't know the position of each key of random keyboard, can't crack, thereby ensure the safety of password.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is to come the relevant hardware of instruction finish by program, this program can be stored in the computer-readable recording medium, and storage medium can comprise: ROM (read-only memory) (ROM), random-access memory (ram), disk or CD etc.
Above a kind of dynamic cipher input method that the embodiment of the invention is provided, device and gate control system are described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.