Dynamic puzzle verification code generation method and system based on user behaviors
By obtaining and analyzing user drag behavior feature set information, dividing operation stage time set information, distinguishing humans from automated script operations, solving the problem of low security of traditional verification codes and achieving higher network information security.
Patent Information
- Application Number
- CN202410982681.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-11-15
AI Technical Summary
Traditional verification codes have low security, especially game verification codes are easily cracked by automated programs, resulting in threats to network information security.
A dynamic puzzle verification code generation method based on user behavior is adopted, and the user's drag behavior feature set information is obtained, and the user's identity is determined based on this information to distinguish human operations from automated script operations.
It improves the security of verification codes, accurately identify natural human operations and automated script operations, reduces the risk of automated cracking, and enhances network information security.
Smart Images

Figure CN118972106A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of network information security, and in particular to a method and system for generating a dynamic puzzle verification code based on user behavior. Background Art
[0002] In the field of network and information security, CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) is a security measure used to distinguish whether a user is a human or an automated program. Traditional CAPTCHAs usually exist in the form of character recognition or image recognition. With the continuous advancement of automated cracking technology, the security of these traditional CAPTCHAs has gradually decreased. In addition, complex CAPTCHAs will have a negative impact on user experience and increase the user's burden.
[0003] Currently, game verification codes have attracted attention due to their interactivity and fun. Jigsaw puzzle-style verification codes are one of them. However, automated programs can crack them by simulating the user's dragging behavior, which results in low security and needs further improvement. Summary of the invention
[0004] Based on this, the embodiment of the present application provides a method and system for generating a dynamic puzzle verification code based on user behavior to solve the problem of low security in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a method for generating a dynamic puzzle verification code based on user behavior, the method comprising:
[0006] In response to a click operation by the user, obtaining dragging behavior feature set information of the user to be identified, wherein the dragging behavior feature set information includes user operation duration information;
[0007] Dividing the user operation duration information to generate operation stage time set information, wherein the operation stage time set information includes operation initial stage time information, operation middle stage time information and operation late stage time information;
[0008] According to the operation phase time set information, the identity identification information of the user to be identified is determined, wherein the identity identification information is human identification information or script identification information.
[0009] Compared with the prior art, the beneficial effects are as follows: the dynamic puzzle verification code generation method based on user behavior provided in the embodiment of the present application, the terminal device can first respond to the user's click operation, effectively obtain the drag behavior feature set information of the user to be identified, and then divide and process the user's operation time information, and quickly generate the operation stage time set information, and finally accurately determine the identity information of the user to be identified based on the operation stage time set information, thereby effectively determining the identity information of the user to be identified, accurately identifying and distinguishing natural human operations from automated script operations, facilitating timely taking corresponding measures for automated scripts, effectively improving security, and to a certain extent solving the current low security problem.
[0010] In a second aspect, an embodiment of the present application provides a dynamic puzzle verification code generation system based on user behavior, the system comprising:
[0011] A dragging behavior feature set information acquisition module: used to obtain the dragging behavior feature set information of the user to be identified in response to the user's click operation, wherein the dragging behavior feature set information includes the user operation duration information;
[0012] An operation phase time set information generation module is used to divide and process the user operation duration information to generate operation phase time set information, wherein the operation phase time set information includes operation initial phase time information, operation mid-phase phase time information and operation late phase time information;
[0013] An identity information determination module is used to determine the identity information of the user to be identified according to the operation phase time set information, wherein the identity information is human identification information or script identification information.
[0014] In a third aspect, an embodiment of the present application provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method of the first aspect described above when executing the computer program.
[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect described above are implemented.
[0016] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0018] Figure 1 It is a flowchart of a method for generating a dynamic puzzle verification code provided by an embodiment of the present application;
[0019] Figure 2 It is a schematic diagram of the process before step S100 in the dynamic puzzle verification code generation method provided in one embodiment of the present application;
[0020] Figure 3 It is a flowchart of step S300 in the method for generating a dynamic puzzle verification code provided in one embodiment of the present application;
[0021] Figure 4 This is a first flow chart after step S300 in the dynamic puzzle verification code generation method provided in one embodiment of the present application;
[0022] Figure 5 It is a second flow diagram after step S300 in the dynamic puzzle verification code generation method provided in one embodiment of the present application;
[0023] Figure 6 It is a module block diagram of a dynamic puzzle verification code generation system provided by an embodiment of the present application;
[0024] Figure 7 It is a schematic diagram of a terminal device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0025] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0026] In the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0027] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0028] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.
[0029] See also Figure 1 , Figure 1 1 is a flow chart of a method for generating a dynamic jigsaw verification code based on user behavior provided by an embodiment of the present application. In the present embodiment, the execution subject of the method for generating a dynamic jigsaw verification code is a terminal device. It is understandable that the types of terminal devices include but are not limited to mobile phones, tablet computers, notebook computers, ultra-mobile personal computers (Ultra-Mobile Personal Computer, UMPC), netbooks, personal digital assistants (Personal Digital Assistant, PDA), etc., and the present embodiment of the application does not impose any restrictions on the specific types of terminal devices.
[0030] See also Figure 1 The dynamic puzzle verification code generation method provided in the embodiment of the present application includes but is not limited to the following steps:
[0031] In S100 , in response to a click operation by the user, a dragging behavior feature set information of the user to be identified is obtained.
[0032] Specifically, the terminal device can quickly obtain the dragging behavior feature set information of the user to be identified in response to the user's click operation, wherein the user's click operation is used to describe the operation of the user to be identified clicking the puzzle information to be combined; the user to be identified is used to describe the user to be identified as a human or an automated script; the dragging behavior feature set information is used to describe the various characteristic behaviors of the user to be identified dragging the puzzle information to be combined.
[0033] In some possible implementations, to generate a jigsaw puzzle-style verification code, see Figure 2 Before step S100, the method further includes but is not limited to the following steps:
[0034] In S101, verification image information is obtained based on a preset image database.
[0035] Specifically, the terminal device can obtain verification image information based on a preset image database, wherein the image database is used to store multiple background images, and the types of background images can be landscapes, animals, buildings, etc., thereby increasing diversity and fun; the verification image information is used to describe the basic object of the verification code in the form of a jigsaw puzzle.
[0036] Exemplarily, the terminal device may randomly extract a background image from the image database and determine the background image as verification image information, thereby ensuring that the background image obtained by the user to be identified is different each time, thereby increasing the difficulty of cracking the automated program.
[0037] In S102, the verification image information is segmented according to a preset irregular shape segmentation algorithm to generate a plurality of puzzle pieces to be combined.
[0038] Specifically, after the terminal device obtains the verification image information, the terminal device can perform segmentation processing on the verification image information according to a preset irregular shape segmentation algorithm, divide the selected background image into multiple irregular shaped puzzle pieces, and quickly generate multiple puzzle information to be combined, thereby ensuring that each segmentation scheme is different, wherein the puzzle information to be combined is used to describe the irregular shaped puzzle pieces; the irregular shape segmentation algorithm can be a watershed algorithm, a superpixel segmentation algorithm, a deep learning algorithm or a GrabCut algorithm.
[0039] In S103, a plurality of puzzle information to be combined is randomly sorted according to a preset shuffling algorithm to generate image information to be sorted.
[0040] Specifically, after the terminal device generates multiple puzzle pieces to be combined, the terminal device can randomly sort the multiple puzzle pieces to be combined according to a preset shuffling algorithm to generate image information to be sorted, thereby randomly disrupting the order of the irregularly shaped puzzle pieces, wherein the shuffling algorithm can be a Fisher-Yates shuffling algorithm; the image information to be sorted is used to describe the multiple puzzle pieces to be combined after random sorting; the user to be identified needs to drag the multiple puzzle pieces to be combined to the correct position to complete the combination of the multiple puzzle pieces to be combined into the verification image information.
[0041] In S200, the user operation duration information is divided and processed to generate operation stage time set information.
[0042] Specifically, after the terminal device obtains the dragging behavior feature set information, the terminal device can divide and process the user operation duration information to effectively generate operation stage time set information.
[0043] In some possible implementations, the dragging behavior feature set information includes user operation duration information, wherein the user operation duration information is used to describe the operation duration of the to-be-identified user dragging any one of the to-be-combined puzzle pieces to the correct position.
[0044] Without loss of generality, the operation stage time set information includes operation initial stage time information, operation mid-stage time information and operation late stage time information, wherein the operation initial stage time information is used to describe the initial stage corresponding to the operation duration for the user to be identified to drag any piece of puzzle information to be combined to the correct position; the operation mid-stage time information is used to describe the mid-stage corresponding to the operation duration for the user to be identified to drag any piece of puzzle information to be combined to the correct position; the operation late stage time information is used to describe the late stage corresponding to the operation duration for the user to be identified to drag any piece of puzzle information to be combined to the correct position.
[0045] In some possible implementations, in order to generate the operation phase time set information, step S200 includes but is not limited to the following steps:
[0046] In S210, the user operation duration information is divided into three equal parts to generate operation initial stage time information, operation middle stage time information and operation late stage time information.
[0047] Specifically, the terminal device can divide the user operation time information into three equal parts, divide the user operation time information into three time periods of equal duration, and generate operation initial stage time information, operation mid-stage time information and operation late stage time information, wherein the start time of the operation initial stage time information is the same as the start time of the user operation time information; the end time of the operation late stage time information is the same as the end time of the user operation time information; the duration of the operation initial stage time information is the same as the duration of the operation mid-stage time information; the duration of the operation mid-stage time information is the same as the duration of the operation late stage time information.
[0048] In S300, the identity information of the user to be identified is determined according to the operation phase time set information.
[0049] Specifically, after the terminal device generates the operation phase time set information, the terminal device can effectively determine the identity information of the user to be identified based on the operation phase time set information, wherein the identity information is used as the identity of the user to be identified to distinguish whether the user to be identified is a human or an automated script. In a possible implementation, the identity information is human identification information or script identification information, wherein the human identification information is used to identify the user to be identified as a human; and the script identification information is used to identify the user to be identified as an automated script.
[0050] In some possible implementations, in order to effectively determine the identity information of the user to be identified, accurately identify natural human operations and automated script operations, take corresponding measures for automated scripts in a timely manner, and improve security, please refer to Figure 3 Step S300 includes but is not limited to the following steps:
[0051] In S310, it is determined whether the duration of the time information of the middle stage of the operation is shorter than the duration of the time information of the initial stage of the operation.
[0052] Specifically, when humans drag an image, the accuracy and speed will be affected by individual reaction time, hand-eye coordination ability and the equipment used. Therefore, human operations will have irregularities and appropriate delays. Therefore, the terminal device can first determine whether the duration of the time information in the mid-stage of the operation is less than the duration of the time information in the initial stage of the operation.
[0053] In S320, if the duration of the mid-operation stage time information is shorter than the duration of the initial operation stage time information, it is determined whether the duration of the mid-operation stage time information is shorter than the duration of the later operation stage time information.
[0054] Specifically, if the duration of the mid-operation stage time information is shorter than the duration of the early-operation stage time information, the terminal device may continue to determine whether the duration of the mid-operation stage time information is shorter than the duration of the late-operation stage time information.
[0055] In S330 , if the duration of the mid-operation stage time information is less than the duration of the late-operation stage time information, the identity identification information of the user to be identified is determined to be human identification information, otherwise the identity identification information of the user to be identified is determined to be script identification information.
[0056] Specifically, if the duration of the mid-stage time information of the operation is less than the duration of the late-stage time information of the operation, the terminal device can determine that the identity information of the user to be identified is human identification information; if the duration of the mid-stage time information of the operation is greater than or equal to the duration of the late-stage time information of the operation, the terminal device can determine that the identity information of the user to be identified is script identification information.
[0057] In a possible implementation, the terminal device can also classify the dragging behavior feature set information through a trained machine learning model, such as a random forest model or a support vector machine model.
[0058] In some possible implementations, the dragging behavior feature set information also includes user dragging trajectory information; if the identity information of the user to be identified is determined to be human identification information; in order to further improve security and more accurately distinguish between humans and automated scripts, please refer to Figure 4 After step S300, the method further includes but is not limited to the following steps:
[0059] In S400 , based on preset track excerpt length information, the user dragging track information is divided and processed to generate a plurality of dragging sub-track information.
[0060] Specifically, the terminal device can divide and process the user's dragging trajectory information based on the preset trajectory excerpt length information, divide the user's dragging trajectory information into multiple trajectory segments, and generate multiple drag sub-trajectory information, wherein the trajectory excerpt length information is used to describe the preset interception length, and the specific length of the trajectory excerpt length information can be customized in advance; the length of each drag sub-trajectory information is the trajectory excerpt length information.
[0061] In S410, for each piece of dragging sub-trajectory information: the sub-trajectory curvature information of the dragging sub-trajectory information is determined according to a preset curvature calculation formula.
[0062] Specifically, after the terminal device generates multiple drag sub-trajectory information, the terminal device can perform this processing for each drag sub-trajectory information: determine the sub-trajectory curvature information of the drag sub-trajectory information according to a preset curvature calculation formula, wherein the curvature calculation formula is used to calculate the maximum curvature of the drag sub-trajectory information; the curvature calculation formula is an existing technology, so it will not be repeated; the sub-trajectory curvature information is used to describe the maximum curvature of the drag sub-trajectory information.
[0063] In S420 , based on the curvature information of the plurality of sub-trajectories, the number of inflection points of the user dragging trajectory information is determined.
[0064] Specifically, after the terminal device determines the sub-trajectory curvature information, the terminal device can quickly determine the number of inflection points of the user's dragging trajectory information based on multiple sub-trajectory curvature information, wherein the number of inflection points information is used to describe the total number of target curvature information; the target curvature information is used to describe the sub-trajectory curvature information that is greater than a preset curvature threshold information; the curvature threshold information can be customized in advance.
[0065] In S430 , the trajectory smoothness information of the user dragging trajectory information is determined according to the inflection point quantity information.
[0066] Specifically, after the terminal device determines the inflection point quantity information, the terminal device can determine the inflection point quantity information as the trajectory smoothness information of the user's dragging trajectory information based on the inflection point quantity information, thereby characterizing the smoothness corresponding to the dragging trajectory of the user to be identified through the trajectory smoothness information.
[0067] In S440 , the trajectory smoothness information is compared with preset smoothness threshold information.
[0068] Specifically, the terminal device may compare the trajectory smoothness information with preset smoothness threshold information, wherein the smoothness threshold information may be customized in advance.
[0069] In S450 , if the trajectory smoothness information is less than the smoothness threshold information, the identity identification information is corrected to script identification information.
[0070] Specifically, due to human physiological characteristics and reaction time, the dragging trajectory may contain some subtle irregular changes, such as tiny tremors or path deviations. Therefore, if the trajectory smoothness information is less than the smoothness threshold information, the terminal device can correct the identity identification information to script identification information.
[0071] In some possible implementations, the dragging behavior feature set information also includes dragging interval information, which is used to describe the time interval between two adjacent user click operations; if the identity information of the user to be identified is determined to be human identification information, in order to further accurately distinguish between humans and automated scripts, please refer to Figure 5 After step S300, the method further includes but is not limited to the following steps:
[0072] In S460 , it is determined whether the drag interval information of any two adjacent drags is the same.
[0073] Specifically, the terminal device can determine whether the drag interval information of any two adjacent times is the same.
[0074] In S470 , if the drag interval information of any two adjacent drags is the same, the identity identification information is corrected to the script identification information.
[0075] Specifically, if the drag interval information between any two adjacent drags is the same, the terminal device can correct the identity identification information to script identification information, thereby achieving a further accurate distinction between humans and automated scripts.
[0076] The implementation principle of the dynamic puzzle verification code generation method based on user behavior in the embodiment of the present application is: the terminal device can first respond to the user's click operation, obtain the dragging behavior feature set information of the user to be identified, and then divide and process the user's operation time information, and quickly generate the operation stage time set information. Finally, according to the operation stage time set information, the identity information of the user to be identified is accurately determined, thereby effectively determining the identity information of the user to be identified, accurately identifying natural human operations and automated script operations, facilitating timely taking corresponding measures for the automated script, and greatly improving security.
[0077] It should be noted that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0078] The embodiment of the present application also provides a dynamic puzzle verification code generation system. For ease of description, only the parts related to the present application are shown, such as Figure 6 As shown, the system 60 includes:
[0079] The dragging behavior feature set information acquisition module 61 is used to obtain the dragging behavior feature set information of the user to be identified in response to the user's click operation, wherein the dragging behavior feature set information includes the user operation duration information;
[0080] The operation phase time set information generating module 62 is used to divide and process the user operation duration information to generate the operation phase time set information, wherein the operation phase time set information includes the operation initial phase time information, the operation middle phase time information and the operation late phase time information;
[0081] The identity information determination module 63 is used to determine the identity information of the user to be identified according to the operation stage time set information, wherein the identity information is human identification information or script identification information.
[0082] Optionally, the operation phase time set information generating module 62 includes:
[0083] Operation stage time information generation submodule: used to divide the user operation duration information into three equal parts, and generate operation initial stage time information, operation mid-stage time information and operation late stage time information, wherein the start time of the operation initial stage time information is the same as the start time of the user operation duration information, the end time of the operation late stage time information is the same as the end time of the user operation duration information, the duration of the operation initial stage time information is the same as the duration of the operation mid-stage time information, and the duration of the operation mid-stage time information is the same as the duration of the operation late stage time information.
[0084] Optionally, the identity information determination module 63 includes:
[0085] The first duration judgment submodule is used to judge whether the duration of the time information of the mid-stage operation is less than the duration of the time information of the initial stage operation;
[0086] The second duration judgment submodule is used to judge whether the duration of the mid-stage operation time information is less than the duration of the late-stage operation time information if the duration of the mid-stage operation time information is less than the duration of the early-stage operation time information;
[0087] Human identification information determination submodule: used to determine that the identity identification information of the user to be identified is human identification information if the duration of the mid-stage operation time information is less than the duration of the late-stage operation time information, otherwise determine that the identity identification information of the user to be identified is script identification information.
[0088] Optionally, the dragging behavior feature set information further includes user dragging trajectory information; if it is determined that the identity information of the user to be identified is human identification information, the system 60 further includes:
[0089] The dragging sub-trajectory information generating module is used to divide the user's dragging trajectory information based on the preset trajectory excerpt length information to generate multiple dragging sub-trajectory information;
[0090] Sub-track curvature information determination module: for each dragging sub-track information: determining the sub-track curvature information of the dragging sub-track information according to a preset curvature calculation formula;
[0091] Inflection point quantity information determination module: used to determine the inflection point quantity information of the user dragging trajectory information based on multiple sub-trajectory curvature information, wherein the inflection point quantity information is used to describe the total quantity of target curvature information, and the target curvature information is used to describe the sub-trajectory curvature information greater than a preset curvature threshold information;
[0092] A trajectory smoothness information determination module: used to determine the trajectory smoothness information of the user's dragging trajectory information according to the number of inflection points;
[0093] Trajectory smoothness information comparison module: used to compare trajectory smoothness information with preset smoothness threshold information;
[0094] The first identity identification information correction module is used to correct the identity identification information into script identification information if the trajectory smoothness information is less than the smoothness threshold information.
[0095] Optionally, the dragging behavior feature set information further includes dragging interval information, and the dragging interval information is used to describe the time interval between two adjacent user click operations; if it is determined that the identity information of the user to be identified is human identification information, the system 60 further includes:
[0096] Drag interval information judgment module: used to judge whether the drag interval information of any two adjacent drags is the same;
[0097] The second identity identification information correction module is used to correct the identity identification information into script identification information if the drag interval information of any two adjacent dragging times is the same.
[0098] Optionally, the system 60 further includes:
[0099] Verification image information acquisition module: used to obtain verification image information based on a preset image database;
[0100] The module for generating puzzle information to be combined is used to segment the verification image information according to a preset irregular shape segmentation algorithm to generate a plurality of puzzle information to be combined;
[0101] The module for generating image information to be sorted is used to randomly sort multiple puzzle information to be combined according to a preset shuffling algorithm to generate image information to be sorted.
[0102] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0103] The present application also provides a terminal device, such as Figure 7 As shown, the terminal device 70 of this embodiment includes: a processor 71, a memory 72, and a computer program 73 stored in the memory 72 and executable on the processor 71. When the processor 71 executes the computer program 73, the steps in the above-mentioned dynamic puzzle verification code generation method embodiment are implemented, for example Figure 1 Steps S100 to S300 shown; or, when the processor 71 executes the computer program 73, the functions of each module in the above device are realized, for example Figure 6 The functions of modules 61 to 63 are shown.
[0104] The terminal device 70 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server, and the terminal device 70 includes but is not limited to a processor 71 and a memory 72. Those skilled in the art will appreciate that Figure 7It is only an example of the terminal device 70 and does not constitute a limitation of the terminal device 70. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device 70 may also include input and output devices, network access devices, buses, etc.
[0105] Among them, the processor 71 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.; the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0106] The memory 72 may be an internal storage unit of the terminal device 70, such as a hard disk or memory of the terminal device 70, or the memory 72 may be an external storage device of the terminal device 70, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device 70; further, the memory 72 may also include both an internal storage unit and an external storage device of the terminal device 70, and the memory 72 may also store a computer program 73 and other programs and data required by the terminal device 70, and the memory 72 may also be used to temporarily store data that has been output or is to be output.
[0107] One embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps of each of the above method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc.; the computer-readable medium may include: any entity or device that can carry computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0108] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, all equivalent changes made according to the methods, principles, and structures of the present application should be included in the protection scope of the present application.
Claims
1. A method for generating a dynamic puzzle verification code based on user behavior, characterized in that: The method comprises: In response to a click operation by the user, obtaining dragging behavior feature set information of the user to be identified, wherein the dragging behavior feature set information includes user operation duration information; Dividing the user operation duration information to generate operation stage time set information, wherein the operation stage time set information includes operation initial stage time information, operation middle stage time information and operation late stage time information; According to the operation phase time set information, the identity identification information of the user to be identified is determined, wherein the identity identification information is human identification information or script identification information.
2. The method according to claim 1, characterized in that The dividing and processing of the user operation duration information to generate operation phase time set information includes: The user operation duration information is divided into three equal parts to generate operation initial stage time information, operation mid-stage time information and operation late stage time information, wherein the start time of the operation initial stage time information is the same as the start time of the user operation duration information, the end time of the operation late stage time information is the same as the end time of the user operation duration information, the duration of the operation initial stage time information is the same as the duration of the operation mid-stage time information, and the duration of the operation mid-stage time information is the same as the duration of the operation late stage time information.
3. The method according to claim 2, characterized in that The step of determining the identity information of the user to be identified according to the operation phase time set information includes: Determine whether the duration of the time information of the intermediate stage of the operation is shorter than the duration of the time information of the initial stage of the operation; If the duration of the time information of the middle stage of the operation is shorter than the duration of the time information of the initial stage of the operation, determining whether the duration of the time information of the middle stage of the operation is shorter than the duration of the time information of the later stage of the operation; If the duration of the mid-stage operation time information is less than the duration of the late-stage operation time information, the identity identification information of the user to be identified is determined to be the human identification information; otherwise, the identity identification information of the user to be identified is determined to be the script identification information.
4. The method according to claim 3, characterized in that The dragging behavior feature set information also includes user dragging trajectory information; if it is determined that the identity information of the user to be identified is the human identification information, then after determining the identity information of the user to be identified based on the operation stage time set information, the method further includes: Based on preset track excerpt length information, the user drag track information is divided and processed to generate a plurality of drag sub-track information; For each of the dragging sub-trajectory information: determining the sub-trajectory curvature information of the dragging sub-trajectory information according to a preset curvature calculation formula; Based on the plurality of sub-track curvature information, determining the number of inflection points of the user dragging track information, wherein the number of inflection points information is used to describe the total number of target curvature information, and the target curvature information is used to describe the sub-track curvature information greater than a preset curvature threshold information; Determining, according to the inflection point quantity information, trajectory smoothness information of the user dragging trajectory information; Comparing the trajectory smoothness information with preset smoothness threshold information; If the trajectory smoothness information is less than the smoothness threshold information, the identity identification information is corrected to the script identification information.
5. The method according to claim 3, characterized in that: The dragging behavior feature set information also includes dragging interval information, and the dragging interval information is used to describe the time interval between two adjacent user click operations; if it is determined that the identity information of the user to be identified is the human identification information, then after determining the identity information of the user to be identified according to the operation stage time set information, the method further includes: Determine whether the drag interval information of any two adjacent drags is the same; If the dragging interval information of any two adjacent times is the same, the identity identification information is corrected to the script identification information.
6. The method according to claim 1, characterized in that Before obtaining the dragging behavior feature set information of the user to be identified in response to the user's click operation, the method further includes: Based on a preset image database, obtain verification image information; According to a preset irregular shape segmentation algorithm, the verification image information is segmented to generate a plurality of puzzle pieces of information to be combined; According to a preset shuffling algorithm, the plurality of puzzle pieces to be combined are randomly sorted to generate image information to be sorted.
7. A dynamic puzzle verification code generation system based on user behavior, characterized in that: The system comprises: A dragging behavior feature set information acquisition module: used to obtain the dragging behavior feature set information of the user to be identified in response to the user's click operation, wherein the dragging behavior feature set information includes the user operation duration information; An operation phase time set information generation module is used to divide and process the user operation duration information to generate operation phase time set information, wherein the operation phase time set information includes operation initial phase time information, operation mid-phase phase time information and operation late phase time information; An identity information determination module is used to determine the identity information of the user to be identified according to the operation phase time set information, wherein the identity information is human identification information or script identification information.
8. The system according to claim 7, characterized in that The system further comprises: Verification image information acquisition module: used to obtain verification image information based on a preset image database; A module for generating puzzle information to be combined: used for segmenting the verification image information according to a preset irregular shape segmentation algorithm to generate a plurality of puzzle information to be combined; The module for generating image information to be sorted is used to randomly sort the plurality of puzzle pieces to be combined according to a preset shuffling algorithm to generate image information to be sorted.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
