Verification code request processing method, device and equipment and computer storage medium
By obtaining the initial parameters of the verification code system and drawing the screen to be verified in the mobile terminal, and verifying the verification time, the problem of high data consumption and low efficiency of mobile terminal verification codes is solved, and convenient and efficient verification code verification is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-15
- Publication Date
- 2026-03-31
AI Technical Summary
Existing CAPTCHA technology is costly in terms of data usage and has low verification efficiency on mobile devices. It is difficult for users to operate and easy for machines to crack.
The system obtains the initial parameters of the verification code system from the mobile terminal, uses a preset drawing algorithm to draw the screen to be verified, receives the verification information input by the user, and verifies whether the verification time meets the preset requirements.
It reduces mobile terminal data consumption, improves the convenience and efficiency of CAPTCHA verification, and avoids difficulties for users to identify the CAPTCHA and the phenomenon of machine cracking.
Smart Images

Figure CN110866239B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of financial technology (Fintech), and more particularly to a method, apparatus, device, and computer storage medium for processing verification code requests. Background Technology
[0002] With the development of computer technology, more and more technologies are being applied in the financial field, and the traditional financial industry is gradually transforming into Fintech. However, due to the security and real-time requirements of the financial industry, higher demands are being placed on technology. For example, common CAPTCHA technologies typically include text input CAPTCHAs and slider puzzle CAPTCHAs. Slider puzzle CAPTCHAs are costly to implement, requiring additional downloads of corresponding image resources, consuming data traffic, and are inconvenient for users to operate on mobile devices. Text input CAPTCHAs, due to the widespread use of CAPTCHA technology and the gradual maturation of OCR technology, have become increasingly easy for machines to crack. Therefore, to prevent machine cracking, random distortions, backgrounds, and noise points are often added when displaying text, numbers, or arithmetic problems. However, this interference makes it more difficult for users to view the CAPTCHA image, resulting in low verification efficiency. Summary of the Invention
[0003] The main objective of this invention is to provide a verification code request processing method, apparatus, device, and computer storage medium, which aims to reduce the data traffic consumed by the terminal and improve the efficiency of the verification code verification process on the mobile terminal.
[0004] To achieve the above objectives, the present invention provides a verification code request processing method, which includes the following steps:
[0005] Send a verification code request to the verification code system and receive initial parameters fed back by the verification code system based on the verification code request;
[0006] The screen to be verified is drawn according to the preset drawing algorithm and the initial parameters, and the screen to be verified is output.
[0007] The system receives verification information corresponding to the screen to be verified and determines whether the verification information meets the preset verification requirements. If it does, the system sends the verification duration in the verification information to the verification code system, wherein the verification code system verifies the verification duration.
[0008] Optionally, the step of drawing the image to be verified according to the preset drawing algorithm and the initial parameters includes:
[0009] The forward speed value and target position are extracted from the initial parameters, and the image to be verified is drawn according to the preset drawing algorithm, the target position and the forward speed value.
[0010] Optionally, the present invention provides a verification code request processing method, comprising the following steps:
[0011] Receive a verification code request sent by a mobile terminal, obtain the initial parameters corresponding to the verification code request, and feed back the initial parameters to the mobile terminal;
[0012] The system receives the verification duration sent by the mobile terminal based on the initial parameters, calculates the target duration range based on the initial parameters, and detects whether the verification duration is within the target duration range.
[0013] If it is present, then the verification duration check is considered successful.
[0014] Optionally, the initial parameters include a forward velocity value.
[0015] The step of obtaining the initial parameters corresponding to the verification code request includes:
[0016] The preset time range and progress bar are obtained according to the verification code request, and the speed range value corresponding to the progress bar is calculated according to the time range and the length value of the progress bar.
[0017] The target speed value is determined within the speed range according to a preset filtering method, and the target speed value is used as the forward speed value.
[0018] Optionally, the initial parameters include the target location.
[0019] The step of obtaining the initial parameters corresponding to the verification code request includes:
[0020] The progress bar is obtained according to the verification code request, and a preset position area in the progress bar is obtained;
[0021] Determine the proportion of the preset position area in the progress bar, and take the position corresponding to the proportion in the progress bar as the target position.
[0022] Optionally, the step of calculating the target duration range based on the initial parameters includes:
[0023] Obtain the maximum and minimum values of the target position in the progress bar from the initial parameters, calculate the first time value between the maximum value and the forward speed value in the initial parameters, calculate the second time value between the minimum value and the forward speed value, and take the time range between the second time value and the first time value as the target duration range.
[0024] Furthermore, to achieve the above objectives, the present invention also provides a verification code request processing device, the verification code request processing device comprising:
[0025] The receiving module is used to send a verification code request to the verification code system and receive the initial parameters fed back by the verification code system based on the verification code request.
[0026] The output module is used to draw the image to be verified according to the preset drawing algorithm and the initial parameters, and to output the image to be verified.
[0027] The sending module is used to receive the verification information corresponding to the screen to be verified, and determine whether the verification information meets the preset verification requirements. If it does, the verification duration in the verification information is sent to the verification code system, wherein the verification code system verifies the verification duration.
[0028] Optionally, the present invention also provides a verification code request processing apparatus, comprising:
[0029] The acquisition module is used to receive a verification code request sent by a mobile terminal, acquire the initial parameters corresponding to the verification code request, and feed back the initial parameters to the mobile terminal.
[0030] The calculation module is used to receive the verification duration sent by the mobile terminal based on the initial parameters, calculate the target duration range according to the initial parameters, and detect whether the verification duration is within the target duration range;
[0031] The determination module is used to determine if the verification duration verification is successful if the condition is met.
[0032] In addition, to achieve the above objectives, the present invention also provides a verification code request processing device, the verification code request processing device comprising: a memory, a processor, and a verification code request processing program stored in the memory and executable on the processor, wherein the verification code request processing program, when executed by the processor, implements the steps of the verification code request processing method as described above.
[0033] In addition, to achieve the above objectives, the present invention also provides a computer storage medium storing a verification code request processing program, which, when executed by a processor, implements the steps of the verification code request processing method described above.
[0034] This invention sends a verification code request to a verification code system and receives initial parameters from the system based on the request. It then draws and outputs a verification screen according to a preset drawing algorithm and the initial parameters. Next, it receives verification information corresponding to the verification screen and determines whether the information meets preset verification requirements. If it does, the verification duration in the verification information is sent to the verification code system, whereby the verification code system verifies the verification duration. By obtaining the initial parameters from the verification code system on the mobile terminal, drawing and outputting the verification screen using a preset drawing algorithm and initial parameters, and then sending the verification duration from the user-input verification information to the verification code system for verification, this invention avoids the problem of adding interference information to the displayed verification code, which makes it difficult for users to recognize the verification code, as is common in existing technologies. Furthermore, since the verification screen is drawn on the mobile terminal, users do not need to download new image resources, saving data costs and improving the convenience of verification code verification on mobile terminals. Verification of the verification duration also improves the efficiency of the mobile terminal verification code process. Attached Figure Description
[0035] Figure 1 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of the present invention;
[0036] Figure 2 This is a flowchart illustrating the first embodiment of the verification code request processing method of the present invention;
[0037] Figure 3 This is a flowchart illustrating the first embodiment of the verification code request processing method of the present invention;
[0038] Figure 4 This is a schematic diagram of the device modules of the verification code request processing apparatus of the present invention;
[0039] Figure 5 This is a flowchart illustrating the verification code verification process in the verification code request processing method of the present invention.
[0040] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0041] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0042] like Figure 1 As shown, Figure 1 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of the present invention.
[0043] In this embodiment of the invention, the verification code request processing device can be a PC or a server device running a Java Virtual Machine.
[0044] like Figure 1 As shown, the verification code request processing device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as a disk drive. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0045] Those skilled in the art will understand that Figure 1 The device structure shown does not constitute a limitation on the device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0046] like Figure 1 As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a verification code request processing program.
[0047] exist Figure 1 In the device shown, the network interface 1004 is mainly used to connect to the backend server and communicate data with the backend server; the user interface 1003 is mainly used to connect to the client (user terminal) and communicate data with the client; and the processor 1001 can be used to call the verification code request processing program stored in the memory 1005 and execute the operations in the following verification code request processing method.
[0048] Based on the above hardware structure, an embodiment of the verification code request processing method of the present invention is proposed.
[0049] Reference Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the verification code request processing method of the present invention. The method includes:
[0050] Step S10: Send a verification code request to the verification code system and receive the initial parameters fed back by the verification code system based on the verification code request;
[0051] A CAPTCHA is a public, fully automated program that distinguishes between a computer and a human user. A CAPTCHA system can be a software system deployed on a specific server, capable of receiving multiple processing requests simultaneously. Based on these requests, it sends initial parameters to the mobile terminal and performs relevant verifications. The initial parameters can be information related to the CAPTCHA, generated by the system based on the CAPTCHA request, such as the CAPTCHA's movement speed and target position.
[0052] In this embodiment, when verification begins, the mobile terminal sends a verification code request to the verification code system. Upon receiving the request, the verification code system determines the progress bar corresponding to the request and generates the progress bar's forward speed and target position. The forward speed is generated by setting a range for the time required to complete one lap of the progress bar, such as 2 to 5 seconds. Within this range, the system obtains the time taken to complete one lap using a preset method (e.g., random). Since the movement within the progress bar is uniform, the forward speed can be calculated from this time. The target position is generated similarly, with the verification code system configuring a range for the target position, representing the percentage of the progress bar's length relative to the entire progress bar, such as 10%-90%. This percentage is the target position. The forward speed and target position are then encrypted and sent to the mobile terminal as initial parameters. For example, when a user needs to view a page of an application client on a mobile device, verification is required before the user can continue viewing. This will trigger the application to send a verification code request to the verification code system. The verification code request is used to request the verification code system to assign a verification code and the parameter information of the verification code to the application.
[0053] Step S20: Draw the image to be verified according to the preset drawing algorithm and the initial parameters, and output the image to be verified;
[0054] The preset drawing algorithm is the algorithm used to draw the screen to be verified on the mobile terminal, such as a JavaScript algorithm. JavaScript is an interpreted scripting language, a dynamically typed, weakly typed, prototype-based language with built-in type support. After receiving the initial parameters sent by the verification code system, the mobile terminal can draw the screen to be verified according to the preset drawing algorithm and the initial parameters (such as the forward speed value and the target position), and output this screen on the mobile terminal. That is, the user can see the verification code device and the target position on the progress bar on the mobile terminal interface.
[0055] Step S30: Receive the verification information corresponding to the screen to be verified, and determine whether the verification information meets the preset verification requirements. If it does, send the verification duration in the verification information to the verification code system, wherein the verification code system verifies the verification duration.
[0056] When the verification screen is displayed on the mobile terminal and the verification information input by the user is received, it is also necessary to check whether the verification information meets the preset verification requirements (such as checking whether the progress bar movement speed in the verification information is the same as the forward speed value in the initial parameters, or checking whether the progress bar in the verification information has moved from the starting point to the target position, etc.). If it is found that the verification information does not meet the preset verification requirements, such as the progress bar movement speed is different from the forward speed value in the initial parameters, or the progress bar has not yet moved to the target position, new verification information needs to be obtained again. However, if it is found that the verification information meets the preset verification requirements, the verification duration in this verification information can be directly sent to the verification code system for the verification code system to verify the verification duration. For example, when the user clicks and releases the button on the verification screen of the mobile terminal, the user's long press time (i.e., the verification time) is transmitted to the verification code system for verification. Based on the forward speed value and target position already saved in the verification code system, the correct range of the user's long press time is calculated, and the verification result is obtained by judging whether the user's long press time is within the correct time range. This verification result is then returned to the mobile terminal for output.
[0057] It should be noted that in this embodiment, different verification methods can be implemented according to actual needs. For example, for cases with relatively low security requirements, or where there are requirements for verification code performance and result speed, the generation of the forward speed value and target position in the verification code system can be transferred to the backend server of the mobile terminal browser and completed using JavaScript. This reduces the interaction between the mobile terminal and the verification code system (such as the backend), thereby reducing the computational pressure on the verification code system and improving the response speed of the verification code device. Furthermore, in addition to using the time from when the user clicks the button to when they release it as the verification time, the interaction method of long-pressing to start the timer and releasing to end the timer can be replaced with other timing schemes. For example, the time difference between the first click to start the timer and the second click to end the timer can be used for verification.
[0058] Furthermore, in this embodiment, the original scheme with two variables (progress speed value and endpoint position) can be reduced. For example, the endpoint position can be kept unchanged, and different correct times can be generated only by the progress bar's forward speed.
[0059] In addition, to aid in understanding the verification principle of the CAPTCHA in this embodiment, examples are provided below.
[0060] For example, such as Figure 5 The flowchart shown illustrates the CAPTCHA verification process, which includes the user, the browser (i.e., the application on the mobile terminal), and the backend (i.e., the CAPTCHA system). When the browser begins verification, the CAPTCHA is initialized, and the progress bar's speed and target position are generated in the backend. These parameters are then encrypted and transmitted to the browser. The browser sets its speed based on the received encrypted transmission parameters and displays the CAPTCHA's endpoint. Once ready, the user can see the CAPTCHA device and the target position on the progress bar in the browser interface. When the user clicks the button, the progress bar in the browser advances and starts timing. When the user releases the button, the progress bar stops timing. The long-press time is calculated from the start to the stop of timing and is encrypted and transmitted from the browser to the backend for verification. The verification result is then returned to the browser for output.
[0061] In this embodiment, a verification code request is sent to the verification code system, and initial parameters are received from the verification code system based on the verification code request. A screen to be verified is drawn according to a preset drawing algorithm and the initial parameters, and the screen to be verified is output. Verification information corresponding to the screen to be verified is received, and it is determined whether the verification information meets preset verification requirements. If it does, the verification duration in the verification information is sent to the verification code system, whereby the verification code system verifies the verification duration. By obtaining the initial parameters from the verification code system in the mobile terminal, drawing and outputting the screen to be verified using a preset drawing algorithm and the initial parameters, and then sending the verification duration in the user-input verification information to the verification code system for verification, the phenomenon of adding interference information to the displayed verification code, which makes it difficult for users to recognize the verification code, is avoided in the prior art. Furthermore, since the screen to be verified is drawn in the mobile terminal, users do not need to download new image resources, saving data costs and improving the convenience of verification code verification in the mobile terminal. Verification of the verification duration also improves the efficiency of the mobile terminal verification code verification process.
[0062] Furthermore, based on the first embodiment of the verification code request processing method of the present invention, a second embodiment of the verification code request processing method of the present invention is proposed. This embodiment is step S20 of the first embodiment of the present invention, the step of drawing the image to be verified according to the preset drawing algorithm and the initial parameters, including:
[0063] Step a: Extract the forward speed value and target position from the initial parameters, and draw the image to be verified according to the preset drawing algorithm, the target position and the forward speed value.
[0064] After the mobile terminal receives the initial parameters from the verification code system, it extracts the forward speed value and target position from the initial parameters. The mobile terminal can then draw the image to be verified based on the preset drawing algorithm, forward speed value, and target position.
[0065] In this embodiment, the accuracy of the drawn image is ensured by extracting the forward speed value and target position from the initial parameters and drawing the image to be verified according to a preset drawing algorithm.
[0066] Furthermore, referring to Figure 3 , Figure 3 This is a flowchart illustrating another embodiment of the verification code request processing method of the present invention, the method comprising:
[0067] Step S100: Receive a verification code request sent by a mobile terminal, obtain the initial parameters corresponding to the verification code request, and send the initial parameters back to the mobile terminal.
[0068] A verification code (CAPTCHA) is a public, fully automated program that distinguishes between a computer and a human user. A CAPTCHA system can be a software system deployed on a specific server, capable of receiving multiple processing requests simultaneously. It sends initial parameters to the mobile terminal based on these requests and performs related verifications. The initial parameters can be information related to the CAPTCHA, such as its speed and target position, generated by the CAPTCHA system based on the request. Upon receiving a CAPTCHA request from the mobile terminal, the CAPTCHA system determines the corresponding progress bar and generates its speed and target position. The speed is generated by setting a range for the time it takes to complete one lap of the progress bar, such as 2 to 5 seconds. Within this range, the system obtains the time taken to complete one lap using a preset method (e.g., random). Since the movement within the progress bar is uniform, the speed can be calculated from this time. The method for generating the target position is similar to the rule for generating the forward speed. The CAPTCHA system configures a range for the target position, which is the percentage of the progress bar's length relative to the entire progress bar, for example, 10%-90%. This percentage is the target position. Then, the forward speed and target position are encrypted and sent as initial parameters to the mobile terminal. For example, when a user needs to view a page in an application client on the mobile terminal, verification is required to allow the user to continue viewing. This triggers the application to send a CAPTCHA request to the CAPTCHA system. This CAPTCHA request requests the system to assign a CAPTCHA and its parameter information.
[0069] Step S200: Receive the verification duration sent by the mobile terminal based on the initial parameters, calculate the target duration range according to the initial parameters, and detect whether the verification duration is within the target duration range;
[0070] When the verification code system obtains the verification duration sent by the mobile terminal based on the initial parameters, it first calculates the target duration range based on the target position and forward speed in the initial parameters, checks whether the verification duration is within the target duration range, and performs different operations based on different detection results.
[0071] Step S300: If the verification duration is successful, then the verification is confirmed to be successful.
[0072] If the verification duration is found to be within the target duration range, the verification duration is considered successful. However, if the verification duration is not within the target duration range, the verification duration is considered to have failed.
[0073] In this embodiment, a verification code request sent by a mobile terminal is received, and the initial parameters corresponding to the verification code request are obtained and fed back to the mobile terminal. The verification duration sent by the mobile terminal based on the initial parameters is received, and a target duration range is calculated based on the initial parameters. It is then checked whether the verification duration is within the target duration range. If it is, the verification duration verification is considered successful. By feeding back initial parameters to the mobile terminal based on the verification code request in the verification code system, receiving the verification duration sent by the mobile terminal, and then detecting the verification duration based on the target duration range, the accuracy of verification code verification is improved, machine verification is avoided, and the efficiency of the mobile terminal verification code verification process is also improved by verifying the verification duration.
[0074] Further, the step of obtaining the initial parameters corresponding to the verification code request includes:
[0075] Step b: Obtain a preset time range and progress bar according to the verification code request, and calculate the speed range value corresponding to the progress bar based on the time range and the length value of the progress bar;
[0076] In this embodiment, the initial parameters include a forward speed value, which is the speed at which the verification code moves within the progress bar. After receiving a verification code request from the mobile terminal, the verification code system automatically generates a progress bar and obtains a pre-set time range corresponding to the verification code request, such as 2s-5s. After determining the preset time range and the progress bar, the verification code system calculates the length of the time range and the progress bar to obtain the forward speed value corresponding to the progress bar. This involves determining the maximum time value within the time range, dividing the length value by the maximum time value to obtain the maximum speed value x, and dividing the length value by the minimum time value within the time range to obtain the minimum speed value y. The speed range between the minimum speed value y and the maximum speed value x can then be used as the speed range value of the progress bar.
[0077] Step c: Determine the target speed value within the speed range according to the preset filtering method, and use the target speed value as the forward speed value.
[0078] Once the speed range of the progress bar is calculated in the CAPTCHA system based on the time range and the length of the progress bar, a speed value can be obtained from the speed range as the target speed value through a preset filtering method (such as random filtering or filtering with certain restrictions), and this target speed value can be used as the forward speed value of the progress bar.
[0079] In this embodiment, the speed range value is calculated based on a preset time range and the length value of the progress bar, and the forward speed value is determined within the speed range value through a preset filtering method, thereby ensuring the validity of the obtained forward speed value.
[0080] Further, the step of obtaining the initial parameters corresponding to the verification code request includes:
[0081] Step d: Obtain a progress bar according to the verification code request, and obtain a preset position area in the progress bar;
[0082] In this embodiment, the initial parameters also include the target position, which is the endpoint where the verification code needs to advance in the progress bar. After receiving the verification code request sent by the mobile terminal, the verification code system automatically generates a progress bar and obtains a pre-set preset position area corresponding to the verification code request. This preset position area is a certain segment of the progress bar and cannot exceed the range of the area occupied by the progress bar.
[0083] Step e: Determine the proportion of the preset position area in the progress bar, and take the position corresponding to the proportion in the progress bar as the target position.
[0084] After obtaining the preset location area, the verification code system also needs to determine the percentage of the preset location area in the area occupied by the progress bar, such as 10%, 90%, etc., and take the position corresponding to this percentage in the progress bar as the target position.
[0085] In this embodiment, the target position is determined based on the preset location area and the length value of the progress bar, and this target position is sent to the mobile terminal as an initial parameter, thereby providing a basis for drawing the screen to be verified and ensuring the normal progress of subsequent verification code verification.
[0086] Further, the step of calculating the target duration range based on the initial parameters includes:
[0087] Step f: Obtain the maximum and minimum values of the target position in the progress bar in the initial parameters, calculate the first time value between the maximum value and the forward speed value in the initial parameters, calculate the second time value between the minimum value and the forward speed value, and take the time range between the second time value and the first time value as the target duration range.
[0088] When calculating the forward speed value and target position in the CAPTCHA system, it is necessary to first determine the maximum and minimum values of the target position in the progress bar, then divide the maximum value by the forward speed value to obtain the first time value, and divide the minimum value by the forward speed value to obtain the second time value. The time range between the second time value and the first time value is taken as the target duration range.
[0089] In this embodiment, by determining the maximum and minimum values of the target position in the progress bar in the verification code system, and calculating the first time value and the second time value based on the forward speed value, the time range between the second time value and the first time value is taken as the target duration range, thereby ensuring the accuracy of the obtained target duration range.
[0090] The present invention also provides a verification code request processing device, referring to Figure 4 The verification code request processing device includes:
[0091] The receiving module is used to send a verification code request to the verification code system and receive the initial parameters fed back by the verification code system based on the verification code request.
[0092] The output module is used to draw the image to be verified according to the preset drawing algorithm and the initial parameters, and to output the image to be verified.
[0093] The sending module is used to receive the verification information corresponding to the screen to be verified, and determine whether the verification information meets the preset verification requirements. If it does, the verification duration in the verification information is sent to the verification code system, wherein the verification code system verifies the verification duration.
[0094] Optionally, the output module is further configured to:
[0095] The forward speed value and target position are extracted from the initial parameters, and the image to be verified is drawn according to the preset drawing algorithm, the target position and the forward speed value.
[0096] Optionally, the present invention also provides a verification code request processing device, the verification code request processing device comprising:
[0097] The acquisition module is used to receive a verification code request sent by a mobile terminal, acquire the initial parameters corresponding to the verification code request, and feed back the initial parameters to the mobile terminal.
[0098] The calculation module is used to receive the verification duration sent by the mobile terminal based on the initial parameters, calculate the target duration range according to the initial parameters, and detect whether the verification duration is within the target duration range;
[0099] The determination module is used to determine if the verification duration verification is successful if the condition is met.
[0100] Optionally, the initial parameters include a forward speed value, and the acquisition module is further configured to:
[0101] The preset time range and progress bar are obtained according to the verification code request, and the speed range value corresponding to the progress bar is calculated according to the time range and the length value of the progress bar.
[0102] The target speed value is determined within the speed range according to a preset filtering method, and the target speed value is used as the forward speed value.
[0103] Optionally, the initial parameters include the target location, and the acquisition module is further configured to:
[0104] The progress bar is obtained according to the verification code request, and a preset position area in the progress bar is obtained;
[0105] Determine the proportion of the preset position area in the progress bar, and take the position corresponding to the proportion in the progress bar as the target position.
[0106] Optionally, the computing module is further configured to:
[0107] Obtain the maximum and minimum values of the target position in the progress bar from the initial parameters, calculate the first time value between the maximum value and the forward speed value in the initial parameters, calculate the second time value between the minimum value and the forward speed value, and take the time range between the second time value and the first time value as the target duration range.
[0108] The methods executed by the above-mentioned program modules can be referred to in the various embodiments of the verification code request processing method of the present invention, and will not be repeated here.
[0109] The present invention also provides a computer storage medium.
[0110] The present invention provides a computer storage medium storing a verification code request processing program, which, when executed by a processor, implements the steps of the verification code request processing method described above.
[0111] The method implemented when the verification code request processing program running on the processor is executed can be referred to in various embodiments of the verification code request processing method of the present invention, and will not be repeated here.
[0112] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0113] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0114] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0115] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A method for processing verification code requests, characterized in that, The verification code request processing method comprises the following steps: sending a verification code request to a verification code system and receiving initial parameters fed back by the verification code system based on the verification code request; drawing a to-be-verified picture according to a preset drawing algorithm and the initial parameters and outputting the to-be-verified picture; receiving verification information corresponding to the to-be-verified picture; detecting whether a moving speed of a progress bar in the verification information is the same as an advancing speed value in the initial parameters or whether the progress bar has moved from a starting point to a target position; the advancing speed value is a speed value of movement of a verification code in the progress bar; if the moving speed of the progress bar is not the same as the advancing speed value in the initial parameters or the progress bar has not moved to the target position, new verification information needs to be acquired again; if the moving speed of the progress bar is the same as the advancing speed value in the initial parameters or the progress bar has moved from the starting point to the target position, a verification duration in the verification information is sent to the verification code system, wherein the verification code system checks the verification duration; the verification duration is a duration from a time when a user clicks a button to a time when the user releases the button or a time difference between two times of clicking from a time when the user clicks a button for the first time to a time when the user clicks the button for the second time.
2. The authentication code request processing method of claim 1, wherein The step of drawing the to-be-verified picture according to the preset drawing algorithm and the initial parameters comprises: extracting the advancing speed value and the target position in the initial parameters and drawing the to-be-verified picture according to the preset drawing algorithm, the target position and the advancing speed value.
3. The authentication code request processing method of claim 1, wherein The verification code request processing method further comprises the following steps: receiving a verification code request sent by a mobile terminal and acquiring initial parameters corresponding to the verification code request and feeding back the initial parameters to the mobile terminal; receiving a verification duration sent by the mobile terminal based on the initial parameters and calculating a target duration range according to the initial parameters and detecting whether the verification duration is within the target duration range; the verification duration is a duration from a time when a user clicks a button to a time when the user releases the button or a time difference between two times of clicking from a time when the user clicks a button for the first time to a time when the user clicks the button for the second time; if yes, it is determined that the verification duration is checked successfully.
4. The authentication code request processing method of claim 3, wherein the initial parameters comprise an advancing speed value, The step of acquiring the initial parameters corresponding to the verification code request comprises: acquiring a preset time range and a progress bar according to the verification code request and calculating a speed range value corresponding to the progress bar according to the time range and a length value of the progress bar; determining a target speed value in the speed range value according to a preset screening mode and taking the target speed value as the advancing speed value.
5. The authentication code request processing method of claim 3, wherein the initial parameters comprise a target position, The step of acquiring the initial parameters corresponding to the verification code request comprises: acquiring a progress bar according to the verification code request and acquiring a preset position region in the progress bar; determining a proportion of the preset position region in the progress bar and taking a position corresponding to the proportion in the progress bar as the target position.
6. The authentication code request processing method of claim 3, wherein, The step of calculating the target duration range according to the initial parameters comprises: Obtaining a maximum value and a minimum value of a target position in the initial parameters in a progress bar, calculating a first time value between the maximum value and a forward speed value in the initial parameters, calculating a second time value between the minimum value and the forward speed value, and taking a time range between the second time value and the first time value as a target time range.
7. An authentication code request processing apparatus characterized by comprising: The verification code request processing apparatus comprises: a receiving module configured to send a verification code request to a verification code system and receive initial parameters fed back by the verification code system based on the verification code request; an output module configured to draw a to-be-verified picture according to a preset drawing algorithm and the initial parameters and output the to-be-verified picture; a sending module configured to receive verification information corresponding to the to-be-verified picture, detect whether a moving speed of a progress bar in the verification information is the same as a forward speed value in the initial parameters or detect whether the progress bar in the verification information has moved from a starting point to a target position; the forward speed value is a speed value of movement of a verification code in the progress bar; if the moving speed of the progress bar is not the same as the forward speed value in the initial parameters or the progress bar has not moved to the target position, new verification information needs to be obtained again; if the moving speed of the progress bar is the same as the forward speed value in the initial parameters or the progress bar has moved from the starting point to the target position, a verification time length in the verification information is sent to the verification code system, wherein the verification code system checks the verification time length; the verification time length is a time length from a time when a user clicks a button to a time when the user releases the button or a time difference between two times of clicking from a time when the user clicks a button for the first time to a time when the user clicks the button for the second time.
8. The authentication code request processing apparatus of claim 7, wherein The verification code request processing apparatus further comprises: an obtaining module configured to receive a verification code request sent by a mobile terminal, obtain initial parameters corresponding to the verification code request, and feed back the initial parameters to the mobile terminal; a calculating module configured to receive a verification time length sent by the mobile terminal based on the initial parameters, calculate a target time range according to the initial parameters, and detect whether the verification time length is within the target time range; the verification time length is a time length from a time when a user clicks a button to a time when the user releases the button or a time difference between two times of clicking from a time when the user clicks a button for the first time to a time when the user clicks the button for the second time; a determining module configured to determine that the verification time length is checked successfully if yes.
9. An authentication code request processing apparatus characterized by comprising: The verification code request processing device comprises a memory, a processor, and a verification code request processing program stored on the memory and executable on the processor, and the verification code request processing program, when executed by the processor, implements the steps of the verification code request processing method in any one of claims 1 to 6.
10. A computer storage medium, characterized in that, The computer storage medium stores a verification code request processing program, and the verification code request processing program, when executed by a processor, implements the steps of the verification code request processing method in any one of claims 1 to 6.
Citation Information
Patent Citations
Security authentication method and device for mobile terminal
CN106100853A
Verification code data processing method and device
CN108243154A
Verification method and device
CN110415025A