CN108121907A - Identifying code request processing method, device and identifying code processing system - Google Patents

Identifying code request processing method, device and identifying code processing system Download PDF

Info

Publication number
CN108121907A
CN108121907A CN201711213029.8A CN201711213029A CN108121907A CN 108121907 A CN108121907 A CN 108121907A CN 201711213029 A CN201711213029 A CN 201711213029A CN 108121907 A CN108121907 A CN 108121907A
Authority
CN
China
Prior art keywords
identifying code
classification
code
verification
application program
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
CN201711213029.8A
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.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201711213029.8A priority Critical patent/CN108121907A/en
Publication of CN108121907A publication Critical patent/CN108121907A/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
    • 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
    • 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/42User authentication using separate channels for security data
    • G06F21/43User authentication using separate channels for security data wireless channels
    • 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

Abstract

The present invention, which provides a kind of identifying code request processing method, device and identifying code processing system, this method, to be included:The identifying code processing request that application program is sent is received, the identifying code processing request includes identifying code classification, and the identifying code classification includes picture validation code classification, short message verification code classification and speech identifying code classification;According to the identifying code classification, the corresponding identifying code of the identifying code classification is generated;The corresponding identifying code of the identifying code classification is sent to the application program.In this method, verification code system can receive different classes of identifying code processing request, and request to generate corresponding identifying code according to different classes of identifying code processing, significantly reduce the implementation complexity and maintenance cost of application program.

Description

Identifying code request processing method, device and identifying code processing system
Technical field
The present invention relates to a kind of computer technology more particularly to identifying code request processing method, device and identifying code processing System.
Background technology
Current many application programs (Application, abbreviation APP) all support identifying code function, to promote APP uses Security.Wherein, identifying code includes picture validation code, short message verification code, speech identifying code etc..When user is used in APP One function after inputting correct identifying code according to the requirement of APP, can just be continuing with corresponding function.
In the prior art, need to use the function module of identifying code more in APP, in each work(needed using identifying code In energy module, identifying code function is realized respectively.
But the method for the prior art can cause the realization complexity of APP, maintenance cost is excessively high.
The content of the invention
The present invention provides a kind of identifying code request processing method, device and identifying code processing system, for solving existing skill The problem of realization of APP caused by art is complicated, and maintenance cost is excessively high.
First aspect present invention provides a kind of identifying code requesting method, including:
The identifying code classification of request, the identifying code classification include picture validation code class required for determining current application program Not, short message verification code classification and speech identifying code classification;
Identifying code processing request is sent to verification code system, the identifying code processing request includes the identifying code class Not, so that the verification code system generates the corresponding identifying code of the identifying code classification according to the identifying code classification.
Further, the identifying code classification of request required for the definite current application program, including:
According to the present type of service of the application program, identifying code classification corresponding with the type of service is determined.
Second aspect of the present invention provides a kind of identifying code processing method, including:
The identifying code processing request that application program is sent is received, the identifying code processing request includes identifying code classification, The identifying code classification includes picture validation code classification, short message verification code classification and speech identifying code classification;
According to the identifying code classification, the corresponding identifying code of the identifying code classification is generated;
The corresponding identifying code of the identifying code classification is sent to the application program.
Further, if the identifying code classification is the picture validation code classification, in the identifying code processing request Identifying code grade is further included, the identifying code grade is used to indicate the complexity of identifying code;
It is described that the corresponding identifying code of the identifying code classification is generated according to the identifying code classification, including:
According to the identifying code grade, picture corresponding with the identifying code grade is selected from default picture library, it will The picture is as the corresponding identifying code of the identifying code classification.
Further, it is described according to the identifying code classification, before generating the corresponding identifying code of the identifying code classification, go back Including:
Original image is generated using picture generating algorithm;
According to default picture validation code generation strategy, deformation process is carried out to the original image, obtains deformation process Picture afterwards;
According to the picture validation code generation strategy, the identifying code grade of the picture after the deformation process is determined;
The identifying code grade of picture after the deformation process and the picture after the deformation process is added to described In picture library.
Further, if the identifying code classification is the short message verification code classification or the speech identifying code classification, Subscriber Number is further included in the identifying code processing request;
It is described that the corresponding identifying code of the identifying code classification is generated according to the identifying code classification, including:
If the identifying code classification is the short message verification code classification, and sends preset times in the application program The Subscriber Number does not receive identifying code after identifying code processing request, then generates the corresponding speech verification of the Subscriber Number Code.
Further, further include:
Receive the code to be verified that the application program is sent;
According to the code to be verified and the identifying code sent to the application program, verification result is determined;
The verification result is sent to the application program, the verification result includes being proved to be successful and authentication failed.
Further, further include:
Determine the verification time that verification result is the identifying code processing request being proved to be successful, the verification time answers to be described The time that identifying code processes request to the application program and receive verification result is sent with program;
Count the number that the application program sends identifying code processing request;
The number of identifying code processing request is sent according to the verification time and the application program, determines the verification Whether code is cracked.
Further, further include:
The quantity that statistical testing of business cycles result is asked for the identifying code processing of authentication failed;
If the verification result reaches preset value for the quantity of the identifying code processing request of authentication failed, by the application The corresponding identifying code grade of program is revised as a upper grade for current verification code grade;
A upper grade for the current verification code grade is sent to the application program.
Third aspect present invention provides a kind of identifying code request unit, including:
Determining module, for determining the identifying code classification asked required for current application program, the identifying code classification bag Include picture validation code classification, short message verification code classification and speech identifying code classification;
Sending module, for sending identifying code processing request to verification code system, the identifying code processing request includes The identifying code classification, so that it is corresponding to generate the identifying code classification according to the identifying code classification for the verification code system Identifying code.
Fourth aspect present invention provides a kind of identifying code processing unit, including:
First receiving module, the identifying code for receiving application program transmission handle request, the identifying code processing request Include identifying code classification, the identifying code classification includes picture validation code classification, short message verification code classification and speech verification Code classification;
First processing module, for according to the identifying code classification, generating the corresponding identifying code of the identifying code classification;
First sending module, for sending the corresponding identifying code of the identifying code classification to the application program.
Further, if the identifying code classification is the picture validation code classification, in the identifying code processing request Identifying code grade is further included, the identifying code grade is used to indicate the complexity of identifying code;The first processing module includes:
First processing units, for according to the identifying code grade, being selected and the identifying code from default picture library The corresponding picture of grade, using the picture as the corresponding identifying code of the identifying code classification.
Further, further include:
Generation module, for picture generating algorithm to be used to generate original image;
Second processing module, for according to default picture validation code generation strategy, being deformed to the original image Processing obtains the picture after deformation process;
First determining module, for according to the picture validation code generation strategy, determining the picture after the deformation process Identifying code grade;
Add module, for by identifying code of the picture after the deformation process and the picture after the deformation process etc. Grade is added in the picture library.
Further, if the identifying code classification is the short message verification code classification or the speech identifying code classification, Subscriber Number is further included in the identifying code processing request;
The first processing module further includes:
Second processing unit, for being the short message verification code classification in the identifying code classification, and it is described using journey When the Subscriber Number does not receive identifying code after the identifying code processing request of sequence transmission preset times, the Subscriber Number is generated Corresponding speech identifying code.
Further, further include:
Second receiving module, for receiving the code to be verified that the application program is sent;
Second determining module, for according to the code to be verified and to the application program send the identifying code, Determine verification result;
Second sending module, for sending the verification result to the application program, the verification result includes verification Success and authentication failed.
Further, further include:
3rd determining module, for determining that verification result is that the identifying code being proved to be successful handles the verification time of request, institute State the verification time sends identifying code and processes request to the time that the application program receives verification result for the application program;
First statistical module, for counting the number that the application program sends identifying code processing request;
4th determining module, for sending identifying code processing request according to the verification time and the application program Number, determines whether the identifying code is cracked.
Further, further include:
Second statistical module is the quantity of the identifying code processing request of authentication failed for statistical testing of business cycles result;
Modified module, for reaching preset value in the verification result for the quantity of the identifying code processing request of authentication failed When, the corresponding identifying code grade of the application program is revised as to the upper grade of current verification code grade;
3rd sending module, for sending a upper grade for the current verification code grade to the application program.
Fifth aspect present invention provides a kind of identifying code processing system, the identifying code request unit including the above-mentioned third aspect And the identifying code processing unit of above-mentioned fourth aspect.
Identifying code request processing method provided by the present invention, device and identifying code processing system, verification code system can be with Different classes of identifying code processing request is received, and corresponding identifying code is requested to generate according to different classes of identifying code processing, When the difference in functionality module in application program is needed using different classes of identifying code, it is only necessary to by specific interface to testing Demonstrate,prove the identifying code processing request that code system sends corresponding classification, you can obtain the identifying code of needs, and no longer need by applying journey Sequence needs to realize identifying code function in the function module using identifying code each, so as to significantly reduce application program Implementation complexity and maintenance cost.
Description of the drawings
It, below will be to embodiment or the prior art in order to illustrate more clearly of technical solution of the invention or of the prior art Attached drawing is briefly described needed in description, it should be apparent that, the accompanying drawings in the following description is the one of the present invention A little embodiments, for those of ordinary skill in the art, without having to pay creative labor, can also be according to this A little attached drawings obtain other attached drawings.
Fig. 1 is the system architecture diagram of identifying code processing method provided by the invention;
Fig. 2 is the flow diagram of identifying code processing method embodiment one provided by the invention;
Fig. 3 is the flow diagram of identifying code processing method embodiment two provided by the invention;
Fig. 4 is the flow diagram of identifying code processing method embodiment three provided by the invention;
Fig. 5 is the flow diagram of identifying code processing method example IV provided by the invention;
Fig. 6 is the flow diagram of identifying code processing method embodiment five provided by the invention;
Fig. 7 is the function structure chart of identifying code request unit embodiment one provided by the invention;
Fig. 8 is the function structure chart of identifying code processing unit embodiment two provided by the invention;
Fig. 9 is the function structure chart of identifying code processing unit embodiment three provided by the invention;
Figure 10 is the function structure chart of identifying code processing unit example IV provided by the invention;
Figure 11 is the function structure chart of identifying code processing unit embodiment five provided by the invention;
Figure 12 is the function structure chart of identifying code processing unit embodiment six provided by the invention;
Figure 13 is the function structure chart of identifying code processing unit embodiment seven provided by the invention;
Figure 14 is the function structure chart of identifying code processing unit embodiment eight provided by the invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached in the embodiment of the present invention Figure, is clearly and completely described the technical solution in the embodiment of the present invention, it is clear that described embodiment is the present invention Part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not having All other embodiments obtained under the premise of creative work are made, belong to the scope of protection of the invention.
Fig. 1 is the system architecture diagram of identifying code processing method provided by the invention, as shown in Figure 1, this method is related to application Program and verification code system, wherein, which can be any one application program needed using identifying code business, In the application program can include client and server, from client by the special interface between verification code system to Verification code system send processing request etc., alternatively, by user end to server send processing request, by server by with verification Special interface between code system sends processing request to verification code system, wherein, processing request can be identifying code processing Request, verification request etc..
Verification code system is the software systems being deployed on specific server, can receive multiple application programs simultaneously Identifying code processing request, and handled according to identifying code and request to generate identifying code and confirm whether identifying code correct.The present invention Following examples mainly describe the implementation procedure of verification code system.
Fig. 2 be identifying code processing method embodiment one provided by the invention flow diagram, the executive agent of this method For the server of runtime verification code system, as shown in Fig. 2, this method includes:
S201, application program determine the identifying code classification of request required for current application program.
The identifying code classification includes picture validation code classification, short message verification code classification and speech identifying code classification
After determining identifying code classification, application program sends identifying code processing request to verification code system, in identifying code Identifying code classification determined by being carried in processing request.
Optionally, application program can determine corresponding with the type of service according to the present type of service of application program Identifying code classification.
S202, verification code system receive the identifying code processing request that application program is sent, and are wrapped in identifying code processing request Identifying code classification is included, wherein, identifying code classification includes picture validation code classification, short message verification code classification and speech identifying code class Not.
Verification code system provided by the invention supports a variety of identifying codes processing, including picture validation code, short message verification code with And speech identifying code.Optionally, verification code system can distribute a mark, such as 0 table for various types of other identifying code in advance Show picture validation code, 1 represents short message verification code, and 2 represent speech identifying code.
It, can be by specifically connecing when needing to need using identifying code using each function module of identifying code in application program Mouth sends identifying code processing request to verification code system, and required identifying code classification is carried in the request.For example, some should It can be by hypertext transfer protocol (HyperText Transfer Protocol, abbreviation HTTP) interface to verification with program Code system sends identifying code processing request, and required identifying code classification is carried in the request.
Optionally, above-mentioned identifying code processing request is sent to the service of application program by the client of application program first Device, then verification code system is sent to by the server of application program.
Optionally, to promote security during identifying code processing interaction, when verification code system receives the clothes of application program It is engaged in after the identifying code processing request that device is sent, generates the encryption string of identifying code processing request, and encryption string is sent to application Encryption string is pass-through to the client of application program by the server of program, the server of application program again.As the visitor of application program After family termination receives encryption string information, encrypted identifying code processing request is concatenated into according to encryption, then is transmitted directly to identifying code System.
S203, verification code system generate the corresponding identifying code of above-mentioned identifying code classification according to above-mentioned identifying code classification.
S204, verification code system send the corresponding identifying code of above-mentioned identifying code classification to above-mentioned application program.
After verification code system receives the identifying code classification of application program transmission, for different identifying code classifications, hold The different identifying code generation operation of row.If for example, identifying code carried in the identifying code processing request that verification code system receives Classification is picture validation code classification, then verification code system can select one according to specific selection mode from default picture library Width picture, comprising information such as word, letter or numbers in the picture, verification code system is using selected picture as to application The identifying code that program provides, and selected picture is sent to the client of application program.
It should be noted that above-mentioned send identifying code to application program, the client that can be both directed toward application program is sent Identifying code can also be directed toward the Subscriber Number that application program is provided and send identifying code.
And then application program is sent to be verified as a result, verification code system is held according to the input of user to verification code system To application program back-checking result after row checking treatment.It specifically includes:
S205, verification code system receive the code to be verified that application program is sent.
After verification code system sends identifying code to application program, the verification code information that user views oneself inputs The client of application program, what user was inputted is code to be verified, the client of application program and then is sent out the code to be verified Give verification code system.
S206, verification code system determine verification result according to code to be verified and the identifying code sent to application program.
The identifying code that code to be verified input by user and verification code system are sent to application program by verification code system carries out Compare, if the two is consistent, it is determined that be proved to be successful, otherwise determine authentication failed.
S207, verification code system send verification result to application program, which includes being proved to be successful and verifying Failure.
In the present embodiment, verification code system can receive different classes of identifying code processing request, and according to different classes of Identifying code processing request to generate corresponding identifying code, when the difference in functionality module in application program is needed using different classes of During identifying code, it is only necessary to which the identifying code for sending corresponding classification to verification code system by specific interface handles request, you can obtains The identifying code that must be needed, and no longer need to need to realize verification in the function module using identifying code each by application program Code function, so as to significantly reduce the implementation complexity of application program and maintenance cost.
On the basis of above-described embodiment, the present embodiment is related to verification code system and is receiving testing for picture validation code classification Demonstrate,prove processing method during code processing request, i.e. if the identifying code processing request that verification code system receives in above-mentioned steps S201 In identifying code classification for picture validation code classification, then can also carry identifying code grade simultaneously in identifying code processing request, Wherein, which is used to indicate the complexity of identifying code.
Correspondingly, above-mentioned steps S202 is specifically included:
According to above-mentioned identifying code grade, picture corresponding with above-mentioned identifying code grade is selected from default picture library, it will The picture is as the corresponding identifying code of the identifying code classification.
Specifically, identifying code grade is used to indicate the complexity of identifying code, and application program can be according to actual business Scene selects corresponding identifying code grade.Optionally, identifying code grade can be defined by verification code system, and pass through specific disappear Breath notice application program, alternatively, application program and verification code system can appoint the definition of identifying code grade in advance.With verification Exemplified by code grade is defined by verification code system, for example, verification code system can pre-define 3 identifying code grades, it is respectively height Grade, middle rank and rudimentary, wherein, senior delegate's identifying code is most complicated, and rudimentary to represent identifying code most simple.Verification code system can incite somebody to action The identifying code grade and its meaning of definition are sent to application program.
And then illustratively, when one of function module of application program is needed using a high level of authentication code, then Identifying code processing request can be sent to verification code system, advanced mark is carried in the request.
And then after verification code system receives and carries the identifying code of high level of authentication code grade and handle request, from default Width picture corresponding with the high level of authentication code grade is chosen in picture library.Wherein, several are stored in default picture library to test Code picture is demonstrate,proved, each width identifying code picture all has there are one level attributed, to represent the identifying code grade of the width picture.
When the client of application program sends identifying code processing request to verification code system, client place can be carried eventually The IP address at end.As an alternative embodiment, when identifying code is this one width identifying code picture of identifying code request selecting Afterwards, this correspondence for asking corresponding IP address and selected picture can be recorded.When follow-up yet another is verified Code processing request be from the IP address send when, verification code system can before the IP address of record and the picture of selection Correspondence selects a width not by the used picture of the IP address from picture library, i.e. selection does not appear in the correspondence In picture, with further promoted identifying code processing reliability and security.
In the present embodiment, identifying code grade of the verification code system according to required by application program corresponds to for application program selection The picture validation code of grade requires the difference of identifying code grade under different business scene so as to meet application program.
As an alternative embodiment, verification code system can generate above-mentioned picture in particular manner in advance Storehouse.Detailed description below generating process.
Fig. 3 is the flow diagram of identifying code processing method embodiment two provided by the invention, as shown in figure 3, above-mentioned step Before rapid S202, further include:
S301, original image is generated using picture generating algorithm.
Optionally, a width picture is generated using specific picture generating algorithm, and adds background colour for picture and scheming On piece adds random word, letter or number etc..
S302, according to default picture validation code generation strategy, deformation process is carried out to above-mentioned original image, obtains deformation Treated picture.
Wherein, deformation process is carried out to original image, refers to that the font to picture, font size etc. are configured and to figure Piece carries out the interference processing such as Characters Stuck, character distortion.
Correspondingly, above-mentioned picture validation code generation strategy refers to, when carrying out deformation process to original image, be required for Which specific deformation performed.
Specifically, the configuration item of above-mentioned picture validation code generation strategy can include it is following in it is one or more:Font, Font size, character set, picture size, verification code bit number, anti-crack strategy at color.Wherein, prevent cracking strategy using dry below addition The mode of disturbing realizes mainly have:Background picture, outline letters, Characters Stuck, color are progressive, character distortion, interference camber line, noise spot, Font retouches side, font rotation, font shade.
Illustratively, it is assumed that the configuration item of current image identifying code generation strategy includes:Font A, font size B, Characters Stuck, Then number, the font of letter or word in original image are all adjusted to font A by verification code system, and font size is all adjusted to word Number B carries out adhesion processing, so as to form the picture after deformation process to these numbers, letter or words.
S303, according to above-mentioned picture validation code generation strategy, determine the identifying code grade of the picture after above-mentioned deformation process.
It is alternatively possible to according to the item number for preventing cracking strategy in picture validation code generation strategy number determine identifying code Grade.For example, the anti-item number for cracking strategy is less than or equal to 3, then identifying code grade is rudimentary, and the anti-item number for cracking strategy is more than 5, then identifying code grade is advanced.
S304, the identifying code grade of the picture after above-mentioned deformation process and the picture after above-mentioned deformation process is added to In above-mentioned picture library.
Specifically, it is added to identifying code grade as an attribute of picture in picture library.
On the basis of above-described embodiment, the present embodiment is related to verification code system and is receiving short message verification code classification or language Processing method during the identifying code processing request of sound identifying code classification, i.e. if verification code system receives in above-mentioned steps S201 Identifying code processing request in identifying code classification for short message verification code classification or speech identifying code classification, then in above-mentioned identifying code Subscriber Number is further included in processing request.The user's number refers specifically to the cell-phone number that user inputs in the client of application program Code, if speech identifying code, the user's number can also be fixed telephone number.
Correspondingly, Fig. 4 is the flow diagram of identifying code processing method embodiment three provided by the invention, as shown in figure 4, Above-mentioned steps S202 includes:
S401, judge whether following two conditions meet, if so, performing S402:
Identifying code classification is said short message identifying code classification, and sends the identifying code processing of preset times in application program The user's number does not receive identifying code after request.
S402, the corresponding speech identifying code of the above-mentioned Subscriber Number of generation.
Specifically, under normal circumstances, if the identifying code classification of identifying code processing request is speech identifying code, verify Code system can generate corresponding voice messaging and play the voice messaging after above-mentioned Subscriber Number is called, alternatively, prompting user Assigned number is dialed to listen to the voice messaging.If the identifying code classification of identifying code processing request is short message verification code, to Above-mentioned Subscriber Number sends short message, and identifying code is carried in short message content.
And in the present embodiment, if application program the user number after the identifying code for having sent preset times handles request Code does not receive identifying code, i.e. user does not input code to be verified in the client of application program, then application program can be to testing It demonstrate,proves code system and sends abnormal notice, short message verification code classification can be revised as speech identifying code by verification code system, i.e., according to voice The processing method of identifying code performs.
In the present embodiment, when Subscriber Number can not receive short message verification code, verification code system can be switched in time The form of speech identifying code, so as to ensure that user can normally receive identifying code, when improving user using identifying code Experience.
On the basis of above-described embodiment, the present embodiment is related to verification code system according to the statistics to verification process to determine The specific method whether identifying code is cracked, i.e. Fig. 5 is that the flow of identifying code processing method example IV provided by the invention is shown It is intended to, as shown in figure 5, this method further includes:
S501, the verification time that verification result is the identifying code processing request being proved to be successful is determined, which is upper It states application program and sends identifying code and process request to the time that above application program receives verification result.
S502, statistics application program send the number of identifying code processing request.
S503, the number that identifying code processing request is sent according to above-mentioned verification time and application program, determine identifying code Whether it is cracked.
Specifically, step S501-S502 can be performed according to the IP address for sending verification processing request, for example, being directed to Some specific IP address, verification code system determine the verification of the identifying code the being proved to be successful processing request sent from the IP address Time, and the number that the IP address sends identifying code processing request in preset time period is counted, if what is be proved to be successful tests The time is demonstrate,proved less than certain threshold value, i.e., the code to be verified in the IP address is inputted to be higher than the speed of normal speed, also, the IP The number that address sends identifying code processing request in preset time period is more than certain threshold value, that is, sends the number of identifying code request It submits the number of identifying code request by hand more than normal users, then can determine testing transmitted by verification code system to the IP address Card code has been cracked, then statistical information and result can be sent to application program by verification code system, with to application program Administrator send alarm prompt.Also, it for the IP address, reuses new identifying code or is not carried to the IP address For identifying code etc..
On the basis of above-described embodiment, the present embodiment is related to verification code system and improves verification according to the number of authentication failed Code grade specific method, i.e. Fig. 6 be identifying code processing method embodiment five provided by the invention flow diagram, such as Fig. 6 Shown, this method further includes:
The quantity that S601, statistical testing of business cycles result are asked for the identifying code processing of authentication failed.
If S602, verification result reach preset value for the quantity of the identifying code processing request of authentication failed, journey will be applied The corresponding identifying code grade of sequence is revised as a upper grade for current verification code grade.
S603, the upper grade that above-mentioned current verification code grade is sent to application program.
Optionally, step S601-S603 can also be performed according to the IP address for sending verification processing request.Specifically, Application program can be that each IP address registered on it distributes an identifying code grade.For some specific IP address, If the verification result of the identifying code processing request sent from the IP address reaches preset value for the number of authentication failed, illustrate There may be the behavior for attempting to crack identifying code, then verification code system can arrive the corresponding identifying code grade promotion of the IP address A upper grade, i.e., more complicated grade, and new grade is sent to application program, it is correspondingly changed by application program The identifying code grade of the IP address of upper setting.And if the corresponding identifying code grade of the IP address has been highest ranking, Verification code system can send notification information to application program, to notify the administrator of the application program IP address that there may be evils Meaning cracks behavior, by the administrator of application program certain detection means is recycled to be further processed.
It should be noted that in specific implementation process, above-mentioned Fig. 5 and the embodiment shown in Fig. 6 can individually be implemented, Implementation can also be combined.
Fig. 7 is the function structure chart of identifying code request unit embodiment one provided by the invention, as shown in fig. 7, the device Including:
Determining module 701, for determining the identifying code classification asked required for current application program, the identifying code classification Including picture validation code classification, short message verification code classification and speech identifying code classification.
Sending module 702 for sending identifying code processing request to verification code system, wraps in the identifying code processing request The identifying code classification is included, so that the verification code system generates the identifying code classification and correspond to according to the identifying code classification Identifying code.
Fig. 8 is the function structure chart of identifying code processing unit embodiment two provided by the invention, as shown in figure 8, the device Including:
First receiving module 801, the identifying code for receiving application program transmission handle request, and the identifying code processing please Asking includes identifying code classification, and the identifying code classification is tested including picture validation code classification, short message verification code classification and voice Demonstrate,prove code classification.
First processing module 802, for according to the identifying code classification, generating the corresponding verification of the identifying code classification Code.
First sending module 803, for sending the corresponding identifying code of the identifying code classification to the application program.
The device is used to implement preceding method embodiment, and implementing principle and technical effect are similar, and details are not described herein again.
In another embodiment, if the identifying code classification is the picture validation code classification, the identifying code processing please Identifying code grade is further included in asking, the identifying code grade is used to indicate the complexity of identifying code.Fig. 9 is provided by the invention The function structure chart of identifying code processing unit embodiment three, as shown in figure 9, first processing module 802 includes:
First processing units 8021, for according to the identifying code grade, selecting to test with described from default picture library The corresponding picture of code grade is demonstrate,proved, using the picture as the corresponding identifying code of the identifying code classification.
Figure 10 is the function structure chart of identifying code processing unit example IV provided by the invention, as shown in Figure 10, the dress It puts and further includes:
Generation module 804, for picture generating algorithm to be used to generate original image.
Second processing module 805, for according to default picture validation code generation strategy, becoming to the original image Shape processing, obtains the picture after deformation process.
First determining module 806, for according to the picture validation code generation strategy, determining the figure after the deformation process The identifying code grade of piece.
Add module 807, for by the verification of the picture after the deformation process and the picture after the deformation process Code grade is added in the picture library.
In another embodiment, if the identifying code classification is the short message verification code classification or the speech identifying code class Not, then Subscriber Number is further included in the identifying code processing request.
Figure 11 is the function structure chart of identifying code processing unit embodiment five provided by the invention, as shown in figure 11, first Processing module 802 further includes:
Second processing unit 8022, for the identifying code classification be the short message verification code classification, and it is described should When not receiving identifying code with the Subscriber Number after the identifying code processing request of program transmission preset times, the user is generated The corresponding speech identifying code of number.
Figure 12 is the function structure chart of identifying code processing unit embodiment six provided by the invention, as shown in figure 12, the dress It puts and further includes:
Second receiving module 808, for receiving the code to be verified that the application program is sent.
Second determining module 809, for according to the code to be verified and the verification sent to the application program Code, determines verification result.
Second sending module 810, for sending the verification result to the application program, the verification result includes testing It demonstrate,proves successfully and authentication failed.
Figure 13 is the function structure chart of identifying code processing unit embodiment seven provided by the invention, as shown in figure 13, the dress It puts and further includes:
3rd determining module 811, for determining that verification result is the verification time that the identifying code processing being proved to be successful is asked, The verification time for the application program send identifying code process request to the application program receive verification result when Between.
First statistical module 812, for counting the number that the application program sends identifying code processing request.
4th determining module 813, please for sending identifying code processing according to the verification time and the application program The number asked, determines whether the identifying code is cracked.
Figure 14 is the function structure chart of identifying code processing unit embodiment eight provided by the invention, as shown in figure 14, the dress It puts and further includes:
Second statistical module 814 is the quantity of the identifying code processing request of authentication failed for statistical testing of business cycles result.
Modified module 815, for reaching pre- in the verification result for the quantity of the identifying code processing request of authentication failed If during value, the corresponding identifying code grade of the application program is revised as to the upper grade of current verification code grade
3rd sending module 816, for sending a upper grade for the current verification code grade to the application program.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey Sequence upon execution, execution the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or The various media that can store program code such as person's CD.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe is described in detail the present invention with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to Can so modify to the technical solution recorded in foregoing embodiments either to which part or all technical characteristic into Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is not made to depart from various embodiments of the present invention technology The scope of scheme.

Claims (11)

1. a kind of identifying code requesting method, which is characterized in that including:
Determine the identifying code classification of request required for current application program, the identifying code classification include picture validation code classification, Short message verification code classification and speech identifying code classification;
Identifying code processing request is sent to verification code system, the identifying code processing request includes the identifying code classification, with The verification code system is made to generate the corresponding identifying code of the identifying code classification according to the identifying code classification.
2. the according to the method described in claim 1, it is characterized in that, verification of request required for the definite current application program Code classification, including:
According to the present type of service of the application program, identifying code classification corresponding with the type of service is determined.
3. a kind of identifying code processing method, which is characterized in that including:
The identifying code processing request that application program is sent is received, the identifying code processing request includes identifying code classification, described Identifying code classification includes picture validation code classification, short message verification code classification and speech identifying code classification;
According to the identifying code classification, the corresponding identifying code of the identifying code classification is generated;
The corresponding identifying code of the identifying code classification is sent to the application program.
4. if according to the method described in claim 3, it is characterized in that, the identifying code classification is the picture validation code class Not, then identifying code grade is further included in the identifying code processing request, the identifying code grade is used to indicate the complexity of identifying code Degree;
It is described that the corresponding identifying code of the identifying code classification is generated according to the identifying code classification, including:
According to the identifying code grade, picture corresponding with the identifying code grade is selected from default picture library, by described in Picture is as the corresponding identifying code of the identifying code classification.
5. according to the method described in claim 4, it is characterized in that, described according to the identifying code classification, the verification is generated Before the corresponding identifying code of code classification, further include:
Original image is generated using picture generating algorithm;
According to default picture validation code generation strategy, deformation process is carried out to the original image, after obtaining deformation process Picture;
According to the picture validation code generation strategy, the identifying code grade of the picture after the deformation process is determined;
The identifying code grade of picture after the deformation process and the picture after the deformation process is added to the picture In storehouse.
6. if according to the method described in claim 3, it is characterized in that, the identifying code classification is the short message verification code classification Or the speech identifying code classification, then further include Subscriber Number in the identifying code processing request;
It is described that the corresponding identifying code of the identifying code classification is generated according to the identifying code classification, including:
If the identifying code classification is the short message verification code classification, and sends the verification of preset times in the application program The Subscriber Number does not receive identifying code after code processing request, then generates the corresponding speech identifying code of the Subscriber Number.
7. according to claim 4-6 any one of them methods, which is characterized in that further include:
Receive the code to be verified that the application program is sent;
According to the code to be verified and the identifying code sent to the application program, verification result is determined;
The verification result is sent to the application program, the verification result includes being proved to be successful and authentication failed.
8. it the method according to the description of claim 7 is characterized in that further includes:
Determine the verification time that verification result is the identifying code processing request being proved to be successful, the verification time applies journey to be described Sequence sends identifying code and processes request to the time that the application program receives verification result;
Count the number that the application program sends identifying code processing request;
The number of identifying code processing request is sent according to the verification time and the application program, determines that the identifying code is It is no to be cracked.
9. a kind of identifying code request unit, which is characterized in that including:
Determining module, for determining the identifying code classification asked required for current application program, the identifying code classification includes figure Piece identifying code classification, short message verification code classification and speech identifying code classification;
Sending module, for sending identifying code processing request to verification code system, the identifying code processing request includes described Identifying code classification, so that the verification code system generates the corresponding verification of the identifying code classification according to the identifying code classification Code.
10. a kind of identifying code processing unit, which is characterized in that including:
First receiving module, the identifying code for receiving application program transmission handle request, are wrapped in the identifying code processing request Identifying code classification is included, the identifying code classification includes picture validation code classification, short message verification code classification and speech identifying code class Not;
First processing module, for according to the identifying code classification, generating the corresponding identifying code of the identifying code classification;
First sending module, for sending the corresponding identifying code of the identifying code classification to the application program.
11. a kind of identifying code processing system, which is characterized in that including:
Identifying code request unit as claimed in claim 9 and identifying code processing unit as claimed in claim 10.
CN201711213029.8A 2017-11-28 2017-11-28 Identifying code request processing method, device and identifying code processing system Pending CN108121907A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711213029.8A CN108121907A (en) 2017-11-28 2017-11-28 Identifying code request processing method, device and identifying code processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711213029.8A CN108121907A (en) 2017-11-28 2017-11-28 Identifying code request processing method, device and identifying code processing system

Publications (1)

Publication Number Publication Date
CN108121907A true CN108121907A (en) 2018-06-05

Family

ID=62228624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711213029.8A Pending CN108121907A (en) 2017-11-28 2017-11-28 Identifying code request processing method, device and identifying code processing system

Country Status (1)

Country Link
CN (1) CN108121907A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110691086A (en) * 2019-09-29 2020-01-14 深圳供电局有限公司 Cross-platform verification unlocking method
CN112214751A (en) * 2019-07-11 2021-01-12 上海游昆信息技术有限公司 Verification code generation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120246008A1 (en) * 2011-03-23 2012-09-27 International Business Machines Corporation Implementing computer interaction response tests
CN104200140A (en) * 2014-09-28 2014-12-10 北京奇虎科技有限公司 Method and device providing verification code
CN104202345A (en) * 2014-09-28 2014-12-10 北京奇虎科技有限公司 Verification code generating method, device and system
CN104753884A (en) * 2013-12-30 2015-07-01 腾讯科技(深圳)有限公司 Method, system and server for verifying network services

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120246008A1 (en) * 2011-03-23 2012-09-27 International Business Machines Corporation Implementing computer interaction response tests
CN104753884A (en) * 2013-12-30 2015-07-01 腾讯科技(深圳)有限公司 Method, system and server for verifying network services
CN104200140A (en) * 2014-09-28 2014-12-10 北京奇虎科技有限公司 Method and device providing verification code
CN104202345A (en) * 2014-09-28 2014-12-10 北京奇虎科技有限公司 Verification code generating method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
范勇 等主编: "《软件测试技术 第2版》", 30 November 2009, 西安电子科学大学出版社 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112214751A (en) * 2019-07-11 2021-01-12 上海游昆信息技术有限公司 Verification code generation method and device
CN110691086A (en) * 2019-09-29 2020-01-14 深圳供电局有限公司 Cross-platform verification unlocking method

Similar Documents

Publication Publication Date Title
AU2017203608B2 (en) Mobile human challenge-response test
CN105592065B (en) A kind of Website logging method and its login system based on SMS
US7874011B2 (en) Authenticating user identity when resetting passwords
US11410565B2 (en) Systems for classroom media sharing
CN106453209B (en) Identity verification method and device
CN104580264B (en) Login method, entering device and login and Accreditation System
US9009793B2 (en) Dynamic pin dual factor authentication using mobile device
US20090249477A1 (en) Method and system for determining whether a computer user is human
CN108076056A (en) Cloud server login method and device
TW201543256A (en) Method and system for generating verification codes
CN106302544A (en) A kind of safe verification method and system
CN103731413A (en) Abnormal login handling method
US9906955B2 (en) Identity and phone number verification
CN104767714A (en) Method, terminal and system for associating user resource information
CN107248084A (en) Ticketing service method for managing security and device
CN107370765A (en) A kind of ftp server identity identifying method and system
CN102833247A (en) Method for anti-sweeping ciphers in user login system and device thereof
US10044735B2 (en) System and method for authentication of electronic communications
US20200351658A1 (en) Identity and phone number verification
CN108121907A (en) Identifying code request processing method, device and identifying code processing system
CN104348613B (en) User verification method, apparatus and system
CN107819766A (en) Safety certifying method, system and computer-readable recording medium
CN106888149B (en) Subscription mail unsubscribing method and device
CN107231358B (en) Questionnaire data acquisition method, server and mobile terminal
CN112929835A (en) Message notification method, device, electronic terminal and storage medium

Legal Events

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

Application publication date: 20180605

RJ01 Rejection of invention patent application after publication