Graphic verification code generation, display, verification method, device, equipment and storage medium

By randomly generating the elements and corresponding relationships of the graphic verification code, the difficulty of cracking the graphic verification code is improved, the problem that the graphic verification code is easy to be cracked in the existing technology is solved, and the security of network resource access is enhanced.

CN112231676BActive Publication Date: 2024-09-20CHINA UNIONPAY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011075194.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-09
Publication Date
2024-09-20
Estimated Expiration
2040-10-09

AI Technical Summary

Technical Problem

Existing graphic verification codes are easily cracked by machines or automated programs, reducing the security of access to network resources.

Method used

By randomly obtaining elements from the element database and generating random correspondences with background image partitions, a graphic verification code including a first graphic verification component and a second graphic verification component is generated, thereby increasing the difficulty of cracking and improving verification security.

Benefits of technology

Even if the machine or automatic program recognizes the verification elements defined in the second graphical verification component, it is difficult to crack the corresponding relationship between the elements and the regional identifiers in the graphical verification code, which reduces the risk of the graphical verification code being maliciously cracked and improves the security and safety of verification. accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112231676B
    Figure CN112231676B
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and storage medium for generating, displaying and verifying a graphic verification code, and relates to the field of data processing. The method includes: randomly obtaining multiple elements from an element database; obtaining the regional identification of each partition in a preset background image; randomly generating a correspondence between multiple elements and regional identifications; generating a graphic verification code according to the distribution, elements and regional identification of each partition in the background image, wherein the graphic verification code includes a first graphic verification component and a second graphic verification component, wherein the first graphic verification component includes each graphic code, the graphic code includes a background image and elements located in each partition of the background image and having a corresponding relationship with the regional identification of the partition, and the second graphic verification component is obtained according to the verification element, and the verification element includes some elements in the elements of the graphic code. According to the embodiment of the present application, the security of the verification performed using the generated graphic verification code can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing, and in particular, relates to a method, device, equipment and storage medium for generating, displaying and verifying a graphic verification code. Background Art

[0002] With the development of Internet technology and its popularization in various fields, network security has become a key issue. In the process of users accessing network resources, there may be malicious access to network resources by machines or automatic programs to perform batch registration, ticket fraud, forum flooding, abnormal continuous login, etc.

[0003] In order to avoid the above-mentioned malicious access to network resources, after the user initiates a request, a graphic verification code verification link can be added to distinguish normal access from malicious access. For example, a verification code image is generated, and normal access and malicious access are distinguished by verifying whether the verification information entered by the user is consistent with the information on the verification code image. However, malicious visitors use machines or automatic programs to identify the verification code image and generate verification information to pass the verification. The risk of the graphic verification code being maliciously cracked is relatively high, which reduces the security of the verification. Summary of the invention

[0004] The embodiments of the present application provide a method, apparatus, device and storage medium for generating, displaying and verifying a graphic verification code, which can reduce the risk of the graphic verification code being maliciously cracked and improve the security of verification performed using the generated graphic verification code.

[0005] In a first aspect, an embodiment of the present application provides a method for generating a graphic verification code, comprising: randomly obtaining multiple elements from an element database; obtaining area identifiers of each partition in a preset background image; randomly generating a correspondence between multiple elements and area identifiers; generating a graphic verification code based on the distribution, elements and area identifiers of each partition in the background image, the graphic verification code comprising a first graphic verification component and a second graphic verification component, the first graphic verification component comprising each graphic code, the graphic code comprising the background image and elements located in each partition of the background image and having a correspondence with the area identifier of the partition, the second graphic verification component being obtained based on the verification elements, the verification elements comprising some elements of the elements of the graphic code.

[0006] In a second aspect, an embodiment of the present application provides a method for displaying a graphic verification code, comprising: receiving a trigger input; in response to the trigger input, displaying a verification interface, the verification interface comprising a selected area and a second graphic verification component in the graphic verification code, the selected area comprising an element in each graphic code in the graphic verification code, the graphic verification code comprising a first graphic verification component and a second graphic verification component, the first graphic verification component comprising each graphic code, the graphic code comprising a background image and randomly acquired elements located in each partition of the background image and having a randomly generated correspondence with the area identifier of the partition, the second graphic verification component is obtained based on the verification element, and the verification element comprises some elements of the elements of the graphic code.

[0007] In a third aspect, an embodiment of the present application provides a method for verifying a graphic verification code, comprising: receiving a selected input for each graphic code in a graphic verification code, the graphic verification code comprising a first graphic verification component and a second graphic verification component, the first graphic verification component comprising each graphic code, the graphic code comprising a background image and randomly acquired elements located in each partition of the background image and having a randomly generated correspondence with an area identifier of the partition, the second graphic verification component being obtained based on verification elements, the verification elements comprising some elements of the graphic code; in response to the selected input, selecting a target element in each graphic code; and determining that the verification is successful when the target element matches the verification element defined by the second graphic verification component.

[0008] In a fourth aspect, an embodiment of the present application provides a graphic verification code generating device, comprising: a first acquisition module, used to randomly acquire multiple elements from an element database; a second acquisition module, used to acquire the area identifiers of each partition in a preset background image; a first generation module, used to randomly generate a correspondence between multiple elements and area identifiers; a second generation module, used to generate a graphic verification code according to the distribution, elements and area identifiers of each partition in the background image, the graphic verification code comprising a first graphic verification component and a second graphic verification component, the first graphic verification component comprising each graphic code, the graphic code comprising the background image and elements located in each partition of the background image and having a corresponding relationship with the area identifier of the partition, the second graphic verification component is obtained based on the verification elements, and the verification elements include some elements in the elements of the graphic code.

[0009] In a fifth aspect, an embodiment of the present application provides a graphic verification code display device, comprising: a receiving module for receiving a trigger input; a display module for displaying a verification interface in response to the trigger input, the verification interface comprising a selected area and a second graphic verification component in the graphic verification code, the selected area comprising an element in each graphic code in the graphic verification code, the graphic verification code comprising a first graphic verification component and a second graphic verification component, the first graphic verification component comprising each graphic code, the graphic code comprising a background image and randomly acquired elements located in each partition of the background image and having a randomly generated correspondence with the area identifier of the partition, the second graphic verification component is obtained based on the verification element, and the verification element comprises some elements of the elements of the graphic code.

[0010] In a sixth aspect, an embodiment of the present application provides a graphic verification code verification device, comprising: a receiving module, used to receive a selected input for each graphic code in the graphic verification code, the graphic verification code comprising a first graphic verification component and a second graphic verification component, the first graphic verification component comprising each graphic code, the graphic code comprising a background image and randomly acquired elements located in each partition of the background image and having a randomly generated correspondence with an area identifier of the partition, the second graphic verification component is obtained based on the verification element, the verification element comprising some elements of the graphic code; a selection module, used to select a target element in each graphic code in response to the selected input; a verification module, used to determine that the verification is successful when the target element matches the verification element defined by the second graphic verification component.

[0011] In a seventh aspect, an embodiment of the present application provides a graphic verification code generation device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the graphic verification code generation method as in the first aspect is implemented.

[0012] In an eighth aspect, an embodiment of the present application provides a graphic verification code display device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the graphic verification code display method as in the second aspect is implemented.

[0013] In a ninth aspect, an embodiment of the present application provides a graphic verification code verification device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the graphic verification code verification method as in the third aspect is implemented.

[0014] In the tenth aspect, an embodiment of the present application provides a computer storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the graphic verification code generation method of the first aspect, the graphic verification code display method of the second aspect, or the graphic verification code verification method of the third aspect.

[0015] The embodiments of the present application provide a method, apparatus, device and storage medium for generating, displaying and verifying a graphic verification code, wherein the elements for generating the graphic verification code are randomly obtained from an element database. The correspondence between the region identifiers of each partition in the background image and the randomly obtained elements is also randomly generated. According to the distribution of each partition in the background image, the randomly obtained elements and region identifiers, a graphic verification code including a first graphic verification component and a second graphic verification component is generated. Even if a machine or an automatic program recognizes the verification element defined by the second graphic verification component, due to the dual random effects of element acquisition and corresponding relationship generation, it is difficult for a machine or an automatic program to crack the correspondence between the elements and the region identifiers in the graphic verification code, that is, it is difficult to crack the correspondence between the elements and the partitions in the graphic verification code, thereby increasing the difficulty of cracking and reducing the risk of the graphic verification code being maliciously cracked, thereby being able to improve the security of the verification performed using the generated graphic verification code. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0017] Figure 1 A flowchart of an embodiment of the method for generating a graphic verification code provided in the first aspect of the present application;

[0018] Figure 2 A schematic diagram of an example of the structure of a graphic verification code provided in an embodiment of the present application;

[0019] Figure 3 A schematic diagram of another example of the structure of a graphic verification code provided in an embodiment of the present application;

[0020] Figure 4 A flowchart of another embodiment of the method for generating a graphic verification code provided in the first aspect of the present application;

[0021] Figure 5 A flowchart of an embodiment of a method for displaying a graphic verification code provided in the second aspect of the present application;

[0022] Figure 6 A schematic diagram of an example of a verification interface provided in an embodiment of the present application;

[0023] Figure 7 A schematic diagram of another example of a verification interface provided in an embodiment of the present application;

[0024] Figure 8 A flowchart of another embodiment of the method for displaying a graphic verification code provided in the second aspect of the present application;

[0025] Fig. 9 A flowchart of another embodiment of the method for displaying a graphic verification code provided in the second aspect of the present application;

[0026] Fig.10 A flowchart of an embodiment of a method for verifying a graphic verification code provided in the third aspect of the present application;

[0027] Fig.11 A flowchart of another embodiment of the graphic verification code verification method provided in the third aspect of the present application;

[0028] Fig.12 A flowchart of another embodiment of the graphic verification code verification method provided in the third aspect of the present application;

[0029] Fig.13 A schematic diagram of the structure of an embodiment of a graphic verification code generating device provided in the fourth aspect of the present application;

[0030] Fig.14 A schematic structural diagram of another embodiment of the graphic verification code generating device provided in the fourth aspect of the present application;

[0031] Fig.15 A structural schematic diagram of an embodiment of a graphic verification code display device provided in the fifth aspect of the present application;

[0032] Fig.16 A structural schematic diagram of another embodiment of the graphic verification code display device provided in the fifth aspect of the present application;

[0033] Fig.17 A schematic diagram of the structure of an embodiment of a graphic verification code verification device provided in the sixth aspect of the present application;

[0034] Fig.18 This is a structural schematic diagram of an embodiment of a graphic verification code generation device provided in the seventh aspect of the present application. DETAILED DESCRIPTION

[0035] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0036] When users access network resources, such as logging in, making payments, etc., in order to prevent malicious behavior by malicious users, such as batch registration, ticket swiping, abnormal and continuous logins, etc., a graphic verification code will be set so that users can be verified based on the verification code to distinguish normal users from machines and automatic programs.

[0037] For example, the verification code information is directly recorded on the graphic verification code. The user enters the verification code information in the input box displayed on the verification device. The verification device verifies whether the verification code information entered by the user is consistent with the verification code information on the graphic verification code. If they are consistent, the verification is determined to be successful, that is, it is determined that the user performing the verification operation is a normal user.

[0038] For another example, a graphic verification code includes multiple pictures. The user selects a picture of a specified type on the verification device, and the verification device verifies whether the picture selected by the user is consistent with the pre-specified picture. If they are consistent, the verification is determined to be successful, that is, it is determined that the user performing the verification operation is a normal user.

[0039] For example, a randomly generated formula is recorded on the graphic verification code, and the user enters the calculation result of the formula on the verification device, and the verification device verifies whether the calculation result entered by the user is consistent with the actual calculation result of the formula. If they are consistent, the verification is determined to be successful, that is, it is determined that the user performing the verification operation is a normal user.

[0040] For another example, a slider is randomly generated in the graphic verification code, and the user moves the slider to a specified position in the graphic verification code on the verification device to verify whether the position where the slider stops after being moved is consistent with the specified position. If they are consistent, the verification is determined to be successful, that is, it is determined that the user performing the verification operation is a normal user.

[0041] However, malicious users can use machine or automatic program to utilize image recognition technology, text recognition technology, etc. to identify and calculate the above-mentioned graphic verification codes that directly record verification information, graphic verification codes that include multiple images, and graphic verification codes that record calculation formulas, and realize malicious cracking. The cracking difficulty is relatively low, which reduces the security of verification.

[0042] The above randomly generated slider graphic verification code requires high movement accuracy, and normal user operations are easily misjudged as machines or automatic programs, resulting in a high misjudgment rate, which reduces the convenience of verification operations.

[0043] The embodiment of the present application provides a method, device, equipment and storage medium for generating, displaying and verifying a graphic verification code, wherein the security protection level of the graphic verification code is higher, which can improve the security of verification. Moreover, the accuracy requirements for the user's operation during the verification process are lower, which can reduce the misjudgment rate and improve the convenience of the verification operation.

[0044] In the embodiment of the present application, the execution end of the graphic verification code generation, display, and verification method can be an integrated structure or a distributed structure.

[0045] In some examples, the execution end of the graphic verification code generation, display, and verification method is an integrated structure, that is, the graphic verification code generation, display, and verification method can be implemented by one device.

[0046] In other examples, the execution end of the method for generating, displaying, and verifying a graphic verification code may be a distributed structure, that is, the front-end and back-end of the method for generating, displaying, and verifying a graphic verification code may be distributedly designed, and the front-end may be implemented by one device, such as a user terminal; and the back-end may be implemented by another device, such as a server. Among them, the back-end may implement the generation of the graphic verification code; the front-end may implement the display of the graphic verification code; and the front-end and the back-end may jointly implement the verification of the graphic verification code.

[0047] The following will provide a detailed description of the generation, display and verification of the graphic verification code.

[0048] A first aspect of the present application provides a method for generating a graphic verification code. Figure 1 This is a flow chart of an embodiment of the method for generating a graphic verification code provided in the first aspect of the present application. Figure 1 As shown, the method for generating a graphic verification code may include steps S101 to S104.

[0049] In step S101 , a plurality of elements are randomly acquired from an element database.

[0050] The element database includes multiple elements for generating a graphic verification code. The total number of elements in the element database is greater than or equal to the number of randomly obtained elements. For example, the element database includes M elements, and N elements are randomly obtained from the element database in step S101, where M≥N.

[0051] The element database may include different types of elements. For example, the elements included in the element database may include, but are not limited to, one or more of letters, numbers, Chinese characters, and pictures. The element database may include multiple element sub-databases, each of which includes a type of element. For example, the element sub-database may include an English letter sub-database, a number sub-database, or a Chinese character sub-database with an extended Chinese character internal code (i.e., a GBK Chinese character sub-database), etc.

[0052] In some examples, elements in the element database may be selected from elements that are easy for users to identify, so as to reduce the misjudgment rate in verification and improve the convenience of user operation.

[0053] In some examples, the types of elements in the element database and the types of randomly acquired elements can also be increased. On the one hand, the increase in the types of elements in the element database and the types of randomly acquired elements can increase the difficulty of machine recognition, that is, increase the difficulty of malicious cracking of verification and improve the security of the graphic verification code generated by using randomly selected multiple elements; on the other hand, the increase in the types of elements in the element database and the types of randomly acquired elements increase the diversity of elements, which can also increase the diversity of verification rules in the verification process.

[0054] In step S102, the region identifier of each partition in the preset background image is obtained.

[0055] The background image may be divided into a plurality of partitions. Specifically, the background image may be divided into a plurality of partitions. For example, an XY coordinate system may be established for the background image, and the background image may be divided into a plurality of partitions according to the pixel coordinates in the X-axis direction. For another example, an XY coordinate system may be established for the background image, and the background image may be divided into a plurality of partitions according to the pixel coordinates in the Y-axis direction. The background image may be a blank image.

[0056] The number of partitions in the background image can be determined according to the number of elements randomly obtained in step S101. In some examples, the number of partitions of the background image is the same as the number of elements randomly obtained from the element database. Each partition has a corresponding region identifier. The region identifier is used to identify the partition. After partitioning, the region identifier can be assigned to each partition, or the region identifier of each partition can be obtained by using the background image's own attributes.

[0057] In some examples, the region identifier may include a region number or pixel coordinates. For example, the region identifier includes the region number, and the rules of the region number are not limited herein. For another example, the region identifier includes pixel coordinates, and the partition includes multiple pixels. Correspondingly, the partition has multiple pixel coordinates, and the pixel coordinates of any one or more pixels located in the partition can be used as the region identifier of the partition.

[0058] In step S103, a random correspondence relationship between a plurality of elements and region identifiers is randomly generated.

[0059] The correspondence between the elements and the area identifiers is randomly generated. Each time a graphic verification code is generated, the correspondence between the elements and the area identifiers needs to be randomly generated again.

[0060] In step S104, a graphic verification code is generated according to the distribution, elements and area identification of each partition in the background image.

[0061] The graphic verification code includes a first graphic verification component and a second graphic verification component. The first graphic verification component includes various graphic codes. The number of graphic codes in the first graphic verification component is not limited here.

[0062] The graphic code includes a background image and elements located in each partition of the background image and having a random correspondence relationship with the area identifier of the partition. Specifically, based on the random correspondence between each element and each partition, an element having a random correspondence relationship with the partition can be generated on each partition. The background image with elements having a random correspondence relationship with each partition is the graphic code.

[0063] The second graphic verification component is obtained based on the verification element. The verification element includes some elements of the elements of the graphic code. The second graphic verification component can be used to define the verification element. The verification element is used to match the element selected by the user input during the verification process to determine whether the verification is successful. The second graphic verification component can be randomly generated. The verification element defined by the second graphic verification component is a randomly selected part of the elements in the graphic code, and the order of the verification elements defined by the second graphic verification component is also random.

[0064] In some examples, the second graphic verification component may include verification elements. For example, if the elements in the graphic code include numbers 1 to 9, the second graphic verification component may include numbers 1, 2, and 3. The verification elements included in the second graphic verification component in the graphic verification codes generated at different times may be different and irregular.

[0065] In other examples, the second verification component includes prompt information, and the prompt information is used to define the verification elements. For example, the elements in the graphic code include numbers 1 to 9, and the second graphic verification component may include prompt information "select a number less than 4", and the verification elements defined by the prompt information include numbers 1, 2, and 3. The prompt information included in the second graphic verification component in the graphic verification codes generated at different times may be different and irregular.

[0066] In some examples, the number of graphic codes in the graphic verification code is the same as the number of elements defined by the second graphic verification component, and each graphic code in the graphic verification code corresponds to an element defined by the second graphic verification component.

[0067] For example, Figure 2 A schematic diagram of an example of the structure of a graphic verification code provided in an embodiment of the present application. Figure 2 As shown, the graphic verification code 20 includes a first graphic verification component 21 and a second graphic verification component 22. The first graphic verification component 21 includes three graphic codes 211, each of which includes eight partitions. Figure 2In FIG. 2 , from top to bottom, the area identifiers of the eight partitions are respectively a1 to a8. The elements of each graphic code 211 include 3, 5, 9, a, b, c, good and bad. Figure 2 In the illustrated graphic verification code, the random correspondence between the elements and the area identifiers in the three graphic codes 211 is the same, and the specific random correspondence is shown in Table 1 below:

[0068] Table 1

[0069]

[0070]

[0071] like Figure 2 As shown, the second graphical verification component 22 includes verification elements “OK”, “3”, and “c”.

[0072] In some examples, the randomly generated correspondence between the elements in the first graphic code and the region identifiers of each partition in the background image is different from the randomly generated correspondence between the elements in the second graphic code and the region identifiers of each partition in the background image. That is, the distribution of the elements in the first graphic code on the background image is different from the distribution of the elements in the second graphic code on the background image. Among them, the first graphic code is a graphic code in the first graphic verification component, and the second graphic code is another graphic code in the first graphic verification component. That is, the randomly generated correspondence between the elements and the region identifiers in different graphic codes in the first graphic verification component may be different. In different graphic codes, the correspondence between the elements and the region identifiers is different, which can further increase the difficulty of cracking the graphic verification code, thereby improving the security and accuracy of verification using the graphic verification code.

[0073] For example, Figure 3 A schematic diagram of another example of the structure of a graphic verification code provided in an embodiment of the present application. Figure 3 As shown, the graphic verification code 20 includes a first graphic verification component 21 and a second graphic verification component 22. The first graphic verification component 21 includes three graphic codes 211, each of which includes eight partitions. Figure 3 In FIG. 2 , from top to bottom, the area identifiers of the eight partitions of each graphic code 211 are respectively a1 to a8. The elements of each graphic code 211 include 3, 5, 9, a, b, c, good, and bad. Figure 3 In the illustrated graphic verification codes, the random correspondence between the elements and the area identifiers in the three graphic codes 211 is different, and the specific random correspondence is shown in Table 2 below:

[0074] Table 2

[0075]

[0076]

[0077] like Figure 3 As shown, the second graphical verification component 22 includes verification elements “OK”, “3”, and “c”.

[0078] In an embodiment of the present application, the elements for generating the graphic verification code are randomly obtained from an element database. The correspondence between the area identifiers of each partition in the background image and the randomly obtained elements is also randomly generated. According to the distribution of each partition in the background image, the randomly obtained elements and area identifiers, a graphic verification code including a first graphic verification component and a second graphic verification component is generated. Even if a machine or an automatic program recognizes the verification element defined by the second graphic verification component, due to the dual random effects of element acquisition and corresponding relationship generation, it is difficult for the machine or automatic program to crack the correspondence between the elements and area identifiers in the graphic verification code, that is, it is difficult to crack the correspondence between the elements and the partitions in the graphic verification code, which increases the difficulty of cracking and reduces the risk of the graphic verification code being maliciously cracked, thereby being able to improve the security and accuracy of the verification performed using the generated graphic verification code.

[0079] In the case of verification failure or active refresh request, the graphic verification code can be refreshed, that is, a new graphic verification code is generated. Figure 4 This is a flowchart of another embodiment of the method for generating a graphic verification code provided in the first aspect of the present application. Figure 4 and Figure 1 The difference is that Figure 4 The illustrated method for generating a graphic verification code may further include step S105.

[0080] In step S105 , a refresh instruction is received. In response to the refresh instruction, the process jumps to step S101 and continues to execute steps S101 to S104 .

[0081] That is, in response to the refresh instruction, multiple elements are randomly re-acquired from the element database, the correspondence between the multiple elements and the region identifiers is randomly re-generated, and a new graphic verification code is generated according to the distribution of each partition in the background image, the multiple elements randomly re-acquired, and the region identifiers. The new graphic verification code generated after the refresh may be different from the graphic verification code before the refresh. Specifically, the first graphic verification component and the second graphic verification component of the new graphic verification code generated after the refresh may be different from the first graphic verification component and the second graphic verification component of the graphic verification code before the refresh.

[0082] The refresh instruction may be an instruction generated according to a refresh request input by a user, or may be an instruction generated when the graphic verification code verification fails, which is not limited here.

[0083] By refreshing, the graphic verification code can be updated in time, further increasing the difficulty of cracking the graphic verification code, thereby improving the security and accuracy of verification using the graphic verification code.

[0084] In some examples, interference graphics may be added to the first graphic verification component and / or the second graphic verification component to reduce the possibility that the content of the first graphic verification component and / or the content of the second graphic verification component is recognized by a machine or an automatic program. The interference graphics may specifically be noise points, interference lines, etc., which are not limited here.

[0085] In other examples, the display attributes of the elements in the first graphic verification component and / or the second graphic verification component may be changed to reduce the possibility that the content of the first graphic verification component and / or the content of the second graphic verification component is recognized by a machine or an automatic program. For example, the font or color may be changed, which is not limited here.

[0086] After the above-mentioned graphic verification code is generated, the graphic verification code can also be displayed so that the user can verify through the graphic verification code. In some examples, the verification interface can be displayed by the front end of the execution end. The verification interface may include a selected area and a second graphic verification component, and the selected area includes an element of each graphic code in the graphic verification code, that is, the selected area includes an element of each graphic code in the graphic verification code. The display of the graphic verification code will be described below.

[0087] A second aspect of the present application provides a method for displaying a graphic verification code. Figure 5 This is a flow chart of an embodiment of the method for displaying a graphical verification code provided in the second aspect of the present application. Figure 5 As shown, the graphic verification code method may include step S301 and step S302.

[0088] In step S301 , a trigger input is received.

[0089] The trigger input may be a trigger input for starting an application program received by the front end of the execution end, or a trigger input for jumping to a control of a verification interface by the user, which is not limited here.

[0090] In step S302, in response to the trigger input, a verification interface is displayed.

[0091] The verification interface includes a selected area and a second graphic verification component in the graphic verification code. The selected area includes an element in each graphic code in the graphic verification code. The element located in the selected area is considered to be the selected element. The elements located in the selected area can be arranged horizontally, vertically, or in other ways, which are not limited here.

[0092] The graphic verification code includes a first graphic verification component and a second graphic verification component, and the first graphic verification component includes various graphic codes. The graphic code includes a background image and randomly acquired elements located in each partition of the background image and having a randomly generated correspondence with the area identifier of the partition. The second graphic verification component is obtained based on the verification element, and the verification element includes some elements of the graphic code. In some examples, the elements may include but are not limited to one or more of letters, numbers, Chinese characters, and pictures. The specific content of the graphic verification code can be found in the relevant description in the above embodiments, which will not be repeated here.

[0093] In some examples, the region identifier may include but is not limited to a region number or pixel coordinates. For details, please refer to the relevant descriptions in the above embodiments, which will not be repeated here.

[0094] In some examples, the second graphic verification component includes the verification element. In other examples, the second graphic verification component includes prompt information. The prompt information is used to define the verification element. The specific content of the second graphic verification component can be found in the relevant description in the above embodiment, which will not be repeated here.

[0095] In some examples, the distribution of elements in multiple graphic codes in a graphic verification code may be the same. In other examples, the distribution of elements in the first graphic code in each partition is different from the distribution of elements in the second graphic code in each partition. The first graphic code is a graphic code in the first graphic verification component. The second graphic code is another graphic code in the first graphic verification component. That is, the distribution of elements in different graphic codes in the same graphic verification code is different in each partition, which can further increase the difficulty of cracking the graphic verification code, so as to improve the security and accuracy of verification using the graphic verification code. For the specific content of the same or different distribution of elements in the graphic code in each partition, please refer to the relevant description in the above embodiment that the correspondence between the elements in the graphic code and the area identifiers of each partition can be the same or different, which will not be repeated here.

[0096] In some examples, the number of graphic codes in the graphic verification code is the same as the number of elements defined by the second graphic verification component. For details, please refer to the relevant description in the above embodiments, which will not be repeated here.

[0097] In some examples, the first graphic verification component and / or the second graphic verification component have interference graphics. Interference graphics may include noise points, interference lines, etc., which are not limited here. Elements and other information in the first graphic verification component and / or the second graphic verification component may also be processed with fonts, colors, etc. to reduce the possibility that the content of the first graphic verification component and / or the content of the second graphic verification component can be recognized by a machine or an automatic program.

[0098] In some embodiments, in the verification interface, each graphic code in the graphic verification code can be displayed in the form of a scroll wheel. The elements in the selected area can be changed according to the user's selection, thereby realizing the selection of the elements. That is, each partition of the graphic code scrolls through the selected area.

[0099] In some examples, only elements located in the selected area may be displayed in the verification interface. Reducing the number of displayed elements can prevent machines or automatic programs from identifying all elements in the graphic code, increase the difficulty of cracking the graphic verification code, and thus improve the security and accuracy of verification using the graphic verification code.

[0100] For example, Figure 6 This is a schematic diagram of an example of a verification interface provided in an embodiment of the present application. Figure 6 As shown, the graphic verification code includes three graphic codes. Assume that the graphic verification code is as follows Figure 3 As shown. The second graphic verification component 22 includes verification elements "OK", "3", "c". The verification interface includes a selected area 41, and the verification interface only displays the elements of the graphic code located in the selected area 41. The elements of the graphic code located in the selected area 41 are "OK", "5", and "9".

[0101] In other examples, the verification interface may further include a target area. The target area includes the selected area and at least some elements in each graphic code except the elements in the selected area. That is, the elements in each graphic code adjacent to the elements in the selected area may also be displayed, so that the user can intuitively see the elements adjacent to the elements in the selected area. The user can choose how to select and input according to the adjacent elements, thereby improving the convenience of the user's operation.

[0102] For example, Figure 7 Schematic diagram of another example of the verification interface provided in the embodiment of the present application. Figure 7 As shown, the graphic verification code includes three graphic codes. Assume that the graphic verification code is as follows Figure 3 As shown. The second graphic verification component 22 includes verification elements "good", "3", "c". The verification interface includes a target area 42. The target area 42 includes a selected area 41. The elements of the graphic code located in the selected area are "good", "5", and "9". The target area 42 also includes two elements located before and after "good" in the first graphic code, two elements located before and after "5" in the second graphic code, and two elements located before and after "9" in the third graphic code.

[0103] In an embodiment of the present application, in response to a received trigger input, a verification interface is displayed. The verification interface includes a selected area and a second graphic verification component in a graphic verification code. The selected area includes an element in each graphic code in the graphic verification code. The graphic code includes a background image and randomly acquired elements located in each partition of the background image and having a randomly generated correspondence with the area identifier of the partition. Due to the dual random effects of element acquisition and correspondence, even if a machine or automatic program identifies the verification element defined by the second graphic verification component, it is difficult for the machine or automatic program to crack the correspondence between the element and the area identifier in the graphic verification code, that is, it is difficult to crack the correspondence between the element and the partition in the graphic verification code, thereby increasing the difficulty of cracking and reducing the risk of the graphic verification code being maliciously cracked, thereby being able to improve the security of the verification performed using the generated graphic verification code.

[0104] When the user makes a selection input on the verification interface, the content in the verification interface may change. Figure 8 This is a flowchart of another embodiment of the method for displaying a graphic verification code provided in the second aspect of the present application. Figure 8 and Figure 5 The difference is that Figure 8 The illustrated method for displaying a graphic verification code may further include step S303 and step S304.

[0105] In step S303, a selection input is received.

[0106] The user can change the element of the graphic code in the selected area by selecting the input. The graphic code can be displayed in a scroll wheel manner. For example, the execution end can control the scrolling of the graphic code partition according to the received selected input, thereby changing the element in the selected area.

[0107] In step S304, in response to the selection input, the element of the graphic code located in the selected area is replaced from the first element to the second element.

[0108] In some examples, the selected input includes a sliding input. For example, the execution end may be provided with a wheel structure, such as a mouse with a wheel, and the user may implement the sliding input by sliding the wheel of the mouse, and the execution end responds to the sliding input to replace the elements in the selected area. For another example, the execution end may have a touch function, and the user may implement the sliding input by sliding the execution end, and the execution end responds to the sliding input to replace the elements in the selected area.

[0109] The second element is another element in the graphic code except the first element. The partition in the background image where the second element is located is the first N partitions or the last N partitions in the background image where the first element is located, where N is a positive integer. Figure 7As shown, the execution end responds to the sliding input and controls the third column of graphic codes to slide upward, so that the element in the selected area 41 is replaced by the first element "9" to the second element "c". The second element "c" is located in the next partition after the partition where the first element "9" is located.

[0110] In the embodiment of the present application, the user selects the elements in the graphic verification code through sliding input, which improves the convenience of user operation and optimizes the interactive experience of user operation compared with the traditional method of inputting elements in the input box.

[0111] In the case of verification failure or active refresh request, the graphic verification code can be refreshed, that is, a new graphic verification code generated is displayed. Fig. 9 This is a flowchart of another embodiment of the method for displaying a graphic verification code provided in the second aspect of the present application. Fig. 9 and Figure 5 The difference is that Fig. 9 The illustrated method for displaying a graphic verification code may further include step S305 and step S306.

[0112] In step S305 , a refresh input is received.

[0113] The refresh input corresponds to the refresh instruction in the above embodiment, which will not be described in detail here.

[0114] In step S306, in response to the refresh input, the second graphic verification component and the elements in the target area in the verification interface are updated.

[0115] The new graphic verification code generated after refreshing may be different from the graphic verification code before refreshing. Therefore, the second graphic verification component and elements in the target area in the verification interface after refreshing are different from the second graphic verification component and elements in the target area in the verification interface before refreshing.

[0116] By refreshing, the graphic verification code can be updated in time, and the displayed verification interface can be updated, further increasing the difficulty of cracking the graphic verification code, so as to improve the security and accuracy of verification using the graphic verification code.

[0117] The third aspect of the present application provides a method for verifying a graphic verification code. Fig.10 This is a flow chart of an embodiment of the graphic verification code verification method provided in the third aspect of the present application. Fig.10 As shown, the graphic verification code verification method may include steps S501 to S503.

[0118] In step S501, a selection input of each graphic code in the graphic verification code is received.

[0119] The graphic verification code includes a first graphic verification component and a second graphic verification component. The first graphic verification component includes various graphic codes. The graphic code includes a background image and randomly acquired elements located in each partition of the background image and having a randomly generated correspondence with the area identifier of the partition. The second graphic verification component is obtained based on the verification element. The verification element includes some elements of the graphic code. In some examples, the elements may include but are not limited to one or more of letters, numbers, Chinese characters, and pictures. The specific content of the graphic verification code can be found in the relevant description in the above embodiments, which will not be repeated here.

[0120] In some examples, the randomly generated correspondence between the elements in each graphic code and the region identifiers of each partition in the background image may be the same. In other examples, the randomly generated correspondence between the elements in the first graphic code and the region identifiers of each partition in the background image is different from the randomly generated correspondence between the elements in the second graphic code and the region identifiers of each partition in the background image. The first graphic code is a graphic code in the first graphic verification component. The second graphic code is another graphic code in the first graphic verification component. For the specific content that the randomly generated correspondence between the elements in different graphic codes and the region identifiers of each partition in the background image may be the same or different, please refer to the relevant description in the above embodiments, which will not be repeated here.

[0121] In some examples, the second graphic verification component includes a verification element. In other examples, the second graphic verification component includes prompt information. The prompt information is used to define the verification element. The specific content of the second graphic verification component can be found in the relevant description in the above embodiment, which will not be repeated here.

[0122] In some examples, the number of graphic codes in the graphic verification code is the same as the number of elements defined by the second graphic verification component. For details, please refer to the relevant description in the above embodiments, which will not be repeated here.

[0123] In some examples, the first graphic verification component and / or the second graphic verification component has an interference graphic. For details, please refer to the relevant descriptions in the above embodiments, which will not be repeated here.

[0124] In some examples, the region identifier may include, but is not limited to, a region number or pixel coordinates. For details, please refer to the relevant descriptions in the above embodiments, which will not be repeated here.

[0125] In step S502, in response to a selection input, a target element is selected in each graphic code.

[0126] The graphic code includes multiple elements, and a target element can be selected in the graphic code by selecting an input. The target element is the element selected for verification. Specifically, there is one target element in each graphic code. The specific content of the selection input can be found in the relevant description of the above embodiment, and will not be repeated here.

[0127] In step S503, when the target element matches the verification element defined by the second graphic verification component, it is determined that the verification is successful.

[0128] In some examples, the second graphic verification component includes verification elements. The graphic codes in the first graphic verification component have an arrangement order. The verification elements included in the second graphic verification component also have an arrangement order. When the target element is exactly the same as the verification element in the arrangement order of the graphic codes in the graphic verification code, that is, the target element matches the verification element defined by the second graphic verification component, it is determined that the verification is successful.

[0129] In the case where the target element does not match the verification element defined by the second graphic verification component, the verification is determined to have failed. Specifically, in the case where the target element is not completely identical to the verification element in the arrangement order of the graphic code in the graphic verification code, that is, the target element does not match the verification element defined by the second graphic verification component, the verification is determined to have failed.

[0130] For example, the graphic verification code includes three graphic codes. The verification elements defined by the second graphic verification component include "good", "3" and "c" in order. In the case where the target elements selected in the graphic verification code include "good", "3" and "c" in order of arrangement, the verification is determined to be successful. In the case where the target elements selected in the graphic verification code do not include all the verification elements defined by the second graphic verification component, the verification is determined to have failed. For example, if the target elements include "a", "3" and "c" in order of arrangement, the verification is determined to have failed. In the case where the target elements selected in the graphic verification code include all the verification elements defined by the second graphic verification component, but the order of arrangement of the target elements is different from the order of arrangement of the verification elements defined by the second graphic verification component, the verification is determined to have failed. For example, if the target elements include "3", "good" and "c" in order of arrangement, the verification is determined to have failed.

[0131] In some other examples, the second graphic verification component includes prompt information. When the verification elements defined by the prompt information include all target elements, that is, the target elements match the verification elements defined by the second graphic verification component, it is determined that the verification is successful.

[0132] In the case that the verification elements defined by the prompt information do not include all the target elements, that is, the target elements do not match the verification elements defined by the second graphic verification component, it is determined that the verification has failed.

[0133] For example, the elements in the graphic code are shown in Table 1, and the prompt information is "Please select a number", that is, the verification elements defined by the prompt information include "3", "5" and "9". In the case where the target elements include "3", "5" and "9", the verification elements defined by the prompt information include all the target elements, and the order of the target elements may not be limited, and the verification is determined to be successful. In the case where the target elements include "c", "3" and "b", the verification elements defined by the prompt information do not include all the target elements, and the verification is determined to be failed.

[0134] In the embodiment of the present application, in response to the received selection input of each graphic code in the graphic verification code, a target element is selected in each graphic code. When the target element matches the verification element defined by the second graphic verification component, the verification is determined to be successful. Due to the dual random effects of element acquisition and corresponding relationship generation, even if a machine or automatic program identifies the verification element defined by the second graphic verification component, it is difficult to crack the corresponding relationship between the element and the area identifier in the graphic verification code, that is, it is difficult to crack the corresponding relationship between the element and the partition in the graphic verification code, which increases the difficulty of cracking and reduces the risk of malicious cracking of the graphic verification code, thereby improving the security and accuracy of the verification performed using the graphic verification code.

[0135] Fig.11 This is a flowchart of another embodiment of the graphic verification code verification method provided in the third aspect of the present application. Fig.11 and Fig.10 is that the selected input may include a sliding input, Fig.10 Step S502 in the above example can be specifically broken down into Fig.11 Step S5021 and step S5022 in .

[0136] In step S5021, in response to the sliding input, the selected first element in the graphic code is replaced with a second element.

[0137] The partition in the background image where the second element is located is the first N partitions or the last N partitions of the partition in the background image where the first element is located, where N is a positive integer. By responding to the sliding input, the element in the first N partitions or the last N partitions of the partition in the background image where the first element is located can be used as the target element, thereby realizing the scrolling replacement of the target element, improving the convenience of user operation, and optimizing the user experience of human-computer interaction.

[0138] In step S5022, the second element is taken as the target element.

[0139] Fig.12 This is a flowchart of another embodiment of the graphic verification code verification method provided in the third aspect of the present application. Fig.12 and Fig.10 is that the selected input may include a sliding input, Fig.10 Step S502 in the above example can be specifically broken down into Fig.12 Step S5023 and step S5024 in .

[0140] In step S5023, in response to the selection input, a partition in the graphic code selected by the selection input is determined.

[0141] The selected input is to select a partition in the graphic code with an element in operation. For example, if the user selects element "a", for the execution end, the user selects the partition of element "a" on the background image.

[0142] In step S5024, according to the correspondence between elements and region identifiers, the element corresponding to the region identifier of the selected partition is used as the target element.

[0143] In the process of generating the graphic verification code, the correspondence between the elements and the area identifiers is randomly generated. The correspondence between the randomly generated elements and the area identifiers stored previously can be used to select the element corresponding to the area identifier of the selected partition as the target element. Since the target element is determined according to the area identifier of the partition, and the correspondence between the randomly generated elements and the area identifiers is different each time the graphic verification code is generated, it is difficult for a machine or automatic program to crack the correspondence between the elements and the area identifiers in the graphic verification code, that is, it is difficult to crack the correspondence between the elements and the partitions in the graphic verification code, which increases the difficulty of cracking and reduces the risk of malicious cracking of the graphic verification code, thereby improving the security and accuracy of the verification performed using the generated graphic verification code.

[0144] A fourth aspect of the present application provides a device for generating a graphic verification code. Fig.13 This is a structural diagram of an embodiment of a graphic verification code generating device provided in the fourth aspect of the present application. Fig.13 As shown, the image verification code generating device 600 may include a first acquisition module 601 , a second acquisition module 602 , a first generation module 603 and a second generation module 604 .

[0145] The first acquisition module 601 may be used to randomly acquire a plurality of elements from an element database.

[0146] The second acquisition module 602 may be used to acquire the region identifier of each partition in a preset background image.

[0147] In some examples, the region identification includes a region number or pixel coordinates.

[0148] The first generating module 603 may be used to randomly generate a correspondence between a plurality of elements and region identifiers.

[0149] The second generating module 604 may be used to generate a graphic verification code according to the distribution, elements and region identifiers of each partition in the background image.

[0150] The graphic verification code includes a first graphic verification component and a second graphic verification component. The first graphic verification component includes various graphic codes. The graphic code includes a background image and elements located in each partition of the background image and corresponding to the area identifier of the partition. The second graphic verification component is obtained based on the verification element. The verification element includes some elements of the graphic code.

[0151] In some examples, the second graphical authentication component includes an authentication element.

[0152] In some other examples, the second graphic verification component includes prompt information, and the prompt information is used to define the verification element.

[0153] In an embodiment of the present application, the elements for generating the graphic verification code are randomly obtained from an element database. The correspondence between the area identifiers of each partition in the background image and the randomly obtained elements is also randomly generated. According to the distribution of each partition in the background image, the randomly obtained elements and area identifiers, a graphic verification code including a first graphic verification component and a second graphic verification component is generated. Even if a machine or an automatic program recognizes the verification element defined by the second graphic verification component, due to the dual random effects of element acquisition and corresponding relationship generation, it is difficult for the machine or automatic program to crack the correspondence between the elements and area identifiers in the graphic verification code, that is, it is difficult to crack the correspondence between the elements and the partitions in the graphic verification code, which increases the difficulty of cracking and reduces the risk of the graphic verification code being maliciously cracked, thereby being able to improve the security and accuracy of the verification performed using the generated graphic verification code.

[0154] In some examples, the correspondence between the elements in the first graphic code and the region identifiers of each partition in the background image is different from the correspondence between the elements in the second graphic code and the region identifiers of each partition in the background image. The first graphic code is a graphic code in the first graphic verification component, and the second graphic code is another graphic code in the first graphic verification component.

[0155] In some examples, the number of graphic codes in the graphic verification code is the same as the number of elements defined by the second graphic verification component.

[0156] Fig.14 This is a structural diagram of another embodiment of the graphic verification code generation device provided in the fourth aspect of the present application. Fig.14 and Fig.13 The difference is that the graphic verification code generating device 600 may further include a receiving module 605 , an interference processing module 606 and a display module 607 .

[0157] The receiving module 605 may be configured to receive a refresh instruction.

[0158] In response to a refresh instruction, the first acquisition module 601 can also be used to randomly re-acquire multiple elements from the element database, the first generation module 603 is also used to randomly re-generate the correspondence between the multiple elements acquired and the area identifiers, and the second generation module 604 can also be used to generate a new graphic verification code based on the distribution of each partition in the background image, the multiple elements randomly re-acquired and the area identifiers.

[0159] The interference processing module 606 may be configured to add interference patterns to the first pattern verification component and / or the second pattern verification component.

[0160] The display module 607 can be used to display a verification interface, which includes a selected area and a second graphic verification component. The selected area includes an element of each graphic code in the graphic verification code.

[0161] A fifth aspect of the present application provides a graphic verification code display device. Fig.15 This is a structural diagram of an embodiment of a graphic verification code display device provided in the fifth aspect of the present application. Fig.15 As shown, the graphic verification code display device 700 may include a receiving module 701 and a display module 702 .

[0162] The receiving module 701 may be configured to receive a trigger input.

[0163] The display module 702 may be configured to display a verification interface in response to a trigger input.

[0164] The verification interface includes a selected area and a second graphic verification component in the graphic verification code. The selected area includes an element of each graphic code in the graphic verification code. The graphic verification code includes a first graphic verification component and a second graphic verification component. The first graphic verification component includes each graphic code. The graphic code includes a background image and randomly obtained elements located in each partition of the background image and having a randomly generated corresponding relationship with the area identifier of the partition. The second graphic verification component is obtained based on the verification element. The verification element includes some elements of the elements of the graphic code.

[0165] In some examples, the second graphical authentication component includes an authentication element.

[0166] In some other examples, the second graphic verification component includes prompt information, and the prompt information is used to define the verification element.

[0167] In some examples, the region identification includes a region number or pixel coordinates.

[0168] In an embodiment of the present application, in response to a received trigger input, a verification interface is displayed. The verification interface includes a selected area and a second graphic verification component in a graphic verification code. The selected area includes an element in each graphic code in the graphic verification code. The graphic code includes a background image and randomly acquired elements located in each partition of the background image and having a randomly generated correspondence with the area identifier of the partition. Due to the dual random effects of element acquisition and correspondence, even if a machine or automatic program identifies the verification element defined by the second graphic verification component, it is difficult for the machine or automatic program to crack the correspondence between the element and the area identifier in the graphic verification code, that is, it is difficult to crack the correspondence between the element and the partition in the graphic verification code, thereby increasing the difficulty of cracking and reducing the risk of the graphic verification code being maliciously cracked, thereby being able to improve the security of the verification performed using the generated graphic verification code.

[0169] In some examples, the distribution of elements in the first graphic code in each partition is different from the distribution of elements in the second graphic code in each partition. The first graphic code is a graphic code in the first graphic verification component, and the second graphic code is another graphic code in the first graphic verification component.

[0170] In some examples, the number of graphic codes in the graphic verification code is the same as the number of elements defined by the second graphic verification component.

[0171] In some examples, the first graphical verification component and / or the second graphical verification component has an interfering graphic.

[0172] In some examples, the verification interface further includes a target area, the target area including the selected area and at least some elements in each graphic code except the elements in the selected area.

[0173] Fig.16 This is a structural schematic diagram of another embodiment of the graphic verification code display device provided in the fifth aspect of the present application. Fig.16 and Fig.15 The difference is that the graphic verification code display device 700 may further include a selection module 703 and an update module 704.

[0174] The receiving module 701 may also be used to receive a selected input.

[0175] The selection module 703 may be configured to respond to a selection input, and the element of the graphic code located in the selected area is replaced from the first element to the second element.

[0176] The second element is another element in the graphic code except the first element.

[0177] In some examples, the selection input includes a sliding input. The partition in the background image where the second element is located is the first N partitions or the last N partitions of the partition in the background image where the first element is located, where N is a positive integer.

[0178] The receiving module 701 may also be used to receive a refresh input.

[0179] The updating module 704 may be configured to update the second graphical verification component and the elements in the target area in the verification interface in response to a refresh input.

[0180] A sixth aspect of the present application provides a graphic verification code verification device. Fig.17 This is a schematic diagram of the structure of an embodiment of a graphic verification code verification device provided in the sixth aspect of the present application. Fig.17 As shown, the graphic code verification device 800 may include a receiving module 801 , a selecting module 802 and a verification module 803 .

[0181] The receiving module 801 may be configured to receive a selected input of each graphic code in the graphic verification code.

[0182] The graphic verification code includes a first graphic verification component and a second graphic verification component. The first graphic verification component includes various graphic codes. The graphic code includes a background image and randomly acquired elements located in each partition of the background image and having a randomly generated corresponding relationship with the area identifier of the partition. The second graphic verification component is obtained based on the verification element, and the verification element includes some elements of the elements of the graphic code.

[0183] In some examples, the randomly generated correspondence between elements in the first graphic code and region identifiers of each partition in the background image is different from the randomly generated correspondence between elements in the second graphic code and region identifiers of each partition in the background image. The first graphic code is one of the graphic codes in the first graphic verification component, and the second graphic code is another graphic code in the first graphic verification component.

[0184] In some examples, the second graphical authentication component includes an authentication element.

[0185] In some other examples, the second graphic verification component includes prompt information, and the prompt information is used to define the verification element.

[0186] In some examples, the number of graphic codes in the graphic verification code is the same as the number of elements defined by the second graphic verification component.

[0187] In some examples, the first graphical verification component and / or the second graphical verification component has an interfering graphic.

[0188] In some examples, the region identification includes a region number or pixel coordinates.

[0189] The selection module 802 may be configured to select a target element in each graphic code in response to a selection input.

[0190] The verification module 803 may be used to determine that the verification is successful when the target element matches the verification element defined by the second graphic verification component.

[0191] In the embodiment of the present application, in response to the received selection input of each graphic code in the graphic verification code, a target element is selected in each graphic code. When the target element matches the verification element defined by the second graphic verification component, the verification is determined to be successful. Due to the dual random effects of element acquisition and corresponding relationship generation, even if a machine or automatic program identifies the verification element defined by the second graphic verification component, it is difficult to crack the corresponding relationship between the element and the area identifier in the graphic verification code, that is, it is difficult to crack the corresponding relationship between the element and the partition in the graphic verification code, which increases the difficulty of cracking and reduces the risk of malicious cracking of the graphic verification code, thereby improving the security and accuracy of the verification performed using the graphic verification code.

[0192] In some examples, the selection input includes a sliding input. The selection module 802 can be used to: in response to the sliding input, replace the first element selected in the graphic code with a second element, the partition in the background image where the second element is located is the first N partitions or the last N partitions of the partition in the background image where the first element is located, N is a positive integer; and use the second element as the target element.

[0193] In some examples, the selection module 802 may be used to: determine the partition in the graphic code selected by the selection input in response to the selection input; and select the element corresponding to the region identifier of the selected partition as the target element according to the correspondence between the element and the region identifier.

[0194] In some examples, the verification module 803 may be used to determine that the verification is successful when the target element is exactly the same as the verification element in the arrangement order of the graphic code in the graphic verification code.

[0195] The seventh aspect of the present application provides a graphic verification code generating device. Fig.18 This is a structural diagram of an embodiment of a graphic verification code generation device provided in the seventh aspect of the present application. Fig.18 As shown, the graphic verification code generating device 900 includes a memory 901 , a processor 902 , and a computer program stored in the memory 901 and executable on the processor 902 .

[0196] In an example, the processor 902 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0197] The memory 901 may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the model publishing method in the distributed system of the present application.

[0198] The processor 902 runs a computer program corresponding to the executable program code by reading the executable program code stored in the memory 901 , so as to implement the method for generating a graphic verification code in the above embodiment.

[0199] In one example, the graphic verification code generating device 900 may further include a communication interface 903 and a bus 904. Fig.18 As shown, the memory 901, the processor 902, and the communication interface 903 are connected via a bus 904 and communicate with each other.

[0200] The communication interface 903 is mainly used to realize the communication between the modules, devices, units and / or equipment in the embodiment of the present application. The communication interface 903 can also be used to access input devices and / or output devices.

[0201] The bus 904 includes hardware, software or both, and couples the components of the graphic verification code generating device 900 to each other. For example, but not limitation, the bus 904 may include an accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics bus, an enhanced industry standard architecture (Enhanced Industry Standard Architecture, EISA) bus, a front side bus (Front Side Bus, FSB), a hypertransport (HyperTransport, HT) interconnection, an industrial standard architecture (Industrial Standard Architecture, ISA) bus, an infinite bandwidth interconnection, a low pin count (Low pincount, LPC) bus, a memory bus, a microchannel architecture (MicroChannel Architecture, MCA) bus, a peripheral component interconnect (Peripheral Component Interconnect, PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (Serial Advanced Technology Attachment, SATA) bus, a video electronics standards association local (Video Electronics Standards Association Local Bus, VLB) bus or other suitable buses or a combination of two or more of these. Where appropriate, the bus 904 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.

[0202] In an eighth aspect of the present application, a graphic verification code display device is provided. The graphic verification code display device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor runs the computer program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the graphic verification code display method in the above embodiment.

[0203] In one example, the graphic verification code display device may further include a communication interface and a bus. The memory, the processor, and the communication interface are connected through the bus and communicate with each other.

[0204] The structures of the memory, processor, communication interface and bus in the above-mentioned graphic verification code display device can be referred to Fig.18 The structure and related description of the graphic verification code generating device shown are not repeated here.

[0205] In a ninth aspect of the present application, a graphic verification code verification device is provided. The graphic verification code verification device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor runs the computer program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the graphic verification code verification method in the above embodiment.

[0206] In one example, the graphic verification code verification device may further include a communication interface and a bus. The memory, the processor, and the communication interface are connected through the bus and communicate with each other.

[0207] The structures of the memory, processor, communication interface and bus in the above-mentioned graphic verification code verification device can be referred to Fig.18 The structure and related description of the graphic verification code generating device shown are not repeated here.

[0208] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the graphic verification code generation method of the first aspect, the graphic verification code display method of the second aspect, or the graphic verification code verification method of the third aspect can be implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here. Among them, the above-mentioned computer-readable storage medium may include a non-transitory computer-readable storage medium, such as a read-only memory (Read-Only Memory, referred to as ROM), a random access memory (Random Access Memory, referred to as RAM), a disk or an optical disk, etc., which is not limited here.

[0209] It should be clear that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. For device embodiments, equipment embodiments, and computer-readable storage medium embodiments, the relevant parts can refer to the description part of the method embodiment. The present application is not limited to the specific steps and structures described above and shown in the figures. Those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application. In addition, for the sake of brevity, a detailed description of known method technologies is omitted here.

[0210] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.

[0211] Those skilled in the art should understand that the above embodiments are exemplary rather than restrictive. Different technical features appearing in different embodiments can be combined to achieve beneficial effects. Based on the study of the drawings, the specification and the claims, those skilled in the art should be able to understand and implement other variations of the disclosed embodiments. In the claims, the term "comprising" does not exclude other devices or steps; the quantifier "one" does not exclude multiple; the terms "first" and "second" are used to indicate names rather than to indicate any specific order. Any figure marks in the claims should not be understood as limiting the scope of protection. The functions of multiple parts appearing in the claims can be implemented by a single hardware or software module. The appearance of certain technical features in different dependent claims does not mean that these technical features cannot be combined to achieve beneficial effects.

Claims

1. A method for generating a graphic verification code, characterized in that: include: Get multiple elements randomly from the element database; Obtaining the region identifier of each partition in a preset background image, where the partition is obtained by dividing the background image; Randomly generate a plurality of correspondences between the elements and the region identifiers; Generate a graphic verification code according to the distribution of each partition in the background image, the elements and the area identifiers, the graphic verification code including a first graphic verification component and a second graphic verification component, the first graphic verification component including each graphic code, the graphic code including the background image and the elements located in each partition of the background image and having the corresponding relationship with the area identifiers of the partitions, the second graphic verification component is obtained according to verification elements, the verification elements including some of the elements of the graphic code; The method further comprises: During the verification of the graphic verification code, in response to a selection input, determining a partition in the graphic code selected by the selection input; According to the correspondence between the element and the region identifier, taking the element corresponding to the region identifier of the selected partition as the target element; In the case where the target element matches the verification element defined by the second graphic verification component, determining that the verification is successful; Among them, the verification interface only displays the elements located in the selected area, and the selected area includes the first element in each graphic code in the graphic verification code; the partition in the background image where the second element is located is the first N partitions or the last N partitions of the partition in the background image where the first element is located, and N is a positive integer; in the verification interface, each graphic code in the graphic verification code is displayed in the form of a roller, and the elements in the selected area are changed according to the user's selection, so that the element of the graphic code located in the selected area is changed from the first element to the second element.

2. The method according to claim 1, characterized in that The correspondence between the elements in the first graphic code and the region identifiers of each partition in the background image is different from the correspondence between the elements in the second graphic code and the region identifiers of each partition in the background image, The first graphic code is one of the graphic codes in the first graphic verification component, and the second graphic code is another of the graphic codes in the first graphic verification component.

3. The method according to claim 1, characterized in that Also includes: Receive refresh instructions; In response to the refresh instruction, multiple elements are randomly re-acquired from the element database, the correspondence between the acquired multiple elements and the area identifier is randomly re-generated, and a new graphic verification code is generated based on the distribution of each partition in the background image, the re-randomly acquired multiple elements and the area identifier.

4. The method according to claim 1, characterized in that Also includes: An interference pattern is added to the first pattern verification component and / or the second pattern verification component.

5. The method according to claim 1, characterized in that Also includes: A verification interface is displayed, the verification interface including a selected area and the second graphic verification component, the selected area including an element of each graphic code in the graphic verification code.

6. The method according to claim 1, characterized in that The second graphical verification component includes the verification element; or, The second graphic verification component includes prompt information, and the prompt information is used to define the verification element.

7. The method according to claim 1, characterized in that The number of the graphic codes in the graphic verification code is the same as the number of the elements defined by the second graphic verification component.

8. The method according to claim 1, characterized in that The region identifier includes a region number or pixel coordinates.

9. A method for displaying a graphic verification code, characterized in that: include: Receive trigger input; In response to the trigger input, a verification interface is displayed, the verification interface including a selected area and a second graphic verification component in the graphic verification code, the selected area including an element in each graphic code in the graphic verification code, the graphic verification code including a first graphic verification component and a second graphic verification component, the first graphic verification component including each of the graphic codes, the graphic code including a background image and randomly acquired elements located in each partition of the background image and having a randomly generated corresponding relationship with a region identifier of the partition, the partition being obtained by dividing the background image, the second graphic verification component being obtained according to the verification element, and the verification element including some of the elements in the elements of the graphic code; The method further comprises: During the verification of the graphic verification code, in response to a selection input, determining a partition in the graphic code selected by the selection input; According to the correspondence between the element and the region identifier, taking the element corresponding to the region identifier of the selected partition as the target element; In the case where the target element matches the verification element defined by the second graphic verification component, determining that the verification is successful; Among them, the verification interface only displays the elements located in the selected area, and the selected area includes the first element in each graphic code in the graphic verification code; the partition in the background image where the second element is located is the first N partitions or the last N partitions of the partition in the background image where the first element is located, and N is a positive integer; in the verification interface, each graphic code in the graphic verification code is displayed in the form of a roller, and the elements in the selected area are changed according to the user's selection, so that the element of the graphic code located in the selected area is changed from the first element to the second element.

10. The method according to claim 9, characterized in that The verification interface further includes a target area, and the target area includes the selected area and at least part of the elements in each of the graphic codes except the elements in the selected area.

11. The method according to claim 9, characterized in that The selected input includes a sliding input.

12. The method according to claim 9, characterized in that The distribution of the elements in the first graphic code in each partition is different from the distribution of the elements in the second graphic code in each partition. The first graphic code is one of the graphic codes in the first graphic verification component, and the second graphic code is another of the graphic codes in the first graphic verification component.

13. The method according to claim 10, characterized in that Also includes: Receive refresh input; In response to a refresh input, the second graphic verification component in the verification interface and the element in the target area are updated.

14. The method according to claim 9, characterized in that The second graphical verification component includes the verification element; or, The second graphic verification component includes prompt information, and the prompt information is used to define the verification element.

15. The method according to claim 9, characterized in that The number of the graphic codes in the graphic verification code is the same as the number of the elements defined by the second graphic verification component.

16. The method according to claim 9, characterized in that The first graphic verification component and / or the second graphic verification component has an interference pattern.

17. The method according to claim 9, characterized in that The region identifier includes a region number or pixel coordinates.

18. A method for verifying a graphic verification code, characterized in that: include: receiving a selection input of each graphic code in a graphic verification code, the graphic verification code comprising a first graphic verification component and a second graphic verification component, the first graphic verification component comprising each of the graphic codes, the graphic code comprising a background image and randomly acquired elements located in each partition of the background image and having a randomly generated correspondence relationship with a region identifier of the partition, the partition being obtained by dividing the background image, the second graphic verification component being obtained according to verification elements, the verification elements comprising some of the elements of the graphic code; In response to the selection input, selecting a target element in each of the graphic codes; In the case where the target element matches the verification element defined by the second graphic verification component, determining that the verification is successful; In response to the selection input, selecting a target element in each of the graphic codes comprises: In response to the selection input, determining the partition in the graphic code selected by the selection input, wherein the verification interface only displays elements located in the selected area, the selected area includes the first element in each graphic code in the graphic verification code; the partition in the background image where the second element is located is the first N partitions or the last N partitions of the partition in the background image where the first element is located, where N is a positive integer; in the verification interface, each graphic code in the graphic verification code is displayed in the form of a roller, and the elements in the selected area are changed according to the user's selection, so that the element of the graphic code located in the selected area is changed from the first element to the second element; According to the correspondence between the element and the region identifier, the element corresponding to the region identifier of the selected partition is used as the target element.

19. The method according to claim 18, characterized in that The selected input includes a sliding input.

20. The method according to claim 18, characterized in that The step of determining that the verification is successful when the target element matches the verification element defined by the second graphic verification component comprises: In the case that the target element is completely identical to the verification element in the arrangement order of the graphic codes in the graphic verification code, it is determined that the verification is successful.

21. The method according to claim 18, characterized in that The randomly generated correspondence between the elements in the first graphic code and the region identifiers of each partition in the background image is different from the randomly generated correspondence between the elements in the second graphic code and the region identifiers of each partition in the background image, The first graphic code is one of the graphic codes in the first graphic verification component, and the second graphic code is another of the graphic codes in the first graphic verification component.

22. The method according to claim 18, characterized in that The second graphical verification component includes the verification element; or, The second graphic verification component includes prompt information, and the prompt information is used to define the verification element.

23. The method according to claim 18, characterized in that The number of the graphic codes in the graphic verification code is the same as the number of the elements defined by the second graphic verification component.

24. The method according to claim 18, characterized in that Also includes: The first graphic verification component and / or the second graphic verification component has an interference pattern.

25. The method according to claim 18, characterized in that The region identifier includes a region number or pixel coordinates.

26. A graphic verification code generating device, characterized in that: include: A first acquisition module is used to randomly acquire multiple elements from an element database; A second acquisition module is used to obtain the region identifier of each partition in a preset background image, where the partition is obtained by dividing the background image; A first generating module, used for randomly generating a plurality of corresponding relationships between the elements and the region identifiers; A second generating module is configured to generate a graphic verification code according to the distribution of each partition in the background image, the elements and the area identifiers, the graphic verification code comprising a first graphic verification component and a second graphic verification component, the first graphic verification component comprising each graphic code, the graphic code comprising the background image and the elements located in each partition of the background image and having the corresponding relationship with the area identifiers of the partitions, the second graphic verification component being obtained according to verification elements, the verification elements comprising some of the elements of the graphic code; a selection module, configured to, in response to a selection input, determine the partition in the graphic code selected by the selection input during the verification of the graphic verification code, and, according to the correspondence between the element and the area identifier, use the element corresponding to the area identifier of the selected partition as a target element; a verification module, configured to determine that verification is successful if the target element matches the verification element defined by the second graphical verification component; The verification interface only displays elements in the selected area, the selected area includes the first element in each graphic code in the graphic verification code; the partition in the background image where the second element is located is the first N partitions or the last N partitions of the partition in the background image where the first element is located, where N is a positive integer; In the verification interface, each graphic code in the graphic verification code is displayed in the form of a roller, and the elements in the selected area are changed according to the user's selection, so that the elements of the graphic code located in the selected area are changed from the first element to the second element.

27. A graphic verification code display device, characterized in that: include: A receiving module, used for receiving a trigger input; a display module, for displaying a verification interface in response to the trigger input, wherein the verification interface includes a selected area and a second graphic verification component in the graphic verification code, wherein the selected area includes an element in each graphic code in the graphic verification code, wherein the graphic verification code includes a first graphic verification component and a second graphic verification component, wherein the first graphic verification component includes each of the graphic codes, wherein the graphic code includes a background image and randomly acquired elements located in each partition of the background image and having a randomly generated corresponding relationship with a region identifier of the partition, wherein the partition is obtained by dividing the background image, wherein the second graphic verification component is obtained according to the verification element, and wherein the verification element includes some of the elements in the elements of the graphic code; a selection module, configured to, in response to a selection input, determine the partition in the graphic code selected by the selection input during the verification of the graphic verification code, and, according to the correspondence between the element and the area identifier, use the element corresponding to the area identifier of the selected partition as a target element; a verification module, configured to determine that verification is successful if the target element matches the verification element defined by the second graphical verification component; The verification interface only displays elements in the selected area, the selected area includes the first element in each graphic code in the graphic verification code; the partition in the background image where the second element is located is the first N partitions or the last N partitions of the partition in the background image where the first element is located, where N is a positive integer; In the verification interface, each graphic code in the graphic verification code is displayed in the form of a roller, and the elements in the selected area are changed according to the user's selection, so that the elements of the graphic code located in the selected area are changed from the first element to the second element.

28. A graphic verification code verification device, characterized in that: include: a receiving module, configured to receive a selected input of each graphic code in a graphic verification code, wherein the graphic verification code includes a first graphic verification component and a second graphic verification component, wherein the first graphic verification component includes each of the graphic codes, wherein the graphic code includes a background image and randomly acquired elements located in each partition of the background image and having a randomly generated corresponding relationship with a region identifier of the partition, wherein the partition is obtained by dividing the background image, and wherein the second graphic verification component is obtained according to verification elements, wherein the verification elements include some of the elements of the graphic code; A selection module, for selecting a target element in each of the graphic codes in response to the selection input; a verification module, configured to determine that verification is successful if the target element matches the verification element defined by the second graphical verification component; The selection module is specifically used to: in response to the selection input, determine the partition in the graphic code selected by the selection input, and, according to the correspondence between the element and the area identifier, use the element corresponding to the area identifier of the selected partition as the target element; The verification interface only displays elements in the selected area, the selected area includes the first element in each graphic code in the graphic verification code; the partition in the background image where the second element is located is the first N partitions or the last N partitions of the partition in the background image where the first element is located, where N is a positive integer; In the verification interface, each graphic code in the graphic verification code is displayed in the form of a roller, and the elements in the selected area are changed according to the user's selection, so that the elements of the graphic code located in the selected area are changed from the first element to the second element.

29. A graphic verification code generating device, characterized in that: include: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the method for generating a graphic verification code according to any one of claims 1 to 8 is implemented.

30. A graphic verification code display device, characterized in that: include: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the graphic verification code display method according to any one of claims 9 to 17 is implemented.

31. A graphic verification code verification device, characterized in that: include: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the graphic verification code verification method according to any one of claims 18 to 25 is implemented.

32. A computer storage medium, characterized in that The computer storage medium stores computer program instructions, which, when executed by a processor, implement the graphic verification code generation method according to any one of claims 1 to 8, the graphic verification code display method according to any one of claims 9 to 17, or the graphic verification code verification method according to any one of claims 18 to 25.