Verification method and device based on spherical verification code

Through the verification method based on the sphere verification code, the problem that existing verification codes are easily cracked through the division and comparison of the sphere model is solved, the effectiveness and accuracy of the verification code are improved, and a new type of verification code with high visual experience is provided.

CN118429757BActive Publication Date: 2024-11-05THREE GORGES HI TECH INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410329964.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-22
Publication Date
2024-11-05
Estimated Expiration
2044-03-22

AI Technical Summary

Technical Problem

The verification of existing verification codes is low and easy to be cracked by computers, especially with the development of big data artificial intelligence.

Method used

Using the verification method based on the sphere verification code, by creating the sphere model, determining the verification code classification based on the verification scene information, dividing the verification area, generating the verification code corresponding to the verification area, and obtaining the entered verification information and benchmarks through the sphere model after displaying it Compare the information and complete verification if it matches.

Benefits of technology

It improves the difficulty of cracking verification codes, realizes the diversity of verification codes, provides a high visual experience, and enhances the verification effectiveness and accuracy of verification codes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118429757B_ABST
    Figure CN118429757B_ABST
Patent Text Reader

Abstract

The present invention discloses a verification method and device based on a spherical verification code, which relates to the field of data processing technology, and the main purpose is to solve the problem of low verification validity and accuracy of existing verification codes. It includes: creating a spherical model, and determining the verification code classification of the spherical model based on verification scene information; dividing the verification area of ​​the spherical model according to the verification code classification, and generating a verification code corresponding to the verification area; after displaying the verification code, obtaining the entered verification information through the spherical model, and comparing the verification information with the reference information of the verification code; if the reference information matches the verification information, the verification of the verification code is completed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a verification method and device based on a sphere verification code. Background Art

[0002] CAPTCHA is a technology used to distinguish between computers and human users. By issuing tasks or questions that only human users can answer correctly, but computer programs find it difficult or impossible to solve them effectively, it prevents automated robots (such as crawlers, malware) from abusing websites and improves the security of network services.

[0003] At present, the existing verification code-based verification method usually randomly generates a digital verification code or an image verification area, and the user enters a number based on the displayed digital verification code, or moves the image verification area for verification. However, with the gradual development of big data artificial intelligence, digital verification codes and mobile image verification areas can be easily cracked by computers, which greatly reduces the verification effectiveness and accuracy of verification codes. Summary of the invention

[0004] In view of this, the present invention provides a verification method and device based on a sphere verification code, the main purpose of which is to solve the problems of low verification validity and accuracy of existing verification codes.

[0005] According to one aspect of the present invention, a verification method based on a sphere verification code is provided, comprising:

[0006] Creating a spherical model, and determining a verification code classification of the spherical model based on verification scene information;

[0007] Dividing the spherical model into verification areas according to the verification code classification, and generating verification codes corresponding to the verification areas;

[0008] After displaying the verification code, obtaining the entered verification information through the spherical model, and comparing the verification information with the reference information of the verification code;

[0009] If the reference information matches the verification information, the verification of the verification code is completed.

[0010] Further, the creating a spherical model and determining the verification code classification of the spherical model based on the verification scene information includes:

[0011] Constructing a spherical model based on a virtual three-dimensional sphere, wherein at least two sequence regions are divided on the spherical model according to spherical coordinates;

[0012] The verification code classification matching the verification scene information is determined based on a preset scene classification mapping relationship, wherein the preset scene classification mapping relationship includes a correspondence between different verification code classifications and different verification scene information, wherein the verification code classification includes a line verification code classification and an area verification code classification, and the verification scene information is used to characterize the scene content for generating the verification code.

[0013] Furthermore, the step of dividing the spherical model into verification areas according to the verification code classification and generating verification codes corresponding to the verification areas includes:

[0014] If the verification code classification is the line verification code classification, dividing the line verification area according to at least two continuous sequence areas;

[0015] If the obtained line verification area is a non-discontinuous area, the screened line style is retrieved, and a first line verification code is generated based on the line style and the line verification area;

[0016] If the obtained line verification area is a discontinuous area, the discontinuous area is supplemented, and a second line verification code is generated based on the screened line style and the line verification area.

[0017] Furthermore, the method further comprises:

[0018] Obtain the entered default line style, and obtain the client display parameters for displaying the verification code;

[0019] The default line style is filtered based on the display parameter to obtain the filtered line style, wherein the display parameter includes at least one of a display pixel value, a browser version, and system resource usage data.

[0020] Furthermore, the step of dividing the spherical model into verification areas according to the verification code classification and generating verification codes corresponding to the verification areas includes:

[0021] If the verification code classification is the regional verification code classification, determining a verification code object corresponding to the regional verification code classification based on a regional classification sequence, wherein at least two verification code objects in the regional classification sequence are polled in sequence according to a time sequence, and the verification code objects include a digital verification code, a text verification code, and an image verification code;

[0022] A preset number of the verification areas are randomly selected according to the area verification code classification, and the verification code objects are inserted into the verification areas to obtain the verification codes.

[0023] Furthermore, before generating the verification code corresponding to the verification area, the method further includes:

[0024] Generate benchmark information based on the verification code classification, the benchmark verification information including line benchmark verification information and area benchmark verification information;

[0025] After generating the verification code corresponding to the verification area, the method further includes:

[0026] The verification code is bound to the reference verification information, and a verification floating comparison value range corresponding to the reference verification information is configured so that the verification information and the reference information are matched within the verification floating comparison value range.

[0027] Furthermore, the method further comprises:

[0028] Obtaining a comparison result between the verification information and the reference information;

[0029] If the comparison result is within the verification floating comparison value range, it is determined that the reference information matches the verification information.

[0030] According to another aspect of the present invention, there is provided a verification device based on a sphere verification code, comprising:

[0031] A creation module, used for creating a spherical model, and determining a verification code classification of the spherical model based on verification scene information;

[0032] A generation module, used for dividing the spherical model into verification areas according to the verification code classification, and generating verification codes corresponding to the verification areas;

[0033] A comparison module, for obtaining input verification information through the sphere model after displaying the verification code, and comparing the verification information with the reference information of the verification code;

[0034] A verification module is used to complete the verification of the verification code if the reference information matches the verification information.

[0035] Furthermore, the creation module is specifically used to construct a spherical model based on a virtual three-dimensional sphere, and at least two sequence areas are divided on the spherical model according to the spherical coordinates; based on a preset scene classification mapping relationship, a verification code classification matching the verification scene information is determined, and the preset scene classification mapping relationship includes a correspondence between different verification code classifications and different verification scene information, and the verification code classification includes a line verification code classification and an area verification code classification, and the verification scene information is used to characterize the scene content for generating the verification code.

[0036] Furthermore, the generation module is specifically used to divide the line verification area according to at least two continuous sequence areas if the verification code classification is the line verification code classification; if the obtained line verification area is a non-discontinuous area, the screened line style is retrieved, and a first line verification code is generated based on the line style and the line verification area; if the obtained line verification area is a discontinuous area, the discontinuous area is supplemented, and a second line verification code is generated based on the screened line style and the line verification area.

[0037] Furthermore, the device also includes:

[0038] An acquisition module, used to acquire the entered default line style and acquire the client display parameters for displaying the verification code;

[0039] The filtering module is used to filter the default line style based on the display parameters to obtain the filtered line style, and the display parameters include at least one of display pixel value, browser version, and system resource usage data.

[0040] Furthermore, the generation module is specifically used to determine the verification code object corresponding to the regional verification code classification based on the regional classification sequence if the verification code classification is the regional verification code classification, and at least two verification code objects in the regional classification sequence are polled in sequence according to a time sequence, and the verification code objects include digital verification codes, text verification codes and image verification codes; randomly select a preset number of the verification areas according to the regional verification code classification, and insert the verification code object in the verification area to obtain the verification code.

[0041] Furthermore, the device further comprises: a configuration module,

[0042] The generating module is further used to generate reference information based on the verification code classification, wherein the reference verification information includes line reference verification information and area reference verification information;

[0043] The configuration module is used to bind the verification code with the benchmark verification information, and configure a verification floating comparison value range corresponding to the benchmark verification information, so that the verification information and the benchmark information are matched within the verification floating comparison value range.

[0044] Furthermore, the device further comprises: a determination module,

[0045] The acquisition module is further used to obtain a comparison result between the verification information and the reference information;

[0046] The determination module is further configured to determine that the reference information matches the verification information if the comparison result is within the verification floating comparison value range.

[0047] According to another aspect of the present invention, a storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to execute operations corresponding to the above-mentioned verification method based on the sphere verification code.

[0048] According to another aspect of the present invention, there is provided a terminal, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0049] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the above-mentioned verification method based on the sphere verification code.

[0050] By means of the above technical solution, the technical solution provided by the embodiment of the present invention has at least the following advantages:

[0051] The present invention provides a verification method and device based on a spherical verification code. Compared with the prior art, the embodiment of the present invention creates a spherical model, and determines the verification code classification of the spherical model based on verification scene information; divides the spherical model into verification areas according to the verification code classification, and generates verification codes corresponding to the verification areas; after displaying the verification code, obtains input verification information through the spherical model, and compares the verification information with the reference information of the verification code; if the reference information matches the verification information, the verification of the verification code is completed, the difficulty of cracking the verification code is increased, the purpose of generating a variety of verification codes is achieved, and a new type of verification code with a high visual experience is provided in combination with a three-dimensional sphere and a verification code, thereby improving the verification effectiveness and accuracy of the verification code.

[0052] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0054] Figure 1 A flow chart of a verification method based on a sphere verification code provided by an embodiment of the present invention is shown;

[0055] Figure 2 A schematic diagram showing a sequence region on a spherical model provided by an embodiment of the present invention;

[0056] Figure 3 A block diagram of a verification device based on a spherical verification code provided by an embodiment of the present invention is shown;

[0057] Figure 4 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0058] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0059] The embodiment of the present invention provides a verification method based on a sphere verification code, such as Figure 1 As shown, the method includes:

[0060] 101. Create a sphere model, and determine a verification code classification of the sphere model based on verification scene information.

[0061] In an embodiment of the present invention, the current execution end may be a spherical verification code generating end, or may be a processing end for verifying the input spherical verification code, such as a server or a client, which is not specifically limited in the embodiment of the present invention. In addition, the verification method provided by the current execution end is applicable to scenarios where users need to perform identity authentication or action verification. For example, when a user needs to perform real action recognition verification, the user triggers a verification request, and the current execution end creates a spherical model, thereby generating a spherical model for verification. Among them, the spherical model is a three-dimensional virtual model of a sphere, which can be generated in advance in the current execution end through three-dimensional development software as a default model for calling.

[0062] It should be noted that the verification scenario information is used to characterize the specific scenario content of the current verification code output, including but not limited to password verification, membership verification, operation action verification, etc. in scenarios such as games, financial transactions, and access. The current execution end is pre-configured with verification code classifications of spherical models corresponding to different verification scenario information, which are not specifically limited in the embodiment of the present invention. Among them, the verification code classification is used to characterize the classification of the form in which the verification code is presented, including but not limited to line verification code classification, non-interrupted area, intermittent area, etc., which are not specifically limited in the embodiment of the present invention.

[0063] 102. Divide the spherical model into verification areas according to the verification code classification, and generate verification codes corresponding to the verification areas.

[0064] In an embodiment of the present invention, after the verification code classification is determined, the current execution end divides the spherical model into verification areas according to the verification code classification. Since the verification code classification includes line verification code classification, discontinuous area, etc., the verification area can be divided on the spherical model according to different classifications. For example, for the discontinuous area classification, when the verification area of ​​the spherical model is divided, the discontinuous area can be supplemented, and a line verification code is generated based on the screened line style and line verification area. The embodiment of the present invention does not make specific limitations.

[0065] It should be noted that after the verification area is divided, in order to improve the verification efficiency, when generating the spherical verification code, the current execution end can first determine the verification code object according to the verification code classification, for example, English text or numbers, etc., which is not specifically limited in the embodiment of the present invention. Then, after the verification code object is inserted into the verification area, the verification code finally displayed to the user is obtained.

[0066] 103. After displaying the verification code, obtaining input verification information through the spherical model, and comparing the verification information with the reference information of the verification code.

[0067] In the embodiment of the present invention, after the sphere verification code is generated, the verification code is displayed on the sphere model to instruct the user to enter the verification information on the sphere model, so as to compare it with the reference information of the verification code. At this time, the reference information is the verification object for generating the verification code, so as to determine whether the verification information entered by the user is correct.

[0068] It should be noted that, in the embodiment of the present invention, since the verification areas on the sphere model are spread all over the sphere, the sphere model is rotatable. Therefore, when entering verification information, the user can rotate the sphere model by clicking and dragging and enter the corresponding verification information in the corresponding verification area, or drag the picture to the corresponding verification area. The embodiment of the present invention does not make specific limitations.

[0069] 104. If the reference information matches the verification information, the verification of the verification code is completed.

[0070] In the embodiment of the present invention, if the reference information matches the verification information, it means that the verification information entered by the user matches the spherical verification code, and the verification of the spherical verification code is completed, which greatly improves the user's efficiency in using the verification code and the verification experience.

[0071] In another embodiment of the present invention, for further definition and explanation, the step of creating a spherical model and determining a verification code classification of the spherical model based on verification scene information includes:

[0072] Construct a sphere model based on a virtual three-dimensional sphere;

[0073] A verification code classification matching the verification scenario information is determined based on a preset scenario classification mapping relationship.

[0074] In order to generate the sphere verification code flexibly and accurately, the current execution end builds the sphere model based on the virtual three-dimensional sphere in the three-dimensional image software when creating the sphere model. At this time, at least two sequence areas are divided on the sphere model according to the sphere coordinates, such as Figure 2 As shown. Among them, the sequence area is used to characterize the area on the spherical model where the verification code can be generated. It can be divided by spherical coordinates. For example, the spherical coordinates are divided into n quadrilateral intervals (marked as 1,...,n respectively, where n is the sequence area identifier) ​​using the method of proportional longitude and latitude. Using spherical coordinates, the numbers 0-9 and 10 are respectively matched to blocks with different numbers according to fixed rules (for example, along the equatorial axis), and the correspondence with the coordinates of the vertices of the four blocks is recorded to obtain the sequence area in the spherical model. In addition, when the current execution end determines the verification code classification, it determines the verification code classification that matches the verification scene information based on the preset scene classification mapping relationship. At this time, the preset scene classification mapping relationship contains the correspondence between different verification code classifications and different verification scene information, so that the matching verification code classification is found from the preset scene classification mapping relationship according to the verification scene information.

[0075] In an embodiment of the present invention, verification code classification includes line verification code classification and area verification code classification. Line verification code classification is used to characterize the type of verification code generated by connecting multiple sequence areas, for example, a curve running through multiple sequence areas. Area verification code classification is the type of verification code generated corresponding to each sequence area in each sequence area, for example, verification codes are generated by sequence area 1 and sequence area 3 divided according to coordinates on a sphere. The embodiment of the present invention does not make specific limitations.

[0076] It should be noted that, in the embodiment of the present invention, when generating each sequence region, the Fibonacci sampling method can be used to generate n equally spaced coordinate points (which can be understood as block center points), and the blocks corresponding to the coordinate points are identified as 1..n. The coordinates of each block are set to p1,...pn, and a sequence num consisting of m numbers is generated. The m numbers (m<=n) num[1], num[2],...num[m] are respectively matched with blocks 1, 2, 3, 4...m according to the sequence rule to generate a corresponding relationship. For blocks that do not correspond to numbers, null is used to identify the corresponding numbers, and finally a tuple of blocks and numbers is obtained: (1,num[1]), (2,num[2]), (3,num[3]).. (m,num[m])..(m+1,null)...(n,null), and they are arranged in sequence to obtain a sequence region, such as Figure 2The sequence region 1 and the sequence region 2 shown are represented as (1, num[1]), (2, num[2]).

[0077] In another embodiment of the present invention, for further definition and explanation, the step of dividing the spherical model into verification areas according to the verification code classification and generating verification codes corresponding to the verification areas includes:

[0078] If the verification code classification is the line verification code classification, dividing the line verification area according to at least two continuous sequence areas;

[0079] If the obtained line verification area is a non-discontinuous area, the screened line style is retrieved, and a first line verification code is generated based on the line style and the line verification area;

[0080] If the obtained line verification area is a discontinuous area, the discontinuous area is supplemented, and a second line verification code is generated based on the screened line style and the line verification area.

[0081] In order to generate a valid verification code, thereby improving the diversity efficiency of verification code verification, the current information end first determines the specific verification code classification when dividing the verification area and generating the verification code, that is, when the verification code is classified as a line verification code classification, the line verification area is specifically divided according to at least two continuous sequence areas, so as to obtain a discontinuous area or a non-discontinuous area. Among them, when the line verification area is a non-discontinuous area, it means that the sequence areas are continuous, therefore, the line style that has been screened by the current execution end is retrieved, and the first line verification code is generated in this line verification area. When the line verification area is a discontinuous area, it means that the sequence areas are discontinuous, therefore, the current execution end supplements the discontinuous area. For example, if the original matching sequence areas are 1 and 3, the sequence area 2 can be supplemented, thereby generating a second line verification code in this line verification area based on the screened line style.

[0082] In another embodiment of the present invention, for further definition and description, the steps further include:

[0083] Obtain the entered default line style, and obtain the client display parameters for displaying the verification code;

[0084] The default line style is filtered based on the display parameter to obtain the filtered line style.

[0085] In order to generate a line-type verification code on the sphere model, thereby providing a more effective and flexible verification method, the current execution end obtains the default line style defined by the developer or user, and obtains the client display parameters. At this time, the display parameters include at least one of the display pixel value, browser version, and system resource usage data, which are not specifically limited in the embodiment of the present invention. Furthermore, the default line style is screened based on the display parameters, and the default line style includes but is not limited to dashed lines, solid lines, dot-dash lines, and other curves or straight lines, which are not specifically limited in the embodiment of the present invention.

[0086] In another embodiment of the present invention, for further definition and explanation, the step of dividing the spherical model into verification areas according to the verification code classification and generating verification codes corresponding to the verification areas includes:

[0087] If the verification code classification is the regional verification code classification, determining a verification code object corresponding to the regional verification code classification based on the regional classification sequence;

[0088] A preset number of the verification areas are randomly selected according to the area verification code classification, and the verification code objects are inserted into the verification areas to obtain the verification codes.

[0089] In order to generate a valid verification code to meet the verification requirements in different scenarios, in another implementation scenario, when the current execution end first determines that the verification code classification is a regional verification code classification, the verification code object is determined based on the regional classification sequence. At this time, at least two verification code objects are polled in sequence in the regional classification sequence. Among them, the regional classification sequence stores different verification code objects in a stack manner, and polls each verification code object in sequence in time sequence through a pointer, so that different verification code objects can be determined at different time sequences. Specifically, the verification code object includes a digital verification code, a text verification code, and an image verification code, which is not specifically limited in the embodiment of the present invention.

[0090] It should be noted that after the current execution end determines the verification code object, in order to achieve a diverse verification experience based on the verification code, a preset number of verification areas are randomly selected as the area for displaying the verification code object, and the determined verification object is inserted into this verification area to obtain the final verification code for the user online. Among them, the preset number can be half or one-third of the number of sequence areas, which is not specifically limited in the embodiment of the present invention.

[0091] In another embodiment of the present invention, for further definition and explanation, before the step of generating a verification code corresponding to the verification area, the method further includes:

[0092] Generate benchmark information based on the verification code classification;

[0093] After generating the verification code corresponding to the verification area, the method further includes:

[0094] The verification code is bound to the reference verification information, and a verification floating comparison value range corresponding to the reference verification information is configured so that the verification information and the reference information are matched within the verification floating comparison value range.

[0095] In order to achieve the purpose of the effectiveness of the spherical verification code verification, the current execution end also generates benchmark information based on the verification code. At this time, the verification code object can be directly configured as the benchmark information for comparison. Specifically, since the verification object is determined by line classification or area classification, at this time, the benchmark verification information includes line benchmark verification information and area benchmark verification information, which is not specifically limited in the embodiment of the present invention. Furthermore, the current execution end binds the verification code with the benchmark verification information, and configures the verification floating comparison value range corresponding to the benchmark verification information, so that the verification information and the benchmark information are matched within the verification floating comparison value range. Among them, the verification floating ratio range can be an acceptable error range configured for movement, clicks, etc. when the user needs to enter behavior data as verification information, and can be configured according to different verification scenarios, which is not specifically limited in the embodiment of the present invention.

[0096] In another embodiment of the present invention, for further definition and description, the steps further include:

[0097] Obtaining a comparison result between the verification information and the reference information;

[0098] If the comparison result is within the verification floating comparison value range, it is determined that the reference information matches the verification information.

[0099] In order to achieve effective and accurate sphere verification, the current execution end compares the verification information entered by the user with the reference information after obtaining it. At this time, the reference information is determined based on the verification object when generating the verification code, and the embodiment of the present invention does not make specific restrictions. Specifically, the comparison result is compared with the verification floating comparison value range. If the comparison result is within the verification floating comparison value range, it means that there is an allowable error when the user enters the verification information. Therefore, it is determined that the reference information and the verification information are also matched, that is, the verification of the sphere verification code is completed.

[0100] In a specific application scenario of an embodiment of the present invention, after generating a sphere verification code, the user can slide the screen to rotate the sphere around the axis and offset the axis while keeping the center of the sphere unchanged. The screen coordinates pscreen of the click are obtained by clicking the screen, and the spherical coordinates psphere of the click are obtained by transforming the screen coordinates to spherical coordinates, thereby obtaining the input verification information.

[0101] In a specific application scenario of an embodiment of the present invention, when obtaining verification information, the block number of the sequence area corresponding to the sequence is determined one by one according to the area corresponding to the spherical coordinates and the previous block vertex correspondence. For example, the four vertices of the block are compared with the coordinates in sequence (to determine whether the longitude is between the two sides, and to determine whether the latitude is between the two sides). Finally, the block number of the user input data is obtained, which is not specifically limited in the embodiment of the present invention.

[0102] The embodiment of the present invention provides a verification method based on a spherical verification code. Compared with the prior art, the embodiment of the present invention creates a spherical model, and determines the verification code classification of the spherical model based on verification scene information; divides the spherical model into verification areas according to the verification code classification, and generates verification codes corresponding to the verification areas; after displaying the verification code, obtains the entered verification information through the spherical model, and compares the verification information with the reference information of the verification code; if the reference information matches the verification information, the verification of the verification code is completed, the difficulty of cracking the verification code is increased, the purpose of generating a variety of verification codes is achieved, and a new type of verification code with a high visual experience is provided in combination with a three-dimensional sphere and a verification code, thereby improving the verification effectiveness and accuracy of the verification code.

[0103] Furthermore, as a response to the above Figure 1 The implementation of the method shown in the figure, the embodiment of the present invention provides a verification device based on a spherical verification code, such as Figure 3 As shown, the device comprises:

[0104] A creation module 21, used for creating a spherical model and determining a verification code classification of the spherical model based on verification scene information;

[0105] A generating module 22, configured to divide the spherical model into verification areas according to the verification code classification, and generate verification codes corresponding to the verification areas;

[0106] A comparison module 23 is used to obtain the input verification information through the sphere model after displaying the verification code, and compare the verification information with the reference information of the verification code;

[0107] The verification module 24 is configured to complete the verification of the verification code if the reference information matches the verification information.

[0108] Furthermore, the creation module is specifically used to construct a spherical model based on a virtual three-dimensional sphere, and at least two sequence areas are divided on the spherical model according to the spherical coordinates; based on a preset scene classification mapping relationship, a verification code classification matching the verification scene information is determined, and the preset scene classification mapping relationship includes a correspondence between different verification code classifications and different verification scene information, and the verification code classification includes a line verification code classification and an area verification code classification, and the verification scene information is used to characterize the scene content for generating the verification code.

[0109] Furthermore, the generation module is specifically used to divide the line verification area according to at least two continuous sequence areas if the verification code classification is the line verification code classification; if the obtained line verification area is a non-discontinuous area, the screened line style is retrieved, and a first line verification code is generated based on the line style and the line verification area; if the obtained line verification area is a discontinuous area, the discontinuous area is supplemented, and a second line verification code is generated based on the screened line style and the line verification area.

[0110] Furthermore, the device also includes:

[0111] An acquisition module, used to acquire the entered default line style and acquire the client display parameters for displaying the verification code;

[0112] The filtering module is used to filter the default line style based on the display parameters to obtain the filtered line style, and the display parameters include at least one of display pixel value, browser version, and system resource usage data.

[0113] Furthermore, the generation module is specifically used to determine the verification code object corresponding to the regional verification code classification based on the regional classification sequence if the verification code classification is the regional verification code classification, and at least two verification code objects in the regional classification sequence are polled in sequence according to a time sequence, and the verification code objects include digital verification codes, text verification codes and image verification codes; randomly select a preset number of the verification areas according to the regional verification code classification, and insert the verification code object in the verification area to obtain the verification code.

[0114] Furthermore, the device further comprises: a configuration module,

[0115] The generating module is further used to generate reference information based on the verification code classification, wherein the reference verification information includes line reference verification information and area reference verification information;

[0116] The configuration module is used to bind the verification code with the benchmark verification information, and configure a verification floating comparison value range corresponding to the benchmark verification information, so that the verification information and the benchmark information are matched within the verification floating comparison value range.

[0117] Furthermore, the device further comprises: a determination module,

[0118] The acquisition module is further used to obtain a comparison result between the verification information and the reference information;

[0119] The determination module is further configured to determine that the reference information matches the verification information if the comparison result is within the verification floating comparison value range.

[0120] The embodiment of the present invention provides a verification device based on a spherical verification code. Compared with the prior art, the embodiment of the present invention creates a spherical model, and determines the verification code classification of the spherical model based on verification scene information; divides the spherical model into verification areas according to the verification code classification, and generates verification codes corresponding to the verification areas; after displaying the verification code, obtains the entered verification information through the spherical model, and compares the verification information with the reference information of the verification code; if the reference information matches the verification information, the verification of the verification code is completed, the difficulty of cracking the verification code is increased, the purpose of generating a variety of verification codes is achieved, and a new type of verification code with a high visual experience is provided in combination with a three-dimensional sphere and a verification code, thereby improving the verification effectiveness and accuracy of the verification code.

[0121] According to an embodiment of the present invention, a storage medium is provided, wherein the storage medium stores at least one executable instruction, and the computer executable instruction can execute the verification method based on the sphere verification code in any of the above method embodiments.

[0122] Figure 4 A schematic diagram of the structure of a terminal provided according to an embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the terminal.

[0123] like Figure 4 As shown, the terminal may include: a processor (processor) 402 , a communication interface (Communications Interface) 404 , a memory (memory) 406 , and a communication bus 408 .

[0124] The processor 402 , the communication interface 404 , and the memory 406 communicate with each other via a communication bus 408 .

[0125] The communication interface 404 is used to communicate with other devices such as clients or other servers.

[0126] The processor 402 is used to execute the program 410, and specifically can execute the relevant steps in the above-mentioned verification method embodiment based on the sphere verification code.

[0127] Specifically, the program 410 may include program codes, which include computer operation instructions.

[0128] The processor 402 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the terminal may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0129] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0130] The program 410 may be specifically configured to enable the processor 402 to perform the following operations:

[0131] Creating a spherical model, and determining a verification code classification of the spherical model based on verification scene information;

[0132] Dividing the spherical model into verification areas according to the verification code classification, and generating verification codes corresponding to the verification areas;

[0133] After displaying the verification code, obtaining the entered verification information through the spherical model, and comparing the verification information with the reference information of the verification code;

[0134] If the reference information matches the verification information, the verification of the verification code is completed.

[0135] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than that here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0136] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A verification method based on a sphere verification code, characterized in that: include: Creating a spherical model, and determining a verification code classification of the spherical model based on verification scene information, wherein at least two sequence regions are divided on the spherical model according to spherical coordinates; Dividing the spherical model into verification areas according to the verification code classification, and generating verification codes corresponding to the verification areas; After displaying the verification code, obtaining the entered verification information through the spherical model, and comparing the verification information with the reference information of the verification code; If the reference information matches the verification information, the verification of the verification code is completed; The verification code classification includes line verification code classification and area verification code classification, and the step of dividing the spherical model into verification areas according to the verification code classification and generating verification codes corresponding to the verification areas includes: If the verification code classification is the line verification code classification, dividing the line verification area according to at least two continuous sequence areas; If the obtained line verification area is a non-discontinuous area, the screened line style is retrieved, and a first line verification code is generated based on the line style and the line verification area; If the obtained line verification area is a discontinuous area, the discontinuous area is supplemented, and a second line verification code is generated based on the screened line style and the line verification area; The step of dividing the spherical model into verification areas according to the verification code classification and generating verification codes corresponding to the verification areas comprises: If the verification code classification is the regional verification code classification, determining a verification code object corresponding to the regional verification code classification based on a regional classification sequence, wherein at least two verification code objects in the regional classification sequence are polled in sequence according to a time sequence, and the verification code objects include a digital verification code, a text verification code, and an image verification code; A preset number of the verification areas are randomly selected according to the area verification code classification, and the verification code objects are inserted into the verification areas to obtain the verification codes.

2. The method according to claim 1, characterized in that The step of creating a spherical model and determining a verification code classification of the spherical model based on verification scene information includes: Constructing a spherical model based on a virtual three-dimensional sphere, wherein at least two sequence regions are divided on the spherical model according to spherical coordinates; The verification code classification matching the verification scenario information is determined based on a preset scenario classification mapping relationship, wherein the preset scenario classification mapping relationship includes a correspondence between different verification code classifications and different verification scenario information, and the verification scenario information is used to characterize the scenario content for generating the verification code.

3. The method according to claim 1, characterized in that The method further comprises: Obtain the entered default line style, and obtain the client display parameters for displaying the verification code; The default line style is filtered based on the display parameter to obtain the filtered line style, wherein the display parameter includes at least one of a display pixel value, a browser version, and system resource usage data.

4. The method according to claim 2, characterized in that: Before generating the verification code corresponding to the verification area, the method further includes: Generate benchmark verification information based on the verification code classification, the benchmark verification information including line benchmark verification information and area benchmark verification information; After generating the verification code corresponding to the verification area, the method further includes: The verification code is bound to the reference verification information, and a verification floating comparison value range corresponding to the reference verification information is configured so that the verification information and the reference information are matched within the verification floating comparison value range.

5. The method according to claim 4, characterized in that The method further comprises: Obtaining a comparison result between the verification information and the reference information; If the comparison result is within the verification floating comparison value range, it is determined that the reference information matches the verification information.

6. A verification device based on a spherical verification code, characterized in that: include: A creation module, used for creating a spherical model, and determining the verification code classification of the spherical model based on the verification scene information, wherein at least two sequence areas are divided on the spherical model according to the spherical coordinates; A generation module, used for dividing the spherical model into verification areas according to the verification code classification, and generating verification codes corresponding to the verification areas; A comparison module, for obtaining input verification information through the sphere model after displaying the verification code, and comparing the verification information with the reference information of the verification code; A verification module, configured to complete verification of the verification code if the reference information matches the verification information; The verification code classification includes line verification code classification and area verification code classification. The generating module is specifically used for dividing the line verification area according to at least two continuous sequence areas if the verification code classification is the line verification code classification; if the obtained line verification area is a non-discontinuous area, retrieving the screened line style, and generating a first line verification code based on the line style and the line verification area; if the obtained line verification area is a discontinuous area, supplementing the discontinuous area, and generating a second line verification code based on the screened line style and the line verification area; The generation module is further specifically used to determine, if the verification code classification is the regional verification code classification, a verification code object corresponding to the regional verification code classification based on a regional classification sequence, wherein at least two verification code objects in the regional classification sequence are polled in sequence according to a time sequence, and the verification code objects include digital verification codes, text verification codes, and image verification codes; randomly extract a preset number of the verification areas according to the regional verification code classification, and insert the verification code objects into the verification areas to obtain the verification code.

7. A storage medium storing at least one executable instruction, wherein the executable instruction enables a processor to execute operations corresponding to the verification method based on a sphere verification code as described in any one of claims 1 to 5.

8. A terminal, comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the verification method based on the sphere verification code as described in any one of claims 1-5.