CN111199060A - Verification method and device based on direction key and computer storage medium - Google Patents
Verification method and device based on direction key and computer storage medium Download PDFInfo
- Publication number
- CN111199060A CN111199060A CN201811367357.8A CN201811367357A CN111199060A CN 111199060 A CN111199060 A CN 111199060A CN 201811367357 A CN201811367357 A CN 201811367357A CN 111199060 A CN111199060 A CN 111199060A
- Authority
- CN
- China
- Prior art keywords
- verification
- verified
- direction key
- information
- code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/82—Protecting input, output or interconnection devices
- G06F21/83—Protecting input, output or interconnection devices input devices, e.g. keyboards, mice or controllers thereof
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2133—Verifying human interaction, e.g., Captcha
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Input From Keyboards Or The Like (AREA)
Abstract
The invention discloses a verification method based on a direction key, and belongs to the technical field of network security. The method comprises the following steps: receiving authentication request information; displaying verification codes distributed in multiple rows and multiple columns in a first display area according to the verification request information; selecting one or more verification codes as verification codes to be verified, and displaying the verification codes to be verified in a second display area; acquiring verification information containing a direction key value; and determining a verification result according to the direction key value in the verification information and the coordinate value of the verification code to be verified in the verification code. The embodiment of the invention effectively prevents the verification code data from being cracked, and simultaneously inputs verification information for input equipment without a touch screen function or a peripheral mechanical keyboard based on the direction keys, thereby simplifying the verification information input process and improving the user experience. The invention also discloses a verification device based on the direction key and a computer storage medium.
Description
Technical Field
The present invention relates to the field of network security technologies, and in particular, to a method and an apparatus for authentication based on a direction key, and a computer storage medium.
Background
The internet technology is rapidly developed, and the network brings great convenience to life and work of people and is accompanied with a plurality of network system safety problems. For example: the malicious program violently cracks the password, the website is swiped, malicious mass registration is carried out to send junk advertisements and the like, the negative behaviors not only seriously affect the use of normal users and threaten the safety of accounts of other people, but also cause the occupation of network resources and even website crash, therefore, the verification code becomes a passing mode of numerous website users, and the mode is simple and can protect the website to a certain extent.
Since the verification code is proposed, many forms appear, the early verification code mainly is a simple character verification code without adhesion, distortion and noise, and the vulnerability of network security is made up to a certain extent, but the verification code can be cracked by adopting the traditional optical identification and license plate identification technologies, and the security of a website cannot be guaranteed. Later researchers used various background interferences, noise pixels, font deformation and font adhesion, random character positions and indefinite number, reverse colors and other technologies in the generation process of the picture verification code. The user identifies characters or numbers in the picture identifying code, inputs the identified characters or numbers, and then is identified by the APP or a specific identifying code system.
At present, related picture recognition software has a high recognition rate on less complex digital or character verification codes and cannot achieve expected effects, and the generated picture verification codes such as 12306 and the like can achieve an effect of preventing brute force cracking well at the beginning.
Disclosure of Invention
The embodiment of the invention provides a verification method and device based on a direction key. The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview and is intended to neither identify key/critical elements nor delineate the scope of such embodiments. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
According to a first aspect of the embodiments of the present invention, there is provided a method for authentication based on a direction key, including:
receiving authentication request information;
displaying verification codes distributed in multiple rows and multiple columns in a first display area according to the verification request information;
selecting one or more verification codes as verification codes to be verified, and displaying the verification codes to be verified in a second display area;
acquiring verification information containing a direction key value;
and determining a verification result according to the direction key value in the verification information and the coordinate value of the verification code to be verified in the verification code.
In some optional embodiments, after said determining the verification result, further comprising:
when the verification result is correct, the verification code is verified and cleared;
and when the verification result is wrong, feeding back verification failure information and refreshing and displaying verification codes distributed in multiple rows and multiple columns.
In some optional embodiments, the determining a verification result according to the direction key value in the verification information and the coordinate value of the verification code to be verified in the verification code includes:
determining the basic corresponding relation between the direction key value and the abscissa and/or ordinate in the coordinate values;
and determining a verification result according to the matching relationship between the direction key value in the verification information and the abscissa and/or the ordinate of the verification code to be verified.
In some optional embodiments, the determining a verification result according to a matching relationship between a direction key value in the verification information and an abscissa and/or an ordinate of the verification code to be verified includes:
determining whether the direction key value in the verification information is matched with the abscissa of the verification code to be verified according to the basic corresponding relation;
if the two are matched, the verification result is correct; otherwise, the verification result is error;
or,
determining whether the direction key value in the verification information is matched with the abscissa of the verification code to be verified according to the basic corresponding relation;
if the two are matched, the verification result is correct; otherwise, the verification result is error;
or,
when the verification code to be verified is multiple, determining whether the direction key values in part of the verification information are matched with the horizontal coordinates of part of the verification code to be verified according to the basic corresponding relation, and whether the direction key values in the rest of the verification information are matched with the vertical coordinates of the rest of the verification code to be verified;
if all the matching is carried out, the verification result is correct; otherwise, the verification result is an error.
In some optional embodiments, when the verification code to be verified is multiple, and the abscissa or ordinate of all the verification codes to be verified matches with the direction key value, the verification result is correct; otherwise, the verification result is an error.
In some optional embodiments, the verification code has two rows to five rows.
In some optional embodiments, the verification code has two to five columns.
In some alternative embodiments, the direction key includes: a direction up key, a direction down key, a direction left key, and a direction right key.
In some alternative embodiments, the direction key includes: a direction up key, a direction down key, a direction left key, a direction right key, and a confirmation key.
In some alternative embodiments, the second display area is located below the first display area; and the verification codes to be verified are distributed in the second display area in sequence.
In some alternative embodiments, the second display area is located on an upper layer of the first display area; and the verification code to be verified highlights the verification code display.
In some alternative embodiments, the second display area is located on an upper layer of the first display area; and the verification code to be verified highlights the verification code display.
According to a second aspect of the embodiments of the present invention, there is provided a direction key-based authentication apparatus, including:
a receiving unit configured to receive authentication request information;
the display unit is used for displaying verification codes distributed in multiple rows and multiple columns in the first display area according to the verification request information;
the selecting unit is used for selecting one or more verification codes as verification codes to be verified;
the display unit is also used for displaying the verification code to be verified in a second display area;
the device comprises an acquisition unit, a verification unit and a verification unit, wherein the acquisition unit is used for acquiring verification information containing a direction key value;
and the verification result determining unit is used for determining a verification result according to the direction key value in the verification information and the coordinate value of the verification code to be verified in the verification code.
In some optional embodiments, the apparatus further comprises: a feedback unit;
the display unit is also used for passing the verification and clearing the verification code when the verification result is correct;
the feedback unit is used for feeding back verification failure information when the verification result is wrong;
and the display unit is also used for refreshing and displaying the verification codes distributed in a plurality of rows and columns when the verification result is wrong.
In some optional embodiments, the verification result determining unit includes: a basic correspondence determining unit and a verifying unit;
the basic corresponding relation determining unit is used for determining the basic corresponding relation between the direction key value and the abscissa and/or the ordinate in the coordinate values;
and the verification unit is used for determining a verification result according to the matching relation between the direction key value in the verification information and the abscissa and/or the ordinate of the verification code to be verified.
In some optional embodiments, the verification unit is configured to determine whether a direction key value in the verification information matches an abscissa of the to-be-verified code according to the basic correspondence;
if the two are matched, the verification result is correct; otherwise, the verification result is error;
or,
the verification information is used for determining whether the direction key value in the verification information is matched with the abscissa of the to-be-verified verification code according to the basic corresponding relation;
if the two are matched, the verification result is correct; otherwise, the verification result is error;
or,
the verification information processing device is used for determining whether the direction key values in part of the verification information are matched with the horizontal coordinates of part of the verification codes to be verified and whether the direction key values in the rest of the verification information are matched with the vertical coordinates of the rest of the verification codes to be verified according to the basic corresponding relation when the verification codes to be verified are multiple;
if all the matching is carried out, the verification result is correct; otherwise, the verification result is an error.
In some optional embodiments, when the verification code to be verified is multiple, and the abscissa or ordinate of all the verification codes to be verified matches with the direction key value, the verification result is correct; otherwise, the verification result is an error.
In some optional embodiments, the verification code has two rows to five rows.
In some optional embodiments, the verification code has two to five columns.
In some alternative embodiments, the direction key includes: a direction up key, a direction down key, a direction left key, and a direction right key.
In some alternative embodiments, the direction key includes: a direction up key, a direction down key, a direction left key, a direction right key, and a confirmation key.
In some alternative embodiments, the second display area is located below the first display area; and the verification codes to be verified are distributed in the second display area in sequence.
In some alternative embodiments, the second display area is located on an upper layer of the first display area; and the verification code to be verified highlights the verification code display.
In some alternative embodiments, the second display area is located on an upper layer of the first display area; and the verification code to be verified highlights the verification code display.
According to a third aspect of the embodiments of the present invention, there is provided a direction key-based authentication apparatus for a television, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving authentication request information;
displaying verification codes distributed in multiple rows and multiple columns in a first display area according to the verification request information;
selecting one or more verification codes as verification codes to be verified, and displaying the verification codes to be verified in a second display area;
acquiring verification information containing a direction key value;
and determining a verification result according to the direction key value in the verification information and the coordinate value of the verification code to be verified in the verification code.
According to a fourth aspect of embodiments of the present invention, there is provided a computer readable storage medium having stored thereon computer instructions, characterized in that the instructions, when executed by a processor, implement the steps of any of the aforementioned methods.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the embodiment of the invention effectively prevents the verification code data from being cracked, and simultaneously inputs verification information for input equipment without a touch screen function or a peripheral mechanical keyboard based on the direction keys, thereby simplifying the verification information input process and improving the user experience.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a method for directional-key based authentication in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method of direction key based authentication in accordance with an exemplary embodiment;
FIG. 3 is a block diagram illustrating a configuration of a direction key based authentication apparatus according to an exemplary embodiment;
fig. 4 is a block diagram illustrating a structure of a direction key-based authentication apparatus according to an exemplary embodiment.
Detailed Description
The following description and the drawings sufficiently illustrate specific embodiments of the invention to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. The scope of embodiments of the invention encompasses the full ambit of the claims, as well as all available equivalents of the claims. Embodiments may be referred to herein, individually or collectively, by the term "invention" merely for convenience and without intending to voluntarily limit the scope of this application to any single invention or inventive concept if more than one is in fact disclosed. Herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method or apparatus that comprises the element. The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. As for the methods, products and the like disclosed by the embodiments, the description is simple because the methods correspond to the method parts disclosed by the embodiments, and the related parts can be referred to the method parts for description.
With the development of science and technology, the network brings great convenience to the life and work of people and is accompanied with a plurality of network system safety problems. In order to improve the security, a random verification code is adopted to verify the login mode. The traditional simple random four-digit verification and picture verification are easy to be identified and cracked by malicious software. In the process of generating the picture verification code, various technologies such as background interference, noise pixels, font deformation, font adhesion, random character positions, uncertain number, reverse color and the like are used, and in the verification process, a user identifies characters or numbers in the picture verification code, inputs the identified characters or numbers and then verifies the characters or numbers by an APP or a specific verification code system. The verification mode is convenient for the verification of a touch screen device with a soft keyboard or a device with a peripheral mechanical keyboard. When the verification mode is used for equipment such as a television and the like which needs to be controlled by a remote controller, the input process of the verification result is complex, and inconvenience is brought to a user. The embodiment of the invention effectively prevents the verification code data from being cracked, and simultaneously inputs verification information for input equipment without a touch screen function or a peripheral mechanical keyboard based on the direction keys, thereby simplifying the verification information input process and improving the user experience.
Fig. 1 is a flowchart illustrating a method for authentication based on direction keys according to an exemplary embodiment, the method including:
step S101, receiving authentication request information.
And step S102, displaying verification codes distributed in multiple rows and multiple columns in the first display area according to the verification request information.
In some optional embodiments, the verification code has two rows to five rows. And in the verification process, determining a verification result according to the row of the verification code to be verified and the direction key value in the verification information. The number of columns is not limited. Optionally, the number of columns is greater than or equal to 2.
In some optional embodiments, the verification code has two to five columns. And in the verification process, determining a verification result according to the column of the verification code to be verified and the direction key value in the verification information. Wherein the number of rows is not limited. Optionally, the number of rows is greater than or equal to 2.
In some optional embodiments, the verification code has two rows to five rows, and the verification code has two columns to five columns. And in the verification process, determining a verification result according to the column and the row of the verification code to be verified and the direction key value in the verification information. In an alternative embodiment, the verification code has four rows and four columns. As an optional implementation, the number of rows of the verification code is five, and the number of columns of the verification code is five.
Step S103, selecting one or more verification codes as verification codes to be verified, and displaying the verification codes to be verified in a second display area.
In some alternative embodiments, the second display area is located on an upper layer of the first display area; and the verification code to be verified highlights the verification code display.
In some alternative embodiments, the second display area is located on an upper layer of the first display area; and the verification code to be verified highlights the verification code display.
The verification code is any one or combination of a picture verification code, a digital verification code, an alphabetic verification code and a character verification code.
Step S104, obtaining the verification information containing the key value of the direction key.
Wherein the authentication information is transmitted by a remote control device having a direction key. In some alternative embodiments, the authentication information is sent by a mechanical keyboard with directional keys. In some alternative embodiments, the authentication information is sent by a soft keyboard with directional keys.
In some alternative embodiments, the direction key includes: a direction up key, a direction down key, a direction left key, and a direction right key. For example, conventional mechanical keyboards are each provided with an up directional key, a down directional key, a left directional key, and a right directional key. While most software-generated soft keyboards simulate mechanical keyboards with key positions consistent with those of conventional mechanical keyboards.
In some alternative embodiments, the direction key includes: a direction up key, a direction down key, a direction left key, a direction right key, and a confirmation key. For example, a conventional television remote controller is provided with an up direction key, a down direction key, a left direction key, a right direction key, and a confirm key. Some remote controllers will call the enter key as an "OK key". According to the habit of the user, the confirmation key or OK key is usually arranged in the middle of the direction up key, the direction down key, the direction left key and the direction right key, so that the confirmation key of the remote controller equipment with the confirmation key is used for the verification process in order to increase the number of verification code combinations and improve the verification efficiency of the verification codes.
In order to adapt to user habits, the existing software-generated soft keyboard simulates a mode of arranging a confirmation key at the middle position of a direction up key, a direction down key, a direction left key and a direction right key.
Step S105, determining a verification result according to the direction key value in the verification information and the coordinate value of the verification code to be verified in the verification code.
The embodiment of the invention effectively prevents the verification code data from being cracked, and simultaneously inputs verification information for input equipment without a touch screen function or a peripheral mechanical keyboard based on the direction keys, thereby simplifying the verification information input process and improving the user experience.
In some optional embodiments, after step S105, the method further includes:
when the verification result is correct, the verification code is verified and cleared;
and when the verification result is wrong, feeding back verification failure information and refreshing and displaying verification codes distributed in multiple rows and multiple columns.
When the verification result is correct, the user can conveniently acquire required information by verifying and clearing the verification code and entering an interface which the user wants to enter, so that the information reaching rate is improved, and the user experience is improved.
When the verification result is wrong, the verification codes distributed in multiple rows and multiple columns are automatically refreshed and displayed, and the condition that the user manually launches verification request information again is reduced.
In some alternative embodiments, as shown in fig. 2, step S105 includes:
step S1051, determining the basic corresponding relation between the direction key value and the abscissa and/or ordinate in the coordinate value.
Step S1052, determining a verification result according to a matching relationship between the direction key value in the verification information and the abscissa and/or ordinate of the verification code to be verified.
The control confusion is avoided, each key value of the remote control equipment is unique, and the key values are unique and correspond to different direction keys. The coordinate values of the verification code to be verified have an abscissa or an ordinate, and therefore, in order to facilitate the determination of the verification result, the basic corresponding relationship between the direction key value and the abscissa and the ordinate in the coordinate values needs to be determined before the verification result is determined.
In different embodiments, according to different determination rules of the verification result, the verification result is determined according to a matching relationship between the direction key value in the verification information and the abscissa or the ordinate of the verification code to be verified, or the verification result is determined according to a matching relationship between the direction key value in the verification information and the abscissa or the ordinate of the verification code to be verified.
In some optional embodiments, step S1052 includes:
determining whether the direction key value in the verification information is matched with the abscissa of the verification code to be verified according to the basic corresponding relation;
if the two are matched, the verification result is correct; otherwise, the verification result is an error.
In one embodiment, the code four column distribution is verified. The key value of the upper key of the direction key corresponds to 1 in the abscissa, the key value of the lower key of the direction key corresponds to 2 in the abscissa, the key value of the left key of the direction key corresponds to 3 in the abscissa, and the key value of the lower key of the direction key corresponds to 4 in the abscissa.
Taking the verification code comprising six rows, taking the case that the direction key value is matched with the abscissa of the verification code to be verified as the correct verification result, when the coordinate of the verification code to be verified in the verification code is (2,6), and the direction key value is the key value of the lower key of the direction key, the verification is passed.
In some optional embodiments, step S1052 includes:
determining whether the direction key value in the verification information is matched with the abscissa of the verification code to be verified according to the basic corresponding relation;
if the two are matched, the verification result is correct; otherwise, the verification result is an error.
In a specific embodiment, a code division four-row distribution is verified. The key value of the upper key of the direction key corresponds to 1 in the ordinate, the key value of the lower key of the direction key corresponds to 2 in the ordinate, the key value of the left key of the direction key corresponds to 3 in the ordinate, and the key value of the lower key of the direction key corresponds to 4 in the ordinate.
Taking the verification code comprising six columns, taking the case that the correct verification result is that the direction key value is matched with the ordinate of the verification code to be verified, when the coordinate of the verification code to be verified in the verification code is (6,2), and the direction key value is the key value of the lower key of the direction key, the verification is passed.
In the foregoing embodiment, when the to-be-verified code is multiple, and the abscissa or the ordinate of all the to-be-verified codes matches the direction key value, the verification result is correct, otherwise, the verification result is incorrect.
In some optional embodiments, step S1052 includes:
when the verification code to be verified is multiple, determining whether the direction key values in part of the verification information are matched with the horizontal coordinates of part of the verification code to be verified according to the basic corresponding relation, and whether the direction key values in the rest of the verification information are matched with the vertical coordinates of the rest of the verification code to be verified;
if all the matching is carried out, the verification result is correct; otherwise, the verification result is an error.
In the foregoing embodiment, when the to-be-verified code is multiple, and the abscissa or ordinate of all the to-be-verified codes matches the direction key value, the verification result is correct; otherwise, the verification result is an error.
In a specific embodiment, the code is verified to have four rows and four columns. The key value of the upper key of the direction key corresponds to 1 in the abscissa, the key value of the lower key of the direction key corresponds to 2 in the abscissa, the key value of the left key of the direction key corresponds to 3 in the abscissa, and the key value of the lower key of the direction key corresponds to 4 in the abscissa; the key value of the upper key of the direction key corresponds to 1 in the ordinate, the key value of the lower key of the direction key corresponds to 2 in the ordinate, the key value of the left key of the direction key corresponds to 3 in the ordinate, and the key value of the lower key of the direction key corresponds to 4 in the ordinate.
Take 4 verification codes to be verified as an example.
As an optional implementation manner, the correct verification result is determined by matching the direction key value with the abscissa of the first two of the to-be-verified verification codes, and matching the direction key value with the ordinate of the last two of the to-be-verified verification codes.
In a specific embodiment, when the coordinates of the verification code to be verified in the verification code are (1, 2), (2, 3), (3,4), (4,1), the direction key values are the key value of the upper key of the direction key, the key value of the lower key of the direction key, and the verification result is correct when the key value of the right key of the direction key and the key value of the upper key of the direction key are sequentially.
As an optional implementation manner, the correct verification result is determined by matching the direction key value with the abscissa of the second and fourth of the to-be-verified codes, and matching the direction key value with the ordinate of the first and third of the to-be-verified codes.
In a specific embodiment, when the coordinates of the verification code to be verified in the verification code are (1, 2), (2, 3), (3,4) and (4,1), the direction key values are the key value of the direction key lower key, and the verification result is correct when the key value of the direction key right key and the key value of the direction key right key are sequentially.
In some alternative embodiments, the direction key includes: a direction up key, a direction down key, a direction left key, a direction right key, and a confirmation key.
In some optional embodiments, the key value of the upper key of the direction key corresponds to 1 in the abscissa, the key value of the lower key of the direction key corresponds to 2 in the abscissa, the key value of the left key of the direction key corresponds to 3 in the abscissa, the key value of the lower key of the direction key corresponds to 4 in the abscissa, and the key value of the confirmation key corresponds to 5 in the abscissa.
In some optional embodiments, the key value of the upper key of the direction key corresponds to 1 in the ordinate, the key value of the lower key of the direction key corresponds to 2 in the ordinate, the key value of the left key of the direction key corresponds to 3 in the ordinate, the key value of the lower key of the direction key corresponds to 4 in the ordinate, and the key value of the confirmation key corresponds to 5 in the ordinate.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 3 is a block diagram illustrating a structure of a direction key-based authentication apparatus according to an exemplary embodiment, the apparatus including: a receiving unit 301, a display unit 302, a selecting unit 303, an obtaining unit 304, and a verification result determining unit 305.
A receiving unit 301, configured to receive authentication request information.
The display unit 302 is configured to display the verification codes distributed in multiple rows and multiple columns in the first display area according to the verification request information.
In some optional embodiments, the verification code has two rows to five rows. And in the verification process, determining a verification result according to the row of the verification code to be verified and the direction key value in the verification information. The number of columns is not limited. Optionally, the number of columns is greater than or equal to 2.
In some optional embodiments, the verification code has two to five columns. And in the verification process, determining a verification result according to the column of the verification code to be verified and the direction key value in the verification information. Wherein the number of rows is not limited. Optionally, the number of rows is greater than or equal to 2.
In some optional embodiments, the verification code has two rows to five rows, and the verification code has two columns to five columns. And in the verification process, determining a verification result according to the column and the row of the verification code to be verified and the direction key value in the verification information. In an alternative embodiment, the verification code has four rows and four columns. As an optional implementation, the number of rows of the verification code is five, and the number of columns of the verification code is five.
A selecting unit 303, configured to select one or more verification codes as to-be-verified verification codes.
In some alternative embodiments, the second display area is located on an upper layer of the first display area; and the verification code to be verified highlights the verification code display.
In some alternative embodiments, the second display area is located on an upper layer of the first display area; and the verification code to be verified highlights the verification code display.
The verification code is any one or combination of a picture verification code, a digital verification code, an alphabetic verification code and a character verification code.
The display unit 302 is further configured to display the verification code to be verified in a second display area.
An obtaining unit 304 is configured to obtain verification information including a key value of a direction key.
Wherein the authentication information is transmitted by a remote control device having a direction key. In some alternative embodiments, the authentication information is sent by a mechanical keyboard with directional keys. In some alternative embodiments, the authentication information is sent by a soft keyboard with directional keys.
In some alternative embodiments, the direction key includes: a direction up key, a direction down key, a direction left key, and a direction right key.
In some alternative embodiments, the direction key includes: a direction up key, a direction down key, a direction left key, a direction right key, and a confirmation key.
A verification result determining unit 305, configured to determine a verification result according to the direction key value in the verification information and the coordinate value of the to-be-verified code in the verification code.
The embodiment of the invention effectively prevents the verification code data from being cracked, and simultaneously inputs verification information for input equipment without a touch screen function or a peripheral mechanical keyboard based on the direction keys, thereby simplifying the verification information input process and improving the user experience.
In some alternative embodiments, as shown in fig. 4, the apparatus further comprises: a feedback unit 401.
The display unit 302 is further configured to pass the verification and clear the verification code when the verification result is correct.
A feedback unit 401, configured to feed back verification failure information when the verification result is an error.
And the display unit 302 is further used for refreshing and displaying the verification code distributed in multiple rows and multiple columns when the verification result is an error.
When the verification result is correct, the user can conveniently acquire required information by verifying and clearing the verification code and entering an interface which the user wants to enter, so that the information reaching rate is improved, and the user experience is improved.
When the verification result is wrong, the verification codes distributed in multiple rows and multiple columns are automatically refreshed and displayed, and the condition that the user manually launches verification request information again is reduced.
In some optional embodiments, the verification result determining unit 305 includes: a basic correspondence determining unit and a verifying unit.
A basic corresponding relation determining unit, configured to determine a basic corresponding relation between the direction key value and an abscissa and/or an ordinate in the coordinate values;
and the verification unit is used for determining a verification result according to the matching relation between the direction key value in the verification information and the abscissa and/or the ordinate of the verification code to be verified.
The control confusion is avoided, each key value of the remote control equipment is unique, and the key values are unique and correspond to different direction keys. The coordinate values of the verification code to be verified have an abscissa or an ordinate, and therefore, in order to facilitate the determination of the verification result, the basic corresponding relationship between the direction key value and the abscissa and the ordinate in the coordinate values needs to be determined before the verification result is determined.
In different embodiments, according to different determination rules of the verification result, the verification result is determined according to a matching relationship between the direction key value in the verification information and the abscissa or the ordinate of the verification code to be verified, or the verification result is determined according to a matching relationship between the direction key value in the verification information and the abscissa or the ordinate of the verification code to be verified.
In some optional embodiments, the verification unit is configured to determine whether the direction key value in the verification information matches with the abscissa of the to-be-verified code according to the basic correspondence, if so, the verification result is correct, otherwise, the verification result is incorrect.
In one embodiment, the code four column distribution is verified. The key value of the upper key of the direction key corresponds to 1 in the abscissa, the key value of the lower key of the direction key corresponds to 2 in the abscissa, the key value of the left key of the direction key corresponds to 3 in the abscissa, and the key value of the lower key of the direction key corresponds to 4 in the abscissa.
Taking the verification code comprising six rows, taking the case that the direction key value is matched with the abscissa of the verification code to be verified as the correct verification result, when the coordinate of the verification code to be verified in the verification code is (2,6), and the direction key value is the key value of the lower key of the direction key, the verification is passed.
In some optional embodiments, the verification unit is configured to determine whether the direction key value in the verification information matches with the abscissa of the to-be-verified code according to the basic correspondence, if so, the verification result is correct, otherwise, the verification result is incorrect.
In a specific embodiment, a code division four-row distribution is verified. The key value of the upper key of the direction key corresponds to 1 in the ordinate, the key value of the lower key of the direction key corresponds to 2 in the ordinate, the key value of the left key of the direction key corresponds to 3 in the ordinate, and the key value of the lower key of the direction key corresponds to 4 in the ordinate.
Taking the verification code comprising six columns, taking the case that the correct verification result is that the direction key value is matched with the ordinate of the verification code to be verified, when the coordinate of the verification code to be verified in the verification code is (6,2), and the direction key value is the key value of the lower key of the direction key, the verification is passed.
In the foregoing embodiment, when the to-be-verified code is multiple, and the abscissa or the ordinate of all the to-be-verified codes matches the direction key value, the verification result is correct, otherwise, the verification result is incorrect.
In some optional embodiments, the verification unit is configured to determine, according to the basic correspondence, whether direction key values in part of the verification information are matched with abscissa of part of the verification code to be verified, and whether direction key values in the rest of the verification information are matched with ordinate of the rest of the verification code to be verified, if all the verification results are matched, the verification result is correct, and otherwise, the verification result is incorrect.
In a specific embodiment, the code is verified to have four rows and four columns. The key value of the upper key of the direction key corresponds to 1 in the abscissa, the key value of the lower key of the direction key corresponds to 2 in the abscissa, the key value of the left key of the direction key corresponds to 3 in the abscissa, and the key value of the lower key of the direction key corresponds to 4 in the abscissa; the key value of the upper key of the direction key corresponds to 1 in the ordinate, the key value of the lower key of the direction key corresponds to 2 in the ordinate, the key value of the left key of the direction key corresponds to 3 in the ordinate, and the key value of the lower key of the direction key corresponds to 4 in the ordinate.
In some optional embodiments, the key value of the upper key of the direction key corresponds to 1 in the abscissa, the key value of the lower key of the direction key corresponds to 2 in the abscissa, the key value of the left key of the direction key corresponds to 3 in the abscissa, the key value of the lower key of the direction key corresponds to 4 in the abscissa, and the key value of the confirmation key corresponds to 5 in the abscissa.
In some optional embodiments, the key value of the upper key of the direction key corresponds to 1 in the ordinate, the key value of the lower key of the direction key corresponds to 2 in the ordinate, the key value of the left key of the direction key corresponds to 3 in the ordinate, the key value of the lower key of the direction key corresponds to 4 in the ordinate, and the key value of the confirmation key corresponds to 5 in the ordinate.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as a memory comprising instructions, executable by a processor to perform the method described above is also provided. The non-transitory computer readable storage medium may be a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic tape, an optical storage device, and the like.
Those of skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, it should be understood that the disclosed methods, articles of manufacture (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
It should be understood that the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. The present invention is not limited to the procedures and structures that have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (12)
1. A method for authentication based on a direction key, comprising:
receiving authentication request information;
displaying verification codes distributed in multiple rows and multiple columns in a first display area according to the verification request information;
selecting one or more verification codes as verification codes to be verified, and displaying the verification codes to be verified in a second display area;
acquiring verification information containing a direction key value;
and determining a verification result according to the direction key value in the verification information and the coordinate value of the verification code to be verified in the verification code.
2. The method of claim 1, further comprising, after said determining a verification result:
when the verification result is correct, the verification code is verified and cleared;
and when the verification result is wrong, feeding back verification failure information and refreshing and displaying verification codes distributed in multiple rows and multiple columns.
3. The method of claim 1, wherein the determining a verification result according to the direction key value in the verification information and the coordinate value of the verification code to be verified in the verification code comprises:
determining the basic corresponding relation between the direction key value and the abscissa and/or ordinate in the coordinate values;
and determining a verification result according to the matching relationship between the direction key value in the verification information and the abscissa and/or the ordinate of the verification code to be verified.
4. The method as claimed in claim 3, wherein the determining the verification result according to the matching relationship between the direction key value in the verification information and the abscissa and/or ordinate of the verification code to be verified comprises:
determining whether the direction key value in the verification information is matched with the abscissa of the verification code to be verified according to the basic corresponding relation;
if the two are matched, the verification result is correct; otherwise, the verification result is error;
or,
determining whether the direction key value in the verification information is matched with the abscissa of the verification code to be verified according to the basic corresponding relation;
if the two are matched, the verification result is correct; otherwise, the verification result is error;
or,
when the verification code to be verified is multiple, determining whether the direction key values in part of the verification information are matched with the horizontal coordinates of part of the verification code to be verified according to the basic corresponding relation, and whether the direction key values in the rest of the verification information are matched with the vertical coordinates of the rest of the verification code to be verified;
if all the matching is carried out, the verification result is correct; otherwise, the verification result is an error.
5. The method of claim 4, wherein when the verification code to be verified is multiple, and the abscissa or ordinate of all the verification codes to be verified matches the direction key value, the verification result is correct; otherwise, the verification result is an error.
6. A direction key-based authentication apparatus, comprising:
a receiving unit configured to receive authentication request information;
the display unit is used for displaying verification codes distributed in multiple rows and multiple columns in the first display area according to the verification request information;
the selecting unit is used for selecting one or more verification codes as verification codes to be verified;
the display unit is also used for displaying the verification code to be verified in a second display area;
the device comprises an acquisition unit, a verification unit and a verification unit, wherein the acquisition unit is used for acquiring verification information containing a direction key value;
and the verification result determining unit is used for determining a verification result according to the direction key value in the verification information and the coordinate value of the verification code to be verified in the verification code.
7. The apparatus of claim 6, further comprising: a feedback unit;
the display unit is also used for passing the verification and clearing the verification code when the verification result is correct;
the feedback unit is used for feeding back verification failure information when the verification result is wrong;
and the display unit is also used for refreshing and displaying the verification codes distributed in a plurality of rows and columns when the verification result is wrong.
8. The apparatus of claim 6, wherein the verification result determination unit comprises: a basic correspondence determining unit and a verifying unit;
the basic corresponding relation determining unit is used for determining the basic corresponding relation between the direction key value and the abscissa and/or the ordinate in the coordinate values;
and the verification unit is used for determining a verification result according to the matching relation between the direction key value in the verification information and the abscissa and/or the ordinate of the verification code to be verified.
9. The apparatus of claim 8, wherein the verification unit is configured to determine whether a direction key value in the verification information matches an abscissa of the to-be-verified code according to the basic correspondence;
if the two are matched, the verification result is correct; otherwise, the verification result is error;
or,
the verification information is used for determining whether the direction key value in the verification information is matched with the abscissa of the to-be-verified verification code according to the basic corresponding relation;
if the two are matched, the verification result is correct; otherwise, the verification result is error;
or,
the verification information processing device is used for determining whether the direction key values in part of the verification information are matched with the horizontal coordinates of part of the verification codes to be verified and whether the direction key values in the rest of the verification information are matched with the vertical coordinates of the rest of the verification codes to be verified according to the basic corresponding relation when the verification codes to be verified are multiple;
if all the matching is carried out, the verification result is correct; otherwise, the verification result is an error.
10. The apparatus of claim 9, wherein when the verification code to be verified is multiple, and the abscissa or ordinate of all verification codes to be verified matches the direction key value, the verification result is correct; otherwise, the verification result is an error.
11. A direction key based authentication apparatus for a television, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving authentication request information;
displaying verification codes distributed in multiple rows and multiple columns in a first display area according to the verification request information;
selecting one or more verification codes as verification codes to be verified, and displaying the verification codes to be verified in a second display area;
acquiring verification information containing a direction key value;
and determining a verification result according to the direction key value in the verification information and the coordinate value of the verification code to be verified in the verification code.
12. A computer-readable storage medium having stored thereon computer instructions, which, when executed by a processor, perform the steps of the method of claims 1-5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811367357.8A CN111199060B (en) | 2018-11-16 | 2018-11-16 | Verification method and device based on direction key and computer storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811367357.8A CN111199060B (en) | 2018-11-16 | 2018-11-16 | Verification method and device based on direction key and computer storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111199060A true CN111199060A (en) | 2020-05-26 |
| CN111199060B CN111199060B (en) | 2024-04-02 |
Family
ID=70745655
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811367357.8A Active CN111199060B (en) | 2018-11-16 | 2018-11-16 | Verification method and device based on direction key and computer storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111199060B (en) |
Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060026440A1 (en) * | 2002-05-31 | 2006-02-02 | Jean-Paul Sauvebois | Method for securing an on-line transaction |
| US20070260556A1 (en) * | 2005-06-06 | 2007-11-08 | Michael Pousti | System and method for verification of identity for transactions |
| US20080060052A1 (en) * | 2003-09-25 | 2008-03-06 | Jay-Yeob Hwang | Method Of Safe Certification Service |
| CN101702729A (en) * | 2009-11-12 | 2010-05-05 | 西安西电捷通无线网络通信有限公司 | Method for verifying generated identity based on coordinate technology |
| CN103139204A (en) * | 2012-12-19 | 2013-06-05 | 姚爱军 | Network identifying code method and system |
| CN104036164A (en) * | 2014-05-19 | 2014-09-10 | 乔治 | Click type video verification code |
| CN104700007A (en) * | 2015-03-18 | 2015-06-10 | 詹万泉 | Gesture impression password setting and application method |
| US20160357952A1 (en) * | 2015-06-08 | 2016-12-08 | International Business Machines Corporation | Verification of a pattern based passcode |
| CN106462380A (en) * | 2014-04-15 | 2017-02-22 | 谷歌公司 | Systems and methods for providing prompts for voice commands |
| WO2018073360A1 (en) * | 2016-10-21 | 2018-04-26 | Cherry Gmbh | Method and apparatus for authenticating a user of a device, and information system |
| CN108182437A (en) * | 2017-12-29 | 2018-06-19 | 北京金堤科技有限公司 | One kind clicks method for recognizing verification code, device and user terminal |
-
2018
- 2018-11-16 CN CN201811367357.8A patent/CN111199060B/en active Active
Patent Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060026440A1 (en) * | 2002-05-31 | 2006-02-02 | Jean-Paul Sauvebois | Method for securing an on-line transaction |
| US20080060052A1 (en) * | 2003-09-25 | 2008-03-06 | Jay-Yeob Hwang | Method Of Safe Certification Service |
| US20070260556A1 (en) * | 2005-06-06 | 2007-11-08 | Michael Pousti | System and method for verification of identity for transactions |
| CN101702729A (en) * | 2009-11-12 | 2010-05-05 | 西安西电捷通无线网络通信有限公司 | Method for verifying generated identity based on coordinate technology |
| CN103139204A (en) * | 2012-12-19 | 2013-06-05 | 姚爱军 | Network identifying code method and system |
| CN106462380A (en) * | 2014-04-15 | 2017-02-22 | 谷歌公司 | Systems and methods for providing prompts for voice commands |
| CN104036164A (en) * | 2014-05-19 | 2014-09-10 | 乔治 | Click type video verification code |
| CN104700007A (en) * | 2015-03-18 | 2015-06-10 | 詹万泉 | Gesture impression password setting and application method |
| US20160357952A1 (en) * | 2015-06-08 | 2016-12-08 | International Business Machines Corporation | Verification of a pattern based passcode |
| WO2018073360A1 (en) * | 2016-10-21 | 2018-04-26 | Cherry Gmbh | Method and apparatus for authenticating a user of a device, and information system |
| CN108182437A (en) * | 2017-12-29 | 2018-06-19 | 北京金堤科技有限公司 | One kind clicks method for recognizing verification code, device and user terminal |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111199060B (en) | 2024-04-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Von Zezschwitz et al. | Patterns in the wild: a field study of the usability of pattern and pin-based authentication on mobile devices | |
| CA2836052C (en) | Picture gesture authentication | |
| US20150123925A1 (en) | Method, apparatus, and device for touch screen verification | |
| EP2941732B1 (en) | Authentication using a subset of a user-known code sequence | |
| US9030293B1 (en) | Secure passcode entry | |
| EP1719041A1 (en) | User authentication | |
| KR101201934B1 (en) | Method and apparatus for authenticating password of user device using variable password | |
| CN111241517A (en) | Method and device for constructing biological characteristic verification question-answer library | |
| US20200134168A1 (en) | Multifactor-based password authentication | |
| KR101267229B1 (en) | Method and system for authenticating using input pattern | |
| CN103116718A (en) | Password setting and verification method based on spatial position code log-in computer system | |
| KR20150084678A (en) | Method of inputting confidential data on a terminal | |
| Zhou et al. | A comparison of a touch-gesture-and a keystroke-based password method: toward shoulder-surfing resistant mobile user authentication | |
| CN111143812B (en) | Login authentication method based on graphics | |
| CN109472898B (en) | Password prompting method, augmented reality device, storage medium and system | |
| JP5471706B2 (en) | Password input system, input method, and input program | |
| CN103457908A (en) | Verification method combining characters and styles | |
| CN111199060B (en) | Verification method and device based on direction key and computer storage medium | |
| CN111639322B (en) | Application login method and device, electronic equipment and computer storage medium | |
| CN104978503B (en) | The unlocking method and system of a kind of electronic equipment screen | |
| CN105631308A (en) | Password verification method and device and electronic device | |
| CN115242450A (en) | Password data input method, device and storage medium | |
| US20200065468A1 (en) | Password authentication device | |
| CN114678031A (en) | A voiceprint-based verification method, device, medium and product | |
| US20060179471A1 (en) | System and method for providing secure disclosure of a secret |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |