Disclosure of Invention
The invention provides a password input method, a password input system, password keyboard equipment and terminal equipment, which are used for solving the problem of unsafe payment in the prior art.
The first aspect of the present invention provides a password input method, including:
receiving input password indication information sent by terminal equipment, wherein the input password indication information is indication information sent when the terminal equipment determines that the terminal equipment is matched with the password keyboard equipment according to the contact state of an electric contact of a set area and an electric contact of the password keyboard equipment;
acquiring password information to be input according to the input password indication information, wherein the password information to be input carries: a character string;
inquiring a preset coding table, and acquiring a contact mode of an electric contact of the password keyboard equipment corresponding to each character in the character string;
the method comprises the steps that the contact state of an electric contact of the password keyboard equipment and the contact state of the electric contact of a set area of the terminal equipment are controlled according to the contact mode of the electric contact of the password keyboard equipment corresponding to each character in sequence, so that the terminal equipment sends the contact state of the electric contact of the password keyboard equipment and the contact state of the electric contact of the set area of the terminal equipment to a server, and the server determines password information according to the contact state of the electric contact of the password keyboard equipment and the contact state of the electric contact of the set area of the terminal equipment and processes the password information.
Further, the obtaining of the password information to be input according to the input password indication information includes:
acquiring pre-stored password information, and determining the pre-stored password information as the password information to be input; or,
and acquiring password information input by a user, and determining the password information input by the user as the password information to be input.
A second aspect of the present invention provides a password input method, including:
acquiring the contact state of an electric contact of a set area and an electric contact of password keyboard equipment;
determining whether the terminal equipment is matched with the password keyboard equipment or not according to the contact state of the electric contact of the set area and the electric contact of the password keyboard equipment;
when the terminal equipment is matched with the password keyboard equipment, sending input password indication information to the password keyboard equipment so that the password keyboard equipment acquires password information to be input according to the input password indication information, wherein the password information to be input carries: inquiring a preset coding table to obtain a contact mode of an electrical contact of the password keyboard equipment corresponding to each character in the character string, and controlling the contact state of the electrical contact of the password keyboard equipment and the electrical contact of the set area of the terminal equipment according to the contact mode of the electrical contact of the password keyboard equipment corresponding to each character in sequence;
acquiring the contact state of an electric contact of the password keyboard equipment and an electric contact of a set area of the terminal equipment;
and inquiring a preset code table according to the contact state of the electric contact of the password keyboard equipment and the electric contact of the set area of the terminal equipment, acquiring the password information, and processing according to the password information.
Further, the querying a preset code table according to the contact state of the electrical contact of the password keyboard device and the electrical contact of the set area of the terminal device, acquiring the password information, and performing processing according to the password information includes:
determining a contact mode of the electric contact of the password keyboard equipment according to the contact state of the electric contact of the password keyboard equipment and the electric contact of the set area of the terminal equipment;
inquiring a preset code table according to the contact mode of the electric contact of the password keyboard equipment, and determining characters corresponding to the contact mode of the electric contact of the password keyboard equipment;
determining the password information according to characters corresponding to the contact mode of the electric contact of the password keyboard equipment;
and processing according to the password information.
A third aspect of the present invention provides a password keyboard apparatus comprising:
the terminal equipment comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving input password indicating information sent by the terminal equipment, and the input password indicating information is indicating information sent when the terminal equipment is matched with the password keyboard equipment according to the contact state of an electric contact of a set area and an electric contact of the password keyboard equipment;
an obtaining module, configured to obtain password information to be input according to the input password indication information, where the password information to be input carries: a character string;
the query module is used for querying a preset coding table and acquiring the contact mode of the electric contact of the password keyboard equipment corresponding to each character in the character string;
the control module is used for controlling the contact state of the electric contact of the password keyboard equipment and the electric contact of the set area of the terminal equipment in sequence according to the contact mode of the electric contact of the password keyboard equipment corresponding to each character, so that the terminal equipment sends the contact state of the electric contact of the password keyboard equipment and the electric contact of the set area of the terminal equipment to the server, and the server determines the password information according to the contact state of the electric contact of the password keyboard equipment and the electric contact of the set area of the terminal equipment and processes the password information.
Further, the obtaining module is specifically configured to,
acquiring pre-stored password information, and determining the pre-stored password information as the password information to be input; or,
and acquiring password information input by a user, and determining the password information input by the user as the password information to be input.
A fourth aspect of the present invention provides a terminal device, comprising:
the acquisition module is used for acquiring the contact state of the electric contact of the set area and the electric contact of the password keyboard equipment;
the determining module is used for determining whether the terminal equipment is matched with the password keyboard equipment according to the contact state of the electric contact of the set area and the electric contact of the password keyboard equipment;
a sending module, configured to send input password indication information to the password keyboard device when the terminal device is matched with the password keyboard device, so that the password keyboard device obtains password information to be input according to the input password indication information, where the password information to be input carries: inquiring a preset coding table to obtain a contact mode of an electrical contact of the password keyboard equipment corresponding to each character in the character string, and controlling the contact state of the electrical contact of the password keyboard equipment and the electrical contact of the set area of the terminal equipment according to the contact mode of the electrical contact of the password keyboard equipment corresponding to each character in sequence;
the acquisition module is further used for acquiring the contact state of the electric contact of the password keyboard equipment and the electric contact of the set area of the terminal equipment;
and the query module is used for querying a preset code table according to the contact state of the electric contact of the password keyboard equipment and the electric contact of the set area of the terminal equipment, acquiring the password information and processing according to the password information.
Further, the query module includes: the device comprises a determining unit, a query unit and a processing unit;
the determining unit is used for determining the contact mode of the electric contact of the password keyboard equipment according to the contact state of the electric contact of the password keyboard equipment and the electric contact of the set area of the terminal equipment;
the query unit is used for querying a preset code table according to the contact mode of the electric contact of the password keyboard equipment and determining the character corresponding to the contact mode of the electric contact of the password keyboard equipment;
the determining unit is further used for determining the password information according to characters corresponding to the contact mode of the electric contact of the password keyboard equipment;
and the processing unit is used for processing according to the password information.
A fifth aspect of the present invention provides a password input system comprising: a keypad device as described above, and a terminal device as described above.
In the invention, the password keyboard equipment and the terminal equipment interact through an electric contact, the terminal equipment determines whether the terminal equipment is matched with the password keyboard equipment according to the contact state of the electric contact of the set area and the electric contact of the password keyboard equipment, the password keyboard equipment converts password information to be input into the contact mode of the electric contact of the password keyboard equipment when the terminal equipment is matched, the contact state of the electric contact of the password keyboard equipment and the electric contact of the set area of the terminal equipment is controlled according to the contact mode of the electric contact of the password keyboard equipment, so that the terminal equipment can acquire the contact state of the electric contact of the password keyboard equipment and the electric contact of the set area of the terminal equipment and send the contact state to the server, the server determines the password information according to the contact state of the electric contact of the password keyboard equipment and the electric contact of the set area of the terminal equipment and processes according to the, therefore, the user password is prevented from being manually input by the user, the user password is prevented from being intercepted, and the payment safety is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of an embodiment of a password input method provided by the present invention, as shown in fig. 1, specifically including the following steps:
101. and receiving input password indication information sent by the terminal equipment, wherein the input password indication information is indication information sent when the terminal equipment determines that the terminal equipment is matched with the password keyboard equipment according to the contact state of the electric contact of the set area and the electric contact of the password keyboard equipment.
The execution main body of the password input method provided by the invention is password keyboard equipment, and the password keyboard equipment is external equipment of the terminal equipment and is used for performing operations such as password input and the like. The contact surface of the password keyboard device and the terminal device can be provided with a plurality of electric contacts for contacting with the electric contacts of the set area of the terminal device. The set area of the terminal device may be a touch screen area which is set by application software on the terminal device for inputting a password and is specially used for contacting with an electric contact of the password keyboard device. In order to facilitate the user to align the contact surface of the keypad device with the setting area, the contact surface of the keypad device may be configured to have the same shape as the setting area, such as a square, a circle, an oval, etc., as shown in fig. 2, which is a schematic view of the contact surface of the keypad device.
When a user aligns the contact surface of the password keyboard equipment to the set area, each electric contact on the contact surface of the password keyboard equipment is respectively contacted with the electric contact of the set area, and the terminal equipment can determine that the contact surface of the password keyboard equipment is aligned to the electric contact of the set area according to the contact condition of the electric contact of the password keyboard equipment and the electric contact of the set area, and determine that the password keyboard equipment is matched with the terminal equipment.
102. Acquiring password information to be input according to the input password indication information, wherein the password information to be input carries: a character string.
The password information to be input can be input in advance by a user through a touch screen or a keyboard on the password keyboard equipment and is prestored in the password keyboard equipment; alternatively, the password may be entered temporarily by the user or obtained from another device having password information stored therein by the password keyboard device. Therefore, step 102 may specifically include: acquiring pre-stored password information, and determining the pre-stored password information as password information to be input; or acquiring password information input by the user, and determining the password information input by the user as the password information to be input.
103. And inquiring a preset code table to obtain the contact mode of the electric contact of the password keyboard equipment corresponding to each character in the character string.
The code table may be pre-stored with the corresponding relationship between the contact mode of the electrical contacts of the cipher keyboard device and the characters. The number of the electric contacts of the password keyboard equipment can be multiple, and the contact modes of the electric contacts can be two types: contact and no contact. In the code table, the contact mode of the electrical contact corresponding to one character may be the contact mode of all electrical contacts of the password keyboard device. For example, if the keypad device has 10 electrical contacts, the contact pattern of the 10 electrical contacts constitutes an array, and the character "a" may correspond to "touch, no touch, no touch".
104. And sequentially controlling the contact state of the electrical contact of the password keyboard equipment and the electrical contact of the set area of the terminal equipment according to the contact mode of the electrical contact of the password keyboard equipment corresponding to each character, so that the terminal equipment sends the contact state of the electrical contact of the password keyboard equipment and the electrical contact of the set area of the terminal equipment to a server, and the server determines password information according to the contact state of the electrical contact of the password keyboard equipment and the electrical contact of the set area of the terminal equipment and processes according to the password information.
In addition, in this embodiment, after acquiring the contact state between the electrical contact of the password keyboard device and the electrical contact of the set area of the terminal device, the terminal device may determine the password information according to the contact state between the electrical contact of the password keyboard device and the electrical contact of the set area of the terminal device, and send the password information to the server for processing. It should be noted that, at this time, the security of payment is further improved, the character string carried in the password information to be input may also be an encrypted character string, so that the password information acquired by the terminal device is the encrypted character string, thereby preventing the character string acquired by the terminal device from being intercepted by a trojan horse to cause leakage, and improving the security of payment.
In the embodiment, the password keyboard device interacts with the terminal device through the electric contact, the terminal device determines whether the terminal device is matched with the password keyboard device according to the contact state of the electric contact of the set area and the electric contact of the password keyboard device, the password keyboard device converts password information to be input into the contact mode of the electric contact of the password keyboard device during matching, the contact state of the electric contact of the password keyboard device and the electric contact of the set area of the terminal device is controlled according to the contact mode of the electric contact of the password keyboard device, so that the terminal device can acquire the contact state of the electric contact of the password keyboard device and the electric contact of the set area of the terminal device and send the contact state to the server, the server determines the password information according to the contact state of the electric contact of the password keyboard device and the electric contact of the set area of the terminal device, and processes the password information, therefore, the user password is prevented from being manually input by the user, the user password is prevented from being intercepted, and the payment safety is improved.
Fig. 3 is a flowchart of another embodiment of the password input method provided by the present invention, as shown in fig. 3, specifically including the following steps:
301. and acquiring the contact state of the electric contact of the set area and the electric contact of the password keyboard equipment.
The execution main body of the password input method provided by the invention is terminal equipment. The terminal equipment can be provided with a capacitive touch screen, and the contact state of the electric contact of the set area and the electric contact of the password keyboard equipment can be acquired through the capacitive touch screen terminal equipment.
302. And determining whether the terminal equipment is matched with the password keyboard equipment or not according to the contact state of the electric contact of the set area and the electric contact of the password keyboard equipment.
After the terminal device obtains the contact state of the electric contact of the set area and the electric contact of the password keyboard device, the contact mode of the electric contact of the password keyboard device can be determined according to the contact state of the electric contact of the set area and the electric contact of the password keyboard device, whether all the electric contacts of the password keyboard device contact the capacitive touch screen or not is determined according to the contact mode, if all the electric contacts of the password keyboard device contact the capacitive touch screen, the password keyboard device is determined to be aligned to the set area, and the password keyboard device is indicated to be matched with the terminal device. In order to facilitate the user to align the password keyboard device with the setting area, the contact surface of the password keyboard device and the terminal device may be set to the same shape as the setting area, such as square, circle, ellipse, etc.
303. When the terminal equipment is matched with the password keyboard equipment, the password keyboard equipment is sent with input password indication information, so that the password keyboard equipment obtains password information to be input according to the input password indication information, and the password information to be input carries: and inquiring a preset code table to obtain the contact mode of the electrical contact of the password keyboard equipment corresponding to each character in the character string, and controlling the contact state of the electrical contact of the password keyboard equipment and the electrical contact of the set area of the terminal equipment according to the contact mode of the electrical contact of the password keyboard equipment corresponding to each character in sequence.
The input password indication information is used for indicating that the password keyboard equipment and the terminal equipment are successfully matched.
304. And acquiring the contact state of the electric contact of the password keyboard equipment and the electric contact of the set area of the terminal equipment.
305. And inquiring a preset code table according to the contact state of the electric contact of the password keyboard equipment and the electric contact of the set area of the terminal equipment, acquiring password information, and processing according to the password information.
The code table may be pre-stored with the corresponding relationship between the contact mode of the electrical contacts of the cipher keyboard device and the characters. The number of the electric contacts of the password keyboard equipment can be multiple, and the contact modes of the electric contacts can be two types: contact and no contact. In the code table, the contact mode of the electrical contact corresponding to one character may be the contact mode of all electrical contacts of the password keyboard device.
Further, step 305 may specifically include: determining the contact mode of the electric contact of the password keyboard equipment according to the contact state of the electric contact of the password keyboard equipment and the electric contact of the set area of the terminal equipment; inquiring a preset coding table according to the contact mode of the electric contact of the password keyboard equipment, and determining characters corresponding to the contact mode of the electric contact of the password keyboard equipment; determining password information according to characters corresponding to the contact mode of the electric contact of the password keyboard equipment; and processing according to the password information.
In the embodiment, the password keyboard device interacts with the terminal device through the electric contact, the terminal device determines whether the terminal device is matched with the password keyboard device according to the contact state of the electric contact of the set area and the electric contact of the password keyboard device, the password keyboard device converts password information to be input into the contact mode of the electric contact of the password keyboard device during matching, the contact state of the electric contact of the password keyboard device and the electric contact of the set area of the terminal device is controlled according to the contact mode of the electric contact of the password keyboard device, so that the terminal device can acquire the contact state of the electric contact of the password keyboard device and the electric contact of the set area of the terminal device and send the contact state to the server, the server determines the password information according to the contact state of the electric contact of the password keyboard device and the electric contact of the set area of the terminal device, and processes the password information, therefore, the user password is prevented from being manually input by the user, the user password is prevented from being intercepted, and the payment safety is improved.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Fig. 4 is a schematic structural diagram of an embodiment of a password keyboard apparatus provided in the present invention, as shown in fig. 4, including:
the receiving module 41 is configured to receive input password indication information sent by the terminal device, where the input password indication information is indication information sent when the terminal device determines that the terminal device is matched with the password keyboard device according to a contact state between an electrical contact of the set area and an electrical contact of the password keyboard device;
an obtaining module 42, configured to obtain, according to the input password indication information, password information to be input, where the password information to be input carries: a character string;
the query module 43 is configured to query a preset code table, and obtain a contact manner of an electrical contact of the password keyboard device corresponding to each character in the character string;
and the control module 44 is configured to sequentially control the contact states of the electrical contacts of the password keyboard device and the electrical contacts of the set area of the terminal device according to the contact manner of the electrical contacts of the password keyboard device corresponding to each character, so that the terminal device sends the contact states of the electrical contacts of the password keyboard device and the electrical contacts of the set area of the terminal device to the server, and the server determines password information according to the contact states of the electrical contacts of the password keyboard device and the electrical contacts of the set area of the terminal device and performs processing according to the password information.
Further, the obtaining module 42 is specifically configured to,
acquiring pre-stored password information, and determining the pre-stored password information as password information to be input; or acquiring password information input by the user, and determining the password information input by the user as the password information to be input.
In the embodiment, the password keyboard device interacts with the terminal device through the electric contact, the terminal device determines whether the terminal device is matched with the password keyboard device according to the contact state of the electric contact of the set area and the electric contact of the password keyboard device, the password keyboard device converts password information to be input into the contact mode of the electric contact of the password keyboard device during matching, the contact state of the electric contact of the password keyboard device and the electric contact of the set area of the terminal device is controlled according to the contact mode of the electric contact of the password keyboard device, so that the terminal device can acquire the contact state of the electric contact of the password keyboard device and the electric contact of the set area of the terminal device and send the contact state to the server, the server determines the password information according to the contact state of the electric contact of the password keyboard device and the electric contact of the set area of the terminal device, and processes the password information, therefore, the user password is prevented from being manually input by the user, the user password is prevented from being intercepted, and the payment safety is improved.
Fig. 5 is a schematic structural diagram of an embodiment of a terminal device provided in the present invention, as shown in fig. 5, including:
an obtaining module 51, configured to obtain a contact state between an electrical contact of a set area and an electrical contact of a password keyboard device;
the determining module 52 is configured to determine whether the terminal device is matched with the password keyboard device according to the contact state between the electrical contact of the setting area and the electrical contact of the password keyboard device;
a sending module 53, configured to send input password indication information to the password keyboard device when the terminal device is matched with the password keyboard device, so that the password keyboard device obtains password information to be input according to the input password indication information, where the password information to be input carries: inquiring a preset coding table to obtain a contact mode of an electrical contact of the password keyboard equipment corresponding to each character in the character string, and controlling the contact state of the electrical contact of the password keyboard equipment and the electrical contact of the set area of the terminal equipment according to the contact mode of the electrical contact of the password keyboard equipment corresponding to each character in sequence;
the obtaining module 51 is further configured to obtain a contact state between an electrical contact of the password keyboard device and an electrical contact of a set area of the terminal device;
and the query module 54 is configured to query a preset code table according to a contact state between an electrical contact of the password keyboard device and an electrical contact of a set area of the terminal device, acquire password information, and process according to the password information.
Further, as shown in fig. 6, the query module 54 includes: a determination unit 541, a query unit 542, and a processing unit 543;
a determining unit 541, configured to determine a contact manner of the electrical contact of the password keyboard device according to a contact state of the electrical contact of the password keyboard device and the electrical contact of the setting area of the terminal device;
the query unit 542 is configured to query a preset code table according to a contact manner of an electrical contact of the password keyboard device, and determine a character corresponding to the contact manner of the electrical contact of the password keyboard device;
a determination unit 541 further configured to determine password information according to characters corresponding to a contact manner of the electrical contacts of the password keyboard apparatus;
and a processing unit 543, configured to perform processing according to the password information.
In addition, the present invention also provides a password input system, comprising: a keypad device as described above, and a terminal device as described above.
In the embodiment, the password keyboard device interacts with the terminal device through the electric contact, the terminal device determines whether the terminal device is matched with the password keyboard device according to the contact state of the electric contact of the set area and the electric contact of the password keyboard device, the password keyboard device converts password information to be input into the contact mode of the electric contact of the password keyboard device during matching, the contact state of the electric contact of the password keyboard device and the electric contact of the set area of the terminal device is controlled according to the contact mode of the electric contact of the password keyboard device, so that the terminal device can acquire the contact state of the electric contact of the password keyboard device and the electric contact of the set area of the terminal device and send the contact state to the server, the server determines the password information according to the contact state of the electric contact of the password keyboard device and the electric contact of the set area of the terminal device, and processes the password information, therefore, the user password is prevented from being manually input by the user, the user password is prevented from being intercepted, and the payment safety is improved.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.