Method and device for generating random numeric keyboard
By dividing and randomly sorting the numeric keyboard, random number keyboards are generated, which solves the problem that users in the prior art find the correct number and improves password input efficiency and security.
Patent Information
- Application Number
- CN202110763080.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-06
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2041-07-06
AI Technical Summary
When entering passwords on existing secure numeric keyboards, random change in numeric positions makes it difficult for users to find the correct number, especially for elderly people or people with poor eyesight, which increases the risk of password leakage.
Random numeric keyboards are generated by dividing the numeric keyboards and determining the color codes for each sub-region. The numbers in each sub-region are randomly sorted.
It reduces the number of searches for numbers, improves the efficiency of password input, reduces the risk of password leakage, and improves the security of transactions.
Smart Images

Figure CN113449280B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, in particular to an intelligent terminal in the field of financial technology, and specifically to a method and device for generating a random numeric keyboard. Background Art
[0002] At present, the input of user passwords all adopts secure numeric keyboards, which can protect the security of user passwords and prevent malicious programs from reading them. At present, secure numeric keyboards are used in many scenarios, such as online banking of financial institutions, smart terminals, mobile APPs, online payments and POS payments.
[0003] On the secure numeric keypad, the password numeric keypad uses 10 numbers that randomly change positions, and then uses an encryption algorithm to restore the numeric password entered by the user. This method has a significant disadvantage: it is more troublesome to find the numbers, especially for the elderly or people with poor eyesight. They can't find the input numbers for a long time, and some simply ask the staff to enter them for them. This poses a risk of password leakage and does not meet security requirements. Summary of the invention
[0004] In view of the problems in the prior art, the present invention provides a method and device for generating a random numeric keyboard, which can reduce the risk of password leakage and improve the security of transactions.
[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0006] In a first aspect, the present invention provides a method for generating a random numeric keyboard, comprising:
[0007] Receiving an instruction to enter a password;
[0008] Divide the numeric keypad into areas and determine the color code corresponding to each sub-area;
[0009] Randomly sort the numbers in each word area;
[0010] A random numeric keypad is generated based on the color code corresponding to each sub-region and the order of the numbers within each word region.
[0011] In one embodiment, after receiving the instruction to input a password, the method further includes:
[0012] Determine the layout of the current terminal's numeric keyboard;
[0013] The area division method of the numeric keyboard is determined according to the layout method of the numeric keyboard.
[0014] In one embodiment, the layout includes: nine-square grid and full keyboard;
[0015] Correspondingly, determining the area division method of the numeric keyboard according to the layout method of the numeric keyboard includes:
[0016] The layout mode of the numeric keyboard is a full keyboard, then the area division mode of the numeric keyboard is determined to be: a first area division mode;
[0017] If the layout of the numeric keyboard is a nine-square grid, then the area division method of the numeric keyboard is determined to be: the second area division method or the third area division method;
[0018] Among them, the first area is divided as follows: the first three keys of the number keys are the first sub-area, the middle three keys of the number keys are the second sub-area, and the last four keys of the number keys are the third sub-area; the second area is divided as follows: the first horizontal row of the number keys is the first sub-area, the second horizontal row of the number keys is the second sub-area, the third horizontal row of the number keys and the fourth horizontal row of the number keys are the third sub-area; the third area is divided as follows: the first vertical row of the number keys is the first sub-area, the second vertical row of the number keys is the second sub-area, and the third vertical row of the number keys is the third sub-area.
[0019] In one embodiment, the randomly sorting the numbers in each word region includes:
[0020] Determine a first number corresponding to any number key in the sub-area in a random manner;
[0021] Repeated execution: determine a second number corresponding to any one of the remaining number keys in the sub-area based on a random manner, and the second number is not equal to the numbers corresponding to all the determined number keys.
[0022] In a second aspect, the present invention provides a device for generating a random numeric keyboard, comprising:
[0023] A receiving module, used for receiving an instruction to input a password;
[0024] A division module, used to divide the numeric keyboard into regions and determine the color code corresponding to each sub-region;
[0025] A sorting module, used to randomly sort the numbers in each word area;
[0026] The generating module is used to generate a random numeric keyboard based on the color code corresponding to each sub-area and the order of the numbers in each word area.
[0027] In one embodiment, it further includes:
[0028] A judgment module, used to judge the layout mode of the numeric keyboard of the current terminal;
[0029] The area module is used to determine the area division method of the numeric keyboard according to the layout method of the numeric keyboard.
[0030] In one embodiment, the layout includes: nine-square grid and full keyboard;
[0031] Correspondingly, the regional module includes:
[0032] A first area unit, for when the layout of the numeric keyboard is a full keyboard, the area division method of the numeric keyboard is determined to be: a first area division method;
[0033] The second area unit is used for the layout mode of the numeric keyboard as a nine-square grid, and the area division mode of the numeric keyboard is determined as: the second area division mode or the third area division mode;
[0034] Among them, the first area is divided as follows: the first three keys of the number keys are the first sub-area, the middle three keys of the number keys are the second sub-area, and the last four keys of the number keys are the third sub-area; the second area is divided as follows: the first horizontal row of the number keys is the first sub-area, the second horizontal row of the number keys is the second sub-area, the third horizontal row of the number keys and the fourth horizontal row of the number keys are the third sub-area; the third area is divided as follows: the first vertical row of the number keys is the first sub-area, the second vertical row of the number keys is the second sub-area, and the third vertical row of the number keys is the third sub-area.
[0035] In one embodiment, the sorting module includes:
[0036] A first sorting unit, configured to determine a first number corresponding to any number key in the sub-area in a random manner;
[0037] The second sorting unit is used to repeatedly execute: determining a second number corresponding to any one of the remaining number keys in the sub-area based on a random manner, and the second number is not equal to the numbers corresponding to all the determined number keys.
[0038] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for generating a random numeric keyboard when executing the program.
[0039] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for generating a random numeric keyboard.
[0040] It can be seen from the above technical solution that the present invention provides a method and device for generating a random numeric keyboard, which receives an instruction to input a password; divides the numeric keyboard into regions and determines the color code corresponding to each sub-region; randomly sorts the numbers in each word region; and generates a random numeric keyboard based on the color code corresponding to each sub-region and the sorting of the numbers in each word region. The number of searches for numbers can be reduced, thereby improving the efficiency of password input, reducing the risk of password leakage, and improving the security of transactions. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 Schematic diagram of a first flow chart of a method for generating a random numeric keyboard in an embodiment of the present invention.
[0043] Figure 2 Schematic diagram of a second flow chart of the method for generating a random numeric keyboard in an embodiment of the present invention.
[0044] Figure 3 It is a schematic diagram of the first area division method in the method for generating a random numeric keyboard in an embodiment of the present invention.
[0045] Figure 4 It is a schematic diagram of the second area division method in the method for generating a random numeric keyboard in an embodiment of the present invention.
[0046] Figure 5 It is a schematic diagram of the third area division method in the method for generating a random numeric keyboard in an embodiment of the present invention.
[0047] Figure 6 4 is a flow chart of step S103 in the method for generating a random numeric keyboard in an embodiment of the present invention.
[0048] Figure 7 It is a first structural schematic diagram of a device for generating a random numeric keyboard in an embodiment of the present invention.
[0049] Figure 8 Schematic diagram of the second structure of the device for generating a random numeric keyboard in an embodiment of the present invention.
[0050] Fig. 9 Schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] The present invention provides an embodiment of a method for generating a random numeric keyboard, see Figure 1 The method for generating a random numeric keyboard specifically includes the following contents:
[0053] S101: receiving a password input instruction;
[0054] In this step, the received password input instruction may be an instruction sent by an external terminal to the terminal where the user is located, or an instruction generated by the terminal where the user is located. The password input instruction is used to indicate that the user of the terminal where the user is located needs to enter a password number.
[0055] S102: Divide the numeric keyboard into regions and determine a color code corresponding to each sub-region;
[0056] In this step, the numbers on the numeric keypad are divided into three areas. The number 123 is in area R (the color code is red), and at the 123 position on the original keyboard, the number is marked in red; the number 456 is in area G (the color code is green), and at the 456 position on the original keyboard, the number is marked in green; the number 7890 is in area B (the color code is blue), and at the 7890 position on the original keyboard, the number is marked in blue.
[0057] S103: Randomly sort the numbers in each word area;
[0058] In this step, the numbers in each area can only be randomly exchanged within the area.
[0059] S104: Generate a random numeric keyboard based on the color code corresponding to each sub-area and the order of the numbers in each word area.
[0060] In this step, two methods, namely, digital partitioning and color marking, are used to arrange and mark the numbers, which makes it easy to find the numbers and increases the input speed. It is easy for people with poor eyesight to input, reduces the difficulty of input, and ensures the security of the password.
[0061] From the above description, it can be seen that the method for generating a random numeric keyboard provided by the embodiment of the present invention receives an instruction to input a password; divides the numeric keyboard into regions and determines the color code corresponding to each sub-region; randomly sorts the numbers in each word region; and generates a random numeric keyboard based on the color code corresponding to each sub-region and the sorting of the numbers in each word region. The method can reduce the number of searches for numbers, thereby improving the efficiency of password input, reducing the risk of password leakage, and improving the security of transactions.
[0062] In one embodiment of the present invention, see Figure 2 After step S101 of the random number keyboard generation method, the following contents are specifically included:
[0063] S105: Determine the layout of the numeric keyboard of the current terminal;
[0064] S106: Determine the area division method of the numeric keyboard according to the layout method of the numeric keyboard.
[0065] Correspondingly, in step S102 , the numeric keyboard is divided into areas, including: dividing the numeric keyboard into areas based on the numeric keyboard area division method.
[0066] In this embodiment, different area division modes may be determined according to different layout modes of the numeric keypad of the current terminal (the terminal itself).
[0067] The layout modes in this embodiment include: nine-square grid and full keyboard;
[0068] Correspondingly, determining the area division method of the numeric keyboard according to the layout method of the numeric keyboard includes:
[0069] The layout mode of the numeric keyboard is a full keyboard, then the area division mode of the numeric keyboard is determined to be: a first area division mode;
[0070] If the layout of the numeric keyboard is a nine-square grid, then the area division method of the numeric keyboard is determined to be: the second area division method or the third area division method;
[0071] Among them, see Figure 3 , the first area is divided as follows: the first three keys of the numeric keypad (numbers 123) are the first sub-area, the middle three keys of the numeric keypad (numbers 456) are the second sub-area, and the last four keys of the numeric keypad (numbers 7890) are the third sub-area;
[0072] See also Figure 4, the second area is divided as follows: the first row of numeric keys (numbers 123) is the first sub-area, the second row of numeric keys (numbers 456) is the second sub-area, the third row of numeric keys (numbers 789) and the fourth row of numeric keys (number 0) are the third sub-area;
[0073] See also Figure 5 The third area is divided as follows: the first vertical row of numeric keys (number 147) is the first sub-area, the second vertical row of numeric keys (2580) is the second sub-area, and the third vertical row of numeric keys (number 369) is the third sub-area.
[0074] In this embodiment, see Figure 6 The specific implementation process of step S103 is as follows:
[0075] S1031: Determine a first number corresponding to any number key in the sub-area in a random manner;
[0076] S1032: Repeat execution: determine a second number corresponding to any one of the remaining number keys in the sub-area in a random manner, and the second number is not equal to the numbers corresponding to all the determined number keys.
[0077] In this embodiment, a random method is used to determine the numbers corresponding to the numeric keys in the sub-area. After the number corresponding to the first numeric key is determined, the numbers corresponding to the subsequent numeric keys (the second numeric key and the third numeric key) cannot be the same as the numbers corresponding to the previous numeric keys, thereby achieving random distribution of the numeric keys in the sub-area.
[0078] Take the first sub-area as an example:
[0079] The first number key in the first sub-area randomly generates a random number from 1 to 3, and the second number key randomly generates a random number from 1 to 3, but the random number generated by the second number key cannot be the same as the random number generated by the first number key. If they are the same, randomization needs to be performed again until the random number generated by the second number key is different from the random number generated by the first number key.
[0080] The third number key randomly generates a random number from 1 to 3, but the random number generated by the second number key cannot be the same as the random number generated by the first number key and the random number generated by the second number key, thereby achieving random distribution of number keys in the sub-area.
[0081] To further illustrate the present solution, the present invention provides a specific implementation method for randomly sorting the numbers in each word area in a method for generating a random numeric keyboard, which specifically includes the following contents:
[0082] The ten number keys are defined as R1, R2, R3, G1, G2, G3, B1, B2, B3, B4 respectively.
[0083] (1) Number random placement function PUTNUMER(), input: None; returns array Mynum
[10] and assigns it to R1-B4;
[0084]
[0085]
[0086] (2) Number acquisition function GETNUMER(inkey), input: keyboard position R1-B4; return represents the number putkey;
[0087]
[0088]
[0089] From the above description, it can be seen that the method for generating a random numeric keyboard provided by the embodiment of the present invention has the following beneficial effects:
[0090] 1. It is easy to find numbers and increases the input speed.
[0091] 2. It is easy for people with poor eyesight to input, reducing the difficulty of input.
[0092] 3. Ensure the security of password.
[0093] The embodiment of the present invention provides a specific implementation of a random number keyboard generation device that can implement all the contents of the random number keyboard generation method, see Figure 7 , the random number keyboard generation device specifically includes the following contents:
[0094] A receiving module 10, configured to receive an instruction to input a password;
[0095] A division module 20, for dividing the numeric keyboard into regions and determining a color code corresponding to each sub-region;
[0096] A sorting module 30, for randomly sorting the numbers in each word region;
[0097] The generating module 40 is used to generate a random numeric keyboard based on the color code corresponding to each sub-region and the order of the numbers in each word region.
[0098] In one embodiment, the sorting module includes:
[0099] A first sorting unit, configured to determine a first number corresponding to any number key in the sub-area in a random manner;
[0100] The second sorting unit is used to repeatedly execute: determining a second number corresponding to any one of the remaining number keys in the sub-area based on a random manner, and the second number is not equal to the numbers corresponding to all the determined number keys.
[0101] In one embodiment of the present invention, see Figure 8 , the random number keyboard generation device specifically includes the following contents:
[0102] The judging module 50 is used to judge the layout of the numeric keyboard of the current terminal;
[0103] The area module 60 is used to determine the area division method of the numeric keyboard according to the layout method of the numeric keyboard.
[0104] In one embodiment, the layout includes: nine-square grid and full keyboard;
[0105] Correspondingly, the regional module 60 includes:
[0106] A first area unit, for when the layout of the numeric keyboard is a full keyboard, the area division method of the numeric keyboard is determined to be: a first area division method;
[0107] The second area unit is used for the layout mode of the numeric keyboard as a nine-square grid, and the area division mode of the numeric keyboard is determined as: the second area division mode or the third area division mode;
[0108] Among them, the first area is divided as follows: the first three keys of the number keys are the first sub-area, the middle three keys of the number keys are the second sub-area, and the last four keys of the number keys are the third sub-area; the second area is divided as follows: the first horizontal row of the number keys is the first sub-area, the second horizontal row of the number keys is the second sub-area, the third horizontal row of the number keys and the fourth horizontal row of the number keys are the third sub-area; the third area is divided as follows: the first vertical row of the number keys is the first sub-area, the second vertical row of the number keys is the second sub-area, and the third vertical row of the number keys is the third sub-area.
[0109] The embodiment of the random numeric keyboard generation device provided by the present invention can be specifically used to execute the processing flow of the embodiment of the random numeric keyboard generation method in the above embodiment. Its functions are not repeated here, and reference can be made to the detailed description of the above method embodiment.
[0110] From the above description, it can be seen that the random numeric keyboard generation device provided by the embodiment of the present invention receives an instruction to input a password; divides the numeric keyboard into regions and determines the color code corresponding to each sub-region; randomly sorts the numbers in each word region; and generates a random numeric keyboard based on the color code corresponding to each sub-region and the sorting of the numbers in each word region. It can reduce the number of searches for numbers, thereby improving the efficiency of password input, reducing the risk of password leakage, and improving the security of transactions.
[0111] The present application provides an embodiment of an electronic device for implementing all or part of the content of the method for generating a random numeric keyboard. The electronic device specifically includes the following content:
[0112] A processor, a memory, a communications interface, and a bus; wherein the processor, the memory, and the communications interface communicate with each other through the bus; the communications interface is used to realize information transmission between related devices; the electronic device can be a desktop computer, a tablet computer, a mobile terminal, etc., but the present embodiment is not limited thereto. In the present embodiment, the electronic device can be implemented with reference to the embodiment for realizing the method for generating the random numeric keyboard and the embodiment for realizing the device for generating the random numeric keyboard, and the contents thereof are incorporated herein, and the repeated parts are not repeated.
[0113] Fig. 9 FIG. 9 is a schematic block diagram of the system structure of the electronic device 9600 according to an embodiment of the present application. Fig. 9 As shown, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. It is worth noting that Fig. 9 is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.
[0114] In one embodiment, the random number keyboard generation function may be integrated into the central processing unit 9100. The central processing unit 9100 may be configured to perform the following control:
[0115] An instruction to input a password is received; a numeric keypad is divided into regions and a color code corresponding to each sub-region is determined; numbers in each word region are randomly sorted; and a random numeric keypad is generated based on the color code corresponding to each sub-region and the sorting of numbers in each word region.
[0116] From the above description, it can be seen that the electronic device provided by the embodiment of the present application receives an instruction to input a password; divides the numeric keyboard into regions and determines the color code corresponding to each sub-region; randomly sorts the numbers in each word region; and generates a random numeric keyboard based on the color code corresponding to each sub-region and the sorting of the numbers in each word region. It can reduce the number of searches for numbers, thereby improving the efficiency of password input, reducing the risk of password leakage, and improving the security of transactions.
[0117] In another embodiment, the random number keyboard generation device can be configured separately from the central processing unit 9100. For example, the random number keyboard generation device can be configured as a chip connected to the central processing unit 9100, and the random number keyboard generation function can be realized through the control of the central processing unit.
[0118] like Fig. 9 As shown, the electronic device 9600 may also include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily have to include Fig. 9 In addition, the electronic device 9600 may also include Fig. 9 For components not shown, reference may be made to the prior art.
[0119] like Fig. 9 As shown, the central processing unit 9100 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor device and / or logic device. The central processing unit 9100 receives input and controls the operation of various components of the electronic device 9600.
[0120] The memory 9140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The above-mentioned information related to the failure may be stored, and a program for executing the relevant information may also be stored. The CPU 9100 may execute the program stored in the memory 9140 to implement information storage or processing, etc.
[0121] The input unit 9120 provides input to the central processing unit 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used to display display objects such as images and texts. The display may be, for example, an LCD display, but is not limited thereto.
[0122] The memory 9140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142, which is used to store application programs and function programs or processes for executing the operation of the electronic device 9600 through the central processor 9100.
[0123] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various drivers for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).
[0124] The communication module 9110 is a transmitter / receiver 9110 that sends and receives signals via an antenna 9111. The communication module (transmitter / receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.
[0125] Based on different communication technologies, multiple communication modules 9110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module and / or a wireless LAN module, etc. The communication module (transmitter / receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide an audio output via the speaker 9131 and receive an audio input from the microphone 9132, thereby realizing a common telecommunication function. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 9130 is also coupled to the central processor 9100, so that recording can be performed on the local machine through the microphone 9132, and the sound stored on the local machine can be played through the speaker 9131.
[0126] The embodiment of the present invention also provides a computer-readable storage medium capable of implementing all the steps in the method for generating a random numeric keyboard in the above embodiment. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, all the steps of the method for generating a random numeric keyboard in the above embodiment are implemented. For example, when the processor executes the computer program, the following steps are implemented:
[0127] An instruction to input a password is received; a numeric keypad is divided into regions and a color code corresponding to each sub-region is determined; numbers in each word region are randomly sorted; and a random numeric keypad is generated based on the color code corresponding to each sub-region and the sorting of numbers in each word region.
[0128] From the above description, it can be seen that the computer-readable storage medium provided by the embodiment of the present invention can reduce the number of searches for numbers, thereby improving the efficiency of password input, reducing the risk of password leakage, and improving the security of transactions by receiving an instruction to input a password; dividing the numeric keyboard into regions and determining the color code corresponding to each sub-region; randomly sorting the numbers in each word region; and generating a random numeric keyboard based on the color code corresponding to each sub-region and the sorting of the numbers in each word region.
[0129] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, devices (systems) or computer program products. Therefore, the embodiments of this specification may take the form of complete hardware embodiments, complete software embodiments or embodiments combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0130] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as a combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0131] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0132] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0133] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict. The present invention is not limited to any single aspect, any single embodiment, or any combination and / or replacement of these aspects and / or embodiments. Moreover, each aspect and / or embodiment of the present invention can be used alone or in combination with one or more other aspects and / or embodiments thereof.
[0134] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.
Claims
1. A method for generating a random numeric keyboard, It is characterized in that include: Receiving an instruction to enter a password; Determine the layout of the current terminal's numeric keyboard; Determining a region division method of the numeric keyboard according to a layout method of the numeric keyboard; Divide the numeric keyboard into regions based on the region division method of the numeric keyboard and determine the color code corresponding to each sub-region; Randomly sort the numbers in each sub-area respectively; each sub-area includes at least two number keys; A random number pad is generated based on the color code corresponding to each sub-region and the order of the numbers within each sub-region.
2. The method for generating a random numeric keyboard according to claim 1, It is characterized in that The layout modes include: nine-square grid and full keyboard; Correspondingly, determining the area division method of the numeric keyboard according to the layout method of the numeric keyboard includes: In the case where the layout mode of the numeric keyboard is a full keyboard, determining the area division mode of the numeric keyboard as: a first area division mode; When the layout of the numeric keyboard is a nine-square grid, determining the area division method of the numeric keyboard to be: the second area division method or the third area division method; Among them, the first area is divided as follows: the first three keys of the number keys are the first sub-area, the middle three keys of the number keys are the second sub-area, and the last four keys of the number keys are the third sub-area; the second area is divided as follows: the first horizontal row of the number keys is the first sub-area, the second horizontal row of the number keys is the second sub-area, the third horizontal row of the number keys and the fourth horizontal row of the number keys are the third sub-area; the third area is divided as follows: the first vertical row of the number keys is the first sub-area, the second vertical row of the number keys is the second sub-area, and the third vertical row of the number keys is the third sub-area.
3. The method for generating a random numeric keyboard according to claim 1, It is characterized in that The random sorting of numbers in each sub-region comprises: Determine a first number corresponding to any number key in the sub-area in a random manner; Repeated execution: determine a second number corresponding to any one of the remaining number keys in the sub-area based on a random manner, and the second number is not equal to the numbers corresponding to all the determined number keys.
4. A device for generating a random numeric keyboard, It is characterized in that include: A receiving module, used for receiving an instruction to input a password; A judgment module, used to judge the layout of the numeric keyboard of the current terminal; An area module, used for determining an area division mode of the numeric keyboard according to a layout mode of the numeric keyboard; A division module, used for dividing the numeric keyboard into regions based on the region division method of the numeric keyboard and determining a color code corresponding to each sub-region; A sorting module, used for randomly sorting the numbers in each sub-area in each sub-area; each sub-area includes at least two number keys; The generating module is used to generate a random numeric keyboard based on the color code corresponding to each sub-region and the order of the numbers in each sub-region.
5. The random number keyboard generator according to claim 4, It is characterized in that The layout modes include: nine-square grid and full keyboard; Correspondingly, the regional module includes: A first area unit, used for determining, when the layout mode of the numeric keyboard is a full keyboard, that the area division mode of the numeric keyboard is a first area division mode; A second area unit is used to determine, when the layout of the numeric keyboard is a nine-square grid, whether the area division mode of the numeric keyboard is the second area division mode or the third area division mode; Among them, the first area is divided as follows: the first three keys of the number keys are the first sub-area, the middle three keys of the number keys are the second sub-area, and the last four keys of the number keys are the third sub-area; the second area is divided as follows: the first horizontal row of the number keys is the first sub-area, the second horizontal row of the number keys is the second sub-area, the third horizontal row of the number keys and the fourth horizontal row of the number keys are the third sub-area; the third area is divided as follows: the first vertical row of the number keys is the first sub-area, the second vertical row of the number keys is the second sub-area, and the third vertical row of the number keys is the third sub-area.
6. The random number keyboard generator according to claim 4, It is characterized in that The sorting module comprises: A first sorting unit, configured to determine a first number corresponding to any number key in the sub-area in a random manner; The second sorting unit is used to repeatedly execute: determining a second number corresponding to any one of the remaining number keys in the sub-area based on a random manner, and the second number is not equal to the numbers corresponding to all the determined number keys.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the method for generating a random numeric keyboard according to any one of claims 1 to 3 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method for generating a random numeric keyboard as described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Electronic display keyboard suitable for touch screen of electronic device
CN105404419A
Virtual keyboard generation method and device, electronic equipment and computer storage medium
CN111290693A