CN111723356A - Verification method and device of verification code and storage medium - Google Patents

Verification method and device of verification code and storage medium Download PDF

Info

Publication number
CN111723356A
CN111723356A CN201910204646.4A CN201910204646A CN111723356A CN 111723356 A CN111723356 A CN 111723356A CN 201910204646 A CN201910204646 A CN 201910204646A CN 111723356 A CN111723356 A CN 111723356A
Authority
CN
China
Prior art keywords
verification
area
verification code
target
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910204646.4A
Other languages
Chinese (zh)
Other versions
CN111723356B (en
Inventor
秦亚洲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
JD Digital Technology Holdings Co Ltd
Original Assignee
JD Digital Technology Holdings Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by JD Digital Technology Holdings Co Ltd filed Critical JD Digital Technology Holdings Co Ltd
Priority to CN201910204646.4A priority Critical patent/CN111723356B/en
Publication of CN111723356A publication Critical patent/CN111723356A/en
Application granted granted Critical
Publication of CN111723356B publication Critical patent/CN111723356B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/36User authentication by graphic or iconic representation

Abstract

The application discloses a verification method, a verification device and a storage medium of a verification code, which specifically comprise the following steps: after receiving an instruction for generating a verification code triggered by a user, displaying a verification window, wherein the verification window comprises a verification code prompting area and a target verification area, and the verification code prompting area comprises a randomly generated verification code element as prompt information; the target verification area comprises a plurality of annular blocks which extend outwards around the same center, and each annular block corresponds to different verification code elements; determining the point touch position of the user according to the single point touch action of the user in the target-shaped verification area; determining an annular block touched by a user according to the touch position; comparing the verification code elements corresponding to the annular block touched by the user with the verification code elements displayed in the verification code prompt area, and if the verification code elements are consistent, passing the verification; otherwise, the verification is not passed. Therefore, the scheme based on the invention is convenient for the user to carry out verification input and has better verification effect and safety.

Description

Verification method and device of verification code and storage medium
Technical Field
The present application relates to computer technologies, and in particular, to a verification method and apparatus for a verification code, and a storage medium.
Background
The verification code is a public full-automatic program for distinguishing a machine from a human, so that malicious password cracking, ticket swiping, forum water filling and the like can be prevented, and the safety of a website can be ensured. The purpose of designing the verification code is to avoid the occurrence of the automatic malicious attack of the computer program by verifying that the user is a real person to perform operations such as website registration or login. The form of the verification code, which is now more common, includes: a graphical passcode, a sliding passcode, a point-and-touch passcode, and the like.
With the rise and development of technologies such as deep learning and computer vision, many existing verification codes are easy to be broken, and in order to improve safety and avoid machine identification, the existing verification codes are usually designed to be difficult to identify, for example, the verification codes are distorted, various interference patterns are added in the verification codes, and the like.
Disclosure of Invention
The embodiment of the application provides a verification method of a verification code, which can facilitate verification input of a user and has better verification effect and safety, and the method comprises the following steps:
after receiving an instruction for generating a verification code triggered by a user, displaying a verification window, wherein the verification window comprises a verification code prompting area and a target verification area, and the verification code prompting area comprises a randomly generated verification code element as prompt information; the target verification area comprises a plurality of annular blocks which extend outwards around the same center, and each annular block corresponds to different verification code elements;
determining the point-touch position of the user according to the single point-touch action of the user in the target-shaped verification area;
determining an annular block touched by a user according to the touch position;
comparing the verification code element corresponding to the annular block touched by the user with the verification code element displayed in the verification code prompt area, and if the verification code element is consistent with the verification code element displayed in the verification code prompt area, passing the verification; otherwise, the verification is not passed.
Optionally, the method further comprises: presetting a first display time threshold;
when the display verification window is executed, the method further comprises timing according to a set first display time threshold;
when the timing reaches the first display time threshold, the method further comprises: deleting the verification code elements in the verification code prompting area, wherein the verification code prompting area is displayed to be empty.
Optionally, the method further comprises: presetting a track of the display position of the target shape verification area, wherein the track consists of coordinates of the central position of the display position of the target shape verification area each time;
and when the timing reaches the first display time threshold, changing the central position coordinate of the target shape verification area to the next central position coordinate according to the track.
Optionally, the method further comprises: presetting a second display time threshold;
timing according to a set second display time threshold when the center position coordinate of the target shape verification area is changed to the next center position coordinate;
and when the timing reaches the second display time threshold, changing the current central position coordinate of the target shape verification area to the next central position coordinate according to the track.
Optionally, if the verification fails, the method further comprises:
and randomly generating verification code elements again and displaying the verification code elements in the verification code prompt area, and returning to the step of determining the point contact position according to the single point contact action of the user in the target-shaped verification area to continue executing.
Another embodiment of the present application provides an apparatus for verifying a verification code, the apparatus including:
the display module is used for displaying the verification window after receiving a verification code generating instruction triggered by a user, wherein the verification window comprises a verification code prompting area and a target-shaped verification area, and the verification code prompting area comprises a verification code element serving as prompt information; the target verification area comprises a plurality of annular blocks which extend outwards around the same center, and each annular block corresponds to different verification code elements;
the main control module is used for determining the point contact position of the user according to the single point contact action of the user in the target-shaped verification area and determining an annular block touched by the user according to the point contact position;
the verification module is used for comparing the verification code elements corresponding to the annular block touched by the user with the verification code elements displayed in the verification code prompt area, and if the verification code elements are consistent, the verification passes; otherwise, the verification is not passed.
Optionally, the apparatus further comprises:
the timing module is used for timing according to a set first display time threshold when the display verification window is executed;
the main control module is used for presetting a first display time threshold value, and deleting the verification code elements in the verification code prompt area when the timing reaches the first display time threshold value, wherein the verification code prompt area is displayed to be empty.
Optionally, the main control module is configured to preset a trajectory of the display position of the target verification area, where the trajectory is composed of coordinates of a center position of the display position of the target verification area each time, and when the timing reaches the first display time threshold, the center position coordinates of the target verification area are changed to next center position coordinates according to the trajectory.
In another embodiment, a storage medium is provided, which stores one or more programs, the one or more programs including instructions, which when executed by a computing device, cause the computing device to perform a method of verifying a verification code as claimed in the above-mentioned embodiments.
As described above, the verification method of the verification code in the scheme of the present invention facilitates the user to perform operations such as verification code input, and the input verification of the verification code can be completed only by performing a selection operation once according to a prompted verification code element for the user, and the display form of the target-shaped verification region is simple, and has no redundant interference pattern, which is easy for the user to identify, and improves the user experience.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a flow chart of a verification method 100 for a verification code according to an embodiment of the invention;
FIG. 2 is a flowchart of a method 200 for displaying authentication code elements and target authentication regions according to an embodiment of the invention;
FIG. 3 is a flow chart of a method 300 for displaying a target verification area in accordance with an embodiment of the present invention;
FIG. 4 is a flow chart of a method 400 for displaying a target verification area in accordance with an embodiment of the present invention;
FIG. 5 is a flow chart of a verification method 500 for a verification code according to an embodiment of the invention;
FIG. 6 is a schematic diagram illustrating a process of a user performing a verification operation on a verification code and passing the verification according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating a process of a user performing a verification operation on a verification code and failing to verify the verification code according to an embodiment of the present invention;
FIG. 8 is a diagram illustrating the movement of a target verification area according to an embodiment of the present invention;
FIG. 9 is a diagram illustrating a display style of a verification window in an embodiment of the invention;
FIG. 10 is a schematic diagram of the shape and annular block division of a target verification area in an embodiment of the present invention;
FIG. 11 is a diagram illustrating an apparatus 1100 for verifying a verification code according to an embodiment of the present invention;
fig. 12 is a diagram illustrating an apparatus 1200 for verifying a verification code according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
In the prior art, in order to make a machine program not easy to capture and acquire correct verification information, some interference elements are usually added in a verification code, or a complicated verification code input step is set, but the setting can increase the difficulty of verification of the verification code by a user, and the user experience friendliness is not high. Aiming at the problems, the invention provides the verification method of the verification code, which can facilitate the verification input of the user and has better verification effect and safety. The scheme of the invention will now be described in detail with reference to specific examples.
Referring to fig. 1, fig. 1 is a flowchart illustrating a verification method 100 of a verification code according to an embodiment of the invention, as shown in fig. 1, the method includes:
s101: after receiving an instruction for generating a verification code triggered by a user, displaying a verification window, wherein the verification window comprises a verification code prompting area and a target-shaped verification area, the verification code prompting area comprises a randomly generated verification code element as prompt information, the target-shaped verification area comprises a plurality of annular blocks extending outwards around the same center, and each annular block corresponds to different verification code elements.
The verification code prompting area comprises verification code elements used as prompting information, only one randomly generated verification code element is displayed, and the verification code elements can be numbers, characters or color patterns. The target shape verification area refers to a verification area with a shape like a ring target (a ring target is a target formed by a plurality of target rings which are sleeved into a target surface), and the annular block of each target ring corresponds to different verification code elements. For example, a circular block corresponding to a "1" target ring corresponds to a verification element of "1".
S102: and determining the touch position of the user according to the single touch action of the user in the target-shaped verification area.
The user sees the verification code elements in the verification code prompt area, one touch action is carried out in the target-shaped verification code area, the annular block corresponding to the verification code element considered by the user is selected, and the touch position of the user is determined according to the single touch action of the user in the target-shaped verification area.
S103: and determining an annular block touched by the user according to the touch position.
Since one ring sector has a certain area and includes a plurality of selectable touch positions, which ring sector is touched by the user is determined according to the touch position determined in step S102.
S104: comparing the verification code element corresponding to the annular block touched by the user with the verification code element displayed in the verification code prompt area, and if the verification code element is consistent with the verification code element displayed in the verification code prompt area, passing the verification; otherwise, the verification is not passed.
Specifically, each annular block of the target-shaped verification area corresponds to different verification code elements, one verification code element corresponding to the annular block can be obtained according to the annular block touched by a user, the verification code element is compared with the verification code element displayed in the verification code prompt area, if the two verification code elements are consistent, the verification is passed, and otherwise, the verification is not passed.
As described above, in this embodiment, the verification method of the verification code facilitates the user to perform the operation of inputting the verification code, and the user performs one selection operation in the target verification area to complete the input verification of the verification code only according to one verification code element serving as the prompt information, so that the user experience is improved.
In the embodiment of the invention, in order to improve the anti-cracking capability of the verification code, on the basis of the verification method 100, the verification code elements of the prompt area of the verification code and the display method of the target-shaped verification area are further optimized.
As shown in fig. 2, fig. 2 is a flowchart of a method 200 for displaying a verification code element and a target verification area according to an embodiment of the present invention, in which the method 200 includes the following steps:
s201: a first display time threshold and a track of the display position of the target shape verification area are preset.
The first display time threshold is preset, and may be the shortest time value of the verification code elements in the verification code prompt area that can be recognized and memorized by the user, and specifically, the first display time threshold may be set to 1 second or 2 seconds. Since the normal human visual response (visual response is the time interval from the presentation of the visual stimulus to the start of the responsive response) is typically on the order of milliseconds, the first display time threshold is 1 or 2 seconds during which the user can identify and remember an authentication code element. In practical applications, the first display time threshold may be set according to the requirements of practical designers.
The track of the display position of the target verification area is preset, the track is composed of coordinates of the center position of the display position of the target verification area each time, the number of the coordinates of the center position forming the track is at least two, and it can be understood that the form and the length of the track can be set according to the requirements of an actual designer.
S202: and after receiving an instruction for generating the verification code triggered by a user, displaying a verification window, and timing according to a set first display time threshold.
Specifically, after receiving an instruction for generating a verification code triggered by a user, displaying a verification window, wherein the verification window comprises a verification code prompting area and a target-shaped verification area, the verification code prompting area comprises a randomly generated verification code element serving as prompting information, the target-shaped verification area comprises a plurality of annular blocks extending outwards around the same center, and each annular block of the target-shaped verification area corresponds to different verification code elements. And timing according to the set first display time threshold while displaying the verification window.
S203: and when the timing reaches the first display time threshold, deleting the verification code elements in the verification code prompt area, displaying the verification code prompt area as empty, and changing the center position coordinate of the target-shaped verification area to the next center position coordinate according to the track.
Specifically, the captcha elements in the captcha prompt area are displayed only within a set period of time, and when the time counted in step S202 reaches the first display time threshold, the captcha elements in the captcha prompt area are deleted, that is, the captcha prompt area is displayed as empty. The verification code elements in the verification code prompting area are displayed only in a period of time, and the verification code elements are displayed in a flash mode due to the fact that the display time is short.
Specifically, when the time reaches a first display time threshold, the center position coordinates of the target shape verification area are changed to the next center position coordinates according to a preset track. And changing the coordinates of the center position of the target-shaped verification area according to a preset track, namely changing the display position of the target-shaped verification area. In addition, the display time of the target verification area at each display position in the track can be displayed according to the first time threshold timing.
As described above, in the embodiment of the present invention, the captcha prompting area displays a captcha element within a preset time period, and the captcha element should be recognizable by the user, and the captcha element is deleted when the time reaches a first time threshold, where the first time threshold may specifically be 1 second or 2 seconds, that is, the captcha element is displayed in a flash form. The verification code elements displayed by the method can increase the difficulty of identifying the verification code by the computer to a certain extent, so that the computer program is difficult to capture and acquire the verification code elements serving as prompt information, the difficulty of cracking the verification code by the computer program is increased, and the verification effect and the safety of the verification code are improved.
Further, in the embodiment of the present invention, the target verification area can move according to a preset track, and the difficulty of verifying the verification code by the computer program can be increased by displaying the target verification area with a constantly changing position. Because the computer program can analyze the coordinate position of the verification area to determine the correct verification position, the display position of the target verification area changes, the computer program is difficult to determine the correct verification position, and the difficulty in cracking the verification code is increased.
In the embodiment of the present invention, in order to improve the security of the verification code, based on the verification method 100 and the verification method 200, two display methods of the target-shaped verification area are provided, which are specifically described with reference to fig. 3 and 4.
As shown in fig. 3, fig. 3 is a flowchart of a method 300 for displaying a target verification area according to an embodiment of the present invention, where when the coordinates of the center position of the target verification area are changed to the coordinates of the next center position, the method further includes:
s301: and when the center position coordinate of the target shape verification area is changed to the next center position coordinate, executing the timing according to the set first display time threshold value.
After the center position coordinates of the target shape verification area are changed, the next center position coordinates are the center position coordinates of the currently displayed target shape verification area.
S302: and when the timing reaches the first display time threshold, changing the center position coordinate of the currently displayed target shape verification area to the next center position coordinate according to a preset track.
Specifically, steps 301 to 302 may be executed in a loop, and the coordinates of the center position of the target verification area are sequentially changed according to a preset trajectory. And changing the coordinates of the center position of the target shape verification area at intervals according to a preset track.
In addition, as shown in fig. 4, fig. 4 is a flowchart of a method 400 for displaying a target verification area in an embodiment of the present invention, where the display time of the target verification area at each display position may not be counted according to the first display time threshold, and the specific method steps are as follows:
s401: presetting a second display time threshold;
s402: and when the center position coordinate of the target shape verification area is changed to the next center position coordinate, timing according to a set second display time threshold value.
After the center position coordinates of the target shape verification area are changed, the next center position coordinates are the center position coordinates of the currently displayed target shape verification area.
S403: and when the timing reaches the second display time threshold, changing the center position coordinate of the currently displayed target shape verification area to the next center position coordinate according to a preset track.
Specifically, steps 402 to S403 may be executed in a loop, and the coordinates of the center position of the target verification area may be sequentially changed according to a preset trajectory.
In summary, as shown in fig. 3 and 4, in the embodiment, the coordinates of the center position of the target verification area are changed at intervals according to the preset trajectory, thereby realizing the moving display of the target verification area. The target verification area displayed in a moving mode is not easy to crack by a machine program, and the verification method of the verification code also has good verification effect and safety.
In an embodiment of the present invention, as shown in fig. 5, fig. 5 is a flowchart of a verification method 500 for a verification code in an embodiment of the present invention, where the verification method for the verification code includes the following steps:
s501: a first display time threshold and a track of the display position of the target shape verification area are preset.
Wherein, the first display time threshold is preset and can be set to be 1 second or 2 seconds. A normal human user can recognize and memorize one captcha element within 1 second or 2 seconds.
The track of the display position of the target-shaped verification area is preset, the track is composed of coordinates of the center position of the display position of the target-shaped verification area each time, and the number of the coordinates of the center position composing the track is at least two.
S502: and after receiving an instruction for generating the verification code triggered by a user, displaying a verification window, and timing according to a set first display time threshold.
The verification window comprises a verification code prompting area and a target shape verification area, the verification code prompting area comprises a randomly generated verification code element serving as prompt information, the target shape verification area comprises a plurality of annular blocks extending outwards around the same center, and each annular block corresponds to different verification code elements. An authentication code element has a ring-shaped zone corresponding to the authentication code element in the target authentication area, and the ring-shaped zone may have an identification of the authentication code element. Each verification code element corresponds to one annular block, and the area of each annular block which can be selected for point contact is relatively large.
On the other hand, the verification window is displayed and the time is counted according to the set first display time threshold.
S503: and when the timing reaches the first display time threshold, deleting the verification code elements in the verification code prompt area, displaying the verification code prompt area as empty, and changing the center position coordinate of the target-shaped verification area to the next center position coordinate according to the track.
S504: and determining the touch position of the user according to the single touch action of the user in the target-shaped verification area.
The single touch action of the user in the target-shaped verification area can generate position information, and the position information can be specifically a position coordinate, so that the touch position of the user can be determined.
S505: and determining an annular block touched by the user according to the touch position.
Specifically, an annular block to which the touch position belongs is determined according to the touch position.
S506: and comparing the verification code element corresponding to the annular block touched by the user with the verification code element displayed in the verification code prompt area, and judging whether the verification code elements are consistent.
If yes, the verification is passed, and step S507 is executed: and (5) passing the verification.
Specifically, each annular block of the target-shaped verification area corresponds to different verification code elements, the verification code elements corresponding to the annular block touched by the user are compared with the verification code elements displayed in the verification code prompt area, and if the two verification code elements are consistent, the verification is passed;
if the two verification code elements are not consistent, the verification is not passed, and step S508 is executed.
In addition, the touched position touched by the user is not in the range of the target-shaped verification area, and the verification is judged not to pass, or the misoperation is judged not to be processed.
S508: and if the verification fails, randomly generating verification code elements again and displaying the verification code elements in the verification code prompt area, and returning to the step of determining the point contact position according to the single point contact action of the user in the target-shaped verification area to continue executing.
In summary, the verification method of the verification code in the embodiment of the present invention can complete the input verification of the verification code by performing a selection operation for one time according to a prompted verification code element for the user. The target-shaped verification area has simple display form, no redundant interference patterns and easy identification for users, the annular block of the target-shaped verification area can provide a larger area of point-touch selection for users, the input verification of verification codes is convenient for the users, the operation is simple, the verification code elements are clear and well identified, the target-shaped verification area has certain interest, the use experience of the users is improved,
in addition, the display form of the captcha element and the target-shaped authentication area further, in the embodiment of the present invention, the captcha prompt area displays one captcha element within a preset time period, and the captcha element should be recognizable to the user, and the captcha element is deleted when the timing reaches a first time threshold, where the first time threshold may specifically be 1 second or 2 seconds, that is, the captcha element is displayed in a flash form. The verification code elements displayed by the method can increase the difficulty of identifying the verification code by the computer to a certain extent, so that the computer program is difficult to capture and acquire the verification code elements serving as prompt information, the difficulty of cracking the verification code by the computer program is increased, and the verification effect and the safety of the verification code are improved. The target shape verification area can move according to a preset track, and the difficulty of verification code verification of a computer program can be increased by displaying the target shape verification area with constantly changing positions. Because the computer program can analyze the coordinate position of the verification area to determine the correct verification position, the display position of the target verification area changes, the computer program is difficult to determine the correct verification position, and the difficulty in cracking the verification code is increased.
The following description is made in detail with reference to an example in which a specific user performs the authentication code authentication operation.
Fig. 6 is a schematic diagram of a process in which a user performs a verification operation on a verification code in the embodiment of the present invention and passes the verification, as shown in fig. 6, and the embodiment of the present invention is described in detail with reference to fig. 6.
Specifically, as shown in fig. 6, after the user inputs the user name and password on the login page 61, the user triggers generation of the verification code, a verification window 62 is popped up and displayed, the verification window 62 displays a verification code element "5" in the verification code prompt region and a target-shaped verification region, namely, an annular target disc, "and the target-shaped verification region has an annular block of" 5 "corresponding to the verification code element" 5 ", wherein, starting from displaying the verification window 62, timing is performed according to a preset first time threshold, when the timing reaches the first display time threshold, the verification code element" 5 "is deleted, the target-shaped verification region" annular target disc "is displaced while the verification code element" 5 "disappears, as shown in a verification window 62a, the user operates by clicking or touching the target-shaped verification region" annular target disc "according to the verification code element" 5 "in the verification code prompt region, and selecting the annular block corresponding to the annular target disc to input and verify the verification code corresponding to the annular block 5, wherein the verification code passes the verification, as shown in a verification window 62b and a verification window 62c, finally, the system automatically returns to the login page 61b, and enters a verification code passing back interface, so that the user can perform subsequent operations. As shown in fig. 6, the verification windows 62 to 62c show the user verification process of the verification method in the embodiment of the present invention.
Fig. 7 is a schematic diagram illustrating a process of a user performing a verification operation on a verification code and failing to verify the verification code in the embodiment of the present invention, as shown in fig. 7. The verification window 71 and the verification window 72 show that the verification code input by the user is incorrect, if the verification code input by the user is incorrect, the verification element is '5', the verification code element of the annular block of the annular target disc touched by the user is '2', and the verification code element is inconsistent with the verification element '5' in the verification code prompt area, the verification fails, the verification code prompt area displays the verification code element again, displays a new verification code element '1', and meanwhile, the annular target disc in the target-shaped verification area moves.
In summary, the input method of the verification code in this embodiment is simple and easy for the user to operate, and has fun. Compared with the existing verification code, the verification code in the embodiment of the invention has simple picture and is easy to be identified by a user, verification code elements for verification do not need to be distorted and displayed, and the background of a target-shaped verification area does not have complex interference codes. For the computer and other machines, the display of the verification code elements in the verification code prompt area and the display of the target verification area are changeable, the verification code elements are displayed in a flash mode, and the target verification area is displayed in a moving mode, so that the difficulty of identifying images and obtaining and positioning of the machine is increased, and the machine is difficult to crack the verification code in the embodiment.
Therefore, for the user, the verification method of the verification code is simple and interesting to operate, optimizes the use experience of the user, can effectively enhance the anti-cracking capability of the verification code, and has better safety.
Specifically, in the embodiment of the present invention, as shown in fig. 8, fig. 8 is a schematic diagram illustrating a moving state of the target-shaped verification area in the embodiment of the present invention. In the embodiment of the present invention, the target verification area "annular target disk" moves once every predetermined time, and the moving position may be a preset position, that is, the target verification area "annular target disk" may move and display according to a preset track, and the duration of the time displayed at each position may be a preset duration.
Specifically, in the embodiment of the present invention, as shown in fig. 9, fig. 9 is a schematic diagram of a display style of a verification window in the embodiment of the present invention; the verification window 90 may be divided into two parts, one of which is a verification code prompt area 91 for displaying a verification code element 911 as prompt information; the other part is an area for moving and displaying the target-shaped verification area 92, specifically, the verification code elements 911 can be numbers, characters, colors, images or the like which can be recognized and memorized easily by a user, and the number of the verification code elements displayed each time is one, so as to avoid increasing the recognition and memorizing load of the user.
It is understood that, in the above-mentioned embodiment, the layout manner of the verification window 90 is only a specific example made for helping understanding the embodiment of the present invention, and is not a limitation to the technical solution of the present invention, and other manners that can be realized by those skilled in the art without creative efforts may also be adopted. For example, the validation code prompt area 91 is below the validation window 90 and the target validation area 92 is above the validation code display box 90.
Specifically, in the embodiment of the present invention, as shown in fig. 10, fig. 10 is a schematic diagram of the shape and the annular block division of the target-shaped verification area in the embodiment of the present invention; the shape of the target-shaped verification area can be a circle, a square, a triangle, a solid figure or the like, and the pattern of dividing the annular blocks of the target-shaped verification area can be a circle target, a square target, a triangle target, a diamond target, an oval target, a heart-shaped target or the like. As shown in fig. 10, the annular block of the target-shaped authentication area may be divided into three annular blocks of 1, 2 and 3, and the example shown in the above-mentioned figure is only an example for facilitating understanding of the present invention and cannot be regarded as a specific limitation to the embodiment of the present invention. The division and number of the annular blocks also includes other ways that one of ordinary skill in the art can implement without creative effort.
As shown in fig. 11, fig. 11 is a schematic diagram of an apparatus 1100 for verifying a verification code according to an embodiment of the present invention, in which the apparatus 1100 includes:
the display module 1101 is configured to display the verification window after receiving an instruction for generating a verification code triggered by a user, where the verification window includes a verification code prompting area and a target verification area, and the verification code prompting area includes a verification code element serving as prompt information; the target verification area comprises a plurality of annular blocks which extend outwards around the same center, and each annular block corresponds to different verification code elements.
The main control module 1102 is used for determining a touch position of a user according to a single touch action of the user in the target-shaped verification area and determining an annular block touched by the user according to the touch position;
a verification module 1103, where the verification module 1103 is configured to compare a verification code element corresponding to the annular block touched by the user with the verification code element displayed in the verification code prompt area, and if the verification code element is consistent with the verification code element displayed in the verification code prompt area, the verification passes; otherwise, the verification is not passed.
As shown in fig. 12, fig. 12 is a schematic diagram of an apparatus 1200 for verifying a verification code according to an embodiment of the present invention, where the apparatus 1200 for verifying a verification code further includes, on the basis of the apparatus 1100 for verifying a verification code:
a timing module 1202, where the timing module 1202 is configured to time according to a set first display time threshold when executing the display verification window
The main control module 1102 is further configured to preset a first display time threshold, and delete the verification code element in the verification code prompt area when the timing reaches the first display time threshold, where the verification code prompt area is displayed as empty.
The verification code prompting area displays the verification code elements as prompting information within a set time, the preset first display time threshold value can be 1 second or 2 seconds, and the specific duration of the set time is preferably the shortest duration which enables a user to identify and memorize the verification code elements. The normal human visual response is on the order of milliseconds, so a set time of 1 or 2 seconds is used and the user can identify and remember the captcha element.
Preferably, the main control module 1102 is further configured to preset a trajectory of the display position of the target verification area, where the trajectory is composed of coordinates of a center position of the display position of the target verification area each time, and when the timing reaches the first display time threshold, change the coordinates of the center position of the target verification area to coordinates of a next center position according to the trajectory.
By applying the scheme of the embodiment of the invention, the user can conveniently input the verification code, the user can input and verify the verification code only by carrying out one-time selection operation in the target verification area according to one verification code element serving as the prompt information, the display form of the target verification area is simple and easy for the user to identify, and the user experience is improved.
Furthermore, a non-transitory computer-readable storage medium may be further provided in the framework as shown in fig. 1 to 5, which may store instructions that, when executed by a processor, cause the processor to perform the steps of the verification method of the verification code as described in the foregoing embodiments.
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. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. The storage medium includes various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (9)

1. A method of validating a validation code, the method comprising:
after receiving an instruction for generating a verification code triggered by a user, displaying a verification window, wherein the verification window comprises a verification code prompting area and a target verification area, and the verification code prompting area comprises a randomly generated verification code element as prompt information; the target verification area comprises a plurality of annular blocks which extend outwards around the same center, and each annular block corresponds to different verification code elements;
determining the point-touch position of the user according to the single point-touch action of the user in the target-shaped verification area;
determining an annular block touched by a user according to the touch position;
comparing the verification code element corresponding to the annular block touched by the user with the verification code element displayed in the verification code prompt area, and if the verification code element is consistent with the verification code element displayed in the verification code prompt area, passing the verification; otherwise, the verification is not passed.
2. The method of claim 1,
the method further comprises the following steps: presetting a first display time threshold;
when the display verification window is executed, the method further comprises timing according to a set first display time threshold;
when the timing reaches the first display time threshold, the method further comprises: deleting the verification code elements in the verification code prompting area, wherein the verification code prompting area is displayed to be empty.
3. The method of claim 2, further comprising: presetting a track of the display position of the target shape verification area, wherein the track consists of the coordinates of the center position of the display position of each target shape verification area;
and when the timing reaches the first display time threshold, changing the central position coordinate of the target shape verification area to the next central position coordinate according to the track.
4. The method of claim 3, further comprising: presetting a second display time threshold;
timing according to a set second display time threshold when the center position coordinate of the target shape verification area is changed to a next center position coordinate, wherein the next center position coordinate is the center position coordinate of the currently displayed target shape verification area;
and when the timing reaches the second display time threshold, changing the center position coordinate of the currently displayed target shape verification area to the next center position coordinate according to the track.
5. The method of any one of claims 1 to 4, wherein if the verification fails, the method further comprises:
and randomly generating verification code elements again and displaying the verification code elements in the verification code prompt area, and returning to the step of determining the point contact position according to the single point contact action of the user in the target-shaped verification area to continue executing.
6. An apparatus for verifying a verification code, the apparatus comprising:
the display module is used for displaying the verification window after receiving a verification code generating instruction triggered by a user, wherein the verification window comprises a verification code prompting area and a target-shaped verification area, and the verification code prompting area comprises a verification code element serving as prompt information; the target verification area comprises a plurality of annular blocks which extend outwards around the same center, and each annular block corresponds to different verification code elements;
the main control module is used for determining the point contact position of the user according to the single point contact action of the user in the target-shaped verification area and determining an annular block touched by the user according to the point contact position;
the verification module is used for comparing the verification code elements corresponding to the annular block touched by the user with the verification code elements displayed in the verification code prompt area, and if the verification code elements are consistent, the verification passes; otherwise, the verification is not passed.
7. The apparatus of claim 6, further comprising:
the timing module is used for timing according to a set first display time threshold when the display verification window is executed;
the main control module is further used for presetting a first display time threshold value, and deleting the verification code elements in the verification code prompt area when the timing reaches the first display time threshold value, wherein the verification code prompt area is displayed to be empty.
8. The apparatus of claim 7,
the main control module is used for presetting a track of the display position of the target shape verification area, the track is composed of coordinates of the center position of the display position of the target shape verification area each time, and when the timing reaches the first display time threshold, the center position coordinates of the target shape verification area are changed to the next center position coordinates according to the track.
9. A storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform the method of any of claims 1-5.
CN201910204646.4A 2019-03-18 2019-03-18 Verification method, device and storage medium for verification code Active CN111723356B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910204646.4A CN111723356B (en) 2019-03-18 2019-03-18 Verification method, device and storage medium for verification code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910204646.4A CN111723356B (en) 2019-03-18 2019-03-18 Verification method, device and storage medium for verification code

Publications (2)

Publication Number Publication Date
CN111723356A true CN111723356A (en) 2020-09-29
CN111723356B CN111723356B (en) 2024-04-05

Family

ID=72562293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910204646.4A Active CN111723356B (en) 2019-03-18 2019-03-18 Verification method, device and storage medium for verification code

Country Status (1)

Country Link
CN (1) CN111723356B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007299167A (en) * 2006-04-28 2007-11-15 Mitsubishi Electric Corp Design verification device
CN103870725A (en) * 2012-12-13 2014-06-18 华为技术有限公司 Method and device for generating and verifying verification codes
CN105306208A (en) * 2014-07-21 2016-02-03 腾讯科技(深圳)有限公司 Identity verification method and identity verification device
KR101634966B1 (en) * 2016-04-05 2016-06-30 삼성지투비 주식회사 Image tracking system using object recognition information based on Virtual Reality, and image tracking method thereof
CN106127836A (en) * 2016-06-30 2016-11-16 北京奇艺世纪科技有限公司 Identifying code Picture Generation Method and device
CN108010097A (en) * 2017-11-30 2018-05-08 广州品唯软件有限公司 Generation, verification method and the device of identifying code image

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007299167A (en) * 2006-04-28 2007-11-15 Mitsubishi Electric Corp Design verification device
CN103870725A (en) * 2012-12-13 2014-06-18 华为技术有限公司 Method and device for generating and verifying verification codes
CN105306208A (en) * 2014-07-21 2016-02-03 腾讯科技(深圳)有限公司 Identity verification method and identity verification device
KR101634966B1 (en) * 2016-04-05 2016-06-30 삼성지투비 주식회사 Image tracking system using object recognition information based on Virtual Reality, and image tracking method thereof
CN106127836A (en) * 2016-06-30 2016-11-16 北京奇艺世纪科技有限公司 Identifying code Picture Generation Method and device
CN108010097A (en) * 2017-11-30 2018-05-08 广州品唯软件有限公司 Generation, verification method and the device of identifying code image

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈园园;: "点触式的验证码新玩法", 互联网周刊, no. 09 *

Also Published As

Publication number Publication date
CN111723356B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
US9129100B2 (en) Verification code generation and verification method and apparatus
EP2506183B1 (en) Systems and methods for gesture lock obfuscation
CA2836052C (en) Picture gesture authentication
US9507928B2 (en) Preventing the discovery of access codes
CN106709382B (en) Keyboard display method and device
US10664084B2 (en) Systems and methods for increased security in authentication code entry for touch-sensitive screen enabled devices
WO2016101817A1 (en) Method and device for operating form on mobile terminal
KR20160142867A (en) System and method for inputting one or more inputs associated with a multi-input target
JP2015133116A (en) Method of inputting confidential data on terminal
CN105303096B (en) Method, equipment and the machine readable storage device that a kind of symbol for the certification based on sliding selects
US20120291123A1 (en) Method and electronic device for inputting passwords
CN111723356B (en) Verification method, device and storage medium for verification code
CN112818319A (en) Verification method and device of graphic verification code, electronic equipment and storage medium
KR101837852B1 (en) Apparatus, method, and application for user authentication based on scroll
KR102014408B1 (en) Method and computer program for user authentication using image touch password
CN105069332A (en) Fingerprint-based password authentication method and password authentication apparatus
JP2015184717A (en) authentication device and program
WO2016062093A1 (en) Touchscreen unlocking method and device
EP3460699A1 (en) Systems and methods for increased security in authentication code entry for touch-sensitive screen enabled devices
CN106709316B (en) Unlocking method in mobile terminal and mobile terminal
KR101914475B1 (en) Authentication information inputing method using variable pattern based on reference and authenticating method by using itself
CN108830073B (en) Unlocking method, device, terminal and computer readable storage medium
EP2905716A1 (en) Method for launching an application identified by an icon, corresponding terminal
US20160078207A1 (en) Method and apparatus for providing combined authentication service
CN106033505A (en) Unlock method, unlock code setting method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant after: Jingdong Technology Holding Co.,Ltd.

Address before: Room 221, 2nd floor, Block C, 18 Kechuang 11th Street, Daxing Economic and Technological Development Zone, Beijing, 100176

Applicant before: JINGDONG DIGITAL TECHNOLOGY HOLDINGS Co.,Ltd.

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant