Verification code verification method, device and electronic device

Through the verification code verification method of multiple matching point pairs, it ensures that the connections connected by users do not intersect, solves the problem that existing verification codes are easy to crack, and significantly improves network security.

CN111753280BActive Publication Date: 2024-08-27MIGU CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010609804.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-29
Publication Date
2024-08-27
Estimated Expiration
2040-06-29

AI Technical Summary

Technical Problem

Existing verification codes have low complexity and are easily cracked by computers, leading to potential network security risks.

Method used

The verification code verification method using multiple matching point pairs requires the user to connect the lines within the matching point pairs and the lines within any matching point pair cannot intersect with the lines within other matching point pairs. By generating multiple disjoint lines Connecting lines and random matching point pairs improve the complexity of the verification code.

Benefits of technology

It effectively increases the complexity of the verification code, making it difficult to be recognized by machines and enhancing network security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111753280B
    Figure CN111753280B
Patent Text Reader

Abstract

The embodiments of the present invention provide a verification code verification method, device and electronic device, the method comprising: sending a verification code generation request to a server, and receiving verification code information generated by the server according to the verification code generation request; displaying multiple matching point pairs and verification prompt information according to the verification code information; the verification prompt information is used to prompt the user to connect all matching points in the multiple matching point pairs; obtaining the user's connection results for the matching points, and sending the connection results to the server, so that the server verifies the connection results. The verification code provided by the verification code verification method, device and electronic device provided by the embodiments of the present invention requires the user to realize the connection within the matching point pairs for multiple matching point pairs, and the connection within any matching point pair cannot intersect with the connection within other matching point pairs, which increases the complexity of verification, thereby better avoiding being recognized by the machine and improving network security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network security, and in particular to a verification code verification method, device and electronic equipment. Background Art

[0002] A verification code is a public fully automatic program used to distinguish whether a user is a computer or a human. It is widely used on the Internet to prevent malicious password cracking, ticket fraud, forum flooding, etc. implemented by computers.

[0003] Verification codes in the prior art have various forms, such as random combinations of numbers and letters, specific text or specific elements in pictures, randomly generated binary arithmetic operations, sliding verification codes, etc. These verification codes themselves have taken certain anti-computer recognition measures, such as distorting the pictures containing the information to be recognized, and randomly adding straight lines or dots on the background of the information to be recognized. These measures have a certain effect. However, with the advancement of computer technology, the defects of low complexity of verification codes in the prior art have been discovered and exploited, and more and more verification codes have been cracked, posing a hidden danger to network security. Summary of the invention

[0004] The embodiments of the present invention provide a verification code verification method, device and electronic device, which are used to solve the defects of the prior art that the verification code has low complexity and is easy to be cracked.

[0005] The first aspect of the present invention provides a verification code verification method, which is applied to a client and includes:

[0006] Sending a verification code generation request to a server, and receiving verification code information generated by the server according to the verification code generation request; wherein the verification code information includes a plurality of matching point pairs and verification prompt information; and connecting lines connecting all matching points in different matching point pairs do not intersect;

[0007] Displaying the plurality of matching point pairs and the verification prompt information according to the verification code information; the verification prompt information is used to prompt the user to connect all the matching points in the plurality of matching point pairs;

[0008] A connection result of the user to the matching point is obtained, and the connection result is sent to the server, so that the server verifies the connection result.

[0009] In the above technical solution, the verification code information also includes auxiliary verification information, and the auxiliary verification information is at least used to display the auxiliary area;

[0010] The obtaining of the connection result of the user to the matching point includes:

[0011] Obtaining the coordinates of the auxiliary area through which a connecting line connecting matching points in any of the matching point pairs passes;

[0012] According to the coordinates, the connection results of the user for the matching points in all the matching point pairs are obtained.

[0013] In the above technical solution, obtaining the connection results of the matching points in all the matching point pairs by the user according to the coordinates includes:

[0014] When a connecting line formed by a user to connect the matching points in any of the matching point pairs is a valid connecting line, and the auxiliary area through which the connecting line passes is not passed by other valid connecting lines, determining that the acquired coordinates are valid coordinates;

[0015] When the acquired coordinates are valid coordinates, obtaining connection results of the user for the matching points in all the matching point pairs according to the coordinates;

[0016] Among them, the valid connecting line is a connecting line that passes through all matching points in the same matching point pair and passes through all matching points in the same matching point pair only once; the other valid connecting lines are valid connecting lines connecting matching points in other matching point pairs except the current matching point pair.

[0017] A second aspect of the present invention provides a verification code verification method, which is applied to a server and includes:

[0018] Generate verification code information according to the received verification code generation request; wherein the verification code information includes a plurality of matching point pairs and verification prompt information; and connecting lines connecting all matching points in different matching point pairs do not intersect;

[0019] Sending the verification code information to a client, so that the client displays the multiple matching point pairs and the verification prompt information according to the verification code information; the verification prompt information is used to prompt the user to connect all the matching points in the multiple matching point pairs;

[0020] The connection result of the user to the matching point returned by the client is received, and the connection result is verified.

[0021] In the above technical solution, the generating verification code information includes: generating a plurality of matching point pairs; the generating a plurality of matching point pairs specifically includes:

[0022] Randomly generate multiple non-intersecting connecting lines in the preset graphic area;

[0023] A plurality of matching point pairs are generated according to the endpoints of the plurality of connecting lines.

[0024] In the above technical solution, the area ratio of the graphic area where the randomly generated connecting line is located to the preset graphic area is less than a preset threshold; any of the randomly generated connecting lines includes at least one line segment; when the same randomly generated connecting line includes multiple line segments, the multiple line segments are perpendicular to each other, or the multiple line segments are not perpendicular to each other.

[0025] In the above technical solution, the verifying the verification result includes:

[0026] When it is determined according to the connection result that the connecting lines connecting the matching points in each of the matching point pairs are all valid connecting lines, and the auxiliary area through which the connecting lines connecting the matching points in each of the matching point pairs pass is not passed by other valid connecting lines, it is determined that the verification is successful;

[0027] Among them, the valid connecting line is a connecting line that passes through all matching points in the same matching point pair and passes through all matching points in the same matching point pair only once; the other valid connecting lines are valid connecting lines connecting matching points in other matching point pairs except the current matching point pair.

[0028] The third aspect of the present invention provides a verification code verification device, which is applied to a client and includes:

[0029] A verification code information receiving module, used to send a verification code generation request to a server, and receive verification code information generated by the server according to the verification code generation request; wherein the verification code information includes a plurality of matching point pairs and verification prompt information; and connecting lines connecting all matching points in different matching point pairs do not intersect;

[0030] A display module, configured to display the plurality of matching point pairs and the verification prompt information according to the verification code information; the verification prompt information is configured to prompt the user to connect all the matching points in the plurality of matching point pairs;

[0031] The connection result sending module is used to obtain the connection result of the user to the matching point, and send the connection result to the server so that the server verifies the connection result.

[0032] A fourth aspect of the present invention provides a verification code verification device, which is applied to a server and includes:

[0033] A verification code information generation module is used to generate verification code information according to the received verification code generation request; wherein the verification code information includes a plurality of matching point pairs and verification prompt information; and the connecting lines connecting all matching points in different matching point pairs do not intersect;

[0034] A verification code information sending module, used to send the verification code information to a client, so that the client displays the multiple matching point pairs and the verification prompt information according to the verification code information; the verification prompt information is used to prompt the user to connect all the matching points in the multiple matching point pairs;

[0035] The verification module is used to receive the connection result of the user to the matching point returned by the client, and verify the connection result.

[0036] The fifth aspect of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the verification code verification method as described in the first aspect of the present invention are implemented, or the steps of the verification code verification method as described in the second aspect of the present invention are implemented.

[0037] The sixth aspect embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the steps of the verification code verification method as described in the first aspect embodiment of the present invention, or implements the steps of the verification code verification method as described in the second aspect embodiment of the present invention.

[0038] The verification code verification method, device and electronic device provided by the embodiments of the present invention require the user to realize the connection within the matching point pairs for multiple matching point pairs, and the connection within any matching point pair cannot intersect with the connection within other matching point pairs, thereby increasing the complexity of verification, thereby better avoiding machine recognition and improving network security. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0040] Figure 1 A flowchart of a verification code verification method applied to a client provided by an embodiment of the present invention;

[0041] Figure 2 A flowchart of a verification code verification method applied to a server provided by an embodiment of the present invention;

[0042] Figure 3 A schematic diagram of generating a plurality of non-intersecting connection lines in a background image in a verification code verification method applied to a server provided by an embodiment of the present invention;

[0043] Figure 4 A schematic diagram of selecting matching point pairs on a plurality of non-intersecting connection lines in a verification code verification method applied to a server provided in an embodiment of the present invention;

[0044] Figure 5 A schematic diagram of a client in a verification code verification system provided by an embodiment of the present invention;

[0045] Figure 6 A schematic diagram of a server in a verification code verification system provided by an embodiment of the present invention;

[0046] Figure 7 An example physical structure diagram of an electronic device is provided. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] Figure 1 A flowchart of a verification code verification method provided by an embodiment of the present invention, such as Figure 1 As shown, the verification code verification method provided by the embodiment of the present invention is applied to the client and specifically includes the following steps:

[0049] Step 101, sending a verification code generation request to a server, and receiving verification code information generated by the server according to the verification code generation request; wherein the verification code information includes multiple matching point pairs and verification prompt information; and connecting lines connecting all matching points in different matching point pairs do not intersect.

[0050] In an embodiment of the present invention, the operation of sending a verification code generation request can be triggered in a variety of ways. For example, after the user clicks the "Get Verification Code" button on the verification interface, a verification code generation request is sent to the server. For another example, after the client captures other verification information (such as user name, password) other than the verification code entered by the user on the verification interface, a verification code generation request is sent to the server. In an embodiment of the present invention, the latter method can be used, which helps to reduce the waiting time of the user.

[0051] The verification code information includes a plurality of matching point pairs and verification prompt information.

[0052] A matching point pair represents two paired matching points. The matching points in the same matching point pair have the same characteristics, such as things with the same attributes (such as the same shape, the same color, the same name of an object) or the same character mark (such as the same letter, the same Chinese character, etc.). The matching points in different matching point pairs have different characteristics. For example, two matching points belonging to different matching point pairs are yellow and blue. The information of the matching point pair includes the coordinate information of each matching point in the matching point pair, as well as the characteristic information of the matching points in the matching point pair.

[0053] It should be noted that not any two points can form a matching point pair. The matching point pair needs to meet certain conditions, that is, the connecting lines connecting all matching points in different matching point pairs do not intersect. For example, there are matching point pair A and matching point pair B. Matching point pair A includes point A1 and point A2, and matching point pair B includes point B1 and point B2. The connecting line A1A2 between point A1 and point A2 cannot intersect with the connecting line B1B2 between point B1 and point B2.

[0054] The verification prompt information is used to describe the way in which the user completes the verification, for example, prompting the user to connect all the matching points in the plurality of matching point pairs, and the connection line in any matching point pair cannot intersect with the connection lines in other matching point pairs.

[0055] Step 102: Display the multiple matching point pairs and the verification prompt information according to the verification code information.

[0056] In the previous steps, the verification code information has been described. In this step, after receiving the verification code information sent by the server, the multiple matching point pairs and the verification prompt information are displayed according to the verification code information.

[0057] When displaying multiple matching point pairs, the position of the to-be-matched point in the to-be-displayed area is determined based on the coordinate information of the matching points contained in the matching point pairs. The information of the matching point pairs also includes the characteristic information of the matching points. When displaying the matching point pairs, the characteristics of each matching point need to be displayed. For example, if the characteristic of a matching point is blue, then when displaying the matching point, the matching point needs to be displayed in blue. For another example, if the characteristic of a matching point is the letter A, then when displaying the matching point, the letter A needs to be displayed near the matching point.

[0058] When the verification prompt information is displayed, corresponding text content may be displayed around the displayed multiple matching point pairs according to the verification prompt information.

[0059] Step 103: Obtain the connection result of the user to the matching point, and send the connection result to the server, so that the server verifies the connection result.

[0060] According to the verification prompt information, the user needs to connect the matching points in the matching point pair by sliding during verification, and the connecting line in any matching point pair cannot intersect with the connecting line in other matching point pairs.

[0061] The sliding operation completed by the user during verification is called a sliding event. A sliding event includes a pressing action, multiple moving actions, and a lifting action.

[0062] When the user connects the matching points through the client, the client records the connection results through the corresponding data structure, which include: the coordinates and characteristics of the matching points, and the coordinates and characteristics of the points through which the connection line passes. The connection results recorded by the client are sent to the server, which verifies whether the connection results meet the verification conditions, thereby obtaining the result of whether the verification operation is successful.

[0063] The verification code provided by the verification code verification method provided by the embodiment of the present invention requires the user to realize the connection within the matching point pairs for multiple matching point pairs, and the connection within any matching point pair cannot intersect with the connection within other matching point pairs, thereby increasing the complexity of verification, thereby better avoiding being recognized by machines and improving network security.

[0064] Based on any of the above embodiments, in an embodiment of the present invention, the verification code information further includes auxiliary verification information, and the auxiliary verification information is at least used to display the auxiliary area;

[0065] The obtaining of the connection result of the user to the matching point includes:

[0066] Obtaining the coordinates of the auxiliary area through which a connecting line connecting matching points in any of the matching point pairs passes;

[0067] According to the coordinates, the connection results of the user for the matching points in all the matching point pairs are obtained.

[0068] The client can be various types of electronic devices, such as personal computers, smart mobile terminals, etc. When users complete verification operations on certain electronic devices, they may encounter problems such as small screens and low sensitivity of click devices (such as mice), which affect the user's ability to complete the verification operation.

[0069] In an embodiment of the present invention, in order to improve the success rate of verification, the verification code information also includes auxiliary verification information, and the auxiliary verification information is at least used to display an auxiliary area. The auxiliary area can be a graphic area such as a dot or a rectangle. In an embodiment of the present invention, the auxiliary area is a grid formed by a rectangle.

[0070] Based on the auxiliary verification information of the auxiliary area, in the step of obtaining the user's connection results for the matching points, the coordinates of the auxiliary area through which the user's connecting line connecting the matching points in any of the matching point pairs passes can be first obtained, and then the user's connection results for the matching points in all of the matching point pairs can be obtained based on the coordinates of the auxiliary area.

[0071] Since the area of ​​the auxiliary area is larger than the matching points or other points through which the lines between the matching points pass, the requirements for the client device are reduced. Even if the screen of the electronic device is small and the sensitivity of the clicking device is not high, the user can still perform the verification operation smoothly, thereby increasing the possibility of successful verification.

[0072] The verification code verification method provided by the embodiment of the present invention reduces the equipment requirements for the client and increases the possibility of successful verification by setting an auxiliary area.

[0073] Based on any of the above embodiments, in an embodiment of the present invention, obtaining the connection results of the matching points in all the matching point pairs by the user according to the coordinates includes:

[0074] When a connecting line formed by a user to connect the matching points in any of the matching point pairs is a valid connecting line, and the auxiliary area through which the connecting line passes is not passed by other valid connecting lines, determining that the acquired coordinates are valid coordinates;

[0075] When the acquired coordinates are valid coordinates, obtaining connection results of the user for the matching points in all the matching point pairs according to the coordinates;

[0076] Among them, the valid connecting line is a connecting line that passes through all matching points in the same matching point pair and passes through all matching points in the same matching point pair only once; the other valid connecting lines are valid connecting lines connecting matching points in other matching point pairs except the current matching point pair.

[0077] In the embodiment of the present invention, the process of generating the connection result is further described in conjunction with the relevant data structure.

[0078] Before user verification, it is necessary to create a corresponding data structure for each matching point pair in advance, such as a bidirectional linked list, to record the relevant data of the matching point pairs during the connection process. For example, if a verification code includes 4 matching point pairs, it is necessary to create 4 bidirectional linked lists, which respectively record the relevant data of the 4 matching point pairs during the connection process. As mentioned in the previous article, each matching point pair has its own characteristics, and the characteristics of different matching point pairs are not the same, so a bidirectional linked list can also be regarded as corresponding to the characteristics of a matching point pair.

[0079] According to the verification prompt information, the user must first click on a matching point in a matching point pair during verification. This matching point pair is also referred to as the current matching point pair. In an embodiment of the present invention, the user's operation of clicking on a matching point is actually clicking on an auxiliary area (such as a grid) where the matching point is located. The characteristics of the auxiliary area where the matching point is located are the characteristics of the matching point, so the user can obtain the characteristics of the auxiliary area, such as blue, by clicking on the auxiliary area where the matching point is located. This characteristic information is stored in the bidirectional linked list of the corresponding matching point pair. It should be noted that if the characteristics of the auxiliary area where the matching point is located are stored in the corresponding bidirectional linked list, and the bidirectional linked list is not empty, the bidirectional linked list is cleared first and then stored.

[0080] In actual operation, there may be cases of misclicks. For example, if the user fails to accurately click the auxiliary area where the matching point is located, the auxiliary area characteristics obtained by the click will be empty, and the user's subsequent movement events will not be recorded, that is, the user's dragging this time is invalid.

[0081] After the user clicks a matching point, the user needs to move the focus to realize the connection line within the matching point pair. As the focus moves, it is determined whether the characteristics of the auxiliary area passed by the focus are empty.

[0082] When the feature of the auxiliary area through which the focus passes is empty, the feature is assigned to the auxiliary area through which the focus passes, such as the feature of blue, and the coordinates of the auxiliary area to which the feature has been assigned are uniformly recorded in the bidirectional linked list corresponding to the matching point in the point. It should be noted that when the user moves the focus, the focus should be moved horizontally or vertically, that is, the auxiliary area through which the focus passes in the next step must be parallel or perpendicular to the auxiliary area where the focus was in the previous step (in specific implementation, since the change of the focus coordinates is very sensitive, it is difficult to ensure that the focus can be moved in the horizontal or vertical direction by manual operation. Therefore, the focus is generally mapped to the auxiliary area, and the coordinates of the auxiliary area mapped by the focus are changed according to the moving direction of the focus. By ensuring that only one axis (x-axis or y-axis) of the auxiliary area coordinates changes each time the focus moves, it is ensured that the focus is only moved in the horizontal or vertical direction). If the user moves the focus diagonally, such a moving operation will not be accepted, the auxiliary area through which the focus passes will not be assigned features, and the coordinates of the auxiliary area through which the diagonal movement passes will not be recorded in the corresponding bidirectional linked list.

[0083] When the characteristics of the auxiliary area through which the focus passes are not empty, determine whether the previous characteristics of the auxiliary area are the same as the characteristics to be assigned. When the two are different, it proves that the auxiliary area has been previously passed by the lines in other matching point pairs. It is necessary to clear the bidirectional linked list corresponding to the previous characteristics of the auxiliary area, and then assign new characteristics to the auxiliary area, and add the coordinates of the auxiliary area to the bidirectional linked list corresponding to the matching point in the point. For example, when the line starting from the blue matching point passes through the auxiliary area A, it is found that the auxiliary area A already has a characteristic and the characteristic is red. This means that the line starting from the red matching point has passed through the auxiliary area A before, and the line starting from the blue matching point and the line starting from the red matching point have an intersection. According to the verification requirements, the two lines cannot intersect, so it is necessary to clear the bidirectional linked list corresponding to the red characteristic (that is, the bidirectional linked list corresponding to the red matching point), assign a new characteristic blue to the auxiliary area A, and add the coordinates of the auxiliary area A to the bidirectional linked list corresponding to the blue characteristic.

[0084] When the characteristics of the auxiliary area passed by the focus are not empty, and the characteristics of the auxiliary area are the same as the characteristics to be assigned, and the coordinates of the auxiliary area have been previously stored in the corresponding bidirectional linked list, then the nodes after the first node in the corresponding bidirectional linked list are cleared, where the first node is the node that has previously stored the coordinates of the auxiliary area passed by the focus.

[0085] The data structure of a doubly linked list has a front-end and a back-end. When constructing a node in a doubly linked list, the data structure of the node is: forward pointer + data body + back-end pointer. The nodes after the first node are the nodes obtained by traversing from the first node in sequence according to the back-end pointer.

[0086] According to the relevant knowledge in the computer field, the auxiliary region coordinates stored in the doubly linked list adopt the concept of set, that is, the auxiliary region coordinates stored in the doubly linked list must be different auxiliary region coordinates. If the same auxiliary region coordinates are repeatedly stored in the doubly linked list, all auxiliary region coordinates between two identical auxiliary region coordinates are invalid. For example, if you start from a matching point a and return to matching point a (rather than another matching point b paired with matching point a) during the random movement process, in this case, although the characteristics of the auxiliary region passed by the focus (i.e., the auxiliary region where matching point a is located) are not empty, and the characteristics of the auxiliary region before are the same as the characteristics to be assigned, the auxiliary region coordinates recorded in the doubly linked list between the two matching points a are invalid.

[0087] When the characteristics of the auxiliary area passed by the focus are not empty, and the previous characteristics of the auxiliary area are the same as the characteristics to be assigned, and the coordinates of the auxiliary area have not been stored in the corresponding bidirectional linked list before, it proves that the characteristics of the auxiliary area existed before, and the auxiliary area is the auxiliary area where the other matching point in the matching point pair is located. Therefore, the connection line within the matching point pair is completed, and the connection line is a valid connection line. The user's subsequent movement operations within the same sliding event will no longer assign characteristics to the auxiliary area passed through, and will no longer add the coordinates of the auxiliary area passed through by the subsequent movement operation in the corresponding bidirectional linked list.

[0088] A special case is that when the user completes the lifting action of the sliding event while moving the focus, the auxiliary area corresponding to the focus is not the auxiliary area where the matching point is located, which means that the complete connection action is not completed. Here, the corresponding bidirectional linked list needs to be cleared.

[0089] With reference to the above description, the lines within all the matching point pairs in the image to be verified can be connected.

[0090] When the user completes the verification operation, the bidirectional linked lists corresponding to all the matching point pairs are the obtained verification results. The bidirectional linked lists include the coordinates of the auxiliary areas through which the line between the two matching points in the matching point pair passes.

[0091] After the verification result is transmitted to the server, the server completes the verification. How the server completes the verification will be further described in other embodiments of the present invention.

[0092] The verification code provided by the verification code verification method provided by the embodiment of the present invention requires the user to realize the connection within the matching point pairs for multiple matching point pairs, and the connection within any matching point pair cannot intersect with the connection within other matching point pairs, thereby increasing the complexity of verification, thereby better avoiding being recognized by machines and improving network security.

[0093] Based on any of the above embodiments, in an embodiment of the present invention, sending the verification result to a server includes:

[0094] The verification result is encapsulated and encrypted, and the encapsulated and encrypted verification result is sent to the server.

[0095] The encapsulation and encryption of the verification result can adopt the existing data encryption methods in the prior art, such as MD5 algorithm, SHA1 algorithm, AES algorithm, etc.

[0096] The verification code verification method provided by the embodiment of the present invention further ensures network security by encrypting the verification result.

[0097] Based on any of the above embodiments, Figure 2A flowchart of a verification code verification method provided by an embodiment of the present invention, such as Figure 2 As shown, the verification code verification method provided by the embodiment of the present invention is applied to a server and specifically includes the following steps:

[0098] Step 201: Generate verification code information and verification code verification information according to the received verification code generation request.

[0099] The verification code information includes multiple matching point pairs and verification prompt information; the connecting lines connecting all matching points in different matching point pairs do not intersect.

[0100] A matching point pair represents two paired matching points. The matching points in the same matching point pair have the same characteristics, such as the same color or the same character mark, and the matching points in different matching point pairs have different characteristics, such as different colors or different character marks. The information of the matching point pair includes the coordinate information of each matching point in the matching point pair and the characteristic information of the matching points in the matching point pair.

[0101] In the embodiment of the present invention, the matching point pairs are randomly generated, but the randomly generated matching point pairs need to satisfy the non-intersection property, that is, the connecting lines in any matching point pair cannot intersect with the connecting lines in other matching point pairs.

[0102] Step 202: Send the verification code information to the client, so that the client displays the multiple matching point pairs and the verification prompt information according to the verification code information; the verification prompt information is used to prompt the user to connect all the matching points in the multiple matching point pairs.

[0103] Step 203: Receive the connection result of the user to the matching point returned by the client, and verify the connection result.

[0104] The verification code verification method provided by the embodiment of the present invention can generate verification code information including multiple matching point pairs, and the lines within these matching point pairs cannot intersect with the lines within other matching point pairs, thereby increasing the complexity of verification, thereby better preventing the verification code from being recognized by a machine and improving network security.

[0105] Based on any of the above embodiments, in an embodiment of the present invention, generating verification code information includes: generating multiple matching point pairs; generating multiple matching point pairs specifically includes:

[0106] Randomly generate multiple non-intersecting connecting lines in the preset graphic area;

[0107] A plurality of matching point pairs are generated according to the endpoints of the plurality of connecting lines.

[0108] Among them, the area ratio of the graphic area where the randomly generated connecting line is located to the preset graphic area is less than a preset threshold; any of the randomly generated connecting lines includes at least one line segment; when the same randomly generated connecting line includes multiple line segments, the multiple line segments are perpendicular to each other, or the multiple line segments are not perpendicular to each other.

[0109] The specific generation process of multiple matching point pairs is further explained below.

[0110] The process of randomly generating a plurality of non-intersecting connecting lines in a preset graphic area is similar to the process of generating a connecting line, so firstly, the generation of a connecting line is taken as an example to describe its generation process.

[0111] First, an auxiliary area is randomly selected in the preset graphic area as the starting point of the connecting line, and then a step value is randomly generated, wherein the step value reflects the number of auxiliary areas that the connecting line passes through.

[0112] Then, the next moving direction is preliminarily determined in a random manner.

[0113] In the embodiment of the present invention, the moving direction of the next step is preliminarily determined by a random number.

[0114] For example, a long sequence S is obtained, and the long sequence S can be randomly generated. In one embodiment, the long sequence S can be generated according to the unique identification code of the client, the timestamp when the verification code is requested, and the hash code of the object for which the server provides verification code services to the client. As shown in the following formula (1):

[0115] S=[UUID+TimeStamp+HashCode]%[8] (1)

[0116] Among them, UUID is the unique identification code of the client, TimeStamp is the timestamp when the verification code is requested, and HashCode is the hash code of the object of the verification code service provided by the server to the client. When these data are added, each bit is calculated modulo 8, for example:

[0117] 1+5=6; 4+3=7; 5+4=1; 4+4=0; 8+9=1.

[0118] After each bit is calculated modulo 8, the value range of each bit in the long sequence S is between 0 and 7.

[0119] After obtaining the long sequence S, M digits are randomly intercepted from the long sequence S according to the randomly generated step value (the step value is assumed to be M). For example, if the long sequence S is an 11-digit number and the step value is 8, then 8 digits can be randomly intercepted from the 11-digit number. The intercepted 8 digits can be the first 8 digits of the 11-digit number, the last 8 digits of the 11-digit number, the middle 8 digits of the 11-digit number, or even the discontinuous 8 digits of the 11-digit number.

[0120] For any digit N in the M numbers, we can divide it by remainder 4 to get the remainder. If the remainder value is 0, the next moving direction is set to move upwards; if the remainder value is 1, the next moving direction is set to move downwards; if the remainder value is 2, the next moving direction is set to move left; if the remainder value is 3, the next moving direction is set to move right. From the description here, we can see that when generating a long sequence S, we calculate modulo 8 so that the probabilities of the four directions of up, down, left, and right are the same.

[0121] Since the number M corresponds to the step value M, the next moving direction can be preliminarily determined based on the number M obtained from the long sequence S.

[0122] Next, based on the initially determined next moving direction and combined with external conditions, the final moving direction of the next step is determined.

[0123] When the auxiliary area of ​​the initially determined next moving direction does not meet the conditions for continued movement, the direction needs to be readjusted.

[0124] There may be many situations in which the conditions for continuing to move are not met, for example, the auxiliary area for the next moving direction preliminarily determined has been occupied by other connecting lines, or the auxiliary area for the next moving direction preliminarily determined does not exist (that is, the current auxiliary area belongs to the edge auxiliary area of ​​the preset graphic area, and the auxiliary area for the next moving direction is outside the edge auxiliary area), or the next moving direction is opposite to the previous moving direction (equivalent to a reverse operation), or other situations that affect continued movement that are not described here.

[0125] For example, in one example, when moving downward from auxiliary area A to auxiliary area B, auxiliary area B initially determines that it needs to move to the left to auxiliary area C based on a random number method when determining the next moving direction. However, it is found that auxiliary area C is already occupied by another connecting line, so the moving direction needs to be adjusted, either to move right to auxiliary area D, or to move downward to auxiliary area E, or to move upward to auxiliary area A. However, since the moving direction of the previous step is from top to bottom, it cannot move upward to auxiliary area A. Finally, the next moving direction of auxiliary area B is either to move right to auxiliary area D, or to move downward to auxiliary area E. The specific moving direction can be determined in the order of up, down, left, and right, or it can be randomly selected from possible moving directions.

[0126] In actual applications, there is also the possibility that the line cannot be moved in any of the four directions, up, down, left, or right. In this case, the random generation process of the current connection line is exited, even if the preset step value has not been reached. As long as the number of random moves of the current connection line exceeds 1 (not including 1), the current connection line is retained, otherwise, the current connection line is discarded.

[0127] Finally, move in the final moving direction determined in the previous step until the step value is reached, and then exit the random generation process of the current connecting line.

[0128] Referring to the generation process of a connecting line described above, multiple connecting lines can be generated. It should be noted that the more connecting lines are generated in the background image, the more difficult it will be to generate the subsequent connecting lines due to the restriction that the connecting lines cannot intersect. Therefore, in order to leave space for the generation of the subsequent connecting lines, on the one hand, when generating the previous connecting lines, a range of step values ​​can be set for the step values, such as generating step values ​​within the integer range of 6-15. On the other hand, after each generation of a connecting line, the proportion of the auxiliary area currently occupied by the connecting line in the preset graphic area to the total auxiliary area in the preset graphic area is judged. If the proportion is greater than a preset threshold, the generation process of the connecting line is stopped. For example, the auxiliary area in the preset graphic area has 6 rows and 10 columns, that is, there are a total of 60 auxiliary areas, and the number of auxiliary areas currently occupied by connecting lines (including all connecting lines that have been generated before) is 20, then the proportion value is 20 / 60=33.3%. If the preset threshold is 30%, then the proportion value has exceeded the preset threshold, and the subsequent connection line generation process is stopped.

[0129] Figure 3 This is a schematic diagram of generating multiple non-intersecting connection lines in a background image, where connection line 1, connection line 2 and connection line 3 in the figure are randomly generated non-intersecting connection lines.

[0130] Select matching point pairs from the generated multiple non-intersecting connecting lines.

[0131] In the previous step, multiple non-intersecting connecting lines have been generated. Two points are selected on a connecting line, and these two points form a matching point pair. Similarly, multiple matching point pairs can be selected from multiple non-intersecting connecting lines. Since the connecting lines themselves are non-intersecting, this ensures that the connecting lines between the matching point pairs generated based on the connecting lines will not intersect with the connecting lines in other matching point pairs.

[0132] It should be noted that when selecting matching points from a connecting line, it is not required to select the two end points of the connecting line as matching points, and the middle point of the connecting line can be selected as the matching point. Figure 4 A schematic diagram of selecting matching point pairs on multiple non-intersecting connection lines in a verification code verification method provided by an embodiment of the present invention, such as Figure 4 As shown, the endpoints of connection line 2 are selected as matching points. For connection line 1, one endpoint and one middle point are selected as matching points. For connection line 3, one endpoint and one middle point are also selected as matching points.

[0133] Due to the randomness of selecting matching points from connecting lines, multiple operations of selecting matching point pairs can be realized based on multiple non-intersecting connecting lines generated at one time, and the matching point pairs selected each time are different from each other. This helps to save computing resources and shorten the verification code generation time.

[0134] The verification code verification method provided by the embodiment of the present invention can generate verification code information including multiple matching point pairs, and the lines within these matching point pairs cannot intersect with the lines within other matching point pairs, thereby increasing the complexity of verification, thereby better preventing the verification code from being recognized by a machine and improving network security.

[0135] Based on any of the foregoing embodiments, in an embodiment of the present invention, verifying the verification result includes:

[0136] When it is determined according to the connection result that the connecting lines connecting the matching points in each of the matching point pairs are all valid connecting lines, and the auxiliary area through which the connecting lines connecting the matching points in each of the matching point pairs pass is not passed by other valid connecting lines, it is determined that the verification is successful;

[0137] Among them, the valid connecting line is a connecting line that passes through all matching points in the same matching point pair and passes through all matching points in the same matching point pair only once; the other valid connecting lines are valid connecting lines connecting matching points in other matching point pairs except the current matching point pair.

[0138] As mentioned in the previous embodiment of the present invention, after the user completes the verification operation, the bidirectional linked lists corresponding to all matching point pairs are the obtained verification results. The bidirectional linked lists include the coordinates of the auxiliary areas through which the line between the two matching points in the matching point pair passes.

[0139] Whether the verification is successful can be determined based on the content stored in the bidirectional linked list.

[0140] When verifying the verification results, one verification method is that if all the bidirectional linked lists meet the following conditions, the user verification is successful:

[0141] The head and the tail of the bidirectional linked list correspond to the coordinates of the auxiliary areas where the two matching points in the matching point pair are located, and the bidirectional linked list is not empty.

[0142] This is because if the line in the first matching point pair intersects with the line in the second matching point pair during verification, the corresponding bidirectional linked list (it can be the bidirectional linked list corresponding to the first matching point pair or the bidirectional linked list corresponding to the second matching point pair, depending on which bidirectional linked list is generated first) will be cleared; if the user does not complete the line between the two matching points in the matching point pair during verification, the head and tail of the bidirectional linked list will not correspond to the coordinates of the auxiliary area where the two matching points in the matching point pair are located. The occurrence of the above two situations will lead to verification failure, so once the above two situations are ensured not to occur, it proves that the user verification is successful.

[0143] When verifying the verification results, another verification method is: if and only if the first node and the last node in all the doubly linked lists are consistent with the matching points in the corresponding matching point pair, and when reproducing the path according to the coordinates recorded in all the doubly linked lists, any auxiliary area is visited at most once, then the verification is successful. If the first node and the last node in any doubly linked list are inconsistent with the matching points in the corresponding matching point pair, or there is an auxiliary area stored in a doubly linked list that has been visited more than once (or has been assigned more than one characteristic), the verification fails and exits directly without judging the contents of other doubly linked lists.

[0144] After the server generates a verification code message, it will store information of multiple matching point pairs in the verification code message, such as coordinate information, feature information, etc. During verification, the auxiliary area coordinates stored in the first node and the last node in the bidirectional linked list will be compared with the auxiliary area coordinates of the matching points in the corresponding matching point pair. If they are consistent, verification will continue. As long as any of the first or last nodes in any of the bidirectional linked lists are inconsistent, the verification will fail.

[0145] When continuing verification, the path is reproduced according to the coordinates of the auxiliary areas stored in all the doubly linked lists. Verification can only be successful if the auxiliary areas stored in the doubly linked lists are accessed at most once. If any auxiliary area stored in any doubly linked list is accessed more than once, verification fails.

[0146] The verification code verification method provided by the embodiment of the present invention can generate verification code information including multiple matching point pairs, and the lines within these matching point pairs cannot intersect with the lines within other matching point pairs, thereby increasing the complexity of verification, thereby better preventing the verification code from being recognized by a machine and improving network security.

[0147] Based on any of the above embodiments, an embodiment of the present invention further provides a verification code verification system, including: a client and a server; the client and the server are communicatively connected.

[0148] Figure 5 A schematic diagram of a client in a verification code verification system provided by an embodiment of the present invention, such as Figure 5 As shown, the client in the verification code verification system provided by the embodiment of the present invention includes:

[0149] The verification code information receiving module 501 is used to send a verification code generation request to a server, and receive verification code information generated by the server according to the verification code generation request; wherein the verification code information includes a plurality of matching point pairs and verification prompt information; and the connecting lines connecting all matching points in different matching point pairs do not intersect;

[0150] A display module 502 is used to display the multiple matching point pairs and the verification prompt information according to the verification code information; the verification prompt information is used to prompt the user to connect all the matching points in the multiple matching point pairs;

[0151] The connection result sending module 503 is used to obtain the connection result of the user to the matching point, and send the connection result to the server, so that the server verifies the connection result.

[0152] The client in the verification code verification system provided by the embodiment of the present invention requires the user to realize the connection within the matching point pairs for multiple matching point pairs, and the connection within any matching point pair cannot intersect with the connection within other matching point pairs, thereby increasing the complexity of verification, thereby better preventing the verification code from being recognized by the machine and improving network security.

[0153] Figure 6 A schematic diagram of a server in a verification code verification system provided by an embodiment of the present invention, such as Figure 6 As shown, the server in the verification code verification system provided by the embodiment of the present invention includes:

[0154] The verification code information generating module 601 is used to generate verification code information according to the received verification code generating request; wherein the verification code information includes a plurality of matching point pairs and verification prompt information; the connecting lines connecting all matching points in different matching point pairs do not intersect;

[0155] The verification code information sending module 602 is used to send the verification code information to the client, so that the client displays the multiple matching point pairs and the verification prompt information according to the verification code information; the verification prompt information is used to prompt the user to connect all the matching points in the multiple matching point pairs;

[0156] The verification module 603 is used to receive the connection result of the user to the matching point returned by the client, and verify the connection result.

[0157] The server in the verification code verification system provided by the embodiment of the present invention can generate verification code information including multiple matching point pairs, and the lines within these matching point pairs cannot intersect with the lines within other matching point pairs, thereby increasing the complexity of verification, thereby better preventing the verification code from being recognized by the machine and improving network security.

[0158] Figure 7 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 7As shown, the electronic device may include: a processor 710, a communication interface 720, a memory 730 and a communication bus 740, wherein the processor 710, the communication interface 720 and the memory 730 communicate with each other through the communication bus 740. The processor 710 may call the logic instructions in the memory 730 to execute the following method: send a verification code generation request to a server, and receive verification code information generated by the server according to the verification code generation request; wherein the verification code information includes a plurality of matching point pairs and verification prompt information; the connecting lines connecting all matching points in different matching point pairs do not intersect; the plurality of matching point pairs and the verification prompt information are displayed according to the verification code information; the verification prompt information is used to prompt the user to connect all matching points in the plurality of matching point pairs; obtain the connection result of the user to the matching point, and send the connection result to the server so that the server verifies the connection result. Or execute the following method: generate verification code information according to the received verification code generation request; wherein the verification code information includes multiple matching point pairs and verification prompt information; the connecting lines connecting all matching points in different matching point pairs do not intersect; send the verification code information to the client, so that the client displays the multiple matching point pairs and the verification prompt information according to the verification code information; the verification prompt information is used to prompt the user to connect all matching points in the multiple matching point pairs; receive the user's connection result of the matching point returned by the client, and verify the connection result.

[0159] It should be noted that the electronic device in this embodiment can be a server, a PC, or other devices in specific implementation, as long as its structure includes the following: Figure 7 The processor 710, communication interface 720, memory 730 and communication bus 740 shown in the figure, wherein the processor 710, communication interface 720, memory 730 communicate with each other through the communication bus 740, and the processor 710 can call the logic instructions in the memory 730 to execute the above method. This embodiment does not limit the specific implementation form of the electronic device.

[0160] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0161] Furthermore, an embodiment of the present invention discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments, for example, including: sending a verification code generation request to a server, and receiving verification code information generated by the server according to the verification code generation request; wherein the verification code information includes multiple matching point pairs and verification prompt information; the connecting lines connecting all matching points in different matching point pairs do not intersect; the multiple matching point pairs and the verification prompt information are displayed according to the verification code information; the verification prompt information is used to prompt the user to connect all matching points in the multiple matching point pairs; obtain the user's connection results for the matching points, and send the connection results to the server, so that the server verifies the connection results. Or for example, it includes: generating verification code information according to the received verification code generation request; wherein the verification code information includes multiple matching point pairs and verification prompt information; the connecting lines connecting all matching points in different matching point pairs do not intersect; sending the verification code information to the client, so that the client displays the multiple matching point pairs and the verification prompt information according to the verification code information; the verification prompt information is used to prompt the user to connect all the matching points in the multiple matching point pairs; receiving the user's connection result of the matching point returned by the client, and verifying the connection result.

[0162] On the other hand, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the methods provided in the above embodiments, for example, including: sending a verification code generation request to a server, and receiving verification code information generated by the server according to the verification code generation request; wherein the verification code information includes multiple matching point pairs and verification prompt information; the connecting lines connecting all matching points in different matching point pairs do not intersect; the multiple matching point pairs and the verification prompt information are displayed according to the verification code information; the verification prompt information is used to prompt the user to connect all matching points in the multiple matching point pairs; obtaining the user's connection results for the matching points, and sending the connection results to the server, so that the server verifies the connection results. Or for example, it includes: generating verification code information according to the received verification code generation request; wherein the verification code information includes multiple matching point pairs and verification prompt information; the connecting lines connecting all matching points in different matching point pairs do not intersect; sending the verification code information to the client, so that the client displays the multiple matching point pairs and the verification prompt information according to the verification code information; the verification prompt information is used to prompt the user to connect all the matching points in the multiple matching point pairs; receiving the user's connection result of the matching point returned by the client, and verifying the connection result.

[0163] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0164] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0165] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A verification code verification method, It is characterized in that Applied to the client, including: Sending a verification code generation request to a server, and receiving verification code information generated by the server according to the verification code generation request; wherein the verification code information includes a plurality of matching point pairs and verification prompt information; connecting lines connecting all matching points in different matching point pairs do not intersect; wherein the plurality of matching point pairs are generated by randomly generating a plurality of non-intersecting connecting lines in a preset graphic area, and are generated according to any two points of the plurality of connecting lines; Displaying the plurality of matching point pairs and the verification prompt information according to the verification code information; the verification prompt information is used to prompt the user to connect all the matching points in the plurality of matching point pairs; A connection result of the user to the matching point is obtained, and the connection result is sent to the server, so that the server verifies the connection result.

2. The verification code verification method according to claim 1, It is characterized in that The verification code information also includes auxiliary verification information, and the auxiliary verification information is at least used to display the auxiliary area; The obtaining of the connection result of the user to the matching point includes: Obtaining the coordinates of the auxiliary area through which a connecting line connecting matching points in any of the matching point pairs passes; According to the coordinates, the connection results of the user for the matching points in all the matching point pairs are obtained.

3. The verification code verification method according to claim 2, It is characterized in that The step of obtaining connection results of the matching points in all the matching point pairs by the user according to the coordinates includes: When a connecting line formed by a user to connect the matching points in any of the matching point pairs is a valid connecting line, and the auxiliary area through which the connecting line passes is not passed by other valid connecting lines, determining that the acquired coordinates are valid coordinates; When the acquired coordinates are valid coordinates, obtaining connection results of the user for the matching points in all the matching point pairs according to the coordinates; Among them, the valid connecting line is a connecting line that passes through all matching points in the same matching point pair and passes through all matching points in the same matching point pair only once; the other valid connecting lines are valid connecting lines connecting matching points in other matching point pairs except the current matching point pair.

4. A verification code verification method, It is characterized in that Applicable to servers, including: Generate verification code information according to the received verification code generation request; wherein the verification code information includes a plurality of matching point pairs and verification prompt information; and connecting lines connecting all matching points in different matching point pairs do not intersect; Sending the verification code information to a client, so that the client displays the multiple matching point pairs and the verification prompt information according to the verification code information; the verification prompt information is used to prompt the user to connect all the matching points in the multiple matching point pairs; Receive a connection result of the user to the matching point returned by the client, and verify the connection result; The generating of verification code information includes: generating a plurality of matching point pairs; the generating of a plurality of matching point pairs specifically includes: Randomly generate multiple non-intersecting connecting lines in the preset graphic area; A plurality of matching point pairs are generated according to any two points of the plurality of connecting lines.

5. The verification code verification method according to claim 4, It is characterized in that The area ratio of the graphic area where the randomly generated connecting line is located to the preset graphic area is less than a preset threshold; any of the randomly generated connecting lines includes at least one line segment; when the same randomly generated connecting line includes multiple line segments, the multiple line segments are perpendicular to each other, or the multiple line segments are not perpendicular to each other.

6. The verification code verification method according to claim 4, It is characterized in that The verifying the connection result includes: When it is determined according to the connection result that the connecting lines connecting the matching points in each of the matching point pairs are all valid connecting lines, and the auxiliary area through which the connecting lines connecting the matching points in each of the matching point pairs pass is not passed by other valid connecting lines, it is determined that the verification is successful; Among them, the valid connecting line is a connecting line that passes through all matching points in the same matching point pair and passes through all matching points in the same matching point pair only once; the other valid connecting lines are valid connecting lines connecting matching points in other matching point pairs except the current matching point pair.

7. A verification code verification device, It is characterized in that Applied to the client, including: A verification code information receiving module, used to send a verification code generation request to a server, and receive verification code information generated by the server according to the verification code generation request; wherein the verification code information includes a plurality of matching point pairs and verification prompt information; the connecting lines connecting all matching points in different matching point pairs do not intersect; wherein the plurality of matching point pairs are generated by randomly generating a plurality of non-intersecting connecting lines in a preset graphic area, based on any two points of the plurality of connecting lines; A display module, configured to display the plurality of matching point pairs and the verification prompt information according to the verification code information; the verification prompt information is configured to prompt the user to connect all the matching points in the plurality of matching point pairs; The connection result sending module is used to obtain the connection result of the user to the matching point, and send the connection result to the server so that the server verifies the connection result.

8. A verification code verification device, It is characterized in that Applicable to servers, including: A verification code information generation module is used to generate verification code information according to the received verification code generation request; wherein the verification code information includes a plurality of matching point pairs and verification prompt information; and the connecting lines connecting all matching points in different matching point pairs do not intersect; A verification code information sending module, used to send the verification code information to a client, so that the client displays the multiple matching point pairs and the verification prompt information according to the verification code information; the verification prompt information is used to prompt the user to connect all the matching points in the multiple matching point pairs; A verification module, used for receiving the connection result of the user to the matching point returned by the client, and verifying the connection result; The verification code information generation module is specifically used to generate a plurality of matching point pairs; the generating a plurality of matching point pairs specifically includes: Randomly generate multiple non-intersecting connecting lines in the preset graphic area; A plurality of matching point pairs are generated according to any two points of the plurality of connecting lines.

9. An electronic 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 program, the processor implements the steps of the verification code verification method according to any one of claims 1 to 3, or implements the steps of the verification code verification method according to any one of claims 4 to 6.