CN106250756A - Generation method, verification method and the related device of identifying code - Google Patents

Generation method, verification method and the related device of identifying code Download PDF

Info

Publication number
CN106250756A
CN106250756A CN201610614994.5A CN201610614994A CN106250756A CN 106250756 A CN106250756 A CN 106250756A CN 201610614994 A CN201610614994 A CN 201610614994A CN 106250756 A CN106250756 A CN 106250756A
Authority
CN
China
Prior art keywords
identifying code
character
unit character
click
picture
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.)
Pending
Application number
CN201610614994.5A
Other languages
Chinese (zh)
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.)
Wise Four Seas (beijing) Technology Co Ltd
Original Assignee
Wise Four Seas (beijing) 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 Wise Four Seas (beijing) Technology Co Ltd filed Critical Wise Four Seas (beijing) Technology Co Ltd
Priority to CN201610614994.5A priority Critical patent/CN106250756A/en
Publication of CN106250756A publication Critical patent/CN106250756A/en
Pending legal-status Critical Current

Links

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2133Verifying human interaction, e.g., Captcha

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Character Input (AREA)

Abstract

The embodiment of the invention discloses generation method, verification method and the related device of identifying code.The generation method of identifying code includes: randomly select the character of predetermined number from identifying code character repertoire, obtains whole unit character that identifying code picture to be generated comprises;At least one character is randomly selected as target unit character from whole unit character;Target unit character is carried out inversion process;Identifying code picture is generated according to the target unit character after being inverted and residue unit character;Identifying code is generated according to target unit character positional information in the identifying code picture generated and identifying code picture.The embodiment of the present invention is by using technique scheme, reduce identifying code by the probability of Brute Force, improve the safety of identifying code, user only needs can easily realize by the way of clicking on and being inverted character checking when carrying out identifying code checking, simple to operate, strengthen the ease for use of identifying code, Consumer's Experience can be promoted.

Description

Generation method, verification method and the related device of identifying code
Technical field
The present embodiments relate to field of information security technology, particularly relate to the generation method of identifying code, verification method and Related device.
Background technology
Full-automatic differentiation computer and turing test (the Completely Automated Public Turing of the mankind Test to tell Computers and Humans Apart, CAPTCHA), it is commonly called as identifying code, is that a kind of differentiation user is Computer or the public full auto-programs of people.Identifying code as a kind of auxiliary security means at numerous webpages and application program Etc. aspect be widely adopted.
The figure that conventional identifying code is generally formed by character random combines such as a number of numeral, letter or words Sheet, the character wherein comprised, after observing identifying code picture, is input to specify region by user, if input is correct, then checking is logical Cross.But, user is in input process, it usually needs switching input method is to realize correctly entering of variety classes character, user Operation is complicated, and input in Chinese is wasted time and energy, and running cost is higher, shows particularly evident in the terminal.Additionally, due to meter Calculation machine is higher to the discrimination of single character, if successfully identifying code picture to be split into character picture one by one, then and may be by Brute Force, the safety of identifying code can not get ensureing.If strengthening safety and frequently changing font or pattern, can improve again The making of identifying code and maintenance cost.
Summary of the invention
The purpose of the embodiment of the present invention is to provide generation method, verification method and the related device of identifying code, existing to optimize Some identifying codes generate scheme and proof scheme.
First aspect, embodiments provides a kind of generation method of identifying code, including:
Randomly selecting the character of predetermined number from identifying code character repertoire, obtain that identifying code picture to be generated comprises is complete Portion's unit character;
At least one character is randomly selected as target unit character from described whole unit character;
Described target unit character is carried out inversion process;
Identifying code picture is generated according to the target unit character after being inverted and residue unit character;
According to described target unit character positional information in the identifying code picture generated and described identifying code picture Generate identifying code.
Second aspect, embodiments provides the verification method of a kind of identifying code, is applied to using the present invention real Executing the identifying code that the generation method of the identifying code described in example first aspect generated to verify, described verification method includes:
Obtain user and act on the click location information of the clicking operation on the identifying code picture that described identifying code is corresponding;
Described click location information is mated with target unit character positional information in described identifying code picture, Determine according to matching result and verify whether to pass through.
The third aspect, embodiments provides the generating means of a kind of identifying code, including:
Unit character chooses module, for randomly selecting the character of predetermined number from identifying code character repertoire, obtains to be generated Whole unit character that the identifying code picture become comprises;
Module chosen in target unit character, for randomly selecting at least one character conduct from described whole unit character Target unit character;
It is inverted processing module, for described target unit character is carried out inversion process;
Identifying code image generating module, for generating checking according to the target unit character after being inverted and residue unit character Code picture;
Identifying code generation module, for according to described target unit character in the identifying code picture generated position letter Breath and described identifying code picture generate identifying code.
Fourth aspect, embodiments provides the checking device of a kind of identifying code, is applied to using the present invention real Executing the identifying code that the generation method of the identifying code described in example first aspect generated to verify, described checking device includes:
Click location data obtaining module, acts on the identifying code picture that described identifying code is corresponding for obtaining user The click location information of clicking operation;
Authentication module, for by described click location information and target unit character position in described identifying code picture Information is mated, and determines according to matching result and verifies whether to pass through.
The identifying code provided in the embodiment of the present invention generates scheme, randomly selects predetermined number from identifying code character repertoire Character, obtains whole unit character that identifying code picture to be generated comprises, randomly selects at least one from whole unit character Individual character, as target unit character, carries out inversion process to target unit character, according to be inverted after target unit character and Residue unit character generates identifying code picture, according to target unit character positional information in the identifying code picture generated and Identifying code picture generates identifying code.By using technique scheme, identifying code picture comprises inverted character, low in guarantee Add the difficulty that each character is split by computer in the case of cost of manufacture, reduce general by Brute Force of identifying code Rate, improves the safety of identifying code;Further, user only needs by the way of clicking on and being inverted character when carrying out identifying code checking Can easily realize checking, simple to operate, strengthen the ease for use of identifying code, Consumer's Experience can be promoted.
Accompanying drawing explanation
Fig. 1 a is the schematic diagram of a kind of character input type identifying code of the prior art;
Fig. 1 b is the schematic diagram of another character input type identifying code of the prior art;
Fig. 2 is the schematic diagram of a kind of figure drawing type identifying code of the prior art;
Fig. 3 is the schematic diagram of a kind of figure click type identifying code of the prior art;
Fig. 4 is the schematic diagram of a kind of behavior identifying code of the prior art;
The schematic flow sheet of the generation method of a kind of identifying code that Fig. 5 provides for the embodiment of the present invention one;
A kind of inversion treatment effect schematic diagram that Fig. 6 a provides for the embodiment of the present invention one;
Another inversion treatment effect schematic diagram that Fig. 6 b provides for the embodiment of the present invention one;
The schematic flow sheet of the generation method of a kind of identifying code that Fig. 7 provides for the embodiment of the present invention two;
A kind of identifying code picture schematic diagram that Fig. 8 provides for the embodiment of the present invention two;
The schematic flow sheet of the generation method of a kind of identifying code that Fig. 9 provides for the embodiment of the present invention three;
A kind of identifying code picture schematic diagram that Figure 10 provides for the embodiment of the present invention three;
The schematic flow sheet of the verification method of a kind of identifying code that Figure 11 provides for the embodiment of the present invention four;
The one that Figure 12 provides for the embodiment of the present invention four effectively clicks on area schematic;
Identifying code proof procedure the first schematic diagram that Figure 13 a provides for the embodiment of the present invention four;
Identifying code proof procedure the second schematic diagram that Figure 13 b provides for the embodiment of the present invention four;
Identifying code proof procedure the 3rd schematic diagram that Figure 13 c provides for the embodiment of the present invention four;
The structured flowchart of the generating means of a kind of identifying code that Figure 14 provides for the embodiment of the present invention five;
The structured flowchart of the checking device of a kind of identifying code that Figure 15 provides for the embodiment of the present invention six.
Detailed description of the invention
Further illustrate technical scheme below in conjunction with the accompanying drawings and by detailed description of the invention.May be appreciated It is that specific embodiment described herein is used only for explaining the present invention, rather than limitation of the invention.Further need exist for explanation , for the ease of describing, accompanying drawing illustrate only part related to the present invention rather than entire infrastructure.
It should be mentioned that, some exemplary embodiments are described as before being discussed in greater detail exemplary embodiment The process described as flow chart or method.Although flow chart each step is described as order process, but many of which Step can be implemented concurrently, concomitantly or simultaneously.Additionally, the order of each step can be rearranged.When it operates When completing, described process can be terminated, it is also possible to have the additional step being not included in accompanying drawing.Described process is permissible Corresponding to method, function, code, subroutine, subprogram etc..
To facilitate understanding of the present embodiment of the invention technical scheme and corresponding beneficial effect, first in prior art Several frequently seen identifying code is introduced.
(1) character input type identifying code
Fig. 1 a is the schematic diagram of a kind of character input type identifying code of the prior art;Fig. 1 b is of the prior art another Plant the schematic diagram of character input type identifying code.Character input type identifying code is most commonly seen a kind of identifying code, generally has English Character numeral hybrid verification code (as shown in Figure 1a) and Chinese identifying code (as shown in Figure 1 b) two kinds.User in input process, Typically requiring switching input method to realize correctly entering of variety classes character, user operation is complicated, and input in Chinese is time-consuming takes Power, running cost is higher, shows particularly evident in the terminal.Additionally, K Chellapilla et al. was at the paper of 2005 Middle proposition, prior art can reach the highest discrimination for single English character.If successfully identifying code picture being split into Character picture one by one, then may be by Brute Force, and the safety of identifying code can not get ensureing.
(2) figure drawing type identifying code
Fig. 2 is the schematic diagram of a kind of figure drawing type identifying code of the prior art, as in figure 2 it is shown, this type of identifying code leads to Cross and allow user that the lack part of one pictures is dragged to correspondence position to verify, but this kind of identifying code would generally be with very Significantly boundary marking goes out the part that picture is to be arrived, and identifies that cost is lower, and dragging is can be by machine simulation , so safety is on the low side.
(3) figure click type identifying code
Fig. 3 is the schematic diagram of a kind of figure click type identifying code of the prior art, as it is shown on figure 3, user needs basis The picture meeting suggestion content is clicked in prompting, and this type of identifying code needs to safeguard a huge picture library, and needs the most more Newly, being otherwise easy to can be by Brute Force.Additionally, in order to reduce the probability being cracked, image content is not easy identification a bit, use Family is also likely to choosing mistake, and Consumer's Experience is the best.
(4) behavior identifying code
Fig. 4 is the schematic diagram of a kind of behavior identifying code of the prior art, and behavior identifying code need not user and carries out text Input, optimize Consumer's Experience to a certain extent.But this kind of identifying code needs to collect the relevant data of a large number of users to be made For basis for estimation, track that such as user's mouse slides, the data that Internet protocol (Internet Protocol, IP) is relevant, use The time span of family request and the locally stored account information of user etc..Additionally, situation about cannot judge also can be there is, still Need to be identified by other identifying codes.Therefore, the cost of manufacture of this type of identifying code is the highest, and safety is the best.
Embodiment one
The schematic flow sheet of the generation method of a kind of identifying code that Fig. 5 provides for the embodiment of the present invention one, the method is permissible Being performed by the generating means of identifying code, wherein this device can be realized by software and/or hardware, typically can be integrated in the ends such as server In end.As it is shown in figure 5, the method includes:
Step 501, from identifying code character repertoire, randomly select the character of predetermined number, obtain identifying code picture to be generated The whole unit character comprised.
Exemplary, identifying code character repertoire can include the characters such as numeral, letter or word.Preferably, checking code word Fu Ku only includes Chinese character.So arrange and be advantageous in that, for comparing English and numeral, the available characters quantity of Chinese More, decrease the probability being traversed, and identify that difficulty is bigger, more difficult by Brute Force.It should be noted that in order to Prevent character follow-up by after being inverted be inverted before the situation that is not easy to distinguish occur, when arranging identifying code character repertoire, can Get rid of laterally zygomorphic character, it is possible to get rid of symmetrical character.
Exemplary, predetermined number can be the fixed value (such as 7) pre-set, it is also possible to pre-set A random value in quantitative range (such as 4 to 10).Value according to predetermined number is selected from identifying code character repertoire at random Take the character of respective numbers, be completely used for selected character generating identifying code picture.
Step 502, from whole unit character, randomly select at least one character as target unit character.
Exemplary, according to the sequencing choosing whole unit character in step 501, whole unit character can be lined up Sequence, randomly select in the sequence at least one character as the quantity of target unit character, i.e. target unit character and Location is random in the sequence, can increase and crack complexity.Preferably, the quantity of target unit character can be with All the quantity of unit character is correlated with, and such as, the quantity of target unit character is less than the default ratio of the quantity of whole unit character Example (such as 50%).The method of the embodiment of the present invention is intended to generate a kind of user of making and is realized the identifying code of checking, mesh by click Mark unit character corresponding to user expect click on unit character.It is understood that the negligible amounts of target unit character, use Family operation is the most convenient;The quantity of target unit character is more, and safety of verification code can be more preferable.This is applied in reality During the method for bright embodiment, above-mentioned each particular number because usually determining target unit character can be taken into full account.
Step 503, target unit character is carried out inversion process.
Exemplary, the inversion in the present embodiment processes and specifically can refer to target unit character is rotated predetermined angle, and this is pre- If the span of angle can be chosen around 180 degree, such as, can be between 150 degree to 210 degree.Predetermined angle is preferably 180 degree, i.e. target unit character is carried out inversion process and refers specifically to target unit character is revolved turnback.Fig. 6 a is the present invention A kind of inversion that embodiment one provides processes schematic diagram, and word " will not had " to carry out the effect after above-mentioned inversion process as shown in Figure 6 a.
Additionally, the inversion in the present embodiment processes and also can refer to carry out target unit character the mirror process of horizontal direction. Another inversion treatment effect schematic diagram that Fig. 6 b provides for the embodiment of the present invention one, " will not have " word to carry out the minute surface of horizontal direction Effect after process is as shown in Figure 6 b.
Step 504, according to be inverted after target unit character and residue unit character generate identifying code picture.
Except mesh in whole unit character that the identifying code picture that residue unit character in this step is to be generated comprises Unit character beyond mark unit character.Exemplary, after be able to being inverted according to the order of the sequence described in step 502 mesh Mark unit character and residue unit character synthesize an image, are verified a yard picture.Concrete this reality of image formation mode Execute example to be not especially limited, can refer to existing image generating technologies.It is understood that target unit character have passed through inversion Process, in the identifying code picture generated with other unit character towards there is larger difference, human eye is easy to carry out district Point, and for computer, owing to character is squeezed, it is in the state of handstand, compared with the character being in upright state, improve Identification difficulty, adds and stops the success rate cracked.
Step 505, according to target unit character positional information in the identifying code picture generated and identifying code picture Generate identifying code.
Exemplary, in order to enable identifying code to be applied to man-machine checking, need generated target unit character Positional information in identifying code picture adds in identifying code to be generated.Positional information can include character center abscissa, word Symbol center vertical coordinate, character size (character duration and character height can be included) and the anglec of rotation.Such as, can be embedding by positional information Enter in identifying code picture, to generate identifying code;And for example, positional information can be transmitted jointly as the satellite information of identifying code picture Give objects such as applying the webpage of this identifying code or application program.
The verification code generation method that the embodiment of the present invention one provides, randomly selects predetermined number from identifying code character repertoire Character, obtains whole unit character that identifying code picture to be generated comprises, randomly selects at least one from whole unit character Individual character, as target unit character, carries out inversion process to target unit character, according to be inverted after target unit character and Residue unit character generates identifying code picture, according to target unit character positional information in the identifying code picture generated and Identifying code picture generates identifying code.By using technique scheme, identifying code picture comprises inverted character, low in guarantee Add the difficulty that each character is split by computer in the case of cost of manufacture, reduce general by Brute Force of identifying code Rate, improves the safety of identifying code;Further, user only needs by the way of clicking on and being inverted character when carrying out identifying code checking Can easily realize checking, simple to operate, strengthen the ease for use of identifying code, Consumer's Experience can be promoted.
Embodiment two
The schematic flow sheet of the generation method of a kind of identifying code that Fig. 7 provides for the embodiment of the present invention two, the present embodiment with Being optimized based on above-described embodiment, the method comprises the steps:
Step 701, from identifying code character repertoire, randomly select the character of predetermined number, obtain identifying code picture to be generated The whole unit character comprised.
Step 702, from whole unit character, randomly select at least one character as target unit character.
Step 703, each unit character in whole unit character is rotated the first angle.
Wherein, the span of described first angle is for spending more than-60 and less than 60 degree, for each unit character, institute Stating the value of the first angle is any one numerical value in described span.
Perform this step to be advantageous in that, after whole unit character being rotated a certain angle, can further improve calculating Machine identifies difficulty automatically, increases and stops the success rate cracked.
Step 704, the rotation turnback of the target unit character after the first angle will be rotated.
Step 705, according to be inverted after target unit character and residue unit character generate identifying code picture.
Exemplary, that Fig. 8 provides for the embodiment of the present invention two a kind of identifying code picture schematic diagram, as shown in Figure 8, all Unit character includes "Yes", " managing ", " listening ", " it ", " conjunction ", " not having " and " going ", and the target unit character being selected is " not having ", will All each unit character in unit character rotates the first angle, then " will not have " rotation turnback, has ultimately produced such as Fig. 8 institute The identifying code picture shown.
Step 706, according to target unit character positional information in the identifying code picture generated and identifying code picture Generate identifying code.
The embodiment of the present invention two, on the basis of above-described embodiment, has refined the step that target unit character carries out inversion process Suddenly, can further improve Computer Automatic Recognition difficulty, increase and stop the success rate cracked.
Embodiment three
The schematic flow sheet of the generation method of a kind of identifying code that Fig. 9 provides for the embodiment of the present invention three, the present embodiment with Being optimized based on above-described embodiment, the method comprises the steps:
Step 901, from identifying code character repertoire, randomly select the character of predetermined number, obtain identifying code picture to be generated The whole unit character comprised.
Step 902, from whole unit character, randomly select at least one character as target unit character.
Step 903, each unit character in whole unit character is rotated the first angle.
Wherein, the span of described first angle is for spending more than-60 and less than 60 degree, for each unit character, institute Stating the value of the first angle is any one numerical value in described span.
Step 904, the rotation turnback of the target unit character after the first angle will be rotated.
Step 905, according to preset rules adjust be inverted after target unit character and residue unit character in each two The adjacent spacing between unit character, so that the adjacent unit character of each two partially overlaps.
Exemplary, preset rules can include that the distance values between the unit character that each two is adjacent is negative value, also can wrap Including distance values is any one numerical value in preset pitch value range.
Exemplary, when the spacing determined between about two adjacent unit character, can be according to the right side of left side character The center abscissa of the left margin that the center abscissa on border deducts right side character calculates.
The purpose of this step is in order to the unit character making each two adjacent partially overlaps, and increases the part of adhesion, to increase Add the difficulty that unit character is split by computer, thus prevent identifying code by Brute Force.
Step 906, according to through spacing adjust after whole unit character generate identifying code picture.
A kind of identifying code picture schematic diagram that Figure 10 provides for the embodiment of the present invention three, as shown in Figure 10, each two character Between all there is certain adhesion, considerably increase the difficulty of character separation, improve the safety of identifying code.
Step 907, according to target unit character positional information in the identifying code picture generated and identifying code picture Generate identifying code.
The embodiment of the present invention three, on the basis of above-described embodiment, is partially overlapped by the unit character making each two adjacent Increase the adhesion between constituent parts character, further increase the safety of identifying code.
On the basis of above-described embodiment, automatically identify cost in order to increase computer further, promote and crack difficulty, The interference elements such as interfering line can be added in identifying code picture.
Embodiment four
The schematic flow sheet of the verification method of a kind of identifying code that Figure 11 provides for the embodiment of the present invention four, the method is applied Verifying in the identifying code being generated the generation method using identifying code as described in the present embodiment of the invention, the method is permissible Being performed by the checking device of identifying code, wherein this device can be realized by software and/or hardware, typically can integrated in the terminal.As Shown in Figure 11, the method includes:
Step 1101, obtain user and act on the click location letter of clicking operation on the identifying code picture that identifying code is corresponding Breath.
Exemplary, the terminal in the present embodiment can include the mobile terminals such as mobile phone, panel computer and notebook computer, also The terminals such as desk computer can be included.
Further, in order to allow the verification mode of user's this type of identifying code clear and definite, can be before carrying out this step, to checking Mode is pointed out, and described verification mode is to click on all inverted list comprised in the identifying code picture that described identifying code is corresponding Position character.Such as, display reminding information " word stood upside down in figure please can be click on ".
Exemplary, for the terminal comprising touch screen, user can be clicked in identifying code picture by finger Certain position;For the terminal such as desk computer or notebook computer, user can click on identifying code figure by mouse Certain position in sheet.When detecting that identifying code picture is clicked, obtain user and act on the identifying code figure that identifying code is corresponding The click location information of the clicking operation on sheet.
Step 1102, will click on positional information and target unit character positional information in identifying code picture and carry out Join, determine according to matching result and verify whether to pass through.
Exemplary, by will click on positional information and target unit character positional information in described identifying code picture Mate, can learn that whether position that user clicks on is the position of inverted target unit character, the most then can illustrate User clicks on correctly, is verified, and terminal can continue executing with follow-up associative operation.
Concrete, click location information can include the click centre coordinate of clicking operation.This step comprises the steps that according to target Unit character positional information in described identifying code picture determines effective click on area;Judge to click on whether centre coordinate is in Effectively in click on area, if being in, then it is verified;Otherwise, authentication failed.The one that Figure 12 provides for the embodiment of the present invention four Effectively click on area schematic, as shown in figure 12, identifying code picture 1201 comprises inverted " not having " word, can exist according to " not having " word Positional information in identifying code picture 1201 determines effective click on area 1202, if the click centre coordinate of the clicking operation of user Fall in effective click on area 1202, can illustrate that user clicks on correctly, be verified.
Identifying code proof procedure the first schematic diagram that Figure 13 a provides for the embodiment of the present invention four, as depicted in fig. 13 a, user When carrying out social account registration, after inputting user name, cell-phone number and password, need to carry out the checking of identifying code, figure is tested Literal round dot labelling in card code picture is for representing the click location of user.Figure 13 b provides for the embodiment of the present invention four Identifying code proof procedure the second schematic diagram, as illustrated in fig. 13b, when the user discover that the malposition oneself clicked on, by Mus Mark (Hover) moves to round dot labelling and (blue next and in identifying code picture black letters can be used time actually used to carry out district Point) upper time, labelling becomes deleting button, and user can delete button (deletion labelling) remove the click of mistake by clicking on.Figure Identifying code proof procedure the 3rd schematic diagram that 13c provides for the embodiment of the present invention four, as shown in figure 13 c, if user is to identifying code Mistake clicked in word in picture, and after clicking on " addition is known " button, authentication failed, (i.e. display is new now to refresh identifying code Identifying code picture), show error information.
The verification method of the identifying code that the embodiment of the present invention four provides, can make user come by the way of clicking on and being inverted character Easily realize checking, simple to operate, Consumer's Experience can be promoted.
Embodiment five
The structured flowchart of the generating means of a kind of identifying code that Figure 14 provides for the embodiment of the present invention five, wherein this device can Realized by software and/or hardware, typically can be integrated in the terminals such as server, can be by performing the generation method next life of identifying code Become identifying code.As shown in figure 14, this device includes: unit character chooses module 1401, module 1402 chosen in target unit character, It is inverted processing module 1403, identifying code image generating module 1404 and identifying code generation module 1405.
Wherein, unit character chooses module 1401, for randomly selecting the character of predetermined number from identifying code character repertoire, Obtain whole unit character that identifying code picture to be generated comprises;Module 1402 chosen in target unit character, for from described All unit character randomly selects at least one character as target unit character;It is inverted processing module 1403, for institute State target unit character and carry out inversion process;Identifying code image generating module 1404, for according to the target unit word after being inverted Symbol and residue unit character generate identifying code picture;Identifying code generation module 1405, for existing according to described target unit character Positional information and described identifying code picture in the identifying code picture generated generate identifying code.
The identifying code picture that identifying code that the generating means of identifying code that the embodiment of the present invention provides is generated is corresponding wraps Containing inverted character, add, in the case of ensureing low cost of manufacture, the difficulty that each character is split by computer, fall Low identifying code, by the probability of Brute Force, improves the safety of identifying code;Further, user only needs when carrying out identifying code checking Checking can be easily realized by the way of clicking on and being inverted character, simple to operate, strengthen the ease for use of identifying code, user can be promoted Experience.
On the basis of above-described embodiment, described character includes Chinese character.
On the basis of above-described embodiment, described identifying code image generating module includes re-pitching unit and identifying code figure Sheet signal generating unit.Wherein, re-pitching unit, single for adjusting the target unit character after being inverted and residue according to preset rules The spacing between the adjacent unit character of each two in the character of position, so that the adjacent unit character of each two partially overlaps;Test Card code picture signal generating unit, generates identifying code picture according to the whole unit character after spacing adjusts.
On the basis of above-described embodiment, described inversion processing module includes the first rotary unit and the second rotary unit. Wherein, the first rotary unit, for each unit character in described whole unit character being rotated the first angle, described first The span of angle is for more than-60 degree and less than 60 degree, and for each unit character, the value of described first angle is described Any one numerical value in span;Second rotary unit, the target unit character after rotating the first angle rotates 180 degree.
On the basis of above-described embodiment, described positional information includes character center abscissa, character center vertical coordinate, word Symbol size and the anglec of rotation.
Embodiment six
The structured flowchart of the checking device of a kind of identifying code that Figure 15 provides for the embodiment of the present invention six, this device is applied to The identifying code being generated the generation method of the identifying code used as described in the present embodiment of the invention is verified, this device can be by soft Part and/or hardware realize, typically can integrated in the terminal, testing of identifying code can be carried out by performing the verification method of identifying code Card.As shown in figure 15, this device includes click location data obtaining module 1501 and authentication module 1502.
Wherein, click location data obtaining module 1501, act on, for obtaining user, the checking that described identifying code is corresponding The click location information of the clicking operation on code picture;Authentication module 1502, for by described click location information and target list Position character positional information in described identifying code picture mates, and determines according to matching result and verifies whether to pass through.
The checking device of the identifying code that the embodiment of the present invention provides, can make user come by the way of clicking on and being inverted character light Strobilus Pini is now verified, simple to operate, can promote Consumer's Experience.
On the basis of above-described embodiment, described click location information includes the click centre coordinate of described clicking operation. Described authentication module includes effective area determination unit and authentication unit.Wherein, effective coverage determines unit, for according to target Unit character positional information in described identifying code picture determines effective click on area.Authentication unit, is used for judging described point Hitting whether centre coordinate is in described effective click on area, if being in, being then verified;Otherwise, authentication failed.
On the basis of above-described embodiment, this device may also include reminding module, described for acting on acquisition user Before the click location information of the clicking operation on identifying code picture that identifying code is corresponding, verification mode is pointed out, described Verification mode is to click on all inverted unit character comprised in the identifying code picture that described identifying code is corresponding.
The generating means of identifying code provided in above-described embodiment and the checking device of identifying code can perform the present invention to be implemented The corresponding method that example is provided, possesses the corresponding functional module of execution method and beneficial effect.The most detailed The ins and outs described to the greatest extent, can be found in the generation method of corresponding identifying code and testing of identifying code that the embodiment of the present invention is provided Card method.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious change, Readjust and substitute without departing from protection scope of the present invention.Therefore, although by above example, the present invention is carried out It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also Other Equivalent embodiments more can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (14)

1. the generation method of an identifying code, it is characterised in that including:
From identifying code character repertoire, randomly select the character of predetermined number, obtain whole lists that identifying code picture to be generated comprises Position character;
At least one character is randomly selected as target unit character from described whole unit character;
Described target unit character is carried out inversion process;
Identifying code picture is generated according to the target unit character after being inverted and residue unit character;
Generate according to described target unit character positional information in the identifying code picture generated and described identifying code picture Identifying code.
Method the most according to claim 1, it is characterised in that described character includes Chinese character.
Method the most according to claim 1, it is characterised in that according to the target unit character after being inverted and residue unit word Symbol generates identifying code picture, including:
The unit word that each two in the target unit character after being inverted and residue unit character is adjacent is adjusted according to preset rules Spacing between symbol, so that the adjacent unit character of each two partially overlaps;
Identifying code picture is generated according to the whole unit character after spacing adjusts.
Method the most according to claim 1, it is characterised in that described target unit character is carried out inversion process, including:
Each unit character in described whole unit character rotates the first angle, and the span of described first angle is big In-60 degree and less than 60 degree, for each unit character, the value of described first angle is any one in described span Individual numerical value;
Target unit character after rotating the first angle revolves turnback.
Method the most according to claim 1, it is characterised in that described positional information includes character center abscissa, character Center vertical coordinate, character size and the anglec of rotation.
6. a verification method for identifying code, is applied to the life to the identifying code used as described in claim 1-5 any one The identifying code that one-tenth method is generated is verified, described verification method includes:
Obtain user and act on the click location information of the clicking operation on the identifying code picture that described identifying code is corresponding;
Described click location information is mated with target unit character positional information in described identifying code picture, according to Matching result determines and verifies whether to pass through.
Method the most according to claim 6, it is characterised in that described click location information includes the point of described clicking operation Hit centre coordinate;
Described click location information is mated with target unit character positional information in described identifying code picture, according to Matching result determines and verifies whether to pass through, including:
Effective click on area is determined according to target unit character positional information in described identifying code picture;
Judging whether described click centre coordinate is in described effective click on area, if being in, being then verified;Otherwise, test Demonstrate,prove unsuccessfully.
Method the most according to claim 6, it is characterised in that act on the checking that described identifying code is corresponding obtaining user Before the click location information of the clicking operation on code picture, also include:
Pointing out verification mode, described verification mode is the institute comprised in the identifying code picture that the described identifying code of click is corresponding There is inverted unit character.
9. the generating means of an identifying code, it is characterised in that including:
Unit character chooses module, for randomly selecting the character of predetermined number from identifying code character repertoire, obtains to be generated Whole unit character that identifying code picture comprises;
Module chosen in target unit character, for randomly selecting at least one character as target from described whole unit character Unit character;
It is inverted processing module, for described target unit character is carried out inversion process;
Identifying code image generating module, for generating identifying code figure according to the target unit character after being inverted and residue unit character Sheet;
Identifying code generation module, for according to described target unit character positional information in the identifying code picture generated and Described identifying code picture generates identifying code.
Device the most according to claim 9, it is characterised in that described identifying code image generating module includes:
Re-pitching unit, be used in the target unit character after being inverted according to preset rules adjustment and residue unit character is every Spacing between two adjacent unit character, so that the adjacent unit character of each two partially overlaps;
Identifying code picture signal generating unit, generates identifying code picture according to the whole unit character after spacing adjusts.
11. devices according to claim 9, it is characterised in that described inversion processing module includes:
First rotary unit, for each unit character in described whole unit character being rotated the first angle, described first The span of angle is for more than-60 degree and less than 60 degree, and for each unit character, the value of described first angle is described Any one numerical value in span;
Second rotary unit, the target unit character after rotating the first angle revolves turnback.
The checking device of 12. 1 kinds of identifying codes, is applied to the life to the identifying code used as described in claim 1-5 any one The identifying code that one-tenth method is generated is verified, described checking device includes:
Click location data obtaining module, acts on the click on the identifying code picture that described identifying code is corresponding for obtaining user The click location information of operation;
Authentication module, for by described click location information and target unit character positional information in described identifying code picture Mate, determine according to matching result and verify whether to pass through.
13. devices according to claim 12, it is characterised in that described click location information includes described clicking operation Click on centre coordinate;
Described authentication module includes:
Effective coverage determines unit, for determining effectively according to target unit character positional information in described identifying code picture Click on area;
Authentication unit, being used for judging whether described click centre coordinate is in described effective click on area, if being in, then verifying Pass through;Otherwise, authentication failed.
14. devices according to claim 12, it is characterised in that also include:
Reminding module, for acting on the click of the clicking operation on the identifying code picture that described identifying code is corresponding acquisition user Before positional information, pointing out verification mode, described verification mode is to click on the identifying code picture that described identifying code is corresponding In all inverted unit character that comprises.
CN201610614994.5A 2016-07-29 2016-07-29 Generation method, verification method and the related device of identifying code Pending CN106250756A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610614994.5A CN106250756A (en) 2016-07-29 2016-07-29 Generation method, verification method and the related device of identifying code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610614994.5A CN106250756A (en) 2016-07-29 2016-07-29 Generation method, verification method and the related device of identifying code

Publications (1)

Publication Number Publication Date
CN106250756A true CN106250756A (en) 2016-12-21

Family

ID=57605683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610614994.5A Pending CN106250756A (en) 2016-07-29 2016-07-29 Generation method, verification method and the related device of identifying code

Country Status (1)

Country Link
CN (1) CN106250756A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603560A (en) * 2016-12-30 2017-04-26 北京经纬信安科技有限公司 Mode recognition method based on network verification codes
CN107292307A (en) * 2017-07-21 2017-10-24 华中科技大学 One kind is inverted Chinese character identifying code automatic identifying method and system
CN107786572A (en) * 2017-11-07 2018-03-09 苏州工业园区服务外包职业学院 A kind of verification method of user identity, device and terminal
CN108804885A (en) * 2017-05-03 2018-11-13 阿里巴巴集团控股有限公司 Man-machine verification method and device, storage medium and processor
CN109670291A (en) * 2017-10-17 2019-04-23 腾讯科技(深圳)有限公司 A kind of implementation method of identifying code, device and storage medium
CN111382412A (en) * 2018-12-28 2020-07-07 武汉极意网络科技有限公司 Memory, verification code implementation method, device and equipment
CN112989312A (en) * 2020-11-30 2021-06-18 北京金堤科技有限公司 Verification code identification method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237324A (en) * 2007-01-31 2008-08-06 中国移动通信集团公司 Generation method and generation device for image verification code
CN101261669A (en) * 2007-03-09 2008-09-10 吴天际 A method for visual validation system based on mouse operation
CN105354480A (en) * 2014-08-20 2016-02-24 阿里巴巴集团控股有限公司 Verification code picture generation method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237324A (en) * 2007-01-31 2008-08-06 中国移动通信集团公司 Generation method and generation device for image verification code
CN101261669A (en) * 2007-03-09 2008-09-10 吴天际 A method for visual validation system based on mouse operation
CN105354480A (en) * 2014-08-20 2016-02-24 阿里巴巴集团控股有限公司 Verification code picture generation method and apparatus

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603560A (en) * 2016-12-30 2017-04-26 北京经纬信安科技有限公司 Mode recognition method based on network verification codes
CN108804885A (en) * 2017-05-03 2018-11-13 阿里巴巴集团控股有限公司 Man-machine verification method and device, storage medium and processor
CN107292307A (en) * 2017-07-21 2017-10-24 华中科技大学 One kind is inverted Chinese character identifying code automatic identifying method and system
CN107292307B (en) * 2017-07-21 2019-12-17 华中科技大学 Automatic identification method and system for inverted Chinese character verification code
CN109670291A (en) * 2017-10-17 2019-04-23 腾讯科技(深圳)有限公司 A kind of implementation method of identifying code, device and storage medium
WO2019076259A1 (en) * 2017-10-17 2019-04-25 腾讯科技(深圳)有限公司 Method and apparatus for generating verification code, computer device, and storage medium
US11341227B2 (en) 2017-10-17 2022-05-24 Tencent Technology (Shenzhen) Company Limited Verification code generation method and apparatus, computer device, and storage medium
CN107786572A (en) * 2017-11-07 2018-03-09 苏州工业园区服务外包职业学院 A kind of verification method of user identity, device and terminal
CN111382412A (en) * 2018-12-28 2020-07-07 武汉极意网络科技有限公司 Memory, verification code implementation method, device and equipment
CN112989312A (en) * 2020-11-30 2021-06-18 北京金堤科技有限公司 Verification code identification method and device, electronic equipment and storage medium
CN112989312B (en) * 2020-11-30 2024-04-30 北京金堤科技有限公司 Verification code identification method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106250756A (en) Generation method, verification method and the related device of identifying code
US8990959B2 (en) Manipulable human interactive proofs
US10176315B2 (en) Graphical authentication
Bursztein et al. Easy does it: More usable CAPTCHAs
US10387645B2 (en) Method for recognizing if a user of an electronic terminal is a human or a robot
JP5723981B2 (en) Method, apparatus and computer program for providing challenge response tests related to computer resources
US20120272302A1 (en) Human User Verification
EP2410450A1 (en) Method for providing a challenge based on a content
EP2569727B1 (en) Overlay human interactive proof system and techniques
CN106656944B (en) Method and device for sliding verification of handheld mobile equipment
US20090113294A1 (en) Progressive captcha
US10448247B2 (en) Method and apparatus for information verification
CN107682368B (en) Verification method, client, server and system based on interactive operation
CN104954131B (en) The verification method and system of identifying code
KR102513334B1 (en) Image verification method and apparatus, electronic device and computer-readable storage medium
Mathis et al. Stay home! Conducting remote usability evaluations of novel real-world authentication systems using virtual reality
Jiang et al. A gesture-based captcha design supporting mobile devices
CN107358088A (en) Verification method and system based on clock
Yang Development status and prospects of graphical password authentication system in Korea
US10181023B2 (en) Verification method, method to open a web page and method to open an electronic file
CN113190310B (en) Verification code design method based on random position object semantic recognition
US12038832B2 (en) Electronic product testing systems for providing automated product testing with human-in-the loop component and/or object detection
US20120023549A1 (en) CAPTCHA AND reCAPTCHA WITH SINOGRAPHS
Pritom et al. Combining movement model with finger-stroke level model towards designing a security enhancing mobile friendly captcha
TWI426764B (en) Randomly generate methods for verifying graphics and questionnaires

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161221

RJ01 Rejection of invention patent application after publication