Multi-level man-machine identification verification code generation method for interactive game and mathematical problem verification
The multi-level human-computer recognition verification code generation method verified through interactive games and mathematical questions solves the problem of poor user experience caused by existing verification code technology, improves user experience and system security, and prevents machine learning and automated attacks.
Patent Information
- Application Number
- CN202410856503.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-29
AI Technical Summary
Existing verification code technology results in poor user experience, increases operational difficulty and may lead to user loss, affecting user retention and satisfaction with receipts.
A multi-level human-computer recognition verification code generation method using interactive games and mathematical problem verification is used to randomly obtain icon and color image information based on the material database, generate the first verification code information, and respond to the correct click operation for hiding processing, combined with the mathematical problem database Generate second verification code information to enhance the fun and security of the verification code.
It effectively improves the user experience, enhances the fun and security of verification codes, reduces the risk of prediction and cracking of machine learning and automated attacks, and improves the security and protection effects of the system.
Smart Images

Figure CN118862041A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of security verification, and in particular to a method for generating multi-level human-machine identification verification codes for interactive games and math problem verification. Background Art
[0002] With the rapid development of the Internet, network security issues have become increasingly prominent. In particular, malicious attacks and automated operations on network services (such as web crawlers, brute force cracking, automatic registration, etc.) have brought severe challenges. In order to prevent these malicious behaviors, verification code technology has been widely used in various network services.
[0003] Currently, users often feel frustrated when faced with complex or difficult-to-recognize verification codes, which not only increases the difficulty of operation, but may also lead to user loss, thereby affecting the user retention rate and satisfaction of the receipt. There is a problem of poor user experience, which needs further improvement. Summary of the invention
[0004] Based on this, the embodiment of the present application provides a multi-level human-machine recognition verification code generation method for interactive games and math problem verification to solve the problem of poor user experience in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a multi-level human-machine identification verification code generation method for interactive game and math problem verification, the method comprising:
[0006] Based on a preset material database, randomly acquiring a specified number of icon image information and color image information, wherein the number of the icon image information is equal to the number of the color image information;
[0007] Generate first verification code information according to the icon image information, the color image information and the preset grid template information;
[0008] Sending the first verification code information to the user terminal;
[0009] In response to a plurality of correct click operation information, hiding a target sub-grid corresponding to each of the correct click operation information, wherein the target sub-grid is the icon image information or the color image information;
[0010] Generate second verification code information based on a preset math problem database, wherein the math problem database includes digital information to be spliced and symbol information to be spliced;
[0011] Send the second verification code information to the user terminal.
[0012] Compared with the prior art, the beneficial effects are: the multi-level human-machine recognition verification code generation method for interactive game and math problem verification provided by the embodiment of the present application, the terminal device can first randomly obtain a specified number of icon image information and color image information based on the material database, and then effectively generate the first verification code information according to the icon image information, color image information and grid template information, and then send the first verification code information to the user end, and then respond to multiple correct click operation information, timely hide the target sub-grid corresponding to each correct click operation information, and then generate the second verification code information based on the math problem database, and finally send the second verification code information to the user end, thereby effectively enhancing the fun of the verification code to improve the user experience, and to a certain extent solving the current problem of poor user experience.
[0013] In a second aspect, the embodiment of the present application provides a multi-level human-machine identification verification code generation system for interactive game and math problem verification, the system comprising:
[0014] Icon image information acquisition module: used to randomly acquire a specified number of icon image information and color image information based on a preset material database, wherein the number of the icon image information is equal to the number of the color image information;
[0015] A first verification code information generating module: used to generate first verification code information according to the icon image information, the color image information and the preset grid template information;
[0016] A first verification code information sending module: used for sending the first verification code information to the user terminal;
[0017] A target subgrid hiding module: configured to hide the target subgrid corresponding to each correct click operation information in response to a plurality of correct click operation information, wherein the target subgrid is the icon image information or the color image information;
[0018] A second verification code information generating module: used to generate a second verification code information based on a preset math problem database, wherein the math problem database includes digital information to be spliced and symbol information to be spliced;
[0019] The second verification code information sending module is used to send the second verification code information to the user terminal.
[0020] 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.
[0021] 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.
[0022] 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
[0023] 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.
[0024] Figure 1 It is a flowchart of a method for generating a multi-level human-machine identification verification code provided by an embodiment of the present application;
[0025] Figure 2 This is a flow chart before step S100 in the multi-level human-machine identification verification code generation method provided in one embodiment of the present application;
[0026] Figure 3 It is a flowchart of step S100 in the multi-level human-machine identification verification code generation method provided in an embodiment of the present application;
[0027] Figure 4 is a schematic diagram of first verification code information provided by an embodiment of the present application;
[0028] Figure 5 It is a flowchart before step S400 in the multi-level human-machine identification verification code generation method provided in an embodiment of the present application;
[0029] Figure 6 It is a flowchart of step S500 in the multi-level human-machine identification verification code generation method provided in an embodiment of the present application;
[0030] Figure 7 It is a flowchart after step S600 in the multi-level human-machine identification verification code generation method provided in an embodiment of the present application;
[0031] Figure 8 It is a module block diagram of a multi-level human-machine identification verification code generation system provided by an embodiment of the present application;
[0032] Fig. 9 It is a schematic diagram of a terminal device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0033] 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.
[0034] 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.
[0035] 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.
[0036] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.
[0037] See also Figure 1 , Figure 1 It is a flow chart of a multi-level human-machine identification verification code generation method for interactive games and math problem verification provided by the embodiment of the present application. In the present embodiment, the execution subject of the multi-level human-machine identification verification code generation method is a terminal device. It is understandable that the types of terminal devices include but are not limited to mobile phones, tablet computers, laptop computers, ultra-mobile personal computers (Ultra-Mobile Personal Computer, UMPC), netbooks, personal digital assistants (Personal Digital Assistant, PDA), etc., and the embodiment of the present application does not impose any restrictions on the specific types of terminal devices.
[0038] See also Figure 1 The multi-level human-machine identification verification code generation method provided in the embodiment of the present application includes but is not limited to the following steps:
[0039] In S100 , a designated number of icon image information and color image information are randomly acquired based on a preset material database.
[0040] Without loss of generality, the user may first access the website on the user end. In order to protect the website's network security and prevent malicious attacks or automated operations, the website may send a verification code to the user end to distinguish between human users and automated programs.
[0041] Specifically, after the terminal device receives the login request sent by the user, the terminal device can randomly obtain a specified number of icon image information from a preset material database based on a preset random extraction algorithm, and randomly obtain a specified number of color image information from the material database, thereby ensuring that the pattern and color displayed each time are different, preventing the verification code from being successfully predicted, wherein the number of icon image information is equal to the number of color image information, and the number of icon image information and the number of color image information can be any number; color image information is used to describe an image composed of a single color.
[0042] In some possible implementations, to improve security, see Figure 2 Before step S100, the method further includes but is not limited to the following steps:
[0043] In S101, the IP address information of the user terminal is obtained.
[0044] Specifically, the terminal device can obtain the IP address information of the user terminal, wherein the IP address information is used to describe the IP address corresponding to the user terminal.
[0045] In S102, based on the IP address information, the deadline request quantity information of the user terminal is obtained.
[0046] Specifically, after the terminal device obtains the IP address information, the terminal device can obtain the user's deadline request quantity information based on the IP address information, wherein the deadline request quantity information is used to describe the number of requests issued by the IP address corresponding to the user within a specified time period. The specified time period can be pre-customized. For example, the specified time period can be thirty seconds, one minute or five minutes.
[0047] In S103, the deadline request quantity information is compared with the preset request quantity threshold information.
[0048] Specifically, after the terminal device obtains the deadline request quantity information, the terminal device may compare the deadline request quantity information with preset request quantity threshold information, wherein the request quantity threshold information may be pre-customized.
[0049] In S104, if the deadline request quantity information is greater than or equal to the request quantity threshold information, it is determined that the identity information of the user terminal is malicious user information, otherwise it is determined that the identity information of the user terminal is normal user information.
[0050] Specifically, if the deadline request quantity information is greater than or equal to the request quantity threshold information, the terminal device can determine that the identity information of the user terminal is malicious user information, otherwise the terminal device can determine that the identity information of the user terminal is normal user information, where malicious user information is used to describe that the user terminal is likely to be an automated program, and normal user information is used to describe that the user terminal is likely to be a human user.
[0051] Accordingly, see Figure 3 The above step S100 includes but is not limited to the following steps:
[0052] In S110 , a designated number of icon image information is randomly acquired based on the icon image data sub-library.
[0053] Without loss of generality, the material database includes an icon image data sub-library, a similar color image sub-library and a completely different color image sub-library, wherein the icon image data sub-library is used to pre-store a plurality of different icon image information, and the icon image information is used to describe an image composed of icons.
[0054] Specifically, the similar color image sub-library is used to pre-store multiple similar color image information, the similar color image information is used to describe the color image information in the similar color image sub-library, and the color difference between different similar color image information is less than or equal to the preset color difference threshold information, and the color difference threshold information can be a preset value. Exemplarily, the terminal device can calculate the color difference between different similar color image information according to the color difference formula, and the color difference formula calculation can be:
[0055]
[0056] Where D is the color difference; R 2 is the red channel value corresponding to one of the similar color image information; R 1 is the red channel value corresponding to another similar color image information; G 2 is the green channel value corresponding to one of the similar color image information; G 1 is the green channel value corresponding to another similar color image information; B 2 is the blue channel value corresponding to one of the similar color image information; B 1 is the blue channel value corresponding to another similar color image information.
[0057] Without loss of generality, the very different color image sub-library is used to pre-store a plurality of very different color image information, the very different color image information is used to describe the color image information in the very different color image sub-library, and the color difference between different very different color image information is greater than the color difference threshold information.
[0058] Specifically, the terminal device may first use a random extraction algorithm to randomly extract a specified number of icon image information from the icon image data sub-library.
[0059] In S120, if it is determined that the identity information of the user terminal is normal user information, a specified number of different color image information is randomly acquired based on the different color image sub-library.
[0060] Specifically, if the terminal device determines that the identity information of the user terminal is normal user information, the terminal device can use a random extraction algorithm to randomly extract a specified number of different color image information from the different color image sub-library.
[0061] In S130 , if it is determined that the identity information of the user terminal is malicious user information, a specified number of similar color image information is randomly acquired based on the similar color image sub-library.
[0062] Specifically, if the terminal device determines that the identity information of the user terminal is malicious user information, the terminal device can use a random extraction algorithm to randomly extract a specified number of similar color image information from the similar color image sub-library.
[0063] In S200, first verification code information is generated according to the icon image information, the color image information and the preset grid template information.
[0064] Specifically, after the terminal device obtains the icon image information and the color image information, the terminal device can generate the first verification code information according to the icon image information, the color image information and the preset grid template information, wherein the grid template information is used to describe the preset grid template. For example, see Figure 4 , Figure 4 The rectangular boxes corresponding to "pure red", "pure blue" and "pure green" represent color image information. Specifically, the color image information of "pure red" can represent a pure red image. The meanings of other color image information are similar, so they are not repeated here. Figure 4 The rectangular boxes corresponding to "trees", "flowers", "soil", "grass" and "butterflies" represent icon image information. Specifically, the icon image information of "trees" can represent the icon image of trees. The meanings of other icon image information are the same, so they are not repeated here.
[0065] In S300, a first verification code information is sent to a user terminal.
[0066] Specifically, after the terminal device generates the first verification code information, the terminal device can send the first verification code information to the user terminal.
[0067] In S400, in response to a plurality of correct click operation information, a target sub-grid corresponding to each correct click operation information is hidden.
[0068] Specifically, after the terminal device sends the first verification code information to the user end, the terminal device can respond to multiple correct click operation information and hide the target sub-grid corresponding to each correct click operation information, wherein the correct click operation information is used to describe the correct click operation triggered by the user end, and the target sub-grid is used to describe the icon image information or color image information corresponding to the click operation.
[0069] In some possible implementations, in order to improve the user experience, please refer to Figure 5 Before step S400, the method further includes but is not limited to the following steps:
[0070] In S401, based on the first click operation information, a target sub-grid corresponding to the first click operation information is determined, and based on the second click operation information, a target sub-grid corresponding to the second click operation information is determined.
[0071] Specifically, the terminal device can determine the target sub-grid corresponding to the first click operation information based on the first click operation information, and then determine the target sub-grid corresponding to the second click operation information based on the second click operation information, wherein the click time of the second click operation information is later than the click time of the first click operation information.
[0072] In S402, it is determined whether the target sub-grid corresponding to the first click operation information is the same as the target sub-grid corresponding to the second click operation information.
[0073] Specifically, after the terminal device determines the target sub-grid corresponding to the first click operation information and the target sub-grid corresponding to the second click operation information, the terminal device can determine whether the target sub-grid corresponding to the first click operation information is the same as the target sub-grid corresponding to the second click operation information.
[0074] In S403, if the target sub-grid corresponding to the first click operation information is the same as the target sub-grid corresponding to the second click operation information, it is determined that the first click operation information and the second click operation information are correct click operation information.
[0075] Specifically, if the target sub-grid corresponding to the first click operation information is the same as the target sub-grid corresponding to the second click operation information, the terminal device can determine that the first click operation information and the second click operation information are correct click operation information. For example, see Figure 4 If the target sub-grid corresponding to the first click operation information is "pure red" in the first row and first column, and the target sub-grid corresponding to the second click operation information is "pure red" in the third row and third column, the terminal device can determine that the first click operation information and the second click operation information are correct click operation information.
[0076] It should be noted that if the target sub-grid corresponding to the first click operation information is different from the target sub-grid corresponding to the second click operation information, the terminal device does not hide the target sub-grid corresponding to the first click operation information and the target sub-grid corresponding to the second click operation information.
[0077] In S500, second verification code information is generated based on a preset math problem database.
[0078] Specifically, after the terminal device hides all target sub-grids, the terminal device can generate a second verification code information based on a preset math problem database, wherein the math problem database is used to pre-store multiple different digital information to be spliced and multiple different symbol information to be spliced, the digital information to be spliced is used to describe the numbers to be randomly drawn, and exemplarily, the digital information to be spliced can be "1", "2", "3", "4", "5", "6", "7", "8" or "9"; the symbol information to be spliced is used to describe the mathematical symbols to be randomly drawn, and exemplarily, the symbol information to be spliced can be "+", "-", "×" or "÷".
[0079] In some possible implementations, in order to better improve the user experience, please refer to Figure 6 Step S500 includes but is not limited to the following steps:
[0080] In S510, at least two pieces of digital information to be spliced and at least one piece of symbol information to be spliced are randomly selected based on a preset math problem database.
[0081] Specifically, the terminal device may use a random extraction algorithm to randomly extract at least two pieces of digital information to be spliced and at least one piece of symbol information to be spliced from a preset math problem database.
[0082] In S520, based on the preset math problem template information, second verification code information is generated according to the to-be-joined digital information and the to-be-joined symbol information.
[0083] Specifically, after the terminal device randomly extracts the digital information to be spliced and the symbol information to be spliced, the terminal device can fill the digital information to be spliced and the symbol information to be spliced into the math problem template information based on the preset math problem template information to generate a second verification code information, wherein the math problem template information is used to describe the preset template of the math problem, and the math problem template information includes multiple information location information, and the information location information is used to store the digital information to be spliced or the symbol information to be spliced.
[0084] Exemplarily, when the digital information to be spliced is "5" and "2", the symbol information to be spliced is "+", and the math problem template information is "(information position information)(information position information)(information position information)=(please answer)", the second verification code information can be "5+2=(please answer)".
[0085] In S600, a second verification code information is sent to the user terminal.
[0086] Specifically, after the terminal device generates the second verification code information, the terminal device can send the second verification code information to the user terminal.
[0087] In some possible implementations, for enhanced security and protection, see Figure 7 After step S600, the method further includes but is not limited to the following steps:
[0088] In S601, user answer information is received.
[0089] Specifically, after the terminal device sends the second verification code information to the user end, the terminal device can receive user answer information, wherein the user answer information is used to describe the answer data sent by the user end to the terminal device after receiving the second verification code information.
[0090] In S602, it is determined whether the user's answer information is a correct answer.
[0091] Specifically, after the terminal device generates the second verification code information, the terminal device can automatically calculate the correct answer to the second verification code information; the terminal device can determine whether the user answer information is the same as the correct answer.
[0092] In S603, if the user's answer information is a correct answer, a verification pass message is generated, otherwise an error prompt message is generated and the next user's answer information is waited for.
[0093] Specifically, if the user's answer information is the same as the correct answer, the terminal device can generate a verification pass message; if the user's answer information is not the same as the correct answer, the terminal device can generate an error prompt message, and then wait to receive the user's answer information sent again by the user end, wherein the verification pass information is used to describe that the user has passed the verification; the error prompt message is used to prompt the user that the answer given is not the correct answer.
[0094] The implementation principle of the multi-level human-machine recognition verification code generation method for interactive games and math problem verification in the embodiment of the present application is as follows: the terminal device can first randomly obtain a specified number of icon image information and color image information based on the material database, and then effectively generate a first verification code information based on the icon image information, color image information and grid template information, and then send the first verification code information to the user end, and then respond to multiple correct click operation information, timely hide the target sub-grid corresponding to each correct click operation information, and then generate a second verification code information based on the math problem database, and finally send the second verification code information to the user end, thereby effectively enhancing the fun of the verification code to improve the user experience, and ensuring the diversity and security of the verification process, increasing the unpredictability of the verification process, preventing machine learning and automated attacks from predicting and cracking questions, and improving the security and protection effect of the entire system, with high scalability.
[0095] 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.
[0096] The embodiment of the present application also provides a multi-level human-machine identification verification code generation system for interactive games and math problem verification. For ease of description, only the parts related to the present application are shown, such as Figure 8 As shown, the system 80 includes:
[0097] The icon image information acquisition module 81 is used to randomly acquire a specified number of icon image information and color image information based on a preset material database, wherein the number of icon image information is equal to the number of color image information;
[0098] The first verification code information generating module 82 is used to generate the first verification code information according to the icon image information, the color image information and the preset grid template information;
[0099] The first verification code information sending module 83 is used to send the first verification code information to the user terminal;
[0100] The target subgrid hiding module 84 is used to hide the target subgrid corresponding to each correct click operation information in response to multiple correct click operation information, wherein the target subgrid is icon image information or color image information;
[0101] The second verification code information generating module 85 is used to generate the second verification code information based on a preset math problem database, wherein the math problem database includes the digital information to be spliced and the symbol information to be spliced;
[0102] The second verification code information sending module 86 is used to send the second verification code information to the user terminal.
[0103] Optionally, the system 80 further includes:
[0104] A target subgrid determining module: used to determine a target subgrid corresponding to the first click operation information based on the first click operation information, and to determine a target subgrid corresponding to the second click operation information based on the second click operation information, wherein the click time of the second click operation information is later than the click time of the first click operation information;
[0105] A target sub-grid determining module: used to determine whether the target sub-grid corresponding to the first click operation information is the same as the target sub-grid corresponding to the second click operation information;
[0106] Correct click operation information determination module: used to determine that the first click operation information and the second click operation information are correct click operation information if the target sub-grid corresponding to the first click operation information is the same as the target sub-grid corresponding to the second click operation information.
[0107] Optionally, the second verification code information generating module 85 includes:
[0108] A submodule for randomly extracting digital information to be spliced: used for randomly extracting at least two digital information to be spliced and at least one symbol information to be spliced based on a preset math problem database;
[0109] The second verification code information generating submodule is used to generate the second verification code information based on the preset math problem template information, according to the digital information to be spliced and the symbol information to be spliced, wherein the math problem template information includes a plurality of information position information, and the information position information is used to store the digital information to be spliced or the symbol information to be spliced.
[0110] Optionally, the material database includes an icon image data sub-library, a similar color image sub-library, and a different color image sub-library; the system 80 further includes:
[0111] Address information acquisition module: used to obtain the IP address information of the user end;
[0112] Deadline request quantity information acquisition module: used to obtain the deadline request quantity information of the user end based on IP address information;
[0113] Deadline request quantity information comparison module: used to compare the deadline request quantity information with the preset request quantity threshold information;
[0114] Identity information determination module: used to determine that the identity information of the user terminal is malicious user information if the deadline request quantity information is greater than or equal to the request quantity threshold information, otherwise determine that the identity information of the user terminal is normal user information;
[0115] Accordingly, the icon image information acquisition module 81 includes:
[0116] Icon image information random acquisition submodule: used to randomly acquire a specified number of icon image information based on the icon image data sub-library;
[0117] A submodule for randomly acquiring different color image information: used for randomly acquiring a specified number of different color image information based on a different color image sub-library if it is determined that the identity information of the user terminal is normal user information, wherein the different color image sub-library pre-stores a plurality of different color image information, and the different color image information is used to describe the color image information in the different color image sub-library, and the color difference between different different color image information is greater than a preset color difference threshold information;
[0118] Similar color image information random acquisition submodule: used to randomly acquire a specified number of similar color image information based on a similar color image sub-library if it is determined that the identity information of the user terminal is malicious user information, wherein the similar color image sub-library pre-stores a plurality of similar color image information, and the similar color image information is used to describe the color image information in the similar color image sub-library, and the color difference between different similar color image information is less than or equal to the preset color difference threshold information.
[0119] Optionally, the system 80 further includes:
[0120] User answer information receiving module: used to receive user answer information;
[0121] User answer information judgment module: used to judge whether the user's answer information is correct;
[0122] Verification pass information generation module: used to generate verification pass information if the user's answer information is the correct answer, otherwise generate an error prompt message and wait for the next user's answer information.
[0123] 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.
[0124] The present application also provides a terminal device, such as Fig. 9 As shown, the terminal device 90 of this embodiment includes: a processor 91, a memory 92, and a computer program 93 stored in the memory 92 and executable on the processor 91. When the processor 91 executes the computer program 93, the steps in the above-mentioned multi-level human-machine identification verification code generation method embodiment are implemented, for example Figure 1Steps S100 to S300 shown; or, when the processor 91 executes the computer program 93, the functions of each module in the above device are realized, for example Figure 8 The functions of modules 81 to 86 are shown.
[0125] The terminal device 90 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server, and the terminal device 90 includes but is not limited to a processor 91 and a memory 92. Those skilled in the art will appreciate that Fig. 9 It is only an example of the terminal device 90 and does not constitute a limitation of the terminal device 90. 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 90 may also include input and output devices, network access devices, buses, etc.
[0126] Among them, the processor 91 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.
[0127] The memory 92 may be an internal storage unit of the terminal device 90, such as a hard disk or memory of the terminal device 90, or the memory 92 may be an external storage device of the terminal device 90, 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 90; further, the memory 92 may also include both an internal storage unit and an external storage device of the terminal device 90, and the memory 92 may also store a computer program 93 and other programs and data required by the terminal device 90, and the memory 92 may also be used to temporarily store data that has been output or is to be output.
[0128] 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.
[0129] 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 multi-level human-machine identification verification code generation method for interactive games and math problem verification, It is characterized in that The method comprises: Based on a preset material database, randomly acquiring a specified number of icon image information and color image information, wherein the number of the icon image information is equal to the number of the color image information; Generate first verification code information according to the icon image information, the color image information and the preset grid template information; Sending the first verification code information to the user terminal; In response to a plurality of correct click operation information, hiding a target sub-grid corresponding to each of the correct click operation information, wherein the target sub-grid is the icon image information or the color image information; Generate second verification code information based on a preset math problem database, wherein the math problem database includes digital information to be spliced and symbol information to be spliced; Send the second verification code information to the user terminal.
2. The method according to claim 1, It is characterized in that Before hiding the target sub-grids corresponding to the respective correct click operation information in response to the plurality of correct click operation information, the method further includes: Based on the first click operation information, determining the target sub-grid corresponding to the first click operation information, and based on the second click operation information, determining the target sub-grid corresponding to the second click operation information, wherein the click time of the second click operation information is later than the click time of the first click operation information; Determine whether the target sub-grid corresponding to the first click operation information is the same as the target sub-grid corresponding to the second click operation information; If the target sub-grid corresponding to the first click operation information is the same as the target sub-grid corresponding to the second click operation information, it is determined that the first click operation information and the second click operation information are correct click operation information.
3. The method according to claim 1, It is characterized in that The generating of the second verification code information based on the preset math problem database includes: Based on a preset math problem database, randomly extract at least two of the digital information to be spliced and at least one of the symbol information to be spliced; Based on preset math problem template information, second verification code information is generated according to the digital information to be spliced and the symbol information to be spliced, wherein the math problem template information includes multiple information location information, and the information location information is used to store the digital information to be spliced or the symbol information to be spliced.
4. The method according to claim 1, It is characterized in that The material database includes an icon image data sub-library, a similar color image sub-library, and a different color image sub-library; before randomly acquiring a specified number of icon image information and color image information based on the preset material database, the method further includes: Get the IP address information of the user end; Based on the IP address information, obtaining the number of deadline requests of the user terminal; Comparing the time limit request quantity information with the preset request quantity threshold information; If the deadline request quantity information is greater than or equal to the request quantity threshold information, then the identity information of the user terminal is determined to be malicious user information; otherwise, the identity information of the user terminal is determined to be normal user information; Accordingly, the randomly acquiring a specified amount of icon image information and color image information based on a preset material database includes: Based on the icon image data sub-library, randomly acquiring a specified number of icon image information; If it is determined that the identity information of the user terminal is normal user information, a specified number of very different color image information is randomly acquired based on the very different color image sub-library, wherein the very different color image sub-library pre-stores a plurality of very different color image information, the very different color image information is used to describe the color image information in the very different color image sub-library, and the color difference between different very different color image information is greater than a preset color difference threshold information; If it is determined that the identity information of the user terminal is malicious user information, a specified number of similar color image information is randomly obtained based on the similar color image sub-library, wherein the similar color image sub-library pre-stores a plurality of similar color image information, and the similar color image information is used to describe the color image information in the similar color image sub-library, and the color difference between different similar color image information is less than or equal to a preset color difference threshold information.
5. The method according to claim 1, It is characterized in that After sending the second verification code information to the user terminal, the method further includes: Receive user answer information; Determining whether the user's answer information is a correct answer; If the user answer information is the correct answer, a verification pass message is generated; otherwise, an error prompt message is generated and the next user answer information is waited for.
6. A multi-level human-machine identification verification code generation system for interactive games and math problem verification, It is characterized in that The system comprises: Icon image information acquisition module: used to randomly acquire a specified number of icon image information and color image information based on a preset material database, wherein the number of the icon image information is equal to the number of the color image information; A first verification code information generating module: used to generate first verification code information according to the icon image information, the color image information and the preset grid template information; A first verification code information sending module: used for sending the first verification code information to the user terminal; A target subgrid hiding module: configured to hide the target subgrid corresponding to each correct click operation information in response to a plurality of correct click operation information, wherein the target subgrid is the icon image information or the color image information; A second verification code information generating module: used to generate a second verification code information based on a preset math problem database, wherein the math problem database includes digital information to be spliced and symbol information to be spliced; The second verification code information sending module is used to send the second verification code information to the user terminal.
7. The system according to claim 6, It is characterized in that The system further comprises: User answer information receiving module: used to receive user answer information; User answer information judgment module: used to judge whether the user answer information is a correct answer; Verification pass information generation module: used to generate verification pass information if the user's answer information is the correct answer, otherwise generate error prompt information and wait for the next user's answer information.
8. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
9. A computer-readable storage medium storing a computer program. It is 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 5 are implemented.
