An identity verification method and device, electronic equipment and storage medium
By acquiring user touch data and displaying multi-round graphical verification in the case of virtual users, and combining multiple verification methods, the problem of fixed graphics being easily leaked is solved, thereby improving the accuracy and security of identity verification.
Patent Information
- Application Number
- CN202510590075.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-07
- Publication Date
- 2026-11-10
AI Technical Summary
In existing technologies, the verification images used in graphical verification methods are fixed and easily leaked, resulting in low accuracy of user authentication. Criminals can simulate real user behavior to increase the level of confusion.
By acquiring the user's touch data within a preset time window, the first authentication information is determined, and when the user is identified as a virtual user, multiple rounds of verification graphics are displayed. The second authentication information is determined by combining the user's touch data from the multiple rounds, and authentication is performed using a combination of multiple verification methods.
It reduces user operations, improves verification efficiency, and reduces the risk of false verification through multi-round graphical verification, thereby improving the accuracy and security of verification.
Smart Images

Figure CN123069340A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of information security technology, and in particular relates to an authentication method, device, electronic device and storage medium. Background Technology
[0002] With the rapid development of computer and artificial intelligence technologies, user identity can be verified through methods such as SMS verification codes and image verification. For example, a prompt message and multiple verification images can be displayed to guide the user to touch the verification image related to the prompt message. Based on the accuracy of the user's touch on the verification images, it can be verified whether the user is a real user or a machine-simulated virtual user.
[0003] However, the verification pattern is relatively fixed and easily leaked, making the prompts easy to crack. This allows malicious actors to simulate more realistic user behavior based on the cracked prompts, increasing the confusion of virtual users in the process of verifying user identity and reducing the accuracy of user authentication. Summary of the Invention
[0004] This application provides an authentication method, apparatus, electronic device, and storage medium to address the problem of low accuracy in user authentication.
[0005] In a first aspect, embodiments of this application provide an authentication method, the method comprising:
[0006] Acquire the user's first touch data within a preset time window. The first touch data includes data on the user's touch on the graphic during graphic verification.
[0007] Based on the first touch data, determine the user's first authentication information;
[0008] If the initial authentication information indicates that the user is a virtual user, N rounds of verification graphics are displayed on the verification page, where N is a positive integer;
[0009] Based on the user's second touch data, determine the user's second authentication information. The second touch data includes the user's touch data on the verification page in each of the N rounds.
[0010] Secondly, embodiments of this application provide an authentication device, the device comprising:
[0011] The acquisition module is used to acquire the first touch data within a preset time window of the user. The first touch data includes the data of the user touching the graphic during graphic verification.
[0012] The first determining module is used to determine the user's first authentication information based on the first touch data;
[0013] The display module is used to display N rounds of verification graphics on the verification page when the first authentication information indicates that the user is a virtual user, where N is a positive integer;
[0014] The second determining module is used to determine the user's second authentication information based on the user's second touch data, which includes the user's touch data on the verification page in each of the N rounds.
[0015] Thirdly, embodiments of this application provide an electronic device, which includes: a processor and a memory storing computer program instructions;
[0016] The processor implements authentication methods such as the first aspect when executing computer program instructions.
[0017] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the authentication method as described in the first aspect.
[0018] Fifthly, embodiments of this application provide a computer program product in which instructions, when executed by a processor of an electronic device, cause the electronic device to perform the authentication method as described in the first aspect.
[0019] In this embodiment, the user's first touch data within a preset time window can be acquired, and the user's first identity verification information can be determined based on the first touch data. If the first identity verification information indicates that the user is a virtual user, N rounds of verification graphics are displayed on the verification page. Then, based on the user's second touch data, including the user's touch data on the verification page in each of the N rounds, the user's second identity verification information is determined. Thus, when using the first touch data to initially verify the user's identity information, the user does not need to click on the verification graphics, reducing user operations and improving verification efficiency. Furthermore, the above identity verification method uses a combination of multiple verification methods to verify the user's identity information. Specifically, if the first identity verification information indicates that the user is a virtual user, a multi-round graphic verification method can be further used to reduce the risk of false verification and improve the accuracy of verification. Attached Figure Description
[0020] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a flowchart illustrating an authentication method provided in an embodiment of this application;
[0022] Figure 2A This is a schematic diagram of a verification page provided in an embodiment of this application;
[0023] Figure 2B This is a schematic diagram of a verification page provided in an embodiment of this application;
[0024] Figure 2C This is a schematic diagram of a verification page provided in an embodiment of this application;
[0025] Figure 2D This is a schematic diagram of a verification page provided in an embodiment of this application;
[0026] Figure 3 This is a schematic diagram of a verification page provided in an embodiment of this application;
[0027] Figure 4 A flowchart illustrating an authentication method provided in this application embodiment;
[0028] Figure 5 This is a schematic diagram of the structure of an identity verification device provided in an embodiment of this application;
[0029] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0030] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.
[0031] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
[0032] It should be noted that the acquisition, storage, use, and processing of data in this application embodiment all comply with the relevant provisions of national laws and regulations.
[0033] It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, it does not mean that the applicant has used or necessarily used the solution.
[0034] With the development of artificial intelligence and machine learning, the verification images used in the process of verifying user identity through image verification are often fixed and easily leaked, which makes the logic of image verification easy to crack, and thus cannot guarantee the accuracy of user identity verification when using image verification methods.
[0035] To address the problems of the prior art, embodiments of this application provide an authentication method, apparatus, electronic device, computer-readable storage medium, and computer program product.
[0036] The authentication method provided in this application embodiment will be described below. The subject executing this authentication method can be an electronic device with a touch screen, such as a mobile phone or tablet computer, or a client installed in the electronic device. The following description will only use an electronic device as the subject executing the authentication method.
[0037] Figure 1 A flowchart illustrating an embodiment of the authentication method provided in this application is shown, as follows: Figure 1 As shown, the authentication methods may include S101 to S104, as detailed below.
[0038] S101, Obtain the first touch data within the user's preset time window, the first touch data including the data of the user touching the graphic during graphic verification.
[0039] For example, when a user accesses system data, the preset time window can correspond to a historical time period. For instance, if the current time is March 1st and the historical time period is February 28th, then the user's login data on February 28th can be obtained, and the first touch data is the touch data at the time of login.
[0040] S102, Based on the first touch data, determine the user's first authentication information.
[0041] For example, taking the touch area as the first touch data, if the user's touch area remains constant or completely overlaps with the area of the verification graphic during a historical time period, then the user's first authentication information is determined to be a virtual user; otherwise, it is a real user. Taking touch pressure as the first touch data, if the user's touch pressure remains constant during a historical time period, then the user's first authentication information is determined to be a virtual user; otherwise, it is a real user. Taking touch position as the first touch data, if the user's touch position is exactly the same as the position of the verification graphic during a historical time period, or if the touch positions conform to a certain pattern, then the user's first authentication information is determined to be a virtual user; otherwise, it is a real user. Taking the touch rate as an example, when the first touch rate is the touch position, if the touch rate of each touch graphic remains constant during the historical time period, then the user's first authentication information is determined to be a virtual user; otherwise, it is a real user.
[0042] S103, if the first authentication information indicates that the user is a virtual user, N rounds of verification graphics are displayed on the verification page, where N is a positive integer.
[0043] For example, when an electronic device determines that a user's initial authentication information is that of a virtual user, it can provide the user with a verification page to re-verify the user using N rounds of verification graphics displayed on the page. For instance, multiple rounds of graphic verification can be performed. In each round, a verification graphic can be displayed on the verification page. After detecting the user's touch on the verification page, the electronic device can eliminate the current verification graphic based on the user's touch data and display the next verification graphic. Subsequent verification can then be performed based on the user's touch data of the next graphic.
[0044] S104, determine the user's second authentication information based on the user's second touch data, wherein the second touch data includes the user's touch data on the authentication page in each of the N rounds.
[0045] For example, the second touch data refers to the various touch data of the user on the verification page during each round of graphic verification. The second touch data includes the user's touch area, touch pressure, touch position, or touch rate. For instance, during each graphic verification process, the electronic device can determine a virtual user matching rate of 90% by associating the user's touch rate on the verification page with a preset touch rate and a virtual user matching rate, and determine a virtual user matching rate of 92% by associating the user's touch pressure on the verification page with a preset touch pressure and a virtual user matching rate, and determine a virtual user matching rate of 92% by associating the user's touch pressure on the verification page with a preset touch pressure and a virtual user matching rate, and determine graphic coverage information based on the offset information of the coordinates of each touch position on the verification page and the coordinates of the corresponding verification graphic, and determine a virtual user matching rate of 94% based on the offset information and graphic coverage information. Then, the average matching rate of the aforementioned three virtual user matching rates can be determined to be 92%, and this 92% can be used as the comprehensive virtual user matching rate for this graphic verification.
[0046] In each round of graphical verification, the average value of the comprehensive virtual user matching rate during multiple graphical verifications in that round can be determined. This average value is used as the comprehensive virtual user matching rate corresponding to that round of graphical verification. The comprehensive virtual user matching rate corresponding to that round of graphical verification is then matched with a preset threshold range to determine the second identity verification information of the user corresponding to that round of graphical verification.
[0047] For example, if the overall virtual user matching rate corresponding to this round of graphical verification is 91%, and the preset threshold range is [70%, 90%], since the overall virtual user matching rate corresponding to this round of graphical verification is greater than or equal to the critical upper limit of the threshold range, the user's second identity verification information is determined to be a virtual user.
[0048] For example, if the overall virtual user matching rate corresponding to this round of graphical verification is 60%, and the preset threshold range is [70%, 90%], since the overall virtual user matching rate corresponding to this round of graphical verification is less than or equal to the critical lower limit of the threshold range, the user's second identity verification information is determined to be that of a real user.
[0049] For example, if the overall virtual user matching rate for this round of graphic verification is 80%, and the preset threshold range is [70%, 90%], since the overall virtual user matching rate for this round of graphic verification is within the threshold range, the next round of verification graphic will be displayed on the verification page for the next round of graphic verification. If the overall virtual user matching rate is within the threshold range in the subsequent N rounds of verification, and the current round number is greater than the preset round number, then the user's second identity verification information will be determined as a virtual user.
[0050] Alternatively, during each round of graphic verification, the second user identity information for that round of graphic verification can be directly determined based on the second touch data, including the user's touch area, touch pressure, touch position, or touch rate. For example, the average, variance, and standard deviation of each touch area, touch pressure, touch position, or touch rate can be determined, and these values can be compared with preset values to determine the second user identity information for that round of graphic verification.
[0051] Therefore, the authentication method provided in this application, when the first authentication information indicates that the user is a real user, eliminates the need for re-verification via a verification graphic, reducing user operations and improving authentication efficiency. Furthermore, when the first authentication information indicates that the user is a virtual user, re-verification via a verification graphic reduces the risk of false verification and improves authentication accuracy. Additionally, when verifying the user via a verification graphic, multiple graphic verifications can be used to generate verification graphics of varying sizes and positions, improving both security and complexity of the authentication process.
[0052] The following is a detailed explanation of S101 to S104, as shown below.
[0053] Regarding S101, the authentication method in this embodiment can be applied to various scenarios such as user login, user data upload, user data download, and user data query. Therefore, when the aforementioned scenarios occur, S101 can be triggered. Specifically, S101 includes: when it is determined that user authentication is required, obtaining the user's first touch data within a preset time window, the first touch data including data of the user touching a graphic during graphic verification.
[0054] For example, in a user login scenario, when a user logs into a video application and enters their account information for that application, user authentication is performed. Based on this, the user's account information can be obtained, and then, based on that account information, the user's first touch data associated with that account information can be obtained. For example, the touch rate or touch position of the touch verification graphic associated with that account information on February 10th. In a user data upload scenario, S101 is triggered only when user-uploaded data input is received, allowing the acquisition of the user's account information. Then, based on that account information, the user's first touch data associated with that account information can be obtained, for example, the touch pressure or touch area of the touch verification graphic associated with that account information on February 10th.
[0055] The preset time window can be a historical time period, which is equivalent to a past time period of the current point in time. The first touch data includes the data of the user's touch on the graphic during graphic verification. The first touch data can be acquired by the sensors on the electronic device, which acquires the first touch data by collecting the user's touch operations.
[0056] Regarding S102, in this embodiment, a template matching method can be used to determine the first authentication information. Specifically, a standard template including touch rate, touch pressure, touch area, or touch position can be constructed based on the touch data of a normal user. The user's first touch data is compared with the standard template, and the similarity between the two is calculated. When the similarity is less than a threshold, the first authentication information is determined to be that of a virtual user. For example, the standard template may include a standard touch rate variation range, a standard touch area variation pattern, a standard touch pressure variation curve, or a standard touch position area.
[0057] Regarding S103, in this embodiment of the application, each round of verification graphics includes at least two verification graphics, and each verification graphics in each round of verification graphics can be displayed on the verification page. Specifically, S103 may include S1031 to S1033, as follows:
[0058] The verification pattern in the i-th round of the N rounds includes at least two verification patterns, and the at least two verification patterns include a first verification pattern and a second verification pattern, i∈[1,N].
[0059] S1031, The first verification graphic is displayed on the verification page.
[0060] S1032, Receive the user's first input on the verification page.
[0061] S1033, in response to the first input, remove the first verification graphic from the verification page and display the second verification graphic on the verification page.
[0062] In this embodiment, the electronic device performs graphic verification on the user by displaying multiple verification graphics. Each time a graphic is displayed, the user needs to touch the verification page according to the displayed graphic. After the user performs a touch operation and the electronic device receives the user's first input, it removes the first verification graphic from the verification page in response to the first input and displays the second verification graphic required for the next graphic verification. For example, the first verification graphic could be a circle located in the lower right corner of the verification page; after removing that circle, another circle could be displayed in the center of the verification page.
[0063] During each round of graphical verification, the electronic device can display various verification graphics on the verification page. Based on the user's touch data during each round, it determines the secondary identity verification information for that round and, based on that information, decides whether to proceed to the next round of graphical verification, ultimately determining the user's secondary identity verification information. Specifically, the verification page for each round of graphical verification can be as follows: Figure 2A , Figure 2B , Figure 2C as well as Figure 2D As shown.
[0064] Figure 2A , Figure 2B , Figure 2C as well as Figure 2D These are all schematic diagrams of a verification page provided in the embodiments of this application.
[0065] like Figure 2A As shown, electronic devices can display a verification page to the user.
[0066] like Figure 2B As shown, after the graphic verification begins, a first verification graphic can be displayed on the verification page. After observing the first verification graphic on the verification page, the user can perform a touch operation on the verification page. After detecting the user's touch operation, the electronic device receives the user's first input to the verification page. The first input data includes the user's touch data on the verification page, such as touch position, touch rate, touch area, and touch pressure.
[0067] like Figure 2C As shown, the electronic device can remove the first verification graphic from the verification page in response to the first input.
[0068] like Figure 2D As shown, after the electronic device removes the first verification graphic from the verification page, it can display a second verification graphic on the verification page, specifically to verify the user again using the second verification graphic.
[0069] Therefore, in this embodiment of the application, the user's second identity verification information can be verified through multiple verification graphs, which increases the complexity and diversity of graph verification, reduces the risk of verification logic being cracked, and improves the accuracy of verification.
[0070] Regarding S1031, in this embodiment of the application, each verification graph in each round of the graph verification process can be generated based on chaos theory. Before S1031, the method further includes S1034 to S1035, as follows:
[0071] The first touch data includes the first display position information of the user touch graphic;
[0072] S1034, based on the graphic constraint information and the first display position information, a chaotic mapping algorithm is used to determine the second display position information of the first verification graphic in the first round of verification graphics. The graphic constraint information includes information used to characterize the display size of the verification page.
[0073] In this embodiment, during the first round of graphic verification, the electronic device can first generate a first verification graphic in the first round of verification graphics. The graphic constraint information includes information characterizing the display size of the verification page, such as the length and width of the verification page. The first display position information can be the touch coordinate information when the user touches the graphic within a preset time window. The second display position information can refer to the center point coordinate information of the first verification graphic. For example, if the first verification graphic is a circle, the second display position information can be the center coordinates of the circle. Alternatively, if the first verification graphic is a square, the second display position information can be the center coordinates of the square.
[0074] Specifically, the electronic device can determine the initial value of the chaotic trajectory based on the first display position information. During the process of determining the first verification pattern using a chaotic mapping algorithm, the chaotic trajectory can be used to characterize the contour information of the first verification pattern. For example, the average abscissa can be determined first from the abscissa information of each verification pattern corresponding to the first display position information, and the average ordinate can be determined from the ordinate information of each verification pattern corresponding to the first display position information. Then, the average abscissa and average ordinate can be used as the initial value of the chaotic trajectory.
[0075] The second display position information of the first verification graphic can be determined by the following formulas (1), (2), (3) and (4) in the chaotic mapping algorithm, as follows:
[0076]
[0077] In formula (1), x is used to represent the x-coordinate of each trajectory point in the chaotic trajectory. The x-coordinate is used to characterize the rate of change of the horizontal axis x with time t, σ is used to characterize the system parameters, and y is used to characterize the vertical axis of each trajectory point in the chaotic trajectory.
[0078] In formula (2), y is used to characterize the ordinate of each trajectory point in the chaotic trajectory. The ordinate y is used to characterize the rate of change of the vertical axis y with time t, ρ is used to characterize the system parameters, x is used to characterize the x-coordinate of each trajectory point in the chaotic trajectory, and z is used to characterize the size of the graph corresponding to the chaotic trajectory.
[0079] Furthermore, based on the initial values of the aforementioned chaotic mapping and the aforementioned system parameters, a chaotic mapping algorithm can be used to generate the trajectory points of the chaotic trajectory.
[0080] The maximum and minimum x-coordinates are determined from the x-coordinates of each trajectory point, and the maximum and minimum y-coordinates are determined from the y-coordinates of each trajectory point. Based on the maximum and minimum x-coordinates and the length of the verification page in the graphic constraint information, the x-coordinate of the center point of the first verification graphic is determined, and based on the maximum and minimum y-coordinates and the width of the verification page in the graphic constraint information, the y-coordinate of the center point of the first verification graphic is determined, as follows.
[0081]
[0082] In formula (3), x c The x-coordinate used to characterize the center point of the first verification graph. min Used to characterize the minimum x-coordinate, x max W is used to represent the maximum horizontal coordinate, and W is used to represent the length of the verification page.
[0083] In formula (4), y c The ordinate used to characterize the center point of the first verification graphic, y min Used to characterize the minimum y-coordinate, max H is used to represent the maximum horizontal coordinate, and H is used to represent the width of the verification page.
[0084] S1035, based on the graphic constraint information and the first size information of the user touch graphic, the second size information of the first verification graphic in the first round of verification graphics is determined by a chaotic mapping algorithm.
[0085] In this embodiment, the electronic device can determine the second size information of the first verification graphic in the first round of verification graphics based on the first size information of the user's touch graphic. The graphic constraint information may include the maximum size information of the graphics allowed on the verification page, such as the maximum allowed radius, maximum allowed diagonal length, etc. The first size information may be the graphic size information of the touch graphic within a preset time window; for example, when the touch graphic is a circle, the graphic size information may be the radius of the circle. Or, for example, when the touch graphic is a square, the graphic size information may be the side length of the square.
[0086] Specifically, the electronic device can determine the average size information of each first size information based on the verification pattern within a preset time window, and determine the initial value of the chaotic trajectory, that is, the initial size information of the first verification pattern. For example, the average size information of each first size information can be determined first, and the average size information can be used as the initial size information of the first verification pattern.
[0087] The second dimension information of the first verification graphic can be determined by the following formulas (5) and (6) in the chaotic mapping algorithm, as follows.
[0088]
[0089] In formula (5), z is used to characterize the size information of the graph as the trajectory points in the chaotic trajectory change, x is used to characterize the abscissa of each trajectory point in the chaotic trajectory, and y is used to characterize the ordinate of each trajectory point in the chaotic trajectory. β is used to characterize the rate of change of the size information z with time t, and β is used to characterize the system parameters.
[0090] Based on the initial value of the aforementioned chaotic trajectory, i.e. the initial size information of the first verification graphic, a chaotic mapping algorithm can be used to generate different graphic size information.
[0091] Then, the minimum and maximum size information are determined from the various size information. Based on the maximum and minimum size information, the second size information of the first verification graphic is determined, as shown in the following formula (6).
[0092]
[0093] In formula (6), r is used to characterize the second size information of the first verification pattern, and z is used to characterize the size information of the pattern as the trajectory points in the chaotic trajectory change. min z is used to characterize minimum size information. max Used to characterize maximum size information, y min R is used to characterize the minimum ordinate. max Used to represent the maximum allowed size information in the verification page.
[0094] In the embodiments of this application, the first verification graphic and the second verification image can be a circle, a square, or a rectangle, etc. The size information mentioned in the above content can refer to the radius of the circle, the diagonal of the square, or the diagonal of the rectangle, etc.
[0095] S1031 specifically includes: displaying the first verification graphic on the verification page according to the second display position information and the second size information.
[0096] In this embodiment of the application, the electronic device can display a first verification graphic with a size corresponding to the second size information at the position corresponding to the second display position information of the verification page.
[0097] Therefore, in this embodiment of the application, the verification graph generated based on the chaotic mapping algorithm has high complexity and randomness. It is difficult for machine-simulated virtual users to simulate real users by analyzing the patterns of the verification graph, thus improving the accuracy of graph verification.
[0098] Regarding S1033, when generating the second verification graphic in the first round of verification graphics, it can be generated by referring to the third display position information of the user touching the first verification graphic and the second size information of the first verification graphic. Specifically, before S1033, it also includes S1036 to S1037, as follows:
[0099] The second touch data includes the third display position information of the user touching the first verification graphic;
[0100] S1036, based on the graphic constraint information, the first display position information, and the third display position information, the fourth display position information of the second verification graphic in the first round of verification graphics is determined by a chaotic mapping algorithm.
[0101] In this embodiment, the third display position information can be the touch coordinate information when the user touches the first verification graphic. The electronic device can determine the fourth display position information of the second verification graphic in the first round of verification graphics based on the graphic constraint information, the first display position information, and the third display position information. The fourth display position information can refer to the coordinates of the center point of the second verification graphic. For example, if the second verification graphic is a circle, the fourth display position information can be the coordinates of the circle's center. Alternatively, if the second verification graphic is a square, the second display position information can be the coordinates of the square's center.
[0102] Electronic devices can use a chaotic mapping algorithm to determine the fourth display position information of the second verification graphic in the first round of verification graphics. Specifically, when using the chaotic mapping algorithm to determine the initial value of the chaotic trajectory, the average abscissa can be determined first from the abscissa information of each verification graphic corresponding to the first display position information and the abscissa information corresponding to the third display position information, and the average ordinate can be determined from the ordinate information of each verification graphic corresponding to the first display position information and the ordinate information corresponding to the third display position information. Then, the average abscissa and the average ordinate are used as the initial value of the chaotic trajectory. The subsequent determination of the fourth display position information of the second verification graphic using the chaotic algorithm is the same as the method for determining the second display position information of the first verification graphic, and will not be repeated here.
[0103] S1037, based on the graphic constraint information, the third size information of the user touch graphic, and the second size information of the first verification graphic, the fourth size information of the second verification graphic in the first round of verification graphics is determined by a chaotic mapping algorithm.
[0104] In this embodiment, the electronic device can determine the fourth size information of the second verification graphic in the first round of verification graphics based on the third size information of the user's touch graphic and the second size information of the first verification graphic. The third size information can be the graphic size information of the touch graphic within a preset time window, and may or may not be the same as the first size information.
[0105] Electronic devices can use a chaotic mapping algorithm to determine the fourth dimension information of the second verification pattern in the first round of verification patterns. Specifically, when using the chaotic mapping algorithm to determine the initial value of the chaotic trajectory, the average dimension information of each first dimension information can be determined based on the third dimension information of each verification pattern within a preset time window and the second dimension information of the first verification pattern. This average dimension information is then used as the initial value of the chaotic trajectory, which is the initial dimension information of the second verification pattern. The subsequent determination of the fourth dimension information of the second verification pattern using the chaotic algorithm is the same as the method described above for determining the second dimension information of the first verification pattern, and will not be repeated here.
[0106] S1033 specifically includes: displaying the second verification graphic from the first round of verification graphics on the verification page according to the fourth display position information and the fourth size information.
[0107] In this embodiment of the application, the electronic device may display a second verification graphic with the size corresponding to the fourth size information at the position corresponding to the fourth display position information on the verification page.
[0108] Therefore, in this embodiment, the second verification graphic can be generated by referring to the third display position information of the user touching the first verification graphic and the second size information of the first verification graphic, thereby increasing the difficulty for the virtual user to simulate the real user and enhancing the accuracy of graphic verification.
[0109] In this embodiment, after the first round of graphic verification, it can be determined whether to proceed with the next round of graphic verification based on the user's second identity verification information determined in the first round of graphic verification. The specific process will be explained later. Furthermore, in the next round of graphic verification, the method for generating each verification graphic is the same as the process for generating the second verification graphic in the first round of verification. That is, in addition to referring to graphic constraint information, the first display position information and the third size information when the user touches the graphic within a preset time window, it is also necessary to refer to the display position information of the user's touch graphic in the previous round of graphic verification and the size information of each verification graphic in the previous round of graphic verification. The specific generation method is the same as the process for generating the second verification graphic in the first round of verification, and will not be repeated here.
[0110] In another embodiment of this application, a random generation method can be used to randomly determine the display position information and size information of the verification graphic in each round, and then generate each verification graphic used in each round of verification based on the randomly determined display position information and size information.
[0111] Regarding S104, in this embodiment of the application, the second touch data in each round of graphic verification can be divided into a first type of touch data and a second type of touch data. The first type of touch data is data whose virtual user matching rate can be directly determined based on its own data value, while the second type of touch data is data whose virtual user matching rate needs to be determined by combining its own data value with the data from the verification graphic. S104 may include S1041 to S1043, as follows:
[0112] The second touch data includes at least one of the following: a type of touch data and a type of touch data;
[0113] S1041, Based on the preset correlation between a type of touch data and the virtual user matching rate, determine the matching rate of a type of virtual user corresponding to the type of touch data.
[0114] In this embodiment, the electronic device can generate a preset association between a type of touch data and a virtual user matching rate. Specifically, the virtual user matching rate corresponding to the preset type of touch data can be determined based on a Bayesian inference algorithm, as shown in the following formula (7):
[0115]
[0116] In formula (7), P(H|D) is used to characterize the virtual user matching rate when a type of touch data is known to have occurred, P(D|H) is used to characterize the probability of a type of touch data occurring when the user is assumed to be a virtual user, P(D|H) can be determined based on historical experience, P(H) is used to characterize the probability of a user being a virtual user based on historical experience, and P(D) is used to characterize the total probability of a type of touch data occurring without considering whether the user is a virtual user.
[0117] This allows for the construction of a correlation between each preset type of touch data and its corresponding virtual user matching rate. Furthermore, the second touch data can be matched with each preset type of touch data to determine the virtual user matching rate for each type of touch data during each graphical verification. The virtual user matching rate represents the probability that the user is a virtual user; a higher virtual user matching rate indicates a higher probability that the user's second identity verification information is from a virtual user.
[0118] S1042, Based on the two types of touch data and the display data of the verification graphic, determine the matching rate of the two types of virtual users corresponding to the two types of touch data.
[0119] In this embodiment of the application, the display data of the verification image can characterize the position and area of the verification graphic. The electronic device can determine the matching rate of the second type of virtual user corresponding to the second type of touch data based on the second type of touch data and the display data of the verification image. The matching rate of the second type of virtual user can characterize the probability that the user is a virtual user. The higher the matching rate of the second type of virtual user, the higher the probability that the user's second identity verification information is a virtual user.
[0120] S1043, determine the user's second identity verification information based on the virtual user matching rate, wherein the virtual user matching rate includes at least one of the following: the first type of virtual user matching rate and the second type of virtual user matching rate.
[0121] In this embodiment, the electronic device can obtain the second identity verification information of the user determined in this graphical verification based on the matching rate of the first-type virtual user and the matching rate of the second-type virtual user corresponding to this graphical verification. For example, the matching rate of the first-type virtual user and the matching rate of the second-type virtual user in this graphical verification can be weighted and summed to determine the comprehensive virtual user matching rate. Alternatively, it is not necessary to assign weights to the matching rate of the first-type virtual user and the matching rate of the second-type virtual user; the average value of the two can be directly determined and used as the comprehensive virtual user matching rate of this graphical verification. Furthermore, the comprehensive virtual user matching rate of this round of graphical verification is determined based on the comprehensive virtual user matching rate of multiple graphical verifications in each round of graphical verification.
[0122] Therefore, in this embodiment of the application, the characteristics of the user's operation data in multiple dimensions can be referenced to determine the user's second identity verification information, thereby reducing the probability of false judgment in graphic verification and improving the accuracy of verification.
[0123] Regarding S1041, in this embodiment of the application, S1041 may include S10411 to S10413, as follows:
[0124] The type of touch data includes at least one of the following: touch rate, touch pressure;
[0125] S10411, Based on the preset correlation between touch rate and virtual user matching rate, determine the first virtual user matching rate corresponding to the touch rate.
[0126] S10412, Based on the preset correlation between touch pressure and virtual user matching rate, determine the second virtual user matching rate corresponding to the touch pressure.
[0127] S10413, Based on the first virtual user matching rate and the second virtual user matching rate, determine a type of virtual user matching rate corresponding to the type of touch data.
[0128] In this embodiment, the correlation between the preset touch rate and the virtual user matching rate can be, for example, a touch rate (91 pixels / second, 100 pixels / second) corresponding to a virtual user matching rate (70%); and a touch rate (101 pixels / second, 110 pixels / second) corresponding to a virtual user matching rate (80%). Furthermore, the touch rate included in a type of touch data can be matched with the touch rate in the correlation relationship. If the touch rate included in a type of touch data is 98 pixels / second, then the corresponding first virtual user matching rate is 70%.
[0129] The preset correlation between touch pressure and virtual user matching rate can be, for example, that a touch pressure of (3.5N, 4N) corresponds to a virtual user matching rate of (70%), and a touch pressure of (4N, 4.5N) corresponds to a virtual user matching rate of (80%). Furthermore, the touch pressure included in a type of touch data can be matched with the touch pressure in the correlation. If a type of touch data includes a touch pressure of 4.3N, then the corresponding second virtual user matching rate is 80%.
[0130] Furthermore, a first virtual user matching rate can be determined based on the first virtual user matching rate and the second virtual user matching rate. For example, the first virtual user matching rate and the second virtual user matching rate can be weighted and summed to obtain the first virtual user matching rate. Alternatively, without assigning weights to the first and second virtual user matching rates, the average of the first and second virtual user matching rates can be directly determined, and this average value can be used as the first virtual user matching rate.
[0131] Therefore, in this embodiment of the application, the user's second authentication information can be determined by referring to the characteristics of the user's touch rate and touch pressure. By analyzing multiple behavioral characteristics of the user, the accuracy of the authentication is improved.
[0132] Regarding S1042, in this embodiment of the application, S1042 may include: S10421 to S10423, as follows:
[0133] The second type of touch data includes at least one of the following: touch position and touch area; the display data includes the second coordinates of the center point of the verification graphic and the graphic area of the verification graphic.
[0134] S10421, determine the position offset information of the touch position and the verification graphic based on the first coordinate and the second coordinate of the touch position.
[0135] In this embodiment of the application, the first coordinate of the touch position can be the center coordinate of the touch area of the user touch verification page. Then, the distance between the first coordinate and the second coordinate can be determined, and the distance can be used as the position offset information between the touch position and the verification graphic.
[0136] S10422, Determine graphic coverage information based on the touch area and the graphic area of the verification graphic.
[0137] In this embodiment of the application, the electronic device can determine the graphic coverage information based on the proportion of the touch area in the graphic area of the verification graphic. The graphic coverage information can refer to the coverage rate of the user's touch area over the verification graphic. The larger the proportion of the touch area in the graphic area of the verification graphic, the greater the coverage rate.
[0138] S10423, Based on the position offset information and the graphic coverage information, determine the matching rate of the two types of virtual users corresponding to the two types of touch data.
[0139] In this embodiment, a preset correlation between an offset interval and the virtual user matching rate can be established in advance. For example, an offset interval of (1cm, 2cm) corresponds to a virtual user matching rate of 50%; an offset interval of (3cm, 4cm) corresponds to a virtual user matching rate of 40%. Then, the distance represented by the location offset information can be matched with the offset interval to determine the corresponding third virtual user matching rate.
[0140] Additionally, a pre-defined correlation between coverage ranges and virtual user matching rates can be set. For example, a coverage range of (60%, 70%) corresponds to a virtual user matching rate of (30%); a coverage range of (70%, 80%) corresponds to a virtual user matching rate of (35%). Then, the coverage rate represented by the graphical coverage information can be matched with the coverage range to determine the corresponding fourth virtual user matching rate.
[0141] Finally, based on the third and fourth virtual user matching rates, the second-class virtual user matching rate corresponding to the second-class CNC data is determined.
[0142] Therefore, in this embodiment of the application, the user's second identity verification information can be determined by referring to the characteristics of the user's touch area and touch position. By analyzing multiple behavioral characteristics of the user, the accuracy of verification is improved.
[0143] In this embodiment of the application, after determining the matching rate of a first-type virtual user and the matching rate of a second-type virtual user, the user's second authentication information can be determined by referring to these two matching rates, involving S1043. S1043 may include S10431 to S10434, as follows:
[0144] S10431, Based on the matching rate of the first type of virtual user and the matching rate of the second type of virtual user, the comprehensive virtual user matching rate is obtained.
[0145] S10432, if the overall virtual user matching rate is less than or equal to the critical lower limit of the preset threshold range, the authentication information used to characterize the user as a real user is determined as the second authentication information.
[0146] S10433, if the overall virtual user matching rate is greater than or equal to the critical upper limit of the preset threshold range, the authentication information used to characterize the user as a virtual user is determined as the user's second authentication information.
[0147] In this embodiment, for each verification pattern included in each round of verification patterns, a comprehensive virtual user matching rate is determined based on the matching rates of the first and second types of virtual users verified through that verification pattern. Furthermore, the comprehensive virtual user matching rates verified by each verification pattern can be weighted and summed to obtain the comprehensive virtual user matching rate verified in this round of patterns. Alternatively, the average value of the comprehensive virtual user matching rates verified by each verification pattern can be directly determined, and this average value can be used as the comprehensive virtual user matching rate verified in this round of patterns.
[0148] The aforementioned threshold range is used to determine the user's second authentication information. The lower threshold of the range represents the critical value for the probability that the user is a real user, and the upper threshold represents the critical value for the probability that the user is a virtual user. If the overall virtual user matching rate corresponding to this round of graphical verification is less than or equal to the lower threshold of the preset threshold range, the authentication information used to indicate that the user is a real user will be determined as the second authentication information. If the overall virtual user matching rate corresponding to this round of graphical verification is greater than or equal to the upper threshold of the preset threshold range, the authentication information used to indicate that the user is a virtual user will be determined as the user's second authentication information.
[0149] S10434, if the overall virtual user matching rate is within a preset threshold range, display the next round of verification graphics on the verification page; determine the user's second identity verification information based on the user's touch data of touching the verification page in the next round.
[0150] If the overall virtual user matching rate for this round of graphical verification is within a preset threshold range—meaning the second identity verification information cannot be directly determined based on the overall virtual user matching rate—then a second round of graphical verification is required. Therefore, the electronic device can display the next round of verification graphics on the verification page, and the user can determine their second identity verification information based on the touch data from the next round of touch verification.
[0151] Therefore, in this embodiment of the application, when the second identity verification information is not determined in one round of graphic verification, multiple rounds of graphic verification are used to verify the user's second identity verification information, which can more comprehensively extract the user's touch features and improve the accuracy of verification.
[0152] S10434 is involved, and S10434 may include: S104341 to S104342, as follows.
[0153] S104341, Based on the user's touch data in the next round of touching the verification page, determine the target comprehensive virtual user matching rate corresponding to the touch data in the next round of touching the verification page.
[0154] S104342, when the target comprehensive virtual user matching rate is within a preset threshold range and the current round number is greater than the preset round number, the authentication information used to characterize the user as a virtual user is determined as the user's second authentication information.
[0155] In this embodiment of the application, multiple rounds of graphical verification can be performed on the user. Specifically, if the overall virtual user matching rate corresponding to the current round of graphical verification is within a preset threshold range, then the next round of graphical verification needs to be performed. If the target overall virtual user matching rate of the next round of graphical verification is still within the preset threshold range, then the next round of graphical verification needs to be performed, until the number of rounds of graphical verification is greater than the preset number of rounds. That is, when the current number of rounds is greater than the preset number of rounds, the identity verification information used to represent the user as a virtual user is determined as the user's second identity verification information.
[0156] Therefore, in this embodiment of the application, using multi-round verification graphics to verify the user's second identity verification information can more comprehensively extract the user's touch features and comprehensively analyze the user's touch features during multi-round graphic verification, thereby improving the accuracy of verification.
[0157] Regarding S1043, in this embodiment of the application, in order to increase the logical complexity of the graphic verification and improve the accuracy of the graphic verification, the verification page may also include a distracting graphic. The electronic device can refer to the user's touch data on the distracting graphic to determine the user's second identity verification information. Specifically, S1043 may include S10431 to S10432, as follows:
[0158] The verification page also includes a distracting graphic, the distracting graphic having different graphic attribute information from the verification graphic, the graphic attribute information including at least one of the following: graphic shape information, graphic size information, and graphic position information; the second touch data also includes user touch data on the distracting graphic;
[0159] S10431, Based on the user's touch data on the interference graphic, adjust the virtual user matching rate to obtain the adjusted virtual user matching rate.
[0160] S10432, Determine the user's second authentication information based on the adjusted virtual user matching rate.
[0161] In this embodiment, the electronic device can determine at least one interference pattern from a preset interference image database and display at least one interference pattern on a verification page, specifically as follows: Figure 3 As shown.
[0162] Figure 3 This is a schematic diagram of a verification page provided in an embodiment of this application.
[0163] Depend on Figure 3 It can be seen that during each graphic verification process, at least one distracting graphic can be displayed on the verification page. At the same time, the verification page can also display instruction information to guide the user to click on the correct verification graphic. Figure 3 The instruction message is "Please click on the circle on the page". During the graphic verification process, users can view the instruction message and select the corresponding circle from the verification page, which includes multiple verification graphics and distracting graphics, and then touch it.
[0164] Electronic devices can adjust the virtual user matching rate based on changes in the touch pressure of the user's touch interference graphic. For example, if the touch pressure of the user's touch interference graphic remains essentially constant (i.e., it does not conform to the normal user touch pressure variation), the virtual user matching rate can be increased accordingly. Electronic devices can also adjust the virtual user matching rate based on the touch rate of the user's touch interference graphic. For example, if the touch rate of the user's touch interference graphic is lower than a preset threshold, the virtual user matching rate can be decreased accordingly. Furthermore, the electronic device can determine the user's second authentication information based on the adjusted virtual user matching rate. The specific implementation method is the same as the method described above for determining the user's second authentication information based on the virtual user matching rate, and will not be repeated here.
[0165] Therefore, in this application, by setting up interfering graphics to increase the complexity of graphic verification, the risk of the verification logic being cracked is reduced, the false judgment rate of graphic verification is reduced, and the accuracy of graphic verification is improved.
[0166] In this embodiment of the application, when the second authentication information includes authentication information indicating that the user is a virtual user, the authentication method further includes: restricting the user's access to system data according to preset access restriction conditions; wherein the preset access restriction conditions include at least one of the following: access priority restriction conditions, access permission restriction conditions, access frequency restriction conditions, and access time restriction conditions.
[0167] Restricting user access to system data can refer to restricting users from logging into the system, restricting users from registering system accounts, restricting users from downloading data from the system, and restricting users from modifying data in the system.
[0168] Specifically, if the second authentication information includes authentication information indicating that the user is a virtual user, the user's access priority can be set to the lowest level. Then, access to system data by users of the current level can be restricted by access priority restriction conditions.
[0169] If the second authentication information is determined to include authentication information indicating that the user is a virtual user, the user's access permission can be set to "no permission to access data". Then, access permission restrictions can be used to restrict the user without permission from accessing system data.
[0170] If the second authentication information includes authentication information indicating that the user is a virtual user, the user's access frequency can be restricted by access frequency restriction conditions. For example, when the user is determined to be a virtual user, the user can be restricted to waiting 6 hours after each access to system data before being able to access system data again.
[0171] If the second authentication information is determined to include authentication information indicating that the user is a virtual user, the access time of the user to the system data can be restricted by access time restriction conditions. For example, when it is determined that the user is a virtual user, the user can be restricted to accessing the system data for only 3 seconds.
[0172] Therefore, in this embodiment of the application, when it is determined that the user is a virtual user, the user's access to system data is restricted, thereby ensuring the security and integrity of the data.
[0173] It should be noted that, in this embodiment, after each graphical verification process, the result of the graphical verification can be displayed on the verification page to provide real-time feedback to the user. For example, if the user's second identity verification information is not determined in this round of graphical verification, a prompt message can be displayed on the verification page so that the user can proceed to the next round of graphical verification based on the prompt message. Furthermore, in the event of verification failure, such as when no user input is received, the electronic device can provide a prompt message or guide the user to re-verify, ensuring the normal progress of the graphical verification. In addition, this embodiment also provides a verification model that can verify the user's second identity verification information by executing the above S101 to S104 steps.
[0174] As can be seen from the above, the identity verification method provided in this application, when initially verifying the user's identity information using the first touch data, eliminates the need for the user to click on the verification graphic, reducing user operations and improving verification efficiency. Furthermore, the above identity verification method employs a combination of multiple verification methods to verify the user's identity information. Specifically, if the first identity verification information indicates that the user is a virtual user, a multi-round graphic verification method can be further used to reduce the risk of false verification and improve verification accuracy. Moreover, when verifying the user using verification graphics, verification graphics of varying sizes and positions can be generated, improving both the security and complexity of the verification process.
[0175] In addition, in this embodiment, multi-dimensional data such as touch rate, touch position, touch pressure, and touch area can be collected, thus providing more comprehensive user operation data for the graphical verification process. Furthermore, the aforementioned authentication method can determine the first and second authentication information by training a machine learning model, and ensure the accuracy and generalization ability of the model through cross-authentication methods, significantly improving the intelligence and adaptability of the authentication method. During the verification process, the collected feature vectors can be input into the trained verification model for analysis in real time, thereby dynamically judging the authenticity of the user's operation and instantly determining the user's authentication information based on the model output, providing a more intelligent and faster verification experience.
[0176] In addition, to further explain the above identity verification methods, the overall verification process will be described below, as follows: Figure 4 .
[0177] Figure 4 This is an overall flowchart of an authentication method provided in an embodiment of this application.
[0178] Depend on Figure 4As can be seen, in this embodiment of the application, the user's second identity verification information can be determined through multiple verifications, as detailed below.
[0179] S401, when receiving a user's login request, download data request, etc., can verify the user. First, it can determine whether the user's first authentication information is a virtual user.
[0180] S402, if the user's first authentication information is not a virtual user, then the user is determined to be a real user.
[0181] S403 If the user's first authentication information is a virtual user, a verification graphic can be displayed on the verification page.
[0182] S404, Based on the user's second touch data for the verification graphic in this round, determine the overall virtual user matching rate corresponding to the user in this round of graphic verification.
[0183] S405 If the overall virtual user matching rate is less than or equal to the lower limit of the threshold range, that is, the user's second identity verification information is not a virtual user, the identity verification information used to identify the user as a real user is determined as the second identity verification information, and the user is determined to be a real user.
[0184] S406 If the overall virtual user matching rate is greater than or equal to the upper limit of the threshold range, that is, the user's second authentication information is a virtual user, the authentication information used to identify the user as a virtual user is determined as the second authentication information, and the user is determined to be a virtual user.
[0185] In some embodiments, if the overall virtual user matching rate is within a threshold range (i.e., it is uncertain whether the user's second authentication information is that of a virtual user), the next round of verification graphics is displayed on the verification page for subsequent rounds of graphic verification. If, during subsequent rounds of graphic verification, the target overall virtual user matching rate is within a threshold range, and the current round number is greater than a preset round number, the authentication information used to identify the user as a virtual user is determined as the user's second authentication information; that is, the user is determined to be a virtual user.
[0186] Therefore, in this embodiment, when using the first touch data to initially verify the user's identity information, the user does not need to click on the verification graphic, reducing user operations and improving verification efficiency. Furthermore, the above-mentioned identity verification method employs a combination of multiple verification methods to verify the user's identity information. Specifically, if the first identity verification information indicates that the user is a virtual user, a multi-round graphic verification method can be further used to reduce the risk of false verification and improve verification accuracy.
[0187] like Figure 5 As shown, this application embodiment also provides an authentication device 500, which includes:
[0188] The acquisition module 501 is used to acquire the first touch data within a preset time window of the user. The first touch data includes the data of the user touching the graphic during graphic verification.
[0189] The first determining module 502 is used to determine the user's first authentication information based on the first touch data;
[0190] Display module 503 is used to display N rounds of verification graphics on the verification page when the first authentication information indicates that the user is a virtual user, where N is a positive integer;
[0191] The second determining module 504 is used to determine the user's second authentication information based on the user's second touch data, wherein the second touch data includes the user's touch data on the touch verification page in each of the N rounds.
[0192] The identity verification device provided in this application embodiment eliminates the need for the user to click on the verification graphic when performing preliminary verification of the user's identity information using the first touch data, thus reducing user operations and improving verification efficiency. Furthermore, the aforementioned identity verification method employs a combination of multiple verification methods to verify the user's identity information. Specifically, if the first identity verification information indicates that the user is a virtual user, a multi-round graphic verification method can be further employed to reduce the risk of false verification and improve verification accuracy.
[0193] In this embodiment of the application, the verification graph in the i-th round of N rounds includes at least two verification graphs, and the at least two verification graphs include a first verification graph and a second verification graph, i∈[1,N];
[0194] Display module 503 is also used to display the first verification graphic on the verification page;
[0195] The aforementioned identity verification device 500 further includes a receiving module for receiving the user's first input to the verification page;
[0196] The display module 503 is also configured to, in response to the first input, remove the first verification graphic from the verification page and display the second verification graphic on the verification page.
[0197] In this embodiment of the application, the first touch data includes the first display position information of the user touch graphic;
[0198] The aforementioned identity verification device 500 further includes a third determining module, used to determine the second display position information of the first verification graphic in the first round of verification graphics based on the graphic constraint information and the first display position information, through a chaotic mapping algorithm. The graphic constraint information includes information used to characterize the display size of the verification page.
[0199] The third determining module is also used to determine the second size information of the first verification graphic in the first round of verification graphics based on the graphic constraint information and the first size information of the user touch graphic, through a chaotic mapping algorithm.
[0200] The display module 503 is also used to display the first verification graphic on the verification page according to the second display position information and the second size information.
[0201] In this embodiment of the application, the second touch data includes third display position information of the user touching the first verification graphic;
[0202] The third determining module is also used to determine the fourth display position information of the second verification graphic in the first round of verification graphics by using a chaotic mapping algorithm based on the graphic constraint information, the first display position information and the third display position information.
[0203] The third determining module is also used to determine the fourth size information of the second verification graphic in the first round of verification graphics by using a chaotic mapping algorithm, based on the graphic constraint information, the third size information of the user touch graphic, and the second size information of the first verification graphic.
[0204] The display module 503 is also used to display the second verification graphic in the first round of verification graphics on the verification page according to the fourth display position information and the fourth size information.
[0205] In this embodiment of the application, the second touch data includes at least one of the following: a type of touch data and a type of touch data;
[0206] The first determining module 502 is also used to determine the matching rate of a type of virtual user corresponding to a type of touch data based on the preset correlation between a type of touch data and the matching rate of virtual users.
[0207] The first determining module 502 is also used to determine the matching rate of the second type of virtual user corresponding to the second type of touch data based on the display data of the second type of touch data and the verification graphic;
[0208] The first determining module 502 is further configured to determine the user's second identity verification information based on the virtual user matching rate, wherein the virtual user matching rate is at least one of the following: a first-class virtual user matching rate and a second-class virtual user matching rate.
[0209] In this application embodiment, a type of touch data includes at least one of the following: touch rate and touch pressure;
[0210] The first determining module 502 is further configured to determine the first virtual user matching rate corresponding to the touch rate based on the correlation between the preset touch rate and the virtual user matching rate.
[0211] The first determining module 502 is further configured to determine the second virtual user matching rate corresponding to the touch pressure based on the preset correlation between touch pressure and virtual user matching rate;
[0212] The first determining module 502 is further configured to determine a type of virtual user matching rate corresponding to a type of touch data based on the first virtual user matching rate and the second virtual user matching rate.
[0213] In this embodiment of the application, the two touch-type data includes at least one of the following: touch position, touch area, and the display data includes the second coordinates of the center point of the verification graphic and the graphic area of the verification graphic;
[0214] The first determining module 502 is also used to determine the position offset information of the touch position and the verification graphic based on the first coordinate and the second coordinate of the touch position;
[0215] The first determining module 502 is also used to determine graphic coverage information based on the touch area and the graphic area of the verification graphic;
[0216] The first determining module 502 is also used to determine the matching rate of the second type of virtual user corresponding to the second type of touch data based on the position offset information and the graphic coverage information.
[0217] In this embodiment of the application, the first determining module 502 is further configured to obtain a comprehensive virtual user matching rate based on the matching rate of a type of virtual user and the matching rate of a type of virtual user;
[0218] The first determining module 502 is further configured to determine the authentication information used to characterize the user as a real user as the second authentication information when the overall virtual user matching rate is less than or equal to the critical lower limit of the preset threshold range.
[0219] The first determining module 502 is further configured to determine the authentication information used to characterize the user as a virtual user as the user's second authentication information when the overall virtual user matching rate is greater than or equal to the critical upper limit of a preset threshold range.
[0220] The display module 503 is also used to display the next round of verification graphics on the verification page when the overall virtual user matching rate is within a preset threshold range; and to determine the user's second identity verification information based on the user's touch data on the next round of touch verification page.
[0221] In this embodiment of the application, the first determining module 502 is further configured to determine the target comprehensive virtual user matching rate corresponding to the touch data of the next round of touch verification page based on the touch data of the user's next round of touch verification page;
[0222] The first determining module 502 is further configured to determine the authentication information used to identify the user as a virtual user as the user's second authentication information when the target comprehensive virtual user matching rate is within a preset threshold range and the current round number is greater than the preset round number.
[0223] In this embodiment, the verification page also includes a distracting graphic, which has different graphic attribute information from the verification graphic. The graphic attribute information includes at least one of the following: graphic shape information, graphic size information, and graphic position information; the second touch data also includes the user's touch data on the distracting graphic.
[0224] The first determining module 502 is also used to adjust the virtual user matching rate based on the user's touch data on the interference graphic, so as to obtain the adjusted virtual user matching rate.
[0225] The first determining module 502 is also used to determine the user's second identity verification information based on the adjusted virtual user matching rate.
[0226] In this embodiment, the second authentication information includes authentication information indicating that the user is a virtual user; the device further includes a restriction module, used to restrict the user's access to system data according to preset access restriction conditions; wherein, the preset access restriction conditions include at least one of the following: access priority restriction conditions, access permission restriction conditions, access frequency restriction conditions, and access time restriction conditions. It should be noted that the authentication device 500 is a device corresponding to the above-described authentication method, and all implementation methods in the above method embodiments are applicable to the embodiments of this device and can achieve the same technical effect.
[0227] Figure 6 A schematic diagram of the hardware structure of the electronic device provided in an embodiment of this application is shown.
[0228] The electronic device may include a processor 601 and a memory 602 storing computer program instructions.
[0229] Specifically, the processor 601 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0230] Memory 602 may include mass storage for data or instructions. For example, and not limitingly, memory 602 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 602 may include removable or non-removable (or fixed) media. Where appropriate, memory 602 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 602 is non-volatile solid-state memory.
[0231] In a particular embodiment, memory 602 may include read-only memory (ROM), random access memory (RAM), disk storage media device, optical storage media device, flash memory device, electrical, optical, or other physical / tangible memory storage device. Thus, generally, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) 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 method according to one aspect of this disclosure.
[0232] The processor 601 implements any of the authentication methods described in the above embodiments by reading and executing computer program instructions stored in the memory 602.
[0233] In one example, the electronic device may also include a communication interface 603 and a bus 610. For example, Figure 6 As shown, the processor 601, memory 602, and communication interface 603 are connected through bus 610 and complete communication with each other.
[0234] The communication interface 603 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.
[0235] Bus 610 includes hardware, software, or both, that couples components of an online data traffic metering device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 610 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, any suitable bus or interconnect is contemplated herein.
[0236] Furthermore, in conjunction with the authentication methods in the above embodiments, this application embodiment can provide a computer-readable storage medium for implementation. This computer-readable storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the authentication methods in the above embodiments.
[0237] This application also provides a computer program product, including a computer program, which, when executed, implements any of the authentication methods described in the above embodiments.
[0238] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.
[0239] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0240] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0241] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. 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 is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.
[0242] The above are merely specific embodiments of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.
Claims
1. An authentication method, characterized in that, The method includes: Acquire the user's first touch data within a preset time window, the first touch data including data of the user touching the graphic during graphic verification; Based on the first touch data, the user's first authentication information is determined; If the first authentication information indicates that the user is a virtual user, N rounds of verification graphics are displayed on the verification page, where N is a positive integer; Based on the user's second touch data, the user's second authentication information is determined, wherein the second touch data includes the user's touch data on the authentication page in each of the N rounds.
2. The method according to claim 1, characterized in that, The verification pattern in the i-th round of the N rounds includes at least two verification patterns, and the at least two verification patterns include a first verification pattern and a second verification pattern, i∈[1,N]; The step of displaying N rounds of verification graphics on the verification page includes: The first verification graphic is displayed on the verification page; Receive the user's first input on the verification page; In response to the first input, the first verification graphic is removed from the verification page, and the second verification graphic is displayed on the verification page.
3. The method according to claim 2, characterized in that, The first touch data includes the first display position information of the user touch graphic; before displaying the first verification graphic in the first round of verification graphics on the verification page, the method further includes: Based on the graphic constraint information and the first display position information, a chaotic mapping algorithm is used to determine the second display position information of the first verification graphic in the first round of verification graphics. The graphic constraint information includes information used to characterize the display size of the verification page. Based on the graphic constraint information and the first size information of the user touch graphic, the second size information of the first verification graphic in the first round of verification graphics is determined by a chaotic mapping algorithm; The verification page displays the first verification graphic from the first round of verification graphics, including: The first verification graphic is displayed on the verification page according to the second display position information and the second size information.
4. The method according to claim 3, characterized in that, The second touch data includes the third display position information of the user touching the first verification graphic; Before displaying the second verification graphic from the first round of verification graphics on the verification page, the method further includes: Based on the graphic constraint information, the first display position information, and the third display position information, the fourth display position information of the second verification graphic in the first round of verification graphics is determined by a chaotic mapping algorithm. Based on the graphic constraint information, the third size information of the user touch graphic, and the second size information of the first verification graphic, the fourth size information of the second verification graphic in the first round of verification graphics is determined by a chaotic mapping algorithm. The step of displaying the second verification graphic from the first round of verification graphics on the verification page includes: According to the fourth display position information and the fourth size information, the second verification graphic in the first round of verification graphics is displayed on the verification page.
5. The method according to claim 1, characterized in that, The second touch data includes at least one of the following: a type of touch data and a type of touch data; The step of determining the user's second authentication information based on the user's second touch data includes: Based on the pre-defined correlation between a type of touch data and the matching rate of virtual users, determine the matching rate of a type of virtual users corresponding to the type of touch data; Based on the two types of touch data and the display data of the verification graphic, determine the matching rate of the two types of virtual users corresponding to the two types of touch data; The second identity verification information of the user is determined based on the virtual user matching rate, wherein the virtual user matching rate is at least one of the following: the first type of virtual user matching rate and the second type of virtual user matching rate.
6. The method according to claim 5, characterized in that, The type of touch data includes at least one of the following: touch rate and touch pressure; the step of determining the type of virtual user matching rate corresponding to the type of touch data based on the preset correlation between the type of touch data and the virtual user matching rate includes: Based on the correlation between the preset touch rate and the virtual user matching rate, a first virtual user matching rate corresponding to the touch rate is determined; Based on the preset correlation between touch pressure and virtual user matching rate, a second virtual user matching rate corresponding to the touch pressure is determined; Based on the first virtual user matching rate and the second virtual user matching rate, a type of virtual user matching rate corresponding to the type of touch data is determined.
7. The method according to claim 5, characterized in that, The two-touch data includes at least one of the following: touch position and touch area; the display data includes the second coordinates of the center point of the verification graphic and the graphic area of the verification graphic. The step of determining the matching rate of the two types of virtual users corresponding to the two types of touch data based on the two types of touch data and the display data of the verification graphic includes: Based on the first coordinate and the second coordinate of the touch position, determine the position offset information of the touch position and the verification graphic; Based on the touch area and the area of the verification graphic, determine the graphic coverage information; Based on the position offset information and the graphic coverage information, the matching rate of the two types of virtual users corresponding to the two types of touch data is determined.
8. The method according to claim 5, characterized in that, The step of determining the user's second identity verification information based on the virtual user matching rate includes: Based on the matching rates of the first type of virtual users and the matching rates of the second type of virtual users, a comprehensive virtual user matching rate is obtained; When the overall virtual user matching rate is less than or equal to the critical lower limit of the preset threshold range, the authentication information used to characterize the user as a real user is determined as the second authentication information; If the overall virtual user matching rate is greater than or equal to the upper limit of the preset threshold range, the authentication information used to characterize the user as a virtual user will be determined as the user's second authentication information. If the overall virtual user matching rate is within a preset threshold range, the next round of verification graphics is displayed on the verification page; based on the user's touch data of touching the verification page in the next round, the user's second identity verification information is determined.
9. The method according to claim 8, characterized in that, The step of determining the user's second identity verification information based on the user's touch data from the next round of touches on the verification page includes: Based on the user's touch data in the next round of touching the verification page, determine the target comprehensive virtual user matching rate corresponding to the touch data in the next round of touching the verification page; If the target overall virtual user matching rate is within a preset threshold range and the current round number is greater than the preset round number, the authentication information used to characterize the user as a virtual user will be determined as the user's second authentication information.
10. The method according to claim 5, characterized in that, The verification page also includes a distracting graphic, the distracting graphic having different graphic attribute information from the verification graphic, the graphic attribute information including at least one of the following: graphic shape information, graphic size information, and graphic position information; the second touch data also includes user touch data on the distracting graphic; The step of determining the user's second identity verification information based on the virtual user matching rate includes: Based on the user's touch data on the interference graphic, the virtual user matching rate is adjusted to obtain the adjusted virtual user matching rate; The user's second identity verification information is determined based on the adjusted virtual user matching rate.
11. The method according to claim 1, characterized in that, The second authentication information includes authentication information indicating that the user is a virtual user; the method further includes: According to preset access restrictions, the user's access to system data is restricted; The preset access restrictions include at least one of the following: access priority restrictions, access permission restrictions, access frequency restrictions, and access time restrictions.
12. An authentication device, characterized in that, The device includes: The acquisition module is used to acquire the first touch data within a preset time window of the user, the first touch data including the data of the user touching the graphic during graphic verification; The first determining module is used to determine the user's first authentication information based on the first touch data; The display module is used to display N rounds of verification graphics on the verification page when the first authentication information indicates that the user is a virtual user, where N is a positive integer; The second determining module is used to determine the user's second authentication information based on the user's second touch data, wherein the second touch data includes the touch data of the user touching the verification page in each of the N rounds.
13. An electronic device, characterized in that, The electronic device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the authentication method as described in any one of claims 1-11.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions that, when executed by a processor, implement the authentication method as described in any one of claims 1-11.
