CN102982272B - keyboard layout method and device - Google Patents

keyboard layout method and device Download PDF

Info

Publication number
CN102982272B
CN102982272B CN201210428949.2A CN201210428949A CN102982272B CN 102982272 B CN102982272 B CN 102982272B CN 201210428949 A CN201210428949 A CN 201210428949A CN 102982272 B CN102982272 B CN 102982272B
Authority
CN
China
Prior art keywords
key
list
button value
keyboard layout
key position
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.)
Active
Application number
CN201210428949.2A
Other languages
Chinese (zh)
Other versions
CN102982272A (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

Abstract

The invention provides a kind of keyboard layout method and device, each button in dummy keyboard can be adjusted, carry out decryption to prevent password cracking software by the method for constantly attempting input command sequence.Described device comprises: receiver module, is suitable for, in current keyboard layout, receiving the character string be made up of selected button value, performs cryptographic check; Upchecking module, being suitable for, when described character string and preset password match being detected, passing through the cryptographic check of described character string; Change layout modules, is suitable for when detecting that described character string is not mated with preset password, detects input number of times and whether reaches threshold value, if reach threshold value, then reset keyboard layout, the key position that change button value is corresponding in dummy keyboard, otherwise, again receive character string; Trigger described receiver module, in the keyboard layout reset, receive the character string that is made up of selected button value to continue execution cryptographic check.

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 makes the application of terminal more and more extensive, such as, uses computer office, uses panel computer see a film anywhere or anytime and play games, and use mobile phone and other people communication etc.Along with the development of terminal applies, the requirement of confidentiality is also more and more higher.Such as, mobile phone needs input password to use, and some vital documents in terminal also need input password just can check.
Fixed area normally at screen in terminal arranges dummy keyboard to input password, and in described dummy keyboard, the position of each button and key assignments (i.e. output content) are fixing.Such as, with the upper left corner of screen for initial point, being to the right x-axis direction, is y-axis direction downwards.Region (10,10,30,30) is button 1, and output content is " 1 "; Region (40,10,60,30) is button 2, and output content is " 2 " etc.When inputting password, as long as click on area just can input corresponding content, finally complete the input of password.
Therefore just there are some password cracking softwares, utilize the stationarity of keyboard to carry out decryption.This password cracking software can obtain the position of dummy keyboard in screen, and the position of each button and key assignments in dummy keyboard, then realizes the click to region in screen and button by click order, such as, input command sequence (40,10 successively, 60,30, click), (10,10,30,30, click) be just equivalent to have input character string 21.If password is just 21, then crack successfully, if password is not 21, then crack failure, this password cracking software can adjust command sequence, continues to attempt decryption.
Usually be limit to play secret effect to the time in the terminal, such as, the failed threshold value of password can be set, when the frequency of failure of Password Input reaches unsuccessfully threshold value, time restriction will be carried out, as locked a period of time to the input of password, such as 5 minutes, could again attempt after 5 minutes inputting password.But this time restriction is normally for artificial input, and a people, when inputting password, has a lot of immeasurable factor to cause him after trial a period of time, may stop attempting, thus serve the effect of cryptoguard.
And for password cracking software, immeasurable factor is there is not in it when attempting decryption, the decryption that cracks once access to your password, it can ignore the problem of time restriction, constantly adjust command sequence to attempt, until password cracking success within the time that can input password.
Therefore, the technical matters that those skilled in the art urgently solve is, propose a kind of method to set up of dummy keyboard, each button in dummy keyboard can be adjusted, carry out decryption to prevent password cracking software by the method for constantly attempting input command sequence.
Summary of the invention
The invention provides a kind of keyboard layout method and device, each button in dummy keyboard can be adjusted, carry out decryption to prevent password cracking software by the method for constantly attempting input command sequence.
In order to solve the problem, the invention discloses a kind of keyboard layout method, comprising:
In current keyboard layout, receive the character string be made up of selected button value, perform cryptographic check;
When described character string and preset password match being detected, the cryptographic check of described character string is passed through;
When detecting that described character string is not mated with preset password, detecting input number of times and whether reaching threshold value, if reach threshold value, then resetting keyboard layout, the key position that change button value is corresponding in dummy keyboard, otherwise, again receive character string; Wherein, described input number of times is the character string and the unmatched number of times of preset password that input described in current keyboard layout;
In keyboard layout after a reset, receive the character string that is made up of selected button value to continue to perform cryptographic check.
In the embodiment of the present invention, the key position that described change button value is corresponding in dummy keyboard, comprising: retain each key position in dummy keyboard, change the button value that each key position is corresponding.
In the embodiment of the present invention, the key position that described change button value is corresponding in dummy keyboard, comprising: change each key position in dummy keyboard, and is each key position configuration button value.
In the embodiment of the present invention, in the list of key area, preserve each key position in keyboard layout; The list of various key areas is preserved in key area list group; Button value is preserved in press key contents list; The corresponding relation of each key position and button value in selected key area list is preserved in key arrangement list.
In the embodiment of the present invention, retain each key position in dummy keyboard, change the button value that each key position is corresponding, comprising: the corresponding relation emptying each key position and button value in key area list selected in keyboard layout's list; For a key area in key area list selected in keyboard layout's list, from press key contents list, obtain a button value at random; Set up the corresponding relation of described key area and described button value, and be saved in keyboard layout's list.
In the embodiment of the present invention, change each key position in dummy keyboard, and be each key position configuration button value, comprising: empty keyboard layout's list; From key area list group, select the list of a kind of key area, its from current keyboard layout the key area list selected different; A random acquisition key position from selected key area list; A random acquisition button value from press key contents list; Set up the corresponding relation of described key position and described button value, be saved in keyboard layout's list.
In the embodiment of the present invention, in described press key contents list, also comprise the displaying contents of button, the displaying contents of described button and button value one_to_one corresponding.
Accordingly, the invention also discloses a kind of keyboard layout device, comprising:
Receiver module, is suitable for, in current keyboard layout, receiving the character string be made up of selected button value, performs cryptographic check;
Upchecking module, being suitable for, when described character string and preset password match being detected, passing through the cryptographic check of described character string;
Change layout modules, is suitable for when detecting that described character string is not mated with preset password, detects input number of times and whether reaches threshold value, if reach threshold value, then reset keyboard layout, the key position that change button value is corresponding in dummy keyboard, otherwise, again receive character string; Wherein, described input number of times is the character string and the unmatched number of times of preset password that input described in current keyboard layout;
Trigger described receiver module, in the keyboard layout reset, receive the character string that is made up of selected button value to continue execution cryptographic check.
In the embodiment of the present invention, described change layout modules comprises: the first change submodule, is suitable for retaining each key position in dummy keyboard, changes the button value that each key position is corresponding.
In the embodiment of the present invention, described change layout modules comprises: the second change submodule, is suitable for changing each key position in dummy keyboard, and is each key position configuration button value.
Compared with prior art, the present invention includes following advantage:
First, the present invention in current keyboard layout, can receive the character string be made up of selected button value, then when described character string is not mated with preset password, resets keyboard layout, the key position that change button value is corresponding in dummy keyboard.The key position of acquisition keyboard in screen that then password cracking software cannot be correct, each button value in acquisition keyboard that also cannot be correct.When input password attempted by password cracking software; once the character string inputted before may inputting; also possibly cannot input of character string; password cracking software is made to crack failure; thus the application making to need cryptoguard to obtain in terminal, terminal file and terminal is safer, password can play its effect.
Secondly, the present invention can retain each key position in dummy keyboard, changes the button value that each key position is corresponding, or, change each key position in dummy keyboard, and be each key position configuration button value.Method is flexible and changeable, and can reset keyboard layout fast by these two kinds of methods, thus realizes, when not affecting user's input, playing the effect of safeguard protection.
Again, the present invention also comprises keyboard layout's list, key area list and press key contents list, key area list, key position and button value can be obtained fast by above-mentioned list, form the corresponding relation of each key position and button value fast, thus form the keyboard layout of replacement fast.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of keyboard layout method process flow diagram described in the embodiment of the present invention;
Fig. 2 is keyboard layout's schematic diagram described in the embodiment of the present invention;
Fig. 3 is the first keyboard layout change flow figure in a kind of keyboard layout method described in the preferred embodiment of the present invention;
Fig. 4 is the second keyboard layout change flow figure in a kind of keyboard layout method described in the preferred embodiment of the present invention;
Fig. 5 is a kind of keyboard layout structure drawing of device described in the preferred embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In prior art, the layout of dummy keyboard is fixing, and the region and the position that namely input password in terminal are fixing, therefore, can arrange password cracking software, utilize the stationarity of keyboard to carry out decryption.Described password cracking software obtains the position of keyboard in screen, and in keyboard after the position of each button and key assignments, can by constantly adjusting command sequence to attempt input password, until password cracking success.
The invention provides a kind of method to set up of keyboard, automatically the layout of keyboard can be changed, the key position that change button value is corresponding in dummy keyboard, make password cracking software cannot know the position of dummy keyboard in screen, and the button value in dummy keyboard, thus decryption cannot be attempted.
With reference to Fig. 1, give a kind of keyboard layout method process flow diagram described in the embodiment of the present invention.
With reference to Fig. 2, give keyboard layout's schematic diagram described in the embodiment of the present 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 a key position respectively.
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 a key position respectively.
Specifically the present embodiment is discussed below in conjunction with Fig. 2.
Step 101, in current keyboard layout, receives the character string be made up of selected button value, performs cryptographic check;
Along with the development of terminal applies, the requirement of confidentiality is also more and more higher.Such as, mobile phone needs input password to use, and some vital documents in terminal also need input password just can check, some application in terminal needs input password to use.
After prompting user inputs password, can show interface for password input, during this input password of user, shown interface for password input is exactly current keyboard layout, supposes that the first keyboard layout a in Fig. 2 is current keyboard layout.User can input password under current keyboard layout, as 1234, namely clicks key position " 1 " " 2 " " 3 " " 4 " in current keyboard layout respectively, can obtain the character string " 1234 " that button value is formed.
Then in current keyboard layout, receive the character string be made up of selected button value, in Fig. 2, key position " 1 " " 2 " " 3 " " 4 " are corresponding button value 1234 respectively, the then password that inputs as this of input of character string " 1234 ", then performs cryptographic check process.
Whether step 102, detect described character string and mate with preset password;
Described preset password can be current set password, and e.g., when entering application 1, preset password is the password for applying 1 configuration, and and for example, when using mobile phone, preset password is the unlocking pin for mobile phone configuration.Password authentification is passed through just to enter the project being provided with password, as application, and mobile phone etc.
In cryptographic check process, described character string be detected and whether mate with preset password, namely verify that whether the password of input is correct.If preset password is 1234, then mate, if preset password is not 1234, then do not mate.
If so, described character string and preset password match is namely detected, then follow-up execution step 103; If not, namely detect that described character string is not mated with preset password, then follow-up execution step 104.
Step 103, to upchecking of described character string;
If described character string and preset password match, namely Password Input is correct, then upchecking to described character string, and user performs follow-up operation according to different application scenarioss, such as, can use terminal, and for example can open and viewing files etc.
Step 104, resets keyboard layout, the key position that change button value is corresponding in dummy keyboard.
In the present invention, in order to prevent password cracking software from carrying out decryption by the method for constantly attempting input command sequence, after this keyboard layout can be changed.
In fact, the display interface of terminal can demonstrate each button, then user's selection key can input the button value of this button, namely in key arrangement, each key position is stored, each key position and button value have corresponding relation, can input key key assignments by selection key position.Therefore, when resetting keyboard layout, the key position that button value is corresponding in dummy keyboard can be changed.
Such as, a1 and the a2 position of the first keyboard layout a in Fig. 2 is exchanged, turns upside down by the screen portions in the first keyboard layout and key position part, form the keyboard layout reset.The key position that before resetting, button value " 1 " is corresponding is (10,100,30,120), and the key position that after resetting, button value " 1 " is corresponding is (10,10,30,30).
And for example, by the first keyboard layout a in Fig. 2, in key position part a1, the button value of first row and second row is exchanged, the i.e. key position of the corresponding button value of script " 1 ", corresponding button value " 4 " after resetting, by that analogy, forms the keyboard layout reset.
In keyboard layout after a reset, receive the character string that is made up of selected button value to continue to perform cryptographic check.
When after replacement keyboard layout, interface for password input shown is in the terminal exactly the keyboard layout after resetting, also being about to the keyboard layout after resetting is current keyboard layout, then step 101 is returned, the character string that reception is made up of selected button value is to continue to perform cryptographic check, concrete, can above-mentioned steps be repeated, until cryptographic check is passed through.
Keyboard layout follow-uply returns step 101 after resetting, and again can receive character string, carry out Password Input and checking.After keyboard layout's change, the position of acquisition keyboard in screen that password cracking software cannot be correct, acquisition button value that also just cannot be correct.Then password cracking software is when constantly attempting inputting password, the character string once inputted before may inputting, and also possibly cannot input of character string.
In sum, the present invention in current keyboard layout, can receive the character string be made up of selected button value, then when described character string is not mated with preset password, resets keyboard layout, the key position that change button value is corresponding in dummy keyboard.Key position in the acquisition screen that then password cracking software cannot be correct, acquisition button value that also cannot be correct.When input password attempted by password cracking software; once the character string inputted before may inputting; also possibly cannot input of character string; password cracking software is made to crack failure; thus the application making to need cryptoguard to obtain in terminal, terminal file and terminal is safer, password can play its effect.
Optionally, after detecting that described character string and preset password do not mate, also comprise:
Detect input number of times and whether reach unsuccessfully threshold value, if reach threshold value, then reset keyboard layout, otherwise, again receive character string.
If described character string is not mated with preset password, input number of times under detecting current keyboard layout and whether reach unsuccessfully threshold value, wherein, if the character string of described input and preset password match, then described character string can directly by checking, do not need to record number of times, therefore, described input number of times can be the character string and the unmatched number of times of preset password that input described in current keyboard layout.Described failed threshold value is the maximum frequency of failure of character string input in a kind of keyboard layout, such as, if the frequency of failure is 3, then detects under current keyboard layout, and whether input number of times reaches 3.
If so, namely input number of times and reach unsuccessfully threshold value, then needing to reset keyboard layout, operating as performed upper routine step 105; If not, namely input number of times and do not reach unsuccessfully threshold value, then whether exceed unsuccessfully threshold value to continuing to detect the input number of times after the character string of follow-up input.
In prior art, if input number of times reaches unsuccessfully threshold value, prior art will carry out time restriction, as locked a period of time to the input of password, such as 5 minutes, could again attempt inputting password after 5 minutes.If but password cracking software continues to attempt input password after locking time, then final password can be cracked.
And the present invention is after input number of times reaches unsuccessfully threshold value, keyboard layout can be reset, make password cracking software cannot get correct button value, prevent password to be cracked, protect the safety of terminal.
Optionally, the key position that described change button value is corresponding in dummy keyboard, comprising:
1) retain each key position in dummy keyboard, change the button value that each key position is corresponding.
When resetting keyboard layout, do not change the position of each button shown in terminal, but change the button value corresponding to each position, namely can retain each key position in dummy keyboard, and change button value corresponding to each key position, to realize the replacement of keyboard layout.
As above in example, key position part a1 is constant, the button value of first row and second row in key position part a1 is exchanged, i.e. the key position (10 of the corresponding button value of script " 1 ", 100,30,120), corresponding button value " 4 " after resetting, by that analogy, forms the keyboard layout reset.
2) change each key position in dummy keyboard, and be each key position configuration button value.
When resetting keyboard layout, also can to change in terminal the position of each shown button, then be the upper corresponding button value of each position configuration, i.e. each key position in change dummy keyboard, and configure unique button value for each key position.
As above in example, a1 and the a2 position of the first keyboard layout a in Fig. 2 is exchanged, form the keyboard layout reset.The key position that before resetting, button value " 1 " is corresponding is (10,100,30,120), and the key position that after resetting, button value " 1 " is corresponding is (10,10,30,30).
Therefore, according to above-mentioned 1) described in method, in the keyboard layout of replacement, key position does not become, but the button value that each key position is corresponding has changed, therefore, behind password cracking software selection key position, the button value of expection input and the button value of actual input can change.As 1) example in, when password cracking software selection key position (10,100,30,120) are to input key key assignments " 1 ", actual button value is but " 4 ".
And adopt above-mentioned 2) described in method, in the keyboard layout of replacement, the position of each button changes, and therefore, the problem that cannot input may appear in password cracking software selection key position.As 2) example in password cracking software selection key position (10,100,30,120) to input key key assignments " 1 " time, and now there is not button in keyboard layout, therefore cannot input key key assignments.
Certainly, 2), after password cracking software selection key position also may appear in the method described in, the situation that the button value of expection input is different with the actual button value inputted, herein for enumerating, should not be understood as limitation of the present invention.
In sum, the present invention can retain each key position in dummy keyboard, changes the button value that each key position is corresponding, or, change each key position in dummy keyboard, and be each key position configuration button value.Method is flexible and changeable, and can reset keyboard layout fast by these two kinds of methods, thus realizes, when not affecting user's input, playing the effect of safeguard protection.
Optionally, in the list of key area, preserve each key position in keyboard layout; The list of various key areas is preserved in key area list group; Button value is preserved in press key contents list; The corresponding relation of each key position and button value in selected key area list is preserved in key arrangement list.
In order to change keyboard layout more quickly, the present invention can the list of preset key area, the list of described key area is suitable for preserving each key position in keyboard layout, also namely key position shown in screen is preserved, each key position corresponds to a position in screen, then all key positions in screen can form the list of a kind of key area.Such as, in Fig. 2, a and b is made up of two kinds of different key area lists, supposes: shown by a is key position in the first key area list, and shown by b is key position in the list of the second key area.And for example, in Fig. 2 shown by a is key position in the first key area list, if arbitrarily select a key position, when keeping other key positions constant, selected key position is changed to other positions in screen, then can forms a kind of new key area list.
Then selected a certain key area list, the same example, in Fig. 2, a is current keyboard layout, what then current keyboard layout was selected is the first key area list, therefore to change key position, the list of another kind of key area can be selected, its from current keyboard layout the key area list selected different, such as select b in Fig. 2 the second key area list of selecting.
Then, in selected key area list, a random acquisition key position, then can select the button value that a key position is corresponding, the described key position of common preservation and corresponding button value.
Wherein, during change key position, can the order of the corresponding button value of key position in pre-recorded described current keyboard layout, then can be still key position configuration button value according to described order behind selection key position.Such as, key position in the list of a kind of key area turns upside down with the key position part shown in a in Fig. 2, if select this key area list, if then according to described order be key position configuration button value, then the effect shown in screen can be that a1 and a2 exchanges.
The list of described key area, in order to preserve the key position shown in screen, can shape as shown in table 1:
The numbering of key position Position in screen
y1 (10,100,30,120)
y2 (40,100,60,120)
...... ......
Table 1
Table 1 is only a kind of form of key area list, can also comprise other forms, should not be understood as limitation of the present invention in concrete enforcement.
Wherein, the position in screen can be a coordinate position in screen, such as, be initial point with the upper left corner, is to the right positive x-axis, is positive y-axis downwards.
In actual treatment, can distinguish each key position numbering in the list of key area in advance, such as, according to from left to right, serial number from top to bottom.
Such as, in the list of key area, the key position of button value " 1 " correspondence in Fig. 2 shown by a is y1, and the key position of button value " * " correspondence is y4, and the key position of button value " 4 " correspondence is y5 etc.And for example, the key position of button value " 1 " correspondence shown by b is y1, and the key position of button value " * " correspondence is 12, and the key position of button value " 4 " correspondence is y3 etc.
Then can record the numbering of each key position in the list of key area, then just can uniquely form the list of a kind of key area by all key positions.Therefore, after selection key zone list, can configure a button value for the key position of each numbering, the coordinate position be in terminal is configured with output valve (i.e. button value).
To retain each key position in dummy keyboard, the button value that change key position is corresponding, then can retain the key area list in current keyboard layout, and for each key position, random acquisition button value, set up the corresponding relation of described key position and described button value, be described key position configuration this button value upper.
Such as, do not change selected key area list, as remain a in Fig. 2 the key area list selected, key position that then can be corresponding to original button value " 1 ", random acquisition button value, now obtaining with the probability of button value (before namely changing, the button value that in current keyboard layout, key position is corresponding) identical is before 1/12, identical likelihood ratio is lower, and all key positions probability all identical with button value is before exactly 1/(12) 12, probability is very low, can think and can not occur, if the key position in certain keyboard is more, then probability is to lower.Now in order to more guarantee that key position and button value before can not overlap, before all right pre-recorded change, the button value that in current keyboard layout, key position is corresponding, after then obtaining a button value at random, compare with record content, after not identical, 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 keyboard layout's list, comprising the key position in keyboard layout to display and corresponding button value, the corresponding relation of each key position and button value in selected key area list is preserved in keyboard layout's list, as shown in table 2:
Table 2
Table 2 is only a kind of form of keyboard layout's list, can also comprise other forms, should not be understood as limitation of the present invention in concrete enforcement.
In actual treatment, selected key area list in keyboard layout's list, can be comprised, and preserve the key position that in selected key area list, each numbering is corresponding, and the corresponding relation of button value.
Key position as corresponding in the button value " 1 " in Fig. 2 as shown in a is y1, and the key position of button value " * " correspondence is y4, and the key position of button value " 4 " correspondence is y5 etc.And for example, the key position of button value " 1 " correspondence shown by b is y1, and the key position of button value " * " correspondence is 12, and the key position of button value " 4 " correspondence is y3 etc.
The list of described key area is suitable for preserving key position shown in screen, therefore the diverse location of key position in screen, corresponding to different key area lists, then comprise the list of a variety of key areas in the present invention, therefore the list of all key areas can be formed key area list group, change keyboard layout be, can from described key area list group selection key zone list.
Press key contents list can also be comprised in 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 is only a kind of form of press key contents list, can also comprise other forms, should not be understood as limitation of the present invention in concrete enforcement.
Optionally, in described press key contents list, also comprise the displaying contents of button, the displaying contents of described button and button value one_to_one corresponding.
In keyboard layout, each key position correspond to the displaying contents of button, button value corresponding to this key position can be understood by described displaying contents, as " 1 " " 2 " etc. in Fig. 2 as shown in key position part, displaying contents and the button value of described button are identical, and the button value that the key position as shown " 1 " in Fig. 2 is corresponding is 1.Certainly, also may occur the situation that the displaying contents of described button and button value are not identical, the present invention does not limit this.
With reference to Fig. 3, give the first keyboard layout change flow figure in a kind of keyboard layout method described in the preferred embodiment of the present invention.
Optionally, retain each key position in dummy keyboard, change the button value that each key position is corresponding, comprising:
Step 301, empties the corresponding relation of each key position and button value in key area list selected in keyboard layout's list;
To retain each key position in dummy keyboard, change the button value that each key position is corresponding, also button value corresponding to key position is namely changed, selected key area list can not be changed, therefore can empty in keyboard layout's list, the corresponding relation of each middle key area and button value in selected key area list.
Then can comprise key area list in now keyboard layout's list, and each key position in this key area list.
Step 302, for a key area in key area list selected in keyboard layout's list, obtains a button value at random from press key contents list;
Then for a key area in key area list selected in keyboard layout's list, from press key contents list, a button value is obtained at random.Because the number ratio of key area is more, when therefore obtaining button value at random, to form the on all four probability of keyboard layout and current keyboard layout very low, the probability that namely all key areas are all identical with button value is before very low.
Now in order to more guarantee that key area and button value before can not overlap, before all right pre-recorded change, the button value that in current keyboard layout, key area is corresponding, after then obtaining a button value at random, compare with record content, after not identical, just can set up the corresponding relation of described key area and described button value, if identical, then can reselect.
Step 303, sets up the corresponding relation of described key area and described button value, and is saved in keyboard layout's list, forms the keyboard layout reset.
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 be saved in keyboard layout's list, form the keyboard layout reset.
With reference to Fig. 4, give the second keyboard layout change flow figure in a kind of keyboard layout method described in the preferred embodiment of the present invention.
Optionally, change each key position in dummy keyboard, and be each key position configuration button value, comprising:
Step 401, empties keyboard layout's list;
To change each key position in dummy keyboard, then can the list of situation keyboard layout, namely not have in keyboard layout's list to record the key area list selected, there is no the corresponding relation of individual key position and button value yet.
Step 402, selects the list of a kind of key area from key area list group, its from current keyboard layout the key area list selected different;
Then, from key area list group, select the list of a kind of key area, its from current keyboard layout the key area list selected different.Such as, current keyboard layout the key area list selected be the first key area list, then now can select any the key area list except the first key area list, as the list of the second key area.
Step 403, a random acquisition key position from selected key area list;
Then from selected key area list, can obtain a key position at random, such as, select the list of the second key area, a random acquisition key position from the list of the second key area, as the numbering y2 of selection key position.
Step 404, a random acquisition button value from press key contents list;
Because now each key position has changed, therefore also a button value to be configured for each key position, therefore, after choosing a key position in key area list and selected key area list, a button value can be obtained at random from press key contents list.
In order to more guarantee that key position and button value before can not overlap, now equally can before pre-recorded change, the button value that in current keyboard layout, key position is corresponding, after then obtaining a button value at random, compare with record content, after not identical, just can set up the corresponding relation of described key position and described button value, if identical, then can reselect.
Step 405, sets up the corresponding relation of described key position and described button value, is saved in the keyboard layout forming replacement in keyboard layout's list.
In sum, the present invention also comprises keyboard layout's list, key area list and press key contents list, key area list, key position and button value can be obtained fast by above-mentioned list, form the corresponding relation of each key position and button value fast, thus form the keyboard layout of replacement fast.
With reference to Fig. 5, give a kind of keyboard layout structure drawing of device described in the embodiment of the present invention.
Accordingly, present invention also offers a kind of setting device of keyboard, comprising: receiver module 11, module of upchecking 12 and change layout modules 13, wherein:
Receiver module 11, is suitable for, in current keyboard layout, receiving the character string be made up of selected button value, carries out cryptographic check;
Upchecking module 12, being suitable for, when described character string and preset password match being detected, passing through the cryptographic check of described character string;
Change layout modules 13, is suitable for resetting keyboard layout when detecting that described character string and preset password do not mate, the key position that change button value is corresponding in dummy keyboard;
After this, described receiver module 11 can be triggered, again receive the character string that is made up of selected button value to continue to perform cryptographic check.
Optionally, described change layout modules 13 comprises:
First change submodule 131, is suitable for retaining each key position in dummy keyboard, changes the button value that each key position is corresponding.
Optionally, described change layout modules 13 comprises:
Second change submodule 132, is suitable for changing each key position in dummy keyboard, and is each key position configuration button value.
Optionally, in the list of key area, preserve each key position in keyboard layout; The list of various key areas is preserved in key area list group; Button value is preserved in press key contents list; The corresponding relation of each key position and button value in selected key area list is preserved in key arrangement list.
Optionally, described first change submodule 131, comprising:
Empty module, be suitable for the corresponding relation emptying each key position and button value in key area list selected in keyboard layout's list;
Key assignments selects module, is suitable for, for a key area in key area list selected in keyboard layout's list, obtaining a button value at random from press key contents list;
Preserve module, be suitable for the corresponding relation setting up described key area and described button value, and be saved in keyboard layout's list, form the keyboard layout reset.
Optionally, described second change submodule, comprising:
Empty module, be suitable for emptying keyboard layout's list;
Class selection module, is suitable for selecting the list of a kind of key area from key area list group, its from current keyboard layout the key area list selected different;
Region selection module, is suitable for a random acquisition key position from selected key area list;
Key assignments selects module, is suitable for a random acquisition button value from press key contents list;
Preserve module, be suitable for the corresponding relation setting up described key position and described button value, be saved in the keyboard layout forming replacement in keyboard layout's list.
Optionally, in described press key contents list, also comprise the displaying contents of button, the displaying contents of described button and button value one_to_one corresponding.
Optionally, change layout modules 13, is also suitable for detecting input number of times and whether reaches threshold value, if reach threshold value, then reset keyboard layout, otherwise, again receive character string; Wherein, described input number of times is the character string and the unmatched number of times of preset password that input described in current keyboard layout.
For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part 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 the difference with other embodiments, between each embodiment identical similar part mutually see.
The present invention can describe in the general context of computer executable instructions, such as program module.Usually, program module comprises the routine, program, object, assembly, data structure etc. that perform particular task or realize particular abstract data type.Also can put into practice the present invention in a distributed computing environment, in these distributed computing environment, be executed the task by the remote processing devices be connected by communication network.In a distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium comprising memory device.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, commodity or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, commodity or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, commodity or the equipment comprising described key element and also there is other identical element.
Above to method to set up and the device of a kind of keyboard provided by the present invention, be described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment is just suitable for helping to understand method of the present invention and core concept thereof; Meanwhile, 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 (9)

1. a keyboard layout method, comprising:
In current keyboard layout, receive the character string be made up of selected button value, perform cryptographic check, wherein, described keyboard layout comprises the interface for password input of display;
Detect described character string whether to mate with preset password;
When described character string and preset password match being detected, the cryptographic check of described character string is passed through;
When detecting that described character string is not mated with preset password, detecting input number of times and whether reaching threshold value, if reach threshold value, then resetting keyboard layout, the key position that change button value is corresponding in dummy keyboard, otherwise, again receive character string; Wherein, described input number of times is the character string and the unmatched number of times of preset password that input described in current keyboard layout, preserves each key position in keyboard layout in the list of key area;
In keyboard layout after a reset, receive the character string that is made up of selected button value to continue to perform cryptographic check.
2. the method for claim 1, the key position that described change button value is corresponding in dummy keyboard, comprising:
Retain each key position in dummy keyboard, change the button value that each key position is corresponding.
3. the method for claim 1, the key position that described change button value is corresponding in dummy keyboard, comprising:
Change each key position in dummy keyboard, and be each key position configuration button value.
4. method according to claim 2, preserves the list of various key areas in key area list group; Button value is preserved in press key contents list; The corresponding relation of each key position and button value in selected key area list is preserved in key arrangement list;
Each key position in described reservation dummy keyboard, change the button value that each key position is corresponding, comprising:
Empty the corresponding relation of each key position and button value in key area list selected in keyboard layout's list;
For a key area in key area list selected in keyboard layout's list, from press key contents list, obtain a button value at random;
Set up the corresponding relation of described key area and described button value, and be saved in keyboard layout's list.
5. method according to claim 3, preserves the list of various key areas in key area list group; Button value is preserved in press key contents list; The corresponding relation of each key position and button value in selected key area list is preserved in key arrangement list;
Each key position in described change dummy keyboard, and be each key position configuration button value, comprising:
Empty keyboard layout's list;
From key area list group, select the list of a kind of key area, its from current keyboard layout the key area list selected different;
A random acquisition key position from selected key area list;
A random acquisition button value from press key contents list;
Set up the corresponding relation of described key position and described button value, be saved in keyboard layout's list.
6. the method according to claim 4 or 5, also comprises the displaying contents of button in described press key contents list, the displaying contents of described button and button value one_to_one corresponding.
7. keyboard layout's device, comprising:
Receiver module, is suitable for, in current keyboard layout, receiving the character string be made up of selected button value, and whether perform cryptographic check, detect described character string and mate with preset password, wherein, described keyboard layout comprises the interface for password input of display;
Upchecking module, being suitable for, when described character string and preset password match being detected, passing through the cryptographic check of described character string;
Change layout modules, is suitable for when detecting that described character string is not mated with preset password, detects input number of times and whether reaches threshold value, if reach threshold value, then reset keyboard layout, the key position that change button value is corresponding in dummy keyboard, otherwise, again receive character string; Wherein, described input number of times is the character string and the unmatched number of times of preset password that input described in current keyboard layout, preserves each key position in keyboard layout in the list of key area;
Trigger described receiver module, in the keyboard layout reset, receive the character string that is made up of selected button value to continue execution cryptographic check.
8. device according to claim 7, described change layout modules comprises:
First change submodule, is suitable for retaining each key position in dummy keyboard, changes the button value that each key position is corresponding.
9. device according to claim 7, described change layout modules comprises:
Second change submodule, is suitable for changing each key position in 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 CN102982272A (en) 2013-03-20
CN102982272B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968602B (en) * 2012-10-31 2016-04-20 北京奇虎科技有限公司 A kind of method to set up of keyboard and device
CN103632075B (en) * 2013-10-17 2016-03-30 东莞盛世科技电子实业有限公司 Authentication device and method for authenticating
CN104915592B (en) * 2015-05-28 2017-03-08 东莞盛世科技电子实业有限公司 Password setting method and its equipment
CN105159591B (en) * 2015-09-08 2019-04-12 北京元心科技有限公司 The unlocking method and intelligent terminal of intelligent terminal
CN112198973A (en) * 2016-04-06 2021-01-08 创新先进技术有限公司 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

Citations (3)

* 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
CN102566924A (en) * 2011-12-26 2012-07-11 重庆新媒农信科技有限公司 Soft keyboard operation processing method capable of enhancing safety protection

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340294A (en) * 2008-08-07 2009-01-07 深圳市紫金支点技术股份有限公司 Cipher keyboard apparatus and implementing method thereof

Patent Citations (3)

* 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
CN102566924A (en) * 2011-12-26 2012-07-11 重庆新媒农信科技有限公司 Soft keyboard operation processing method capable of enhancing safety protection

Also Published As

Publication number Publication date
CN102982272A (en) 2013-03-20

Similar Documents

Publication Publication Date Title
CN102968602B (en) A kind of method to set up of keyboard and device
CN102982272B (en) keyboard layout method and device
US10448247B2 (en) Method and apparatus for information verification
CN103488940A (en) Password protection system and method for application programs of intelligent equipment
KR20160085784A (en) Authenticating Device and Authenticating Method
CN104657655A (en) Unlocking method of mobile terminal and mobile terminal
GB2514419A (en) Improved user authentication system and method
CN105703901B (en) Encryption data input method and encryption data input unit
EP3312751A1 (en) Systems and methods for generating multi-dimensional password and authenticating thereof
CN105354455B (en) State switching method and electronic equipment
US20140013419A1 (en) Electronic device for multiple users and login method thereof
CN105068733A (en) Terminal unlocking method and apparatus
US9397992B1 (en) Authentication using color-shape pairings
CN103384249B (en) Network access verifying method, Apparatus and system, certificate server
CN104917773A (en) Identity authentication improving method for pattern puzzle password in Android system
US20140317415A1 (en) Multi-touch methods and devices
KR101474924B1 (en) Locking system and method using dial
KR20150000634A (en) Key input method and apparatus
CN105590044A (en) Information authentication method and apparatus
CN106446660A (en) Method and system for providing verification code and terminal device
CN104615267B (en) password input management method, system and electronic device
US20170357793A1 (en) Passnumber and image based method and computer program product to authenticate user identity
CN105447354B (en) Information processing method and device
CN105631308A (en) Password verification method and device and electronic device
US10127376B1 (en) Graphical password generation

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