Movatterモバイル変換


[0]ホーム

URL:


CN103886243A - Generation method and device of dynamic verification code pictures and verification method and device of dynamic verification code pictures - Google Patents

Generation method and device of dynamic verification code pictures and verification method and device of dynamic verification code pictures
Download PDF

Info

Publication number
CN103886243A
CN103886243ACN201410092834.XACN201410092834ACN103886243ACN 103886243 ACN103886243 ACN 103886243ACN 201410092834 ACN201410092834 ACN 201410092834ACN 103886243 ACN103886243 ACN 103886243A
Authority
CN
China
Prior art keywords
picture
verification code
sub
display content
dynamic
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
CN201410092834.XA
Other languages
Chinese (zh)
Other versions
CN103886243B (en
Inventor
王云吉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co LtdfiledCriticalBeijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201410092834.XApriorityCriticalpatent/CN103886243B/en
Publication of CN103886243ApublicationCriticalpatent/CN103886243A/en
Application grantedgrantedCritical
Publication of CN103886243BpublicationCriticalpatent/CN103886243B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention provides a generation method and device of dynamic verification code pictures and a verification method and device of the dynamic verification code pictures in order to reduce the success rate of automatic identification through a machine. The generation method of the dynamic verification code pictures includes the steps that at least two frames of static verification code pictures are acquired, wherein in each frame of static verification code picture, a verification code is displayed after first display content and second display content are played; the static verification code pictures are played, and the dynamic verification code pictures are obtained, wherein in the playing process, first dynamic content is obtained according to the first display content, second dynamic content is obtained according to the second display content, and the first dynamic content and the second dynamic content contain different kinds of dynamic information. Through the method, the success rate of automatic identification through a machine can be lowered, the risk that verification codes are cracked is reduced, and the safety of a network is improved.

Description

Method and device for generating dynamic verification code picture and verification method and device
Technical Field
The invention relates to the technical field of network security, in particular to a method and a device for generating a dynamic verification code picture and a verification method and a verification device.
Background
In order to prevent some users from using a machine to automatically perform computer operations such as login, information distribution, downloading and the like, many websites require the user to input an authentication code when the user performs the relevant computer operation. The verification code is usually displayed in the form of a picture, and the user inputs the verification code according to characters displayed in the picture.
At present, static verification code pictures are generally used, in order to reduce the success rate of recognition, characters can be blurred and distorted, noise and other processing are added into the background, but as the automatic recognition capability of a machine is stronger and stronger, a higher recognition rate still exists.
In order to improve the automatic identification difficulty of a machine, a dynamic verification code picture is generated at present, the dynamic verification code picture comprises a plurality of frames of pictures, each frame of picture is a static picture, and the dynamic verification code picture is obtained by playing the static pictures frame by frame.
In the related technology, the identifying code and the background can be distinguished from each frame of static identifying code picture, so that the machine cracks the identifying code by capturing one frame of picture.
Therefore, the machine in the related art still has high automatic identification capability, the risk of the verification code being cracked is high, and the network security is reduced.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, an object of the present invention is to provide a method for generating a dynamic verification code picture, which can reduce the automatic identification capability of software on a verification code, reduce the risk of the verification code being cracked, and further improve the network security.
Another object of the present invention is to provide an apparatus for generating a dynamic verification code picture.
Another object of the invention is to propose a verification method.
Another object of the invention is to propose an authentication device.
In order to achieve the above object, a method for generating a dynamic verification code picture according to an embodiment of a first aspect of the present invention includes: acquiring at least two frames of static verification code pictures, wherein each frame of static verification code picture comprises a first sub-picture and a second sub-picture, the first sub-picture is a sub-picture where a verification code is located, the second sub-picture is a sub-picture where a background is located, the first sub-picture comprises first display content, the second sub-picture comprises second display content, and the first display content and the second display content display the verification code after being played; and playing the static verification code picture to obtain a dynamic verification code picture, wherein a first dynamic content is obtained according to the first display content during playing, a second dynamic content is obtained according to the second display content, and the first dynamic content and the second dynamic content have different dynamic information.
According to the method for generating the dynamic verification code picture provided by the embodiment of the first aspect of the invention, the sub-picture where the verification code is located and the sub-picture where the background is located are distinguished, the verification code is recognized by human eyes due to the fact that the sub-picture where the verification code is located and the sub-picture where the background is located have different motion information, the verification code is displayed only after the first display content in the sub-picture where the verification code is located and the second display content in the sub-picture where the background is located are played frame by frame, and the verification code cannot be recognized when the verification code is displayed in a single frame. In addition, compared with the methods of blurring, warping, adding noise and the like generally used by static verification code pictures, the present embodiment may not perform the processing of blurring, warping, adding noise and the like, and may improve the user experience.
In order to achieve the above object, an apparatus for generating a dynamic verification code according to an embodiment of the second aspect of the present invention includes: the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring at least two frames of static verification code pictures, each frame of static verification code picture comprises a first sub-picture and a second sub-picture, the first sub-picture is a sub-picture where a verification code is located, the second sub-picture is a sub-picture where a background is located, the first sub-picture comprises first display content, the second sub-picture comprises second display content, and the first display content and the second display content display the verification code after being played; and the merging module is used for playing the static verification code picture to obtain a dynamic verification code picture, wherein a first dynamic content is obtained according to the first display content during playing, a second dynamic content is obtained according to the second display content, and the first dynamic content and the second dynamic content have different dynamic information.
The device for generating a dynamic verification code provided by the embodiment of the second aspect of the present invention distinguishes the sub-picture where the verification code is located and the sub-picture where the background is located, and the sub-picture where the verification code is located and the sub-picture where the background is located have different motion information to realize the identification of the verification code by human eyes, and the verification code is displayed only after the first display content in the sub-picture where the verification code is located and the second display content in the sub-picture where the background is located are played frame by frame, and the verification code cannot be identified when a single frame is used, so that even if a machine captures a frame of picture, the verification code cannot be identified, and therefore, the success rate of automatic identification of the machine can be reduced, the risk of cracking the verification code is reduced, and the network security is improved. In addition, compared with the methods of blurring, warping, adding noise and the like generally used by static verification code pictures, the present embodiment may not perform the processing of blurring, warping, adding noise and the like, and may improve the user experience.
In order to achieve the above object, an authentication method according to an embodiment of the third aspect of the present invention includes: displaying a dynamic verification code picture, wherein the dynamic verification code picture is obtained according to the generation method provided by the embodiment of the first aspect; receiving a user input; and verifying the user input according to the dynamic verification code picture.
According to the verification method provided by the embodiment of the third aspect of the invention, the dynamic verification code picture is adopted during verification, the verification code can be displayed only after the display contents in the static verification code picture forming the dynamic verification code picture are played frame by frame, and the verification code cannot be acquired by a single frame, so that the machine identification success rate can be reduced, the risk of cracking the verification code is reduced, and the network security is improved.
In order to achieve the above object, an authentication apparatus according to a fourth aspect of the present invention includes: the display module is used for displaying a dynamic verification code picture, wherein the dynamic verification code picture is obtained according to the generation method provided by the embodiment of the first aspect; a receiving module for receiving user input; and the verification module is used for verifying the user input according to the dynamic verification code picture.
According to the verification device provided by the embodiment of the fourth aspect of the invention, the dynamic verification code picture is adopted during verification, the verification code can be displayed only after the display contents in the static verification code picture forming the dynamic verification code picture are played frame by frame, and the verification code cannot be acquired by a single frame, so that the machine identification success rate can be reduced, the risk of cracking the verification code can be reduced, and the network security can be improved.
In order to achieve the above object, a client device according to a fifth aspect of the present invention includes a housing, a processor, a memory, a circuit board, and a power circuit, wherein the circuit board is disposed inside a space defined by the housing, and the processor and the memory are disposed on the circuit board; a power supply circuit for supplying power to each circuit or device of the apparatus; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of: acquiring at least two frames of static verification code pictures, wherein each frame of static verification code picture comprises a first sub-picture and a second sub-picture, the first sub-picture is a sub-picture where a verification code is located, the second sub-picture is a sub-picture where a background is located, the first sub-picture comprises first display content, the second sub-picture comprises second display content, and the first display content and the second display content display the verification code after being played; and playing the static verification code picture to obtain a dynamic verification code picture, wherein a first dynamic content is obtained according to the first display content during playing, a second dynamic content is obtained according to the second display content, and the first dynamic content and the second dynamic content have different dynamic information.
The client device provided by the fifth aspect of the present invention distinguishes the sub-picture where the verification code is located and the sub-picture where the background is located, and the sub-picture where the verification code is located and the sub-picture where the background is located have different motion information to realize the identification of the verification code by human eyes, and the verification code is displayed only after the first display content in the sub-picture where the verification code is located and the second display content in the sub-picture where the background is located are played frame by frame, and the verification code cannot be identified when a single frame is used, so that even if a machine captures a frame of picture, the verification code cannot be identified, and therefore, the success rate of automatic identification by the machine can be reduced, the risk of cracking the verification code is reduced, and the network security is improved. In addition, compared with the methods of blurring, warping, adding noise and the like generally used by static verification code pictures, the present embodiment may not perform the processing of blurring, warping, adding noise and the like, and may improve the user experience.
In order to achieve the above object, a client device according to a sixth aspect of the present invention includes a housing, a processor, a memory, a circuit board, and a power circuit, where the circuit board is disposed inside a space enclosed by the housing, and the processor and the memory are disposed on the circuit board; a power supply circuit for supplying power to each circuit or device of the apparatus; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of: displaying a dynamic verification code picture, wherein the dynamic verification code picture is obtained according to the generation method provided by the embodiment of the first aspect; receiving a user input; and verifying the user input according to the dynamic verification code picture.
According to the client device provided by the sixth aspect of the invention, the dynamic verification code picture is adopted during verification, the verification code can be displayed only after the display contents in the static verification code picture forming the dynamic verification code picture are played frame by frame, and the verification code cannot be acquired by a single frame, so that the machine identification success rate can be reduced, the risk of cracking the verification code can be reduced, and the network security can be improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a method for generating a dynamic verification code picture according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a region where a sub-picture is located in a regular manner according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a sub-picture in an irregular area according to an embodiment of the present invention.
FIG. 4 is a diagram illustrating a character position display according to an embodiment of the present invention.
FIG. 5 is a diagram illustrating another exemplary display of character positions in accordance with an embodiment of the present invention.
Fig. 6 is a schematic diagram of a display content according to an embodiment of the present invention.
Fig. 7 is a schematic diagram of dynamic content after frame-by-frame playing according to an embodiment of the present invention.
Fig. 8 is a flowchart illustrating a method for generating a dynamic verification code picture according to another embodiment of the present invention.
FIG. 9 is a diagram of two frames of static verification code pictures according to an embodiment of the present invention.
Fig. 10 is a schematic structural diagram of a device for generating a dynamic verification code picture according to another embodiment of the present invention.
Fig. 11 is a flowchart illustrating a verification method according to another embodiment of the present invention.
Fig. 12 is a schematic structural diagram of an authentication apparatus according to another embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a schematic flow chart of a method for generating a dynamic verification code picture according to an embodiment of the present invention, where the method includes:
s11: the method comprises the steps of obtaining at least two frames of static verification code pictures, wherein each frame of static verification code picture comprises a first sub-picture and a second sub-picture, the first sub-picture is a sub-picture where a verification code is located, the second sub-picture is a sub-picture where a background is located, the first sub-picture comprises first display content, the second sub-picture comprises second display content, and the first display content and the second display content display the verification code after being played.
The static verification code picture of each frame can be obtained by splicing a first sub-picture and a second sub-picture which are obtained in advance; or, the verification code picture can be obtained by dividing the area to be occupied by the verification code picture and filling corresponding contents; alternatively, the information may be directly generated according to a preset program.
The area occupied by each sub-picture may be regular, for example, referring to fig. 2, the area to be occupied by the captcha picture is divided into 5 rows and 3 columns of sub-areas, and each sub-picture occupies one of the sub-areas. Or,
the area occupied by each sub-picture may be irregular, e.g. see fig. 3, the size of the sub-areas being different.
The position of the first sub-picture may be preset, and when actually set, a specific position value, for example, a specific horizontal and vertical coordinate value, may be set. Or,
it is also possible to set a position interval and then randomly select the position interval, for example, set the interval value of the horizontal and vertical coordinates and randomly select the position interval.
It can be understood that the preset position interval has a positive correlation with the sum of the numbers of the first sub-picture and the second sub-picture. For example, the larger the number of sub-pictures included in each frame of static verification code picture, the larger the preset position interval may be, that is, the character to be displayed may float in a larger range.
Referring to fig. 4 and 5, taking the character to be displayed as "8" for example, two different position effects are given by randomly choosing the position of the first sub-picture within the position interval.
In addition, in fig. 4 and 5, the sub-picture occupied by "8" is the first sub-picture, and the remaining blank sub-pictures are the second sub-pictures.
Wherein, in the same frame,
the first display content is the same at different positions, the second display content is the same at different positions, and the first display content and the second display content are the same; or,
the first display content is different at different locations; or,
the second display content is different at different locations.
In the different frames, it is possible to have,
the first display contents are the same or different; and/or the presence of a gas in the gas,
the second display contents are the same or different.
For example, referring to fig. 6, in the same frame, taking the first display content as an example, the number "1" may be in some sub-pictures, and the letter "L" may be in other sub-pictures (for easier distinction, L is used to replace L in fig. 6); alternatively, the first display content is all gears, but the number of gears in different positions is different, for example, gears with three teeth in some positions, gears with four teeth in other positions, and the like.
In addition, the display content in different frames may be the same or different. Still taking the first display content as an example, the number "1" may be in one frame and the letter "L" (lower case L) may be in another frame.
In this embodiment, taking the example that the first display content and the second display content are both numbers "1", since the first display content and the second display content are the same in the same frame, the machine cannot recognize the verification code even if capturing a frame of picture.
S12: and playing the static verification code picture to obtain a dynamic verification code picture, wherein a first dynamic content is obtained according to the first display content during playing, a second dynamic content is obtained according to the second display content, and the first dynamic content and the second dynamic content have different dynamic information.
The static verification code picture can be played frame by frame to obtain a dynamic verification code picture.
Through playing, dynamic display content can be obtained, the first dynamic content and the second dynamic content have different dynamic information, and the verification code which can be identified by human eyes is obtained.
For example, referring to fig. 7, "1" in the first display content is rotated clockwise with the center point, and "1" in the second display content is rotated counterclockwise with the center point.
Because the rotation directions of the two are different, human eyes can distinguish the two, and the displayed character is '8'. However, the machine can only capture static content, that is, when the machine captures a static verification code, the machine sees all the content of "1" and cannot see that the displayed character is "8", thereby reducing the success rate of automatic recognition of the machine.
It is to be understood that the dynamic information is not limited to direction, but may be different in frequency and/or different in motion. For example, the first display content and the second display content are both rotated clockwise, but the frequency of rotation is different; and/or the first display content is panned and the second display content is rotated.
In addition, the static verification code picture further comprises a third sub-picture, the third sub-picture is a sub-picture where the interference point is located, the third sub-picture comprises third display content, third dynamic content is obtained according to the third display content when the third sub-picture is played frame by frame, and the third dynamic content and the first dynamic content have the same dynamic information.
Optionally, the third display content is the same or different in the same frame; or,
the third display content is the same or different in different frames; or,
the third display content is the same as or different from the first display content and/or the second display content in the same frame.
In the embodiment, the sub-picture where the verification code is located and the sub-picture where the background is located are distinguished, the sub-picture where the verification code is located and the sub-picture where the background is located have different motion information to realize the identification of the verification code by human eyes, in addition, the verification code is displayed only after the first display content in the sub-picture where the verification code is located and the second display content in the sub-picture where the background is located are played frame by frame, and the verification code cannot be identified when a single frame is used, so that the success rate of automatic identification of a machine can be reduced, the risk of cracking the verification code is reduced, and the network safety is improved. In addition, compared with the methods of blurring, warping, adding noise and the like generally used by static verification code pictures, the present embodiment may not perform the processing of blurring, warping, adding noise and the like, and may improve the user experience.
Fig. 8 is a schematic flowchart of another method for generating a dynamic verification code picture according to an embodiment of the present invention, where the embodiment takes generating multiple dynamic pictures as an example, the embodiment includes:
s81: and obtaining a first frame of static verification code picture.
The composition of each frame of static verification code picture can be referred to the embodiment shown in fig. 1.
S82, obtaining a second frame of static verification code picture, wherein the first display content has different states in the second frame of static verification code picture and the first frame of static verification code picture.
A specific process of obtaining a frame of static verification code picture may refer to the embodiment shown in fig. 1.
The having different states, including:
translation of the verification code occurs; or,
stretching the verification code; or,
the verification code appears zoomed; or,
the authentication code is distorted.
In this embodiment, taking translation as an example, the position of the first sub-picture in the first frame of static verification code picture may be set to differ by a preset step length relative to the position of the first sub-picture in the second frame, as shown in fig. 9, to obtain two frames of static verification code pictures, where the difference between the positions of the verification codes in the two frames of static verification code pictures is set to be a set step length.
S83: and sequentially playing the first frame of static verification code picture and the second frame of static verification code picture to obtain the dynamic verification code picture.
According to the embodiment, the verification code has different states in different frames through processing, so that the machine identification success rate can be further reduced, the risk of the verification code being cracked is reduced, and the network security is improved.
Fig. 10 is a schematic structural diagram of a device for generating a dynamic verification code picture according to another embodiment of the present invention, where thedevice 100 includes an obtainingmodule 101 and a combiningmodule 102.
The obtainingmodule 101 is configured to obtain at least two frames of static verification code pictures, where each frame of static verification code picture includes a first sub-picture and a second sub-picture, the first sub-picture is a sub-picture where a verification code is located, the second sub-picture is a sub-picture where a background is located, the first sub-picture includes first display content, the second sub-picture includes second display content, and the first display content and the second display content display the verification code after being played; the mergingmodule 102 is configured to play the static verification code picture to obtain a dynamic verification code picture, where a first dynamic content is obtained according to the first display content during playing, a second dynamic content is obtained according to the second display content, and the first dynamic content and the second dynamic content have different dynamic information.
In one embodiment, the dynamic information includes at least one of:
direction of motion, frequency of motion, mode of motion.
In another embodiment, the first frame is, in the same frame,
the first display content is the same at different positions, the second display content is the same at different positions, and the first display content and the second display content are the same; or,
the first display content is different at different locations; or,
the second display content is different at different locations.
In another embodiment, the frame is divided, in different frames,
the first display contents are the same or different; and/or the presence of a gas in the gas,
the second display contents are the same or different.
In another embodiment, the position of the first sub-picture is determined as follows:
and randomly selecting the position of the first sub-picture within a preset position interval.
In another embodiment, the preset position intervals are the same in different frames; or,
in different frames, the preset position intervals are different, so that the verification code has different states in different frames.
In another embodiment, the having different states includes:
translation of the verification code occurs; or,
stretching the verification code; or,
the verification code appears zoomed; or,
the authentication code is distorted.
In another embodiment, the preset position interval has a positive correlation with the sum of the numbers of the first sub-picture and the second sub-picture.
In another embodiment, the static verification code picture further includes a third sub-picture, where the third sub-picture is a sub-picture where the interference point is located, the third sub-picture includes third display content, a third dynamic content is obtained according to the third display content when the third sub-picture is played frame by frame, and the third dynamic content and the first dynamic content have the same dynamic information.
In another embodiment, the third display content is the same or different in the same frame; or,
the third display content is the same or different in different frames; or,
the third display content is the same as or different from the first display content and/or the second display content in the same frame.
The specific contents of each parameter, process, etc. in the device for generating a dynamic verification code picture may refer to the above method for generating a dynamic verification code picture, and are not described herein again.
In the embodiment, the sub-picture where the verification code is located and the sub-picture where the background is located are distinguished, the sub-picture where the verification code is located and the sub-picture where the background is located have different motion information, so that the verification code is recognized by human eyes, and the verification code cannot be recognized when a single frame is displayed only after the first display content in the sub-picture where the verification code is located and the second display content in the sub-picture where the background is located are played frame by frame, so that the verification code cannot be recognized even if the machine captures a frame of picture, the success rate of automatic recognition of the machine can be reduced, the risk of cracking of the verification code is reduced, and the network security is improved. In addition, compared with the methods of blurring, warping, adding noise and the like generally used by static verification code pictures, the present embodiment may not perform the processing of blurring, warping, adding noise and the like, and may improve the user experience.
Fig. 11 is a schematic flowchart of a verification method for a dynamic verification code picture according to another embodiment of the present invention, where the method includes:
s111: and displaying the dynamic verification code picture.
The dynamic verification code picture is obtained by playing the static verification code picture, wherein each frame of the static verification code picture comprises a first sub-picture and a second sub-picture, the first sub-picture is a sub-picture where the verification code is located, the second sub-picture is a sub-picture where the background is located, the first sub-picture comprises first display content, the second sub-picture comprises second display content, the verification code is displayed after the first display content and the second display content are played, the first dynamic content is obtained according to the first display content during playing, the second dynamic content is obtained according to the second display content, and the first dynamic content and the second dynamic content have different dynamic information.
S112: receiving user input such as numbers, letters, underlines, and the like;
s113: and verifying the user input according to the dynamic verification code picture.
If the input is correct, the user is given the right of legal login, if the input is incorrect, the verification code is refreshed, another verification code picture is displayed, the user is prompted to input again until the correct verification code is input, and the user is given the right of legal login.
In one embodiment, the dynamic information includes at least one of:
direction of motion, frequency of motion, mode of motion.
In another embodiment, the first frame is, in the same frame,
the first display content is the same at different positions, the second display content is the same at different positions, and the first display content and the second display content are the same; or,
the first display content is different at different locations; or,
the second display content is different at different locations.
In another embodiment, the frame is divided, in different frames,
the first display contents are the same or different; and/or the presence of a gas in the gas,
the second display contents are the same or different.
In another embodiment, the position of the first sub-picture is determined as follows:
and randomly selecting the position of the first sub-picture within a preset position interval.
In another embodiment, the preset position intervals are the same in different frames; or,
in different frames, the preset position intervals are different, so that the verification code has different states in different frames.
In another embodiment, the having different states includes:
translation of the verification code occurs; or,
stretching the verification code; or,
the verification code appears zoomed; or,
the authentication code is distorted.
In another embodiment, the preset position interval has a positive correlation with the sum of the numbers of the first sub-picture and the second sub-picture.
In another embodiment, the static verification code picture further includes a third sub-picture, where the third sub-picture is a sub-picture where the interference point is located, the third sub-picture includes third display content, a third dynamic content is obtained according to the third display content when the third sub-picture is played frame by frame, and the third dynamic content and the first dynamic content have the same dynamic information.
In another embodiment, the third display content is the same or different in the same frame; or,
the third display content is the same or different in different frames; or,
the third display content is the same as or different from the first display content and/or the second display content in the same frame.
The specific contents of each parameter, process, etc. in the device for generating a dynamic verification code picture may refer to the above method for generating a dynamic verification code picture, and are not described herein again.
The specific generation process of the dynamic verification code picture adopted in the verification method may refer to the generation process of the dynamic verification code picture, and is not described herein again.
According to the embodiment, the dynamic verification code picture is adopted during verification, the verification code can be displayed only after the display contents in the static verification code picture forming the dynamic verification code picture are played frame by frame, the verification code cannot be acquired by a single frame, the machine identification success rate can be reduced, the risk of cracking the verification code is reduced, and the network security is improved.
Fig. 12 is a schematic structural diagram of an authentication apparatus according to another embodiment of the present invention, where theapparatus 120 includes adisplay module 121, a receivingmodule 122, and anauthentication module 123.
Thedisplay module 121 is configured to display a dynamic verification code picture.
The dynamic verification code picture is obtained by playing the static verification code picture, wherein each frame of the static verification code picture comprises a first sub-picture and a second sub-picture, the first sub-picture is a sub-picture where the verification code is located, the second sub-picture is a sub-picture where the background is located, the first sub-picture comprises first display content, the second sub-picture comprises second display content, the verification code is displayed after the first display content and the second display content are played, the first dynamic content is obtained according to the first display content during playing, the second dynamic content is obtained according to the second display content, and the first dynamic content and the second dynamic content have different dynamic information.
The receivingmodule 122 is used for receiving user input.
Theverification module 123 is configured to verify the user input according to the dynamic verification code picture.
In one embodiment, the dynamic information includes at least one of:
direction of motion, frequency of motion, mode of motion.
In another embodiment, the first frame is, in the same frame,
the first display content is the same at different positions, the second display content is the same at different positions, and the first display content and the second display content are the same; or,
the first display content is different at different locations; or,
the second display content is different at different locations.
In another embodiment, the frame is divided, in different frames,
the first display contents are the same or different; and/or the presence of a gas in the gas,
the second display contents are the same or different.
In another embodiment, the position of the first sub-picture is determined as follows:
and randomly selecting the position of the first sub-picture within a preset position interval.
In another embodiment, the preset position intervals are the same in different frames; or,
in different frames, the preset position intervals are different, so that the verification code has different states in different frames.
In another embodiment, the having different states includes:
translation of the verification code occurs; or,
stretching the verification code; or,
the verification code appears zoomed; or,
the authentication code is distorted.
In another embodiment, the preset position interval has a positive correlation with the sum of the numbers of the first sub-picture and the second sub-picture.
In another embodiment, the static verification code picture further includes a third sub-picture, where the third sub-picture is a sub-picture where the interference point is located, the third sub-picture includes third display content, a third dynamic content is obtained according to the third display content when the third sub-picture is played frame by frame, and the third dynamic content and the first dynamic content have the same dynamic information.
In another embodiment, the third display content is the same or different in the same frame; or,
the third display content is the same or different in different frames; or,
the third display content is the same as or different from the first display content and/or the second display content in the same frame.
The generation of the dynamic verification code picture adopted in the verification device may refer to the above-mentioned generation method of the dynamic verification code picture, and is not described herein again.
According to the embodiment, the dynamic verification code picture is adopted during verification, the verification code can be displayed only after the display contents in the static verification code picture forming the dynamic verification code picture are played frame by frame, the verification code cannot be acquired by a single frame, the machine identification success rate can be reduced, the risk of cracking the verification code is reduced, and the network security is improved.
The embodiment of the invention also provides client equipment which comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in the space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the apparatus; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of:
s11': the method comprises the steps of obtaining at least two frames of static verification code pictures, wherein each frame of static verification code picture comprises a first sub-picture and a second sub-picture, the first sub-picture is a sub-picture where a verification code is located, the second sub-picture is a sub-picture where a background is located, the first sub-picture comprises first display content, the second sub-picture comprises second display content, and the first display content and the second display content display the verification code after being played.
The static verification code picture of each frame can be obtained by splicing a first sub-picture and a second sub-picture which are obtained in advance; or, the verification code picture can be obtained by dividing the area to be occupied by the verification code picture and filling corresponding contents; alternatively, the information may be directly generated according to a preset program.
The area occupied by each sub-picture may be regular, for example, referring to fig. 2, the area to be occupied by the captcha picture is divided into 5 rows and 3 columns of sub-areas, and each sub-picture occupies one of the sub-areas. Or,
the area occupied by each sub-picture may be irregular, e.g. see fig. 3, the size of the sub-areas being different.
The position of the first sub-picture may be preset, and when actually set, a specific position value, for example, a specific horizontal and vertical coordinate value, may be set. Or,
it is also possible to set a position interval and then randomly select the position interval, for example, set the interval value of the horizontal and vertical coordinates and randomly select the position interval.
It can be understood that the preset position interval has a positive correlation with the sum of the numbers of the first sub-picture and the second sub-picture. For example, the larger the number of sub-pictures included in each frame of static verification code picture, the larger the preset position interval may be, that is, the character to be displayed may float in a larger range.
Referring to fig. 4 and 5, taking the character to be displayed as "8" for example, two different position effects are given by randomly choosing the position of the first sub-picture within the position interval.
In addition, in fig. 4 and 5, the sub-picture occupied by "8" is the first sub-picture, and the remaining blank sub-pictures are the second sub-pictures.
Wherein, in the same frame,
the first display content is the same at different positions, the second display content is the same at different positions, and the first display content and the second display content are the same; or,
the first display content is different at different locations; or,
the second display content is different at different locations.
In the different frames, it is possible to have,
the first display contents are the same or different; and/or the presence of a gas in the gas,
the second display contents are the same or different.
For example, referring to fig. 6, in the same frame, taking the first display content as an example, the number "1" may be in some sub-pictures, and the letter "L" may be in other sub-pictures (for easier distinction, L is used to replace L in fig. 6); alternatively, the first display content is all gears, but the number of gears in different positions is different, for example, gears with three teeth in some positions, gears with four teeth in other positions, and the like.
In addition, the display content in different frames may be the same or different. Still taking the first display content as an example, the number "1" may be in one frame and the letter "L" (lower case L) may be in another frame.
In this embodiment, taking the example that the first display content and the second display content are both numbers "1", since the first display content and the second display content are the same in the same frame, the machine cannot recognize the verification code even if capturing a frame of picture.
S12': and playing the static verification code picture to obtain a dynamic verification code picture, wherein a first dynamic content is obtained according to the first display content during playing, a second dynamic content is obtained according to the second display content, and the first dynamic content and the second dynamic content have different dynamic information.
The static verification code picture can be played frame by frame to obtain the dynamic verification code picture.
Dynamic display content can be obtained by playing frame by frame, the first dynamic content and the second dynamic content have different dynamic information, and the verification code which can be identified by human eyes is obtained.
For example, referring to fig. 7, "1" in the first display content is rotated clockwise with the center point, and "1" in the second display content is rotated counterclockwise with the center point.
Because the rotation directions of the two are different, human eyes can distinguish the two, and the displayed character is '8'. However, the machine can only capture static content, that is, when the machine captures a static verification code, the machine sees all the content of "1" and cannot see that the displayed character is "8", thereby reducing the success rate of automatic recognition of the machine.
It is to be understood that the dynamic information is not limited to direction, but may be different in frequency and/or different in motion. For example, the first display content and the second display content are both rotated clockwise, but the frequency of rotation is different; and/or the first display content is panned and the second display content is rotated.
In addition, the static verification code picture further comprises a third sub-picture, the third sub-picture is a sub-picture where the interference point is located, the third sub-picture comprises third display content, third dynamic content is obtained according to the third display content when the third sub-picture is played frame by frame, and the third dynamic content and the first dynamic content have the same dynamic information.
Optionally, the third display content is the same or different in the same frame; or,
the third display content is the same or different in different frames; or,
the third display content is the same as or different from the first display content and/or the second display content in the same frame.
In the embodiment, the sub-picture where the verification code is located and the sub-picture where the background is located are distinguished, the sub-picture where the verification code is located and the sub-picture where the background is located have different motion information to realize the identification of the verification code by human eyes, in addition, the verification code is displayed only after the first display content in the sub-picture where the verification code is located and the second display content in the sub-picture where the background is located are played frame by frame, and the verification code cannot be identified when a single frame is used, so that the success rate of automatic identification of a machine can be reduced, the risk of cracking the verification code is reduced, and the network safety is improved. In addition, compared with the methods of blurring, warping, adding noise and the like generally used by static verification code pictures, the present embodiment may not perform the processing of blurring, warping, adding noise and the like, and may improve the user experience.
Fig. 8 is a schematic flowchart of another method for generating a dynamic verification code picture according to an embodiment of the present invention, where the embodiment takes generating multiple dynamic pictures as an example, the embodiment includes:
s81': and obtaining a first frame of static verification code picture.
S82', a second frame of static verification code picture is obtained, wherein the first display content has different states in the second frame of static verification code picture and the first frame of static verification code picture.
A specific process of obtaining a frame of static verification code picture may refer to the embodiment shown in fig. 1.
The having different states, including:
translation of the verification code occurs; or,
stretching the verification code; or,
the verification code appears zoomed; or,
the authentication code is distorted.
In this embodiment, taking translation as an example, the position of the first sub-picture in the first frame of static verification code picture may be set to differ by a preset step length relative to the position of the first sub-picture in the second frame, as shown in fig. 9, to obtain two frames of static verification code pictures, where the difference between the positions of the verification codes in the two frames of static verification code pictures is set to be a set step length.
S83': and sequentially playing the first frame of static verification code picture and the second frame of static verification code picture to obtain the dynamic verification code picture.
According to the embodiment, the verification code has different states in different frames through processing, so that the machine identification success rate can be further reduced, the risk of the verification code being cracked is reduced, and the network security is improved.
The embodiment of the invention also provides client equipment which comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in the space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the apparatus; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of:
s111': and displaying the dynamic verification code picture.
The dynamic verification code picture is obtained by playing the static verification code picture frame by frame, wherein each frame of the static verification code picture comprises a first sub-picture and a second sub-picture, the first sub-picture is a sub-picture where the verification code is located, the second sub-picture is a sub-picture where the background is located, the first sub-picture comprises first display content, the second sub-picture comprises second display content, the first display content and the second display content display the verification code after being played frame by frame, the first dynamic content is obtained according to the first display content during the playing frame by frame, the second dynamic content is obtained according to the second display content, and the first dynamic content and the second dynamic content have different dynamic information.
S112': receiving user input such as numbers, letters, underlines, and the like;
s113': and verifying the user input according to the dynamic verification code picture.
If the input is correct, the user is given the right of legal login, if the input is incorrect, the verification code is refreshed, another verification code picture is displayed, the user is prompted to input again until the correct verification code is input, and the user is given the right of legal login.
In one embodiment, the dynamic information includes at least one of:
direction of motion, frequency of motion, mode of motion.
In another embodiment, the first frame is, in the same frame,
the first display content is the same at different positions, the second display content is the same at different positions, and the first display content and the second display content are the same; or,
the first display content is different at different locations; or,
the second display content is different at different locations.
In another embodiment, the frame is divided, in different frames,
the first display contents are the same or different; and/or the presence of a gas in the gas,
the second display contents are the same or different.
In another embodiment, the position of the first sub-picture is determined as follows:
and randomly selecting the position of the first sub-picture within a preset position interval.
In another embodiment, the preset position intervals are the same in different frames; or,
in different frames, the preset position intervals are different, so that the verification code has different states in different frames.
In another embodiment, the having different states includes:
translation of the verification code occurs; or,
stretching the verification code; or,
the verification code appears zoomed; or,
the authentication code is distorted.
In another embodiment, the preset position interval has a positive correlation with the sum of the numbers of the first sub-picture and the second sub-picture.
In another embodiment, the static verification code picture further includes a third sub-picture, where the third sub-picture is a sub-picture where the interference point is located, the third sub-picture includes third display content, a third dynamic content is obtained according to the third display content when the third sub-picture is played frame by frame, and the third dynamic content and the first dynamic content have the same dynamic information.
In another embodiment, the third display content is the same or different in the same frame; or,
the third display content is the same or different in different frames; or,
the third display content is the same as or different from the first display content and/or the second display content in the same frame.
The specific contents of each parameter, process, etc. in the device for generating a dynamic verification code picture may refer to the above method for generating a dynamic verification code picture, and are not described herein again.
The specific generation process of the dynamic verification code picture adopted in the verification method may refer to the generation process of the dynamic verification code picture, and is not described herein again.
According to the embodiment, the dynamic verification code picture is adopted during verification, the verification code can be displayed only after the display contents in the static verification code picture forming the dynamic verification code picture are played frame by frame, the verification code cannot be acquired by a single frame, the machine identification success rate can be reduced, the risk of cracking the verification code is reduced, and the network security is improved.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and are therefore not to be considered limiting of the invention.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (22)

CN201410092834.XA2014-03-132014-03-13Generation method and device of dynamic verification code pictures and verification method and device of dynamic verification code picturesActiveCN103886243B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201410092834.XACN103886243B (en)2014-03-132014-03-13Generation method and device of dynamic verification code pictures and verification method and device of dynamic verification code pictures

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201410092834.XACN103886243B (en)2014-03-132014-03-13Generation method and device of dynamic verification code pictures and verification method and device of dynamic verification code pictures

Publications (2)

Publication NumberPublication Date
CN103886243Atrue CN103886243A (en)2014-06-25
CN103886243B CN103886243B (en)2017-05-10

Family

ID=50955132

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201410092834.XAActiveCN103886243B (en)2014-03-132014-03-13Generation method and device of dynamic verification code pictures and verification method and device of dynamic verification code pictures

Country Status (1)

CountryLink
CN (1)CN103886243B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104158658A (en)*2014-07-182014-11-19上海华泉信息科技有限公司Generation method for dynamic video verification codes
CN104283883A (en)*2014-10-132015-01-14宁波公众信息产业有限公司Scrolling display method and system for verification code information
CN105590121A (en)*2014-11-062016-05-18邹贵圣 A display method and decoding method of a dynamically identifiable two-dimensional code
CN106161388A (en)*2015-04-162016-11-23深圳市腾讯计算机系统有限公司Information Authentication method, server and system
CN107463830A (en)*2017-07-072017-12-12北京人亩田网络科技有限公司The generation method and device and verification method and device of identifying code
CN107784220A (en)*2016-08-302018-03-09厦门雅迅网络股份有限公司A kind of pattern authentication method and system
CN110730162A (en)*2019-09-162020-01-24北京齐尔布莱特科技有限公司Page verification method, mobile terminal and readable storage medium
CN113821786A (en)*2020-06-182021-12-21中移(苏州)软件技术有限公司Verification code obtaining and displaying method and related device

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP2330529A2 (en)*2009-08-192011-06-08Deutsche Telekom AGCAPTCHAs based on visual illusions
CN102710635A (en)*2012-05-302012-10-03无锡德思普科技有限公司Verification method based on cyclic steady and dynamic-state verification code pictures

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP2330529A2 (en)*2009-08-192011-06-08Deutsche Telekom AGCAPTCHAs based on visual illusions
CN102710635A (en)*2012-05-302012-10-03无锡德思普科技有限公司Verification method based on cyclic steady and dynamic-state verification code pictures

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
门涛: "基于视觉暂留的验证码设计", 《乐山师范学院学报》*

Cited By (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104158658A (en)*2014-07-182014-11-19上海华泉信息科技有限公司Generation method for dynamic video verification codes
CN104158658B (en)*2014-07-182018-11-16上海华泉信息科技有限公司A kind of video dynamic authentication code generating method
CN104283883A (en)*2014-10-132015-01-14宁波公众信息产业有限公司Scrolling display method and system for verification code information
CN105590121A (en)*2014-11-062016-05-18邹贵圣 A display method and decoding method of a dynamically identifiable two-dimensional code
CN105590121B (en)*2014-11-062019-01-29邹贵圣Method for generating and decoding verification code presented by dynamically identifiable two-dimensional code
CN106161388A (en)*2015-04-162016-11-23深圳市腾讯计算机系统有限公司Information Authentication method, server and system
CN107784220A (en)*2016-08-302018-03-09厦门雅迅网络股份有限公司A kind of pattern authentication method and system
CN107463830A (en)*2017-07-072017-12-12北京人亩田网络科技有限公司The generation method and device and verification method and device of identifying code
CN110730162A (en)*2019-09-162020-01-24北京齐尔布莱特科技有限公司Page verification method, mobile terminal and readable storage medium
CN110730162B (en)*2019-09-162022-03-18北京齐尔布莱特科技有限公司Page verification method, mobile terminal and readable storage medium
CN113821786A (en)*2020-06-182021-12-21中移(苏州)软件技术有限公司Verification code obtaining and displaying method and related device
CN113821786B (en)*2020-06-182024-05-10中移(苏州)软件技术有限公司Verification code obtaining and displaying method and related device

Also Published As

Publication numberPublication date
CN103886243B (en)2017-05-10

Similar Documents

PublicationPublication DateTitle
CN103886243B (en)Generation method and device of dynamic verification code pictures and verification method and device of dynamic verification code pictures
US9888171B2 (en)Mobile camera device capable of improving facial patterns of a captured image
JP6623465B2 (en) Dot pattern
CN107154924B (en)Verification processing method and device based on verification code
US10552628B2 (en)Method and device for accessing and processing image
CN106980510B (en)Window self-adaption method and device of player
CN103902875B (en)The generation method and device and verification method and device of identifying code picture
CN105654019B (en) Two-dimensional code fast decoding method and device
CN109923543B (en)Method, system, and medium for detecting stereoscopic video by generating fingerprints of portions of video frames
CN103870740A (en)Method and system for achieving image verification code
CN110072141A (en)A kind of media processing method, device, equipment and storage medium
RU2724656C1 (en)Methods and equipment for authenticating identification data
CN107251542B (en) Visualization for observation guidance during dataset generation
EP2668983A2 (en)Apparatus and method of augmenting video
CN103853968B (en)Method and device for generating verification code picture and verification method and device thereof
CN105631446B (en)A kind of determination method and device interacting footmark prompt
US9185395B2 (en)Method and system for automatically adjusting autostereoscopic 3D display device
US8897557B2 (en)Method of auto-determination a three-dimensional image format
CN109663358A (en)Dynamic scene rejects the method, apparatus and electronic equipment for blocking object
CN109640170B (en)Speed processing method of self-shooting video, terminal and storage medium
CN105704557B (en)The method and device of icon in a kind of identification program
CN109547850B (en)Video shooting error correction method and related product
CN118395411A (en)Verification information display method and device and electronic equipment
CN113240797A (en)Verification code generation method and device, electronic equipment and storage medium
CN117041507A (en)Special-shaped screen instrument screen-throwing universal adaptation method and system

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp