CN102982272A - Method and device for keyboard layout - Google Patents

Method and device for keyboard layout Download PDF

Info

Publication number
CN102982272A
CN102982272A CN2012104289492A CN201210428949A CN102982272A CN 102982272 A CN102982272 A CN 102982272A CN 2012104289492 A CN2012104289492 A CN 2012104289492A CN 201210428949 A CN201210428949 A CN 201210428949A CN 102982272 A CN102982272 A CN 102982272A
Authority
CN
China
Prior art keywords
key
tabulation
key position
button value
keyboard layout
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.)
Granted
Application number
CN2012104289492A
Other languages
Chinese (zh)
Other versions
CN102982272B (en
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201210428949.2A priority Critical patent/CN102982272B/en
Publication of CN102982272A publication Critical patent/CN102982272A/en
Application granted granted Critical
Publication of CN102982272B publication Critical patent/CN102982272B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method and a device for keyboard layout. Each key on a virtual keyboard can be adjusted to prevent password cracking software from cracking a password by means of continuous try of outputting command sequences. The device comprises a receiving module, a test pass module and a layout changing module. The receiving module is suitable for receiving a character string formed by selected key values in the current keyboard layout, and carrying out the password validation. The test pass module is suitable for enabling the password of the character string to pass a test when the tested character string is matched with a preset password. The layout changing module is suitable for testing whether the output frequency reaches a threshold value when the tested character string is not matched with the preset password, if the output frequency reaches a threshold value, then the keyboard layout is reset, and corresponding key positions of the key values in the virtual keyboard can be changed, if not, the character string needs to be received again. The receiving module is triggered and receives the character string formed by the selected key values to continue to carry out the password validation in the keyboard layout which is reset.

Description

Keyboard layout method and device
Technical field
The present invention relates to computer technology, particularly relate to a kind of keyboard layout method and device.
Background technology
The development of science and technology for example, is used computer office so that the application of terminal is more and more extensive, uses panel computer to see a film anywhere or anytime and play games, and uses mobile phone and other people communication etc.Along with the development of terminal applies, the requirement of confidentiality is also more and more higher.For example, mobile phone need to be inputted password and could use, and some vital documents in the terminal also need to input password just can be checked.
Normally in the fixed area of screen dummy keyboard is set in the terminal and inputs password, the position of each button and key assignments in the described dummy keyboard (being output content) are fixed.For example, take the upper left corner of screen as initial point, be to the right the x direction of principal axis, be downwards the y direction of principal axis.Zone (10,10,30,30) is button 1, and output content is " 1 "; Zone (40,10,60,30) is button 2, and output content is " 2 " etc.When the input password, as long as click on area just can be inputted corresponding content, finally finish the input of password.
Therefore some password cracking softwares just occur, utilized the stationarity of keyboard to come decryption.This password cracking software can obtain the position of dummy keyboard in screen, and position and the key assignments of each button in the dummy keyboard, then realizes to zone in the screen being the click of button by the click order, for example, input command sequence (40,10 successively, 60,30, click), (10,10,30,30, click) just be equivalent to input character string 21.If password just is 21, then crack successfully, if password is not 21, then crack failure, this password cracking software can be adjusted command sequence, continues to attempt decryption.
Usually be that the time is limited to play secret effect in terminal, for example, the failed threshold value of password can be set, when the frequency of failure of Password Input reaches unsuccessfully threshold value, will carry out time restriction, such as the input locking a period of time to password, for example 5 minutes, could again attempt inputting password after 5 minutes.But this time restriction is normally for artificial input, and a people has a lot of immeasurable factors to cause him after attempting a period of time when the input password, may stop to attempt, thereby play the effect of cryptoguard.
And for password cracking software, there is not immeasurable factor in it when attempting decryption, the decryption that cracks in case access to your password, it can ignore the problem of time restriction, within the time that can input password, constantly adjust command sequence and attempt, until the password cracking success.
Therefore, those skilled in the art are urgent, and a technical matters that solves is, propose a kind of method to set up of dummy keyboard, can adjust each button in the dummy keyboard, come decryption to prevent password cracking software by the method for constantly attempting the input command sequence.
Summary of the invention
The invention provides a kind of keyboard layout method and device, can adjust each button in the dummy keyboard, come decryption to prevent password cracking software by the method for constantly attempting the input command sequence.
In order to address the above problem, the invention discloses a kind of keyboard layout method, comprising:
In current keyboard layout, receive the character string that is consisted of by selected button value, carry out cryptographic check;
When detecting described character string and preset password coupling, the cryptographic check of described character string is passed through;
When detecting described character string and preset password and not mating, detect the input number of times and whether reach threshold value, if reach threshold value, the keyboard layout of then resetting, change button value corresponding key position in dummy keyboard, otherwise, again receive character string; Wherein, described input number of times is character string and the unmatched number of times of preset password of inputting described in the current keyboard layout;
In the keyboard layout after replacement, receive the character string that is consisted of by selected button value and carry out cryptographic check with continuation.
In the embodiment of the invention, the key position of described change button value correspondence in dummy keyboard comprises: keep each key position in the dummy keyboard, change button value corresponding to each key position.
In the embodiment of the invention, the key position of described change button value correspondence in dummy keyboard comprises: change each key position in the dummy keyboard, and be each key position configuration button value.
In the embodiment of the invention, in the tabulation of key area, preserve each key position in the keyboard layout; In key area tabulation group, preserve the tabulation of various key areas; In the press key contents tabulation, preserve button value; The corresponding relation of each key position and button value during tabulate in the selected key area of preservation in the key arrangement tabulation.
In the embodiment of the invention, keep each key position in the dummy keyboard, change button value corresponding to each key position, comprising: the corresponding relation that empties each key position and button value in the key area tabulation selected in the keyboard layout tabulation; A key area in the key area tabulation selected in the keyboard layout tabulation obtains a button value at random from the press key contents tabulation; Set up the corresponding relation of described key area and described button value, and be saved in the keyboard layout tabulation.
In the embodiment of the invention, change each key position in the dummy keyboard, and for each key position configuration button value, comprising: empty the keyboard layout tabulation; Select the tabulation of a kind of key area from key area tabulation group, it tabulates different with the selected key area of current keyboard layout; From the tabulation of selected key area, obtain at random a key position; From the press key contents tabulation, obtain at random a button value; Set up the corresponding relation of described key position and described button value, be saved in the keyboard layout tabulation.
In the embodiment of the invention, also comprise the displaying contents of button in the described press key contents tabulation, the displaying contents of described button is corresponding one by one with button value.
Accordingly, the invention also discloses a kind of keyboard layout device, comprising:
Receiver module is suitable in current keyboard layout, receives the character string that is made of selected button value, carries out cryptographic check;
The module of upchecking is suitable for when detecting described character string and preset password coupling the cryptographic check of described character string being passed through;
The change layout modules is suitable for when detecting described character string and preset password and do not mate, and detection is inputted number of times and whether reached threshold value, if reach threshold value, the keyboard layout of then resetting, the key position of change button value correspondence in dummy keyboard, otherwise, again receive character string; Wherein, described input number of times is character string and the unmatched number of times of preset password of inputting described in the current keyboard layout;
Trigger described receiver module, in the keyboard layout of resetting, receive the character string that is consisted of by selected button value and carry out cryptographic check with continuation.
In the embodiment of the invention, described change layout modules comprises: the first change submodule, be suitable for keeping each key position in the dummy keyboard, and change button value corresponding to each key position.
In the embodiment of the invention, described change layout modules comprises: the second change submodule is suitable for changing each key position in the dummy keyboard, and is each key position configuration button value.
Compared with prior art, the present invention includes following advantage:
At first, the present invention can be in current keyboard layout, receives the character string that is made of selected button value, then when described character string and preset password do not mate, and replacement keyboard layout, the key position of change button value correspondence in dummy keyboard.Then password cracking software can't be correct obtains the key position of keyboard in screen, also can't be correct obtain each button value in the keyboard.When password cracking software is attempted the input password; once the character string of inputting before may inputting; also possibly can't input of character string; so that password cracking software cracks failure; thereby make the application that needs cryptoguard to get in terminal, terminal File and the terminal safer, password can play its effect.
Secondly, the present invention can keep each key position in the dummy keyboard, changes button value corresponding to each key position, or, change each key position in the dummy keyboard, and be each key position configuration button value.Method is flexible and changeable, and by these two kinds of methods keyboard layout of can resetting fast, thereby be implemented in the situation that does not affect user's input, play the effect of safeguard protection.
Again, the present invention also comprises keyboard layout tabulation, key area tabulation and press key contents tabulation, can obtain fast key area tabulation, key position and button value by above-mentioned tabulation, consist of fast the corresponding relation of each key position and button value, thereby consist of the keyboard layout of resetting fast.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, the accompanying drawing of required use was done to introduce simply during the below will describe embodiment, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the described a kind of keyboard layout method process flow diagram of the embodiment of the invention;
Fig. 2 is the described keyboard layout synoptic diagram of the embodiment of the invention;
Fig. 3 is the first keyboard layout change flow figure in the described a kind of keyboard layout method of the preferred embodiment of the present invention;
Fig. 4 is the second keyboard layout change flow figure in the described a kind of keyboard layout method of the preferred embodiment of the present invention;
Fig. 5 is the described a kind of keyboard layout structure drawing of device of the preferred embodiment of the present invention.
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.
In the prior art, the layout of dummy keyboard is fixed, and namely zone and the position of input password are fixed in the terminal, therefore, password cracking software can be set, and utilize the stationarity of keyboard to come decryption.Described password cracking software obtains the position of keyboard in screen, and in the keyboard behind the position and key assignments of each button, can attempt inputting password by continuous adjustment command sequence, until the password cracking success.
The invention provides a kind of method to set up of keyboard, can automatically change the layout of keyboard, the key position of change button value correspondence in dummy keyboard, so that password cracking software can't be known the position of dummy keyboard in screen, and the button value in the dummy keyboard, thereby can't attempt decryption.
With reference to Fig. 1, provided the described a kind of keyboard layout method process flow diagram of the embodiment of the invention.
With reference to Fig. 2, provided the described keyboard layout synoptic diagram of the embodiment of the invention.
Wherein, a is the first keyboard layout, and a1 is the screen portions in the first keyboard layout, and a2 is the key position part in the first keyboard layout, " 0 " " 1 " wherein ... " 9 " " * " " # " represents respectively a key position.
B is the first keyboard layout, and b1 is the screen portions in the first keyboard layout, and b2 is the key position part in the first keyboard layout, " 0 " " 1 " wherein ... " 9 " " * " " # " represents respectively a key position.
Specifically discuss present embodiment below in conjunction with Fig. 2.
Step 101 in current keyboard layout, receives the character string that is made of selected button value, carries out cryptographic check;
Along with the development of terminal applies, the requirement of confidentiality is also more and more higher.For example, mobile phone need to be inputted password and could use, and some vital documents in the terminal also need to input password just can be checked, some in the terminal used needs the input password to use.
Behind prompting user input password, meeting display password inputting interface, during this input password of user, shown interface for password input is exactly current keyboard layout, supposes that the first keyboard layout a among Fig. 2 is current keyboard layout.The user can input password under current keyboard layout, such as 1234, namely click respectively the key position " 1 " " 2 " " 3 " " 4 " in the current keyboard layout, can obtain the character string " 1234 " that button value consists of.
Then in current keyboard layout, the character string that reception is made of selected button value, among Fig. 2, key position " 1 " " 2 " " 3 " " 4 " is corresponding button value 1234 respectively, then input of character string " 1234 " is then carried out the cryptographic check process as the password of this input.
Whether step 102 detects described character string and preset password and mates;
Described preset password can be current set password, as, entering and use at 1 o'clock, preset password is for using the password of 1 configuration, and for example, when using mobile phone, preset password is the unlocking pin for the mobile phone configuration.Password authentification is by just entering the project that is provided with password, as using mobile phone etc.
In the cryptographic check process, detect described character string and preset password and whether mate, i.e. whether the password of checking input is correct.Be 1234 such as preset password, then coupling is not 1234 such as preset password, does not then mate.
If namely detect described character string and preset password coupling, then follow-up execution in step 103; If not, namely detect described character string and preset password and do not mate, then follow-up execution in step 104.
Step 103 is to upchecking of described character string;
If described character string and preset password coupling, namely Password Input is correct, and then to the upchecking of described character string, the user carries out follow-up operation according to different application scenarioss, for example, can use terminal, and for example can open and viewing files etc.
Step 104, replacement keyboard layout, the key position of change button value correspondence in dummy keyboard.
Among the present invention, come decryption in order to prevent password cracking software by the method for constantly attempting the input command sequence, after this can change keyboard layout.
In fact, the display interface of terminal can demonstrate each button, then the user selection button can be inputted the button value of this button, namely in key arrangement, store each key position, each key position and button value have corresponding relation, can the input key key assignments by the selection key position.Therefore when the replacement keyboard layout, can change the key position of button value correspondence in dummy keyboard.
For example, with a1 and the transposing of a2 position of the first keyboard layout a among Fig. 2, the screen portions and the key position that are about in the first keyboard layout partly turn upside down, and consist of the keyboard layout of resetting.Key position corresponding to button value " 1 " is (10,100,30,120) before resetting, and key position corresponding to button value " 1 " is (10,10,30,30) after resetting.
And for example, in the first keyboard layout a among Fig. 2, the button value of first row and second row transposing among the key position part a1, the i.e. key position of corresponding button value " 1 " originally, corresponding button value " 4 " after resetting by that analogy, consists of the keyboard layout of resetting.
In the keyboard layout after replacement, receive the character string that is consisted of by selected button value and carry out cryptographic check with continuation.
Behind the replacement keyboard layout, shown interface for password input is exactly the keyboard layout after resetting in terminal, keyboard layout after also being about to reset is current keyboard layout, then return step 101, reception is carried out cryptographic check by the character string that selected button value consists of with continuation, concrete, can repeat above-mentioned steps, until cryptographic check is passed through.
After keyboard layout was reset, the follow-up step 101 of returning can receive character string again, carries out Password Input and checking.After the keyboard layout change, password cracking software can't be correct obtains the position of keyboard in screen, also just can't be correct obtain button value.Then password cracking software may be inputted the character string of once inputting before when constantly attempting the input password, and also possibly can't input of character string.
In sum, the present invention can be in current keyboard layout, receives the character string that is made of selected button value, then when described character string and preset password do not mate, and replacement keyboard layout, the key position of change button value correspondence in dummy keyboard.Then password cracking software can't be correct obtains key position in the screen, also can't be correct obtain button value.When password cracking software is attempted the input password; once the character string of inputting before may inputting; also possibly can't input of character string; so that password cracking software cracks failure; thereby make the application that needs cryptoguard to get in terminal, terminal File and the terminal safer, password can play its effect.
Optionally, detect after described character string and preset password do not mate, also comprise:
Detect the input number of times and whether reach unsuccessfully threshold value, if reach threshold value, the keyboard layout of then resetting, otherwise, again receive character string.
If described character string and preset password do not mate, detect whether the input number of times reaches unsuccessfully threshold value under the current keyboard layout, wherein, if the character string of described input and preset password coupling, then described character string can be directly by checking, do not need to record number of times, therefore, described input number of times can be character string and the unmatched number of times of preset password of inputting described in the current keyboard layout.Described failed threshold value is the maximum frequency of failure of character string input in a kind of keyboard layout, and for example, establishing the frequency of failure is 3, then detects under current keyboard layout, and whether the input number of times reaches 3.
If, namely input number of times and reach unsuccessfully threshold value, then need the keyboard layout of resetting, as carry out upper routine step 105 operation; If not, namely input number of times and do not reach unsuccessfully threshold value, then whether the input number of times after the character string that continues the follow-up input of detection is surpassed failed threshold value.
In the prior art, if the input number of times reaches unsuccessfully threshold value, prior art will be carried out time restriction, such as the input locking a period of time to password, for example 5 minutes, could again attempt inputting password after 5 minutes.If but password cracking software continues to attempt the input password later in locking time, then final password can be cracked.
And the present invention is in input after number of times reaches unsuccessfully threshold value, and the keyboard layout of can resetting so that password cracking software can't get access to correct button value, prevents that password is cracked, and has protected the safety of terminal.
Optionally, the key position of described change button value correspondence in dummy keyboard comprises:
1) keeps each key position in the dummy keyboard, change button value corresponding to each key position.
When the replacement keyboard layout, do not change the position of each shown in terminal button, but change the corresponding button value in each position, namely can keep each key position in the dummy keyboard, and change button value corresponding to each key position, to realize the replacement of keyboard layout.
As above in the example, a1 is constant for the key position part, with the button value transposing of first row and second row among the key position part a1, the i.e. key position (10 of the corresponding button value of script " 1 ", 100,30,120), corresponding button value " 4 " after resetting by that analogy, consists of the keyboard layout of resetting.
2) change each key position in the dummy keyboard, and be each key position configuration button value.
When the replacement keyboard layout, also can change the position of each shown in terminal button, be corresponding button value on each position configuration again, namely change each key position in the dummy keyboard, and be the unique button value of each key position configuration.
As above in the example, a1 and the transposing of a2 position with the first keyboard layout a among Fig. 2 consist of the keyboard layout of resetting.Key position corresponding to button value " 1 " is (10,100,30,120) before resetting, and key position corresponding to button value " 1 " is (10,10,30,30) after resetting.
Therefore, if adopt above-mentioned 1) described method, key position does not become in the keyboard layout of replacement, but the button value that each key position is corresponding has changed, therefore, behind the password cracking software selection key position, the button value of expection input and the button value of actual input can change.Such as 1) example in, password cracking software selection key position (10,100,30,120) is during in the hope of input key key assignments " 1 ", actual button value but is " 4 ".
And adopt above-mentioned 2) described method, the position of each button has changed in the keyboard layout of replacement, and therefore, the problem that can't input may appear in password cracking software selection key position.Such as 2) example in password cracking software selection key position (10,100,30,120) during in the hope of input key key assignments " 1 ", and this moment, keyboard layout was not have button on coordinate (10,100,30,120), therefore can't the input key key assignments.
Certainly after, 2) password cracking software selection key position also may appear in described method, the button value of expection input and the actual different situation of button value of inputting for enumerating one by one, should not be understood as limitation of the present invention herein.
In sum, the present invention can keep each key position in the dummy keyboard, changes button value corresponding to each key position, or, change each key position in the dummy keyboard, and be each key position configuration button value.Method is flexible and changeable, and by these two kinds of methods keyboard layout of can resetting fast, thereby be implemented in the situation that does not affect user's input, play the effect of safeguard protection.
Optionally, each key position in the preservation keyboard layout in the tabulation of key area; In key area tabulation group, preserve the tabulation of various key areas; In the press key contents tabulation, preserve button value; The corresponding relation of each key position and button value during tabulate in the selected key area of preservation in the key arrangement tabulation.
In order to change more quickly keyboard layout, the present invention can preset the key area tabulation, the tabulation of described key area is suitable for preserving each key position in the keyboard layout, also namely preserve key position shown in the screen, each key position is corresponding to a position in the screen, and then all key positions in the screen can consist of the tabulation of a kind of key area.For example, a and b are made of two kinds of different key areas tabulations among Fig. 2, supposes: a is shown is key position in the tabulation of the first key area, and b is shown is key position in tabulating in the second key area.And for example, a is shown among Fig. 2 is key position in the tabulation of the first key area, if therefrom select arbitrarily a key position, keeping in the constant situation of other key positions, selected key position is changed to other positions in the screen, then can consists of the tabulation of a kind of new key area.
Then selected a certain key area tabulation, the same example, a is current keyboard layout among Fig. 2, what then current keyboard layout was selected is the tabulation of the first key area, if therefore will change key position, can select the tabulation of another kind of key area, they are different with the selected key area tabulation of current keyboard layout, for example select that b tabulates selected the second key area among Fig. 2.
Then, in the tabulation of selected key area, obtain at random a key position, then can select a button value that key position is corresponding, jointly preserve described key position and corresponding button value.
Wherein, change is during key position, can pre-recorded described current keyboard layout in the order of the corresponding button value of key position, can be key position configuration button value according to described order still behind the selection key position then.For example, key position in the tabulation of a kind of key area be with Fig. 2 in the key position shown in a partly turn upside down, if select this key area tabulation, if be key position configuration button value according to described order then, the effect that then shows in screen can be that a1 and a2 exchange.
The tabulation of described key area, in order to preserving the key position that shows in the screen, can shape as shown in table 1:
The numbering of key position Position in the screen
y1 (10,100,30,120)
y2 (40,100,60,120)
...... ......
Table 1
Table 1 only for a kind of form of key area tabulation, can also comprise other forms in the implementation, should not be understood as limitation of the present invention.
Wherein, the position in the screen can be a coordinate position in the screen, for example is initial point take the upper left corner, is to the right positive x axle, is downwards positive y axle.
In the actual treatment, can be in advance distinguish each key position numbering in the tabulation of key area, for example, according to from left to right, serial number from top to bottom.
For example, in the tabulation of key area, shown key position corresponding to button value " 1 " of a is y1 among Fig. 2, and key position corresponding to button value " * " is y4, and key position corresponding to button value " 4 " is y5 etc.And for example, shown key position corresponding to button value " 1 " of b is y1, and key position corresponding to button value " * " is 12, and key position corresponding to button value " 4 " is y3 etc.
Then in the tabulation of key area, can record the numbering of each key position, then just can a kind of key area tabulation of unique formation by all key positions.Therefore, behind the selection key zone list, can be button value of key position configuration of each numbering, a coordinate position that is in the terminal has disposed output valve (being button value).
If keep each key position in the dummy keyboard, button value corresponding to change key position, then can keep the key area tabulation in the current keyboard layout, and for each key position, obtain at random a button value, set up the corresponding relation of described key position and described button value, be upper this button value of described key position configuration.
For example, do not change selected key area tabulation, as remain the selected key area tabulation of a among Fig. 2, key position that then can be corresponding to original button value " 1 ", obtain at random a button value, the probability that obtains this moment with identical before button value (i.e. change before, button value corresponding to key position in the current keyboard layout) is 1/12, identical likelihood ratio is lower, and all key positions and before button value all identical probability be exactly 1/(12) 12, probability is very low, can not think can occur, if the key position in certain keyboard is more, then probability is to lower.This moment is in order to guarantee that more key position and button value before can not overlap, before all right pre-recorded change, button value corresponding to key position in the current keyboard layout, after then obtaining at random a button value, compare with the record content, not identical after, just can set up the corresponding relation of described key position and described button value, if identical, then can reselect.
The present invention can also comprise the keyboard layout tabulation, comprising the key position in the keyboard layout to display and corresponding button value, the corresponding relation of each key position and button value during tabulate in the selected key area of preservation in the keyboard layout tabulation, as shown in table 2:
Figure BDA00002338916300121
Table 2
Table 2 only for a kind of form of keyboard layout tabulation, can also comprise other forms in the implementation, should not be understood as limitation of the present invention.
In the actual treatment, can comprise selected key area tabulation in the keyboard layout tabulation, and preserve key position corresponding to each numbering in the selected key area tabulation, and the corresponding relation of button value.
The key position corresponding such as the button value " 1 " as shown in a among Fig. 2 is y1, and key position corresponding to button value " * " is y4, and key position corresponding to button value " 4 " is y5 etc.And for example, shown key position corresponding to button value " 1 " of b is y1, and key position corresponding to button value " * " is 12, and key position corresponding to button value " 4 " is y3 etc.
The tabulation of described key area is suitable for preserving key position shown in the screen, so the diverse location of key position in screen, corresponding to different key area tabulations, then comprise the tabulation of a variety of key areas among the present invention, therefore all key area tabulations can be consisted of key area tabulation group, at the change keyboard layout be, can be from described key area tabulation group the selection key zone list.
Can also comprise the press key contents tabulation among the present invention, comprise the displaying contents of button value and button, as shown in table 3:
Button value The displaying contents of button
1 1
* *
...... ......
Table 3
Table 3 only for a kind of form of press key contents tabulation, can also comprise other forms in the implementation, should not be understood as limitation of the present invention.
Optionally, also comprise the displaying contents of button in the described press key contents tabulation, the displaying contents of described button is corresponding one by one with button value.
In keyboard layout each key position corresponding the displaying contents of button, can understand button value corresponding to this key position by described displaying contents, such as " 1 " " 2 " as shown in the key position part among Fig. 2 etc., the displaying contents of described button is identical with button value, is 1 such as button value corresponding to key position that shows " 1 " among Fig. 2.Certainly, the displaying contents situation not identical with button value of described button may occur, the present invention does not do restriction to this yet.
With reference to Fig. 3, provided the first keyboard layout change flow figure in the described a kind of keyboard layout method of the preferred embodiment of the present invention.
Optionally, keep each key position in the dummy keyboard, change button value corresponding to each key position, comprising:
Step 301 empties the corresponding relation of each key position and button value in the key area tabulation selected in the keyboard layout tabulation;
If keep each key position in the dummy keyboard, change button value corresponding to each key position, also namely change button value corresponding to key position, can not change selected key area tabulation, therefore can empty in the keyboard layout tabulation corresponding relation of key area and button value in each in the selected key area tabulation.
Then can comprise the key area tabulation in the keyboard layout tabulation this moment, and each key position in this key area tabulation.
Step 302, a key area in the key area tabulation selected in the keyboard layout tabulation obtains a button value at random from the press key contents tabulation;
Then for a key area in the key area tabulation selected in the keyboard layout tabulation, from the press key contents tabulation, obtain a button value at random.Because the quantity of key area is many, when therefore obtaining button value at random, consist of keyboard layout and the on all four probability of current keyboard layout very low, namely all identical probability is very low for all key areas and before button value.
This moment is in order to guarantee that more key area and button value before can not overlap, before all right pre-recorded change, button value corresponding to key area in the current keyboard layout, after then obtaining at random a button value, compare with the record content, not identical after, just can set up the corresponding relation of described key area and described button value, if identical, then can reselect.
Step 303 is set up the corresponding relation of described key area and described button value, and is saved in the keyboard layout tabulation, consists of the keyboard layout of resetting.
Then set up the corresponding relation of described key area and described button value, be the upper corresponding button value of each key area configuration, then described corresponding relation is saved in the keyboard layout tabulation, consist of the keyboard layout of resetting.
With reference to Fig. 4, provided the second keyboard layout change flow figure in the described a kind of keyboard layout method of the preferred embodiment of the present invention.
Optionally, change each key position in the dummy keyboard, and be each key position configuration button value, comprising:
Step 401 empties the keyboard layout tabulation;
If change each key position in the dummy keyboard, then can tabulate by the situation keyboard layout, i.e. there is not the selected key area tabulation of record in the keyboard layout tabulation, there is not the corresponding relation of individual key position and button value yet.
Step 402 is selected the tabulation of a kind of key area from key area tabulation group, it tabulates different with the selected key area of current keyboard layout;
Then, select the tabulation of a kind of key area from key area tabulation group, it tabulates different with the selected key area of current keyboard layout.For example, the selected key area tabulation of current keyboard layout is the tabulation of the first key area, then can select any key area tabulation except the tabulation of the first key area this moment, tabulates such as the second key area.
Step 403 is obtained a key position at random from the tabulation of selected key area;
Then can from the tabulation of selected key area, obtain at random a key position, for example, select the tabulation of the second key area, from the tabulation of the second key area, obtain at random a key position, such as the numbering y2 of selection key position.
Step 404 is obtained a button value at random from the press key contents tabulation;
Because this moment, each key position changed, therefore also to be button value of each key position configuration, therefore behind the key position in choosing key area tabulation and the tabulation of selected key area, can from the press key contents tabulation, obtain a button value at random.
In order to guarantee that more key position and button value before can not overlap, this moment equally can pre-recorded change before, button value corresponding to key position in the current keyboard layout, after then obtaining at random a button value, compare with the record content, not identical after, just can set up the corresponding relation of described key position and described button value, if identical, then can reselect.
Step 405 is set up the corresponding relation of described key position and described button value, is saved in the keyboard layout tabulation to consist of the keyboard layout of resetting.
In sum, the present invention also comprises keyboard layout tabulation, key area tabulation and press key contents tabulation, can obtain fast key area tabulation, key position and button value by above-mentioned tabulation, consist of fast the corresponding relation of each key position and button value, thereby consist of the keyboard layout of resetting fast.
With reference to Fig. 5, provided the described a kind of keyboard layout structure drawing of device of the embodiment of the invention.
Accordingly, the present invention also provides a kind of setting device of keyboard, comprising: receiver module 11, the module of upchecking 12 and change layout modules 13, wherein:
Receiver module 11 is suitable in current keyboard layout, receives the character string that is made of selected button value, carries out cryptographic check;
The module 12 of upchecking is suitable for when detecting described character string and preset password coupling the cryptographic check of described character string being passed through;
Change layout modules 13 is suitable for detecting described character string and preset password does not mate the replacement keyboard layout, the key position of change button value correspondence in dummy keyboard;
After this, can trigger described receiver module 11, again receive the character string that is consisted of by selected button value and carry out cryptographic check with continuation.
Optionally, described change layout modules 13 comprises:
The first change submodule 131 is suitable for keeping each key position in the dummy keyboard, changes button value corresponding to each key position.
Optionally, described change layout modules 13 comprises:
The second change submodule 132 is suitable for changing each key position in the dummy keyboard, and is each key position configuration button value.
Optionally, each key position in the preservation keyboard layout in the tabulation of key area; In key area tabulation group, preserve the tabulation of various key areas; In the press key contents tabulation, preserve button value; The corresponding relation of each key position and button value during tabulate in the selected key area of preservation in the key arrangement tabulation.
Optionally, described the first change submodule 131 comprises:
Empty module, be suitable for emptying the corresponding relation of each key position and button value in the key area tabulation selected in the keyboard layout tabulation;
Key assignments is selected module, is suitable for obtaining a button value at random from the press key contents tabulation for a key area in the key area tabulation selected in the keyboard layout tabulation;
Preserve module, be suitable for setting up the corresponding relation of described key area and described button value, and be saved in the keyboard layout tabulation, consist of the keyboard layout of resetting.
Optionally, described the second change submodule comprises:
Empty module, be suitable for emptying the keyboard layout tabulation;
Classification is selected module, is suitable for selecting from key area tabulation group the tabulation of a kind of key area, and it tabulates different with the selected key area of current keyboard layout;
Module is selected in the zone, is suitable for obtaining at random a key position from the tabulation of selected key area;
Key assignments is selected module, is suitable for obtaining at random a button value from the press key contents tabulation;
Preserve module, be suitable for setting up the corresponding relation of described key position and described button value, be saved in the keyboard layout that consists of replacement in the keyboard layout tabulation.
Optionally, also comprise the displaying contents of button in the described press key contents tabulation, the displaying contents of described button is corresponding one by one with button value.
Optionally, change layout modules 13 also is suitable for detecting the input number of times and whether reaches threshold value, if reach threshold value, and the keyboard layout of then resetting, otherwise, again receive character string; Wherein, described input number of times is character string and the unmatched number of times of preset password of inputting described in the current keyboard layout.
For device embodiment because itself and embodiment of the method basic simlarity, so describe fairly simple, relevant part gets final product referring to the part explanation of embodiment of the method.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.
The present invention can describe in the general context of the computer executable instructions of being carried out by computing machine, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract data type, program, object, assembly, data structure etc.Also can in distributed computing environment, put into practice the present invention, in these distributed computing environment, be executed the task by the teleprocessing equipment that is connected by communication network.In distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
At last, also need to prove, in this article, relational terms such as the first and second grades only is used for an entity or operation are made a distinction with another entity or operation, and not necessarily requires or hint and have the relation of any this reality or sequentially between these entities or the operation.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby not only comprise those key elements so that comprise process, method, commodity or the equipment of a series of key elements, but also comprise other key elements of clearly not listing, or also be included as the intrinsic key element of this process, method, commodity or equipment.Do not having in the situation of more restrictions, the key element that is limited by statement " comprising ... ", and be not precluded within process, method, commodity or the equipment that comprises described key element and also have other identical element.
More than to method to set up and the device of a kind of keyboard provided by the present invention, be described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is suitable 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.

Claims (10)

1. keyboard layout method comprises:
In current keyboard layout, receive the character string that is consisted of by selected button value, carry out cryptographic check;
When detecting described character string and preset password coupling, the cryptographic check of described character string is passed through;
When detecting described character string and preset password and not mating, detect the input number of times and whether reach threshold value, if reach threshold value, the keyboard layout of then resetting, change button value corresponding key position in dummy keyboard, otherwise, again receive character string; Wherein, described input number of times is character string and the unmatched number of times of preset password of inputting described in the current keyboard layout;
In the keyboard layout after replacement, receive the character string that is consisted of by selected button value and carry out cryptographic check with continuation.
2. the method for claim 1, described change button value corresponding key position in dummy keyboard comprises:
Keep each key position in the dummy keyboard, change button value corresponding to each key position.
3. the method for claim 1, described change button value corresponding key position in dummy keyboard comprises:
Change each key position in the dummy keyboard, and be each key position configuration button value.
4. such as claim 2 or 3 arbitrary described methods, in the tabulation of key area, preserve each key position in the keyboard layout; In key area tabulation group, preserve the tabulation of various key areas; In the press key contents tabulation, preserve button value; The corresponding relation of each key position and button value during tabulate in the selected key area of preservation in the key arrangement tabulation.
5. method according to claim 4 keeps each key position in the dummy keyboard, changes button value corresponding to each key position, comprising:
Empty the corresponding relation of each key position and button value in the key area tabulation selected in the keyboard layout tabulation;
A key area in the key area tabulation selected in the keyboard layout tabulation obtains a button value at random from the press key contents tabulation;
Set up the corresponding relation of described key area and described button value, and be saved in the keyboard layout tabulation.
6. method according to claim 4 changes each key position in the dummy keyboard, and is each key position configuration button value, comprising:
Empty the keyboard layout tabulation;
Select the tabulation of a kind of key area from key area tabulation group, it tabulates different with the selected key area of current keyboard layout;
From the tabulation of selected key area, obtain at random a key position;
From the press key contents tabulation, obtain at random a button value;
Set up the corresponding relation of described key position and described button value, be saved in the keyboard layout tabulation.
7. according to claim 4 to 6 arbitrary described methods, also comprise the displaying contents of button in the described press key contents tabulation, the displaying contents of described button is corresponding one by one with button value.
8. keyboard layout device comprises:
Receiver module is suitable in current keyboard layout, receives the character string that is made of selected button value, carries out cryptographic check;
The module of upchecking is suitable for when detecting described character string and preset password coupling the cryptographic check of described character string being passed through;
The change layout modules is suitable for when detecting described character string and preset password and do not mate, and detection is inputted number of times and whether reached threshold value, if reach threshold value, the keyboard layout of then resetting, the key position of change button value correspondence in dummy keyboard, otherwise, again receive character string; Wherein, described input number of times is character string and the unmatched number of times of preset password of inputting described in the current keyboard layout;
Trigger described receiver module, in the keyboard layout of resetting, receive the character string that is consisted of by selected button value and carry out cryptographic check with continuation.
9. device according to claim 8, described change layout modules comprises:
The first change submodule is suitable for keeping each key position in the dummy keyboard, changes button value corresponding to each key position.
10. device according to claim 8, described change layout modules comprises:
The second change submodule is suitable for changing each key position in the dummy keyboard, and is each key position configuration button value.
CN201210428949.2A 2012-10-31 2012-10-31 keyboard layout method and device Active CN102982272B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210428949.2A CN102982272B (en) 2012-10-31 2012-10-31 keyboard layout method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210428949.2A CN102982272B (en) 2012-10-31 2012-10-31 keyboard layout method and device

Publications (2)

Publication Number Publication Date
CN102982272A true CN102982272A (en) 2013-03-20
CN102982272B CN102982272B (en) 2015-12-02

Family

ID=47856277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210428949.2A Active CN102982272B (en) 2012-10-31 2012-10-31 keyboard layout method and device

Country Status (1)

Country Link
CN (1) CN102982272B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968602A (en) * 2012-10-31 2013-03-13 北京奇虎科技有限公司 Setting method and device for keyboard
CN103632075A (en) * 2013-10-17 2014-03-12 东莞盛世科技电子实业有限公司 Authentication device and authentication method
CN104915592A (en) * 2015-05-28 2015-09-16 东莞盛世科技电子实业有限公司 Password setting method and device
CN105159591A (en) * 2015-09-08 2015-12-16 北京元心科技有限公司 Unlocking method of intelligent terminal and intelligent terminal
CN107272920A (en) * 2016-04-06 2017-10-20 阿里巴巴集团控股有限公司 Change the method and device of the corresponding relation of button and character
CN107590922A (en) * 2017-09-01 2018-01-16 重庆软易科技有限公司 It is self-service supplement with money, payment terminal machine
CN107633166A (en) * 2017-07-21 2018-01-26 徐智能 A kind of dynamic virtual keyboard input method of hidden input character
CN112836550A (en) * 2019-11-22 2021-05-25 杭州海康威视数字技术股份有限公司 Method, device, system, equipment and storage medium for detecting password peeping behavior

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101093525A (en) * 2006-09-01 2007-12-26 厦门好旺角信息技术开发有限公司 Method and device of inputting secret code for raising cryptographic security
CN101340294A (en) * 2008-08-07 2009-01-07 深圳市紫金支点技术股份有限公司 Cipher keyboard apparatus and implementing method thereof
CN101340479A (en) * 2008-05-27 2009-01-07 北京爱奥时代信息科技有限公司 Key inputting method and system for touch-screen type mobile phone
CN102566924A (en) * 2011-12-26 2012-07-11 重庆新媒农信科技有限公司 Soft keyboard operation processing method capable of enhancing safety protection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101093525A (en) * 2006-09-01 2007-12-26 厦门好旺角信息技术开发有限公司 Method and device of inputting secret code for raising cryptographic security
CN101340479A (en) * 2008-05-27 2009-01-07 北京爱奥时代信息科技有限公司 Key inputting method and system for touch-screen type mobile phone
CN101340294A (en) * 2008-08-07 2009-01-07 深圳市紫金支点技术股份有限公司 Cipher keyboard apparatus and implementing method thereof
CN102566924A (en) * 2011-12-26 2012-07-11 重庆新媒农信科技有限公司 Soft keyboard operation processing method capable of enhancing safety protection

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014067321A1 (en) * 2012-10-31 2014-05-08 北京奇虎科技有限公司 Method and apparatus for setting keyboard
CN102968602A (en) * 2012-10-31 2013-03-13 北京奇虎科技有限公司 Setting method and device for keyboard
CN103632075B (en) * 2013-10-17 2016-03-30 东莞盛世科技电子实业有限公司 Authentication device and method for authenticating
CN103632075A (en) * 2013-10-17 2014-03-12 东莞盛世科技电子实业有限公司 Authentication device and authentication method
US9881146B2 (en) 2013-10-17 2018-01-30 Smart Electronic Industrial (Dong Guan) Co., Ltd. Authenticating device and authenticating method
CN104915592A (en) * 2015-05-28 2015-09-16 东莞盛世科技电子实业有限公司 Password setting method and device
CN105159591A (en) * 2015-09-08 2015-12-16 北京元心科技有限公司 Unlocking method of intelligent terminal and intelligent terminal
CN105159591B (en) * 2015-09-08 2019-04-12 北京元心科技有限公司 The unlocking method and intelligent terminal of intelligent terminal
CN107272920A (en) * 2016-04-06 2017-10-20 阿里巴巴集团控股有限公司 Change the method and device of the corresponding relation of button and character
CN107272920B (en) * 2016-04-06 2020-10-23 创新先进技术有限公司 Method and device for changing corresponding relation between keys and characters
CN107633166A (en) * 2017-07-21 2018-01-26 徐智能 A kind of dynamic virtual keyboard input method of hidden input character
CN107590922A (en) * 2017-09-01 2018-01-16 重庆软易科技有限公司 It is self-service supplement with money, payment terminal machine
CN112836550A (en) * 2019-11-22 2021-05-25 杭州海康威视数字技术股份有限公司 Method, device, system, equipment and storage medium for detecting password peeping behavior

Also Published As

Publication number Publication date
CN102982272B (en) 2015-12-02

Similar Documents

Publication Publication Date Title
CN102968602B (en) A kind of method to set up of keyboard and device
CN102982272A (en) Method and device for keyboard layout
US10448247B2 (en) Method and apparatus for information verification
CN102317949A (en) Authentication device, authentication method, and program to execute same by computer
US20110154482A1 (en) User authentication
EP3005265A1 (en) User authentication system and method
CN103488940A (en) Password protection system and method for application programs of intelligent equipment
CN104657655A (en) Unlocking method of mobile terminal and mobile terminal
CN105703901B (en) Encryption data input method and encryption data input unit
CN105844125A (en) Method and device for terminal unlocking
WO2016117469A1 (en) Authentication server device, program, and authentication method
CN105897417A (en) Encrypted data input method and encrypted data input device
CN105760741A (en) Code input method, security chip and system
CN105068733A (en) Terminal unlocking method and apparatus
CN106407825B (en) USB flash disk encryption method and system based on bracelet and terminal
CN105227318A (en) A kind of identity identifying method and device
KR101505295B1 (en) Key input method and apparatus
KR102151900B1 (en) Identification method and apparatus
US20170154173A1 (en) Array password authentication system and method thereof
CN106446660A (en) Method and system for providing verification code and terminal device
CN105590044A (en) Information authentication method and apparatus
CN104615267B (en) password input management method, system and electronic device
US9613201B1 (en) Access control by a mobile device using an image
CN106534041B (en) Verification method, verification platform and client
CN109118551A (en) A kind of image processing method, terminal and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant