Login interface verification method, device and computer-readable storage medium

By performing graph verification on the login interface, obtaining and verifying the user's trajectory data, the problems of low security and high server pressure in the prior art are solved, and higher security and lower server load are achieved.

CN116776313BActive Publication Date: 2025-05-20CHONGQING JINKANG NEW ENERGY VEHICLE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310748897.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-25
Publication Date
2025-05-20
Estimated Expiration
2043-06-25

AI Technical Summary

Technical Problem

In the prior art, the login verification method is relatively low in security, and the server is under great pressure because the verification process requires multiple participation from the server.

Method used

By responding to the user's drawing verification request in the login interface, the trajectory data generated by the user in the specified drawing area is obtained, and the trajectory data is verified according to the preset graphic verification strategy, forming a progressive verification process.

Benefits of technology

It improves the security of login verification, reduces the difficulty of forging data, and reduces the verification pressure of the server, avoiding the burden caused by the server's multiple participation in verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116776313B_ABST
    Figure CN116776313B_ABST
Patent Text Reader

Abstract

The embodiments of the present application relate to the field of vehicle technology, and disclose a verification method, device, and computer-readable storage medium for a login interface, wherein the method comprises: in response to a drawing verification request triggered by a user, displaying a drawing strategy that passes the drawing verification request on the login interface; wherein the drawing strategy comprises a specified drawing area; obtaining trajectory data generated by the user in the process of drawing the login interface in response to the drawing strategy; wherein the trajectory data comprises a plurality of trajectory coordinate points; detecting whether all trajectory coordinate points are within the specified drawing area; if so, performing a verification operation on the trajectory data according to a specified preset graphic verification strategy, and determining whether the drawing verification request is passed according to the verification result. The trajectory data is dynamic data generated during the interaction between the user and the login interface, which increases the difficulty of forging data and improves the security of the verification process. In addition, this verification method does not require the participation of the server, thereby reducing the verification pressure on the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of data verification, and particularly to a verification method, device and computer-readable storage medium for a login interface. Background Art

[0002] Currently, the verification methods for preventing users from brute-force logging in mainly include the following: One is the verification method with high requirements for login security, which usually uses the method of SMS verification code or picture verification code, combined with server-side verification operations to complete the login verification. The other is the verification method with low requirements for security, which uses verification methods without server participation such as dragging to complete a picture, or directly submitting a form to the server side for verification. Among them, the verification methods of SMS verification code, picture verification code and dragging to complete a picture are all single static verification methods, and the security is poor. Secondly, the verification methods of SMS verification code or picture verification code both require the participation of the server, thus increasing the server pressure. Moreover, the verification method of dragging to complete a picture usually limits the single dragging direction, and is easily cracked by password stealing software, and its security is low.

[0003] In summary, the current verification method has low security, and at the same time, because the server needs to participate multiple times during the verification process, the verification pressure on the server is relatively large. Summary of the Invention

[0004] In view of the above problems, the embodiments of the present application provide a verification method, device and computer-readable storage medium for a login interface, which are used to solve the technical problems of low security of the verification method and large server pressure existing in the prior art.

[0005] According to one aspect of the embodiments of the present application, a verification method for a login interface is provided. The verification method includes: in response to a drawing verification request triggered by a user, displaying a drawing strategy passing through the drawing verification request on the login interface; wherein the drawing strategy includes a specified drawing area; obtaining trajectory data generated by the user during the drawing process on the login interface in response to the drawing strategy; wherein the trajectory data includes a plurality of trajectory coordinate points; detecting whether all the trajectory coordinate points are within the specified drawing area; if so, performing a verification operation on the trajectory data according to a specified preset graphic verification strategy, and determining whether to pass the drawing verification request according to the verification result.

[0006] According to another aspect of the embodiments of the present application, a verification device for a login interface is provided. The verification device includes: a response module, configured to display a drawing verification strategy passed by the drawing verification request on the login interface in response to a drawing verification request triggered by a user; wherein the drawing verification strategy includes a specified drawing area; an acquisition module, configured to acquire trajectory data generated by the user during the drawing process on the login interface in response to the drawing verification strategy; wherein the trajectory data includes a plurality of trajectory coordinate points; a detection module, configured to detect whether all the trajectory coordinate points are within the specified drawing area; a verification module, configured to, if so, perform a verification operation on the trajectory data according to a specified preset graphic verification strategy, and determine whether to pass the drawing verification request according to the verification result.

[0007] In an optional manner, the verification module includes: a first determination unit, configured to determine a trajectory graph obtained by the user's drawing in the specified drawing area according to the plurality of trajectory coordinate points; a first verification unit, configured to match the trajectory graph with a preset graph in the specified preset graphic verification strategy, and use the obtained matching result as the verification result to determine whether to pass the drawing verification request.

[0008] In an optional manner, the preset graphic verification strategy includes a triangle verification strategy; the verification module includes: a division unit, configured to determine four target coordinate point arrays according to the plurality of trajectory coordinate points, and divide the plurality of trajectory coordinate points into the four target coordinate point arrays; a selection unit, configured to determine a preset determination strategy for the vertices of the trajectory graph according to the number of trajectory coordinate points in each target coordinate point array to obtain the trajectory graph; a second verification unit, configured to verify whether the trajectory graph is a triangle, and determine whether to pass the drawing verification request according to the verification result.

[0009] In an optional manner, the second verification unit includes: a recording section, configured to select sample trajectory coordinate points from the plurality of trajectory coordinate points and record the total number of the sample trajectory coordinate points; a calculation section, configured to determine three side lines of the trajectory graph according to the vertices of the trajectory graph, calculate the distance value from each sample trajectory coordinate point to the corresponding side line, and calculate the error value between each distance value and a preset distance value; a verification section, configured to calculate an error percentage according to the number of sample trajectory coordinate points with an error value greater than the preset error value and the total number of the sample trajectory coordinate points, and verify whether the trajectory graph is a triangle according to the error percentage.

[0010] In an alternative manner, the preset graphic verification strategy includes a circular verification strategy; the verification module includes: a first recording unit, configured to select sample trajectory coordinate points from the multiple trajectory coordinate points and record the total number of the sample trajectory coordinate points; a first calculation unit, configured to determine a target center and a target radius corresponding to the trajectory graphic according to the sample trajectory coordinate points, calculate a distance value from each sample trajectory coordinate point to the target center, and calculate an error value between each distance value and the target radius; a second verification unit, configured to calculate an error percentage according to the number of sample trajectory coordinate points with error values greater than a preset error value and the total number of the sample trajectory coordinate points, and verify whether the trajectory graphic is circular according to the error percentage.

[0011] In an alternative manner, the preset graphic verification strategy includes a rectangular verification strategy; the verification module includes: a second determination unit, configured to determine four vertices of the trajectory graphic from the multiple trajectory coordinate points and determine four side lines of the trajectory graphic according to the four vertices; a second recording unit, configured to select sample trajectory coordinate points from the multiple trajectory coordinate points and record the total number of the sample trajectory coordinate points; a second calculation unit, configured to calculate a distance value from each sample trajectory coordinate point to an adjacent side line and calculate an error value between each distance value and a preset distance value; a third verification unit, configured to calculate an error percentage according to the number of sample trajectory coordinate points with error values greater than a preset error value and the total number of the sample trajectory coordinate points, and verify whether the trajectory graphic is rectangular according to the error percentage.

[0012] In an alternative manner, the verification device further includes: a verification failure module, configured to determine that the drawing verification request fails if the verification result indicates that the graphic verification fails, and display the result that the drawing verification request fails on the login interface so that the user can determine whether to trigger the drawing verification request again; a verification success module, configured to determine that the drawing verification request passes if the verification result indicates that the graphic verification succeeds, and send the user login information carried in the drawing verification request to the server so that the server performs a verification operation on the user login information.

[0013] According to one aspect of the embodiments of the present application, an electronic device is provided, including: a controller; a memory, configured to store one or more programs, which when executed by the controller, are configured to execute the above verification method.

[0014] According to one aspect of the embodiments of the present application, a computer-readable storage medium is further provided, on which computer-readable instructions are stored, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the above verification method.

[0015] According to one aspect of the embodiments of the present application, there is also provided a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above verification method.

[0016] The embodiments of the present application perform verification by obtaining the trajectory data generated during the user's drawing process on the login interface. Since the trajectory data is dynamic data generated during the interaction between the user and the login interface, it increases the difficulty of forging data and improves the security of the verification process to a certain extent. Secondly, all trajectory coordinate points need to be within the specified drawing area before performing the verification operation on the trajectory data according to the specified preset graphic verification strategy, that is, a progressive verification process is formed, enhancing the security of the verification process. In addition, the verification method of the present application only performs verification operations on the login interface without the need for server operation and processing, thus reducing the verification pressure on the server.

[0017] The above description is only an overview of the technical solutions of the embodiments of the present application. In order to be able to understand the technical means of the embodiments of the present application more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features and advantages of the embodiments of the present application more obvious and understandable, the following specifically describes the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings here are incorporated into the specification and form a part of this specification, showing the embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0019] Figure 1 It is a schematic diagram of the normal login process of an existing user.

[0020] Figure 2 It is a schematic diagram of the process of a verification method for a login interface shown in an exemplary embodiment of the present application.

[0021] Figure 3 It is based on Figure 2 shown in the exemplary embodiment, and is a schematic diagram of the process of another verification method for a login interface.

[0022] Figure 4 It is based on Figure 2 shown in the exemplary embodiment, and is a schematic diagram of the process of another verification method for a login interface.

[0023] Figure 5 It is a schematic diagram showing three distribution situations of the vertices of a triangle shown in an exemplary embodiment of the present application.

[0024] Figure 6 It is based on Figure 4 A schematic flowchart of another verification method for a login interface shown in the exemplary embodiment.

[0025] Figure 7 It is a schematic diagram showing the determination method of the adjacent side lines of the trajectory coordinate points shown in an exemplary embodiment of the present application.

[0026] Figure 8 It is based on Figure 2 A schematic flowchart of another verification method for a login interface shown in the exemplary embodiment.

[0027] Figure 9 It is based on Figure 2 A schematic flowchart of another verification method for a login interface shown in the exemplary embodiment.

[0028] Figure 10 It is based on Figures 2 to 4 、 Figure 6 、 Figures 8 to 9 A schematic flowchart of another verification method for a login interface shown in any one of the exemplary embodiments.

[0029] Figure 11 It is a schematic diagram of the application scenario of the verification method of the present application.

[0030] Figure 12 It is a schematic diagram of the structure of a verification device shown in an exemplary embodiment of the present application.

[0031] Figure 13 It is a schematic diagram of the structure of the computer system of an electronic device shown in an exemplary embodiment of the present application. Detailed Description of the Embodiments

[0032] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0033] The block diagrams shown in the drawings are only functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0034] The flowcharts shown in the drawings are only illustrative descriptions, and do not necessarily include all contents and operations / steps, nor do they necessarily need to be executed in the described order. For example, some operations / steps can be decomposed, while some operations / steps can be combined or partially combined. Therefore, the actual execution order may change according to the actual situation.

[0035] In this application, "a plurality of" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.

[0036] Please refer to Figure 1 as shown Figure 1 is a schematic diagram of the normal login process of existing users. After the user accesses the login interface, a form including the input account and password is directly submitted to the server side for verification. Among them, because the verification process requires the participation of the server, the verification pressure on the server is too high. In order to prevent brute-force login by users or cracking of password libraries by password stealing software, to prevent brute-force login by users or cracking of password libraries by password stealing software. Currently, a verification method using SMS verification codes or picture verification codes is adopted to verify the verification request, and its verification process requires the participation of the server, resulting in a relatively large verification pressure on the server. Although the verification method of dragging to complete the picture does not require the participation of the server, due to its single dragging direction, it is easily cracked by password stealing software, and its security is relatively low.

[0037] Therefore, on the one hand, this application provides a verification method for the login interface, which adds a preposed drawing verification method on the basis of normal user login. Specifically, please refer to Figure 2 , Figure 2 is a schematic diagram of the flow of a verification method for a login interface shown in an exemplary embodiment of this application. This verification method at least includes S210 to S240, which are introduced in detail as follows:

[0038] S210: In response to the drawing verification request triggered by the user, display the drawing strategy passing through the drawing verification request on the login interface; wherein, the drawing strategy includes a specified drawing area.

[0039] The drawing verification request can be a verification request triggered by the user for the first time on the login interface, or a verification request triggered after the number of times of other verification methods reaches a preset number. Exemplarily, as Figure 1 shown, the user submits the form to the server for verification multiple times. If the number of server verifications reaches the first preset verification number, the server directly locks the terminal IP and prohibits the terminal from logging in within the locked time. To reduce the verification pressure on the server and reduce the number of server verifications, this application enables the verification method of this embodiment when the number of server verifications reaches the second preset verification number. And in the subsequent verification process, if it is detected that the subsequent number of server verifications reaches the third preset verification number, the server directly locks the terminal IP and prohibits the terminal from logging in within the locked time. Among them, the second preset verification number is less than the first preset verification number, and the sum of the second preset verification number and the third preset verification number is equal to the first preset verification number.

[0040] Specifically, existing users can submit the form to the server for verification a total of 5 times on the normal login interface. If the server still fails the verification for the 5th time, the terminal IP will be directly locked and the terminal will be prohibited from logging in within the locked time. In this embodiment, if it is detected that the server fails the verification for the 3rd time, the execution end of this embodiment responds to the drawing verification request triggered by the user and starts to execute the drawing verification method. It should be noted that in order not to increase the original number of server verifications, the subsequent server will perform at most 2 more verification operations and then lock the terminal IP. For example, after the first drawing verification is successful, the login interface jumps to the normal login interface, and the current form is submitted to the server for verification. If the server verification fails, drawing verification needs to be performed again. After the verification is successful, the form can be submitted to the server for verification again. If the server still fails the verification for the second time, the terminal IP will be directly locked and the terminal will be prohibited from logging in within the locked time. It should be noted that the number of drawing verifications in this embodiment is not limited.

[0041] The user understands the relevant requirements of the drawing process through the drawing strategy displayed on the login interface, especially the specified drawing area. For example, a blank drawing page is displayed on the login interface and divided into multiple drawing areas, such as divided into 4 drawing areas in the upper left, lower left, upper right, and lower right. The specified drawing area can be one or more of them. For example, the drawing strategy requires the user to perform drawing operations in the upper left and lower left drawing areas.

[0042] The drawing strategy also includes the shape of the graph, the drawing order, the number of drawings, etc. This embodiment does not specifically limit them. For example, the drawing strategy requires drawing a circle in the first drawing area and a triangle in the second area; or requires drawing two circles in the first drawing area, so that the trajectory data generated by the user involves multiple trajectory coordinates, increasing the verification data volume, reducing accidental errors, and thus improving the accuracy of the verification process.

[0043] For another example, it is required to draw a circle clockwise in the second drawing area. That is, when recording the trajectory data, the generation time of each trajectory coordinate point is recorded to combine the position coordinates of two adjacent trajectory coordinate points, so as to determine the drawing order during the user's drawing process, increasing the data to be detected in the trajectory data and increasing the cracking difficulty of the password stealing software, thereby improving the security of the verification process.

[0044] S220: Obtain the trajectory data generated by the user during the drawing process on the login interface in response to the drawing strategy; wherein, the trajectory data includes multiple trajectory coordinate points.

[0045] The user draws a graph on the login interface according to the drawing strategy, and multiple trajectory coordinate points are generated during the drawing process.

[0046] Exemplarily, the drawing strategy is to draw a circle in the upper left area of the drawing page. In response to this drawing strategy, the user uses the mouse to draw a circle in the upper left area. Wherein, the drawing page is similar to a two-dimensional coordinate system, and the user generates trajectory data including multiple two-dimensional coordinate points during the drawing process.

[0047] In a preferred embodiment, the trajectory data in this embodiment is continuous data, that is, the trajectory data generated by the user continuously without interruption. If the user breaks or pauses during the drawing process, it will cause the lack of continuity of the trajectory data, and the user needs to draw continuously again to collect continuous trajectory data. Because the continuous trajectory data is obtained by the user's continuous drawing, the continuity between the trajectory coordinate points in the trajectory data is stronger, and thus the shape of the trajectory graph formed by the trajectory coordinate points is more complete, greatly reducing the error of subsequent graph verification.

[0048] S230: Detect whether all trajectory coordinate points are within the specified drawing area.

[0049] Obtain the range value of the first coordinate axis corresponding to the specified drawing area and the range value of the corresponding second coordinate axis. If the first coordinate axis value of each trajectory coordinate point is within the range value of the first coordinate axis corresponding to the specified drawing area, and the second coordinate axis value of each trajectory coordinate point is within the range value of the second coordinate axis corresponding to the specified drawing area, it is determined that all trajectory coordinate points are within the specified drawing area, otherwise they are not.

[0050] S240: If so, perform a verification operation on the trajectory data according to the specified preset graph verification strategy, and determine whether to pass the drawing verification request according to the verification result.

[0051] Exemplarily, if it is detected that all the trajectory coordinate points are within the specified drawing area, then the next step of detailed verification is performed. For example, the shape of the figure generated by the user in the specified drawing area is determined according to the trajectory data, and it is detected whether the shape of the figure is the shape of the figure in the specified preset figure verification strategy. If so, the drawing verification request is passed; if not, the drawing verification request is not passed.

[0052] In this embodiment, it is required that all the trajectory coordinate points are within the specified drawing area, and then the trajectory data is verified according to the specified preset figure verification strategy, forming a progressive verification process. It should be noted that there is a corresponding relationship between the preset figure verification strategy and the drawing strategy. For example, if the drawing strategy is to draw a circle, the specified preset figure verification strategy is the preset circle verification strategy.

[0053] In some other embodiments, if it is detected that all the trajectory coordinate points are not within the specified drawing area, it is directly indicated that the drawing verification request is not passed. The drawing page of the login interface can be cleared, and the new drawing strategy is displayed on the login interface; or it is displayed on the login interface that the drawing verification request is not passed, so that the user can decide whether to trigger the drawing verification request again. If it is detected that the user triggers the drawing verification request again, the drawing page of the login interface is cleared, and the new drawing strategy is displayed on the login interface.

[0054] In the embodiment of the present application, by responding to the drawing verification request triggered by the user, the drawing strategy that passes the drawing verification request is displayed on the login interface; the human-computer interaction intensity in the verification process is enhanced, and the trajectory data generated by the user during the drawing process on the login interface is obtained for verification. Because the trajectory data is dynamic data generated during the interaction between the user and the login interface, the difficulty of forging data is increased, and the security of the verification process is improved to a certain extent. Secondly, it is required that all the trajectory coordinate points are within the specified drawing area, and then the trajectory data is verified according to the specified preset figure verification strategy, that is, a progressive verification process is formed, enhancing the security of the verification process. In addition, the verification method of the present application only performs verification operations on the login interface without server operation processing, thereby reducing the verification pressure on the server.

[0055] In an exemplary embodiment of the present application, it is illustrated how to verify the trajectory data according to the specified preset figure verification strategy, and how to determine whether to pass the drawing verification request according to the verification result. For details, please refer to Figure 3 , Figure 3 is based on Figure 2 shown in the flow chart of another verification method for the login interface shown in the exemplary embodiment. This verification method further includes S310 to S320 in S240 as shown in Figure 2 shown, and the details are introduced as follows:

[0056] S310: Determine the trajectory graph obtained by the user's drawing in the specified drawing area based on multiple trajectory coordinate points.

[0057] S320: Match the trajectory graph with the preset graph in the specified preset graph verification strategy, and use the obtained matching result as the verification result to determine whether the drawing verification request is passed.

[0058] An exemplary description of this embodiment is as follows: The preset graph in the specified preset graph verification strategy is a rectangle. Restore the trajectory graph obtained by the user's drawing in the specified drawing area based on multiple trajectory coordinate points, and match the shape of the trajectory graph with the shape of the preset graph. If the match is successful, it indicates that the shape of the trajectory graph is also a rectangle, and the drawing verification request is passed. If the match fails, it indicates that the shape of the trajectory graph is not a rectangle, and the drawing verification request is not passed.

[0059] This embodiment provides a method for verifying trajectory data according to a specified preset graph verification strategy. Accurately restore the trajectory graph obtained by the user's drawing in the specified drawing area based on multiple trajectory coordinate points, and match it with the preset graph in the specified preset graph verification strategy to accurately determine whether the drawing verification request is passed.

[0060] In an exemplary embodiment of the present application, the above S240 is described in detail. Among them, the preset graph verification strategy includes a triangle verification strategy. For details, please refer to Figure 4 , Figure 4 which is based on Figure 2 shown in the flow diagram of another verification method for the login interface in the exemplary embodiment. This verification method further includes S410 to S430 in S240 as shown in Figure 2 and is introduced in detail as follows:

[0061] S410: Determine four target coordinate point arrays based on multiple trajectory coordinate points, and divide the multiple trajectory coordinate points into the four target coordinate point arrays.

[0062] Exemplarily, traverse each trajectory coordinate point, determine an array of target coordinate points with the largest value on the first coordinate axis, and divide the trajectory coordinate points corresponding to the largest value on the first coordinate axis into this array of target coordinate points; determine an array of target coordinate points with the smallest value on the first coordinate axis, and divide the trajectory coordinate points corresponding to the smallest value on the first coordinate axis into this array of target coordinate points; determine an array of target coordinate points with the largest value on the second coordinate axis, and divide the trajectory coordinate points corresponding to the largest value on the second coordinate axis into this array of target coordinate points; determine an array of target coordinate points with the smallest value on the second coordinate axis, and divide the trajectory coordinate points corresponding to the smallest value on the second coordinate axis into this array of target coordinate points. Divide in the above manner, and the same trajectory coordinate point may be repeatedly divided into different arrays of target coordinate points.

[0063] S420: Determine a preset determination strategy for the vertices of the trajectory graph according to the number of trajectory coordinate points in each array of target coordinate points, so as to obtain the trajectory graph.

[0064] Please refer to Figure 5 , Figure 5 which is a schematic diagram showing three distribution cases of the vertices of a triangle shown in an exemplary embodiment of the present application. This embodiment provides three preset determination strategies for determining the vertices of the trajectory graph:

[0065] Exemplarily, there is only one trajectory coordinate point in each target coordinate array: respectively obtain the only one trajectory coordinate point from the four arrays of target coordinate points; respectively calculate the distances between two different trajectory coordinate points, so as to determine the two trajectory coordinate points with the shortest distance; take the average values X 1 and Y 1 of the X-axis and Y-axis of these two trajectory coordinate points, X 1 and Y 1 constitute a new point coordinate, which is used as a vertex of the trajectory graph; the remaining two trajectory coordinate points are used as the other two vertices of the trajectory graph. As shown in ① of Figure 5 , the trajectory coordinate point (X 最小 , Y 最大 ) is located in the array of target coordinate points with the smallest value on the X-axis and also in the array of target coordinate points with the largest value on the Y-axis, that is, the distance between the trajectory coordinate points in these two arrays of target coordinate points is 0, that is, (X 最小 , Y 最大 ) is a vertex of this trajectory graph, and the trajectory coordinates in the other two arrays of target coordinate points are the other two vertices.

[0066] Another exemplarily, among the four arrays of target coordinate points, there is an array of target coordinate points with multiple trajectory coordinate points. Traverse the array of target coordinate points with multiple trajectory coordinate points. If the values of the X-axis corresponding to all trajectory coordinate points are the same, then the vertices of the trajectory graph are located in the array of target coordinate points with the smallest value on the Y-axis, or asFigure 5 As shown in ②: the vertex is located in the target coordinate point array with the largest Y-axis value; if the Y-axis values corresponding to all the trajectory coordinate points are the same, the vertex of the trajectory graph is located in the target coordinate point array with the smallest X-axis value, or in the target coordinate point array with the largest X-axis value.

[0067] Furthermore, if there is only one trajectory coordinate point in the target coordinate point array to which the vertex belongs, it is directly used as a vertex of the trajectory graph.

[0068] If there are multiple trajectory coordinate points in the target coordinate point array to which the vertex belongs, and the X-axis values corresponding to all the trajectory coordinate points are the same, then the trajectory coordinate point with the largest Y-axis value and the trajectory coordinate point with the smallest Y-axis value in this target coordinate point array are used as two vertices of the trajectory graph.

[0069] If there are multiple trajectory coordinate points in the target coordinate point array to which the vertex belongs, and the Y-axis values corresponding to all the trajectory coordinate points are the same, then the trajectory coordinate point with the largest X-axis value and the trajectory coordinate point with the smallest X-axis value in this target coordinate point array are used as two vertices of the trajectory graph.

[0070] Another example is that among the four target coordinate point arrays, two target coordinate points each have only one trajectory coordinate point, and the remaining two target coordinate point arrays each have multiple trajectory coordinate points, as Figure 5 shown in ③,

[0071] Traverse the two target coordinate point arrays with multiple trajectory coordinate points respectively. If the X-axis values corresponding to all the trajectory coordinate points in the currently traversed target coordinate point array are the same, then the trajectory coordinate point with the largest Y-axis value and the trajectory coordinate point with the smallest Y-axis value in the current target coordinate point array are used as the first plotted point and the second plotted point.

[0072] If the Y-axis values corresponding to all the trajectory coordinate points in the currently traversed target coordinate point array are the same, then the trajectory coordinate point with the largest X-axis value and the trajectory coordinate point with the smallest X-axis value in the current target coordinate point array are used as the third plotted point and the fourth plotted point.

[0073] Among the above four plotted points, calculate the distance between each two plotted points, and determine a vertex of the trajectory graph according to the two plotted points with the shortest distance. For example, take the average value of the corresponding X-axis and the average value of the corresponding Y-axis of the two plotted points with the shortest distance as the X-axis value and the Y-axis value corresponding to this vertex. And use the other two target coordinate points each with only one trajectory coordinate point as the other two vertices of the trajectory graph.

[0074] S430: Verify whether the trajectory graph is a triangle, and determine whether to pass the drawing verification request based on the verification result.

[0075] For the three vertices determined according to the above steps, connect two vertices in sequence to determine whether the formed trajectory graph is a triangle. If so, the drawing verification requirement is passed; if not, the drawing verification requirement is not passed.

[0076] This embodiment provides a method for verifying trajectory data according to a triangle verification strategy. Three vertices of the trajectory graph are determined through trajectory coordinate points, and a complete trajectory graph is constructed based on the three vertices to determine whether it is a triangle. This embodiment conducts verification through the verification strategy of a simple graph, which is convenient for users to draw; and during the verification process, due to the simplicity of the graph, the difficulty of the verification process is reduced while ensuring verification security.

[0077] Further, in an exemplary embodiment of the present application, S430 is described in detail. For specific details, please refer to Figure 6 , Figure 6 is based on Figure 4 shown in the flow diagram of another verification method for the login interface in the exemplary embodiment. This verification method further includes S610 to S630 in S430 as shown in Figure 4 shown below:

[0078] S610: Select sample trajectory coordinate points from multiple trajectory coordinate points and record the total number of sample trajectory coordinate points.

[0079] The sample selection method can be random selection or sequential extraction of samples at a preset sampling interval. The number of samples obtained each time is different, so the total number of samples needs to be recorded.

[0080] S620: Determine three side lines of the trajectory graph according to the vertices of the trajectory graph, calculate the distance value from each sample trajectory coordinate point to the corresponding side line, and calculate the error value between each distance value and the preset distance value.

[0081] Exemplarily, a target straight line can be determined according to two target coordinate points (i.e., the vertices of the trajectory graph). For example, according to the coordinate values of the two target coordinate points, the straight line equation of the target straight line is determined, so as to determine the straight line equations of the three target straight lines.

[0082] Calculate the distance value from each sample trajectory coordinate point to the adjacent side line. For example, if the A sample trajectory coordinate point is adjacent to the first target straight line, calculate the distance from the A sample trajectory coordinate point to the first target straight line; if it is calculated that the B sample trajectory coordinate point is adjacent to the third target straight line, calculate the distance from the B sample trajectory coordinate point to the third target straight line.

[0083] Among them, the determination method of the sample trajectory coordinate points corresponding to the adjacent side lines is as follows Figure 7 shown Figure 7 is a schematic diagram of the determination method of the adjacent side line of the trajectory coordinate point shown in an exemplary embodiment of the present application. According to the two vertex coordinates of the target punctuation: A and B, the adjacent range adjacent to the target side line is determined, that is Figure 7 the dashed rectangle in, and the adjacent side line of the trajectory coordinate point in the dashed rectangle is the target side line

[0084] Both the preset distance value and the following preset error value are preset parameters. An exemplary calculation formula for the error value is as follows

[0085] K = |distance value - preset distance value|;

[0086] Among them, K represents the error value, and the specific unit is not limited in this embodiment

[0087] S630: Calculate the error percentage according to the number of sample trajectory coordinate points with an error value greater than the preset error value and the total number of sample trajectory coordinate points, and verify whether the trajectory graph is a triangle according to the error percentage

[0088] Exemplarily, the error percentage is calculated according to the following formula

[0089] Error percentage = N / M;

[0090] Among them, N represents the number of sample trajectory coordinate points with an error value greater than the preset error value, and M represents the total number of sample trajectory coordinate points

[0091] If the calculated error percentage is greater than the preset error percentage, it indicates that the trajectory graph is not a triangle; if the calculated error percentage is less than the preset error percentage, it indicates that the trajectory graph is a triangle; if the calculated error percentage is equal to the preset error percentage, it can indicate that the trajectory graph is not a triangle, or it can also indicate that the trajectory graph is a triangle, and this embodiment does not limit it

[0092] This embodiment further illustrates how to determine whether the shape of the trajectory graph is a triangle. By means of sampling calculation, it is not necessary to calculate and process all data, reducing the amount of data calculation, thereby improving the verification efficiency. By numerically processing the distance between points and lines, it is convenient to determine the error value between each distance value and the preset distance value

[0093] In an exemplary embodiment of the present application, S240 is described in detail above. Among them, the preset graph verification strategy includes a circular verification strategy. For details, please refer to Figure 8 , Figure 8 is based on Figure 2Schematic flowchart of another verification method for the login interface shown in the exemplary embodiment. This verification method further includes S810 to S830 in S240 as shown in Figure 2 and is described in detail as follows:

[0094] S810: Select sample trajectory coordinate points from multiple trajectory coordinate points and record the total number of sample trajectory coordinate points.

[0095] Similar to the above S610, it will not be elaborated here.

[0096] S820: Determine the target center and target radius corresponding to the trajectory graph according to the sample trajectory coordinate points, calculate the distance value from each sample trajectory coordinate point to the target center, and calculate the error value between each distance value and the target radius.

[0097] Exemplarily, arbitrarily select three trajectory coordinate points from the sample trajectory coordinate points to determine a circle, thereby determining its center and radius; and so on, determine multiple circles, thereby determining multiple centers and multiple radii; and take the calculated average center as the target center and the calculated average radius as the target radius.

[0098] An exemplary calculation formula for the error value is as follows:

[0099] K = |distance value - target radius|;

[0100] where K represents the error value, and the specific unit is not limited in this embodiment.

[0101] S830: Calculate the error percentage according to the number of sample trajectory coordinate points with error values greater than the preset error value and the total number of sample trajectory coordinate points, and verify whether the trajectory graph is a circle according to the error percentage.

[0102] Similar to the above S630, it will not be elaborated here.

[0103] Exemplarily, the preset error value is 10; the preset error percentage is 30%, the number of sample trajectory coordinate points with error values greater than 10 is calculated as 50, and the total number of sample trajectory coordinate points is 100, then the error percentage is 50%. Since 50% > 30%, it can be determined that the trajectory graph is not a circle.

[0104] This embodiment further illustrates how to determine whether the shape of the trajectory graph is a circle. By means of sampling calculation, it is not necessary to calculate and process all data, reducing the amount of data calculation and thus improving the verification efficiency. Based on the principle of determining a circle with three trajectory coordinate points, the target center and target radius are determined according to the centers and radii of multiple circles, and the distances from the sample trajectory coordinate points to the target center are determined to calculate the error values between each distance value and the target radius, and then the error percentage is calculated to accurately determine whether the trajectory graph is a circle.

[0105] In an exemplary embodiment of the present application, S240 is described in detail, where the preset graph verification strategy includes a circle verification strategy. For details, please refer to Figure 9 , Figure 9 is based on Figure 2 shown in the flowchart of another verification method for the login interface in the exemplary embodiment. This verification method further includes S910 to S940 in S240 as shown in Figure 2 shown below in detail:

[0106] S910: Determine the four vertices of the trajectory graph from multiple trajectory coordinate points, and determine the four side lines of the trajectory graph according to the four vertices.

[0107] Exemplarily, traverse multiple trajectory coordinate points to determine four vertices (X 最小 , Y 最小 )(X 最小 , Y 最大 )(X 最大 , Y 最小 )(X 最大 , Y 最大 ). Using these four vertices as dividing points, connect them to obtain four side lines, and divide multiple trajectory coordinate points into arrays of trajectory coordinate points adjacent to the side lines respectively.

[0108] S920: Select sample trajectory coordinate points from multiple trajectory coordinate points and record the total number of sample trajectory coordinate points.

[0109] Obtain M trajectory coordinate points from the array of trajectory coordinate points in S910 according to the preset sampling interval.

[0110] S930: Calculate the distance values from each sample trajectory coordinate point to the adjacent side line, and calculate the error values between each distance value and the preset distance value.

[0111] Exemplarily, according to the function expression for determining a side line from two points: (y - y 2 ) / (y 1 - y 2 ) = (x - x 2 ) / (x1 -x 2 ), select two vertices from the four vertices to determine the linear equations Ax + By + C = 0 of the four side lines; calculate the distance from each trajectory coordinate point in the sample trajectory coordinate points to the adjacent side line according to the following formula:

[0112]

[0113] where d represents the distance from the trajectory coordinate point to the adjacent side line; x represents the value of the first coordinate axis corresponding to the trajectory coordinate point; y represents the value of the second coordinate axis corresponding to the trajectory coordinate point; A, B, and C are constants.

[0114] Perform the following formula calculation on the calculated distance value and the preset distance value to obtain the error value:

[0115] K = |distance value - preset distance value|;

[0116] where K represents the error value, and the specific unit is not limited in this embodiment.

[0117] S940: Calculate the error percentage based on the number of sample trajectory coordinate points with error values greater than the preset error value and the total number of sample trajectory coordinate points, and verify whether the trajectory graph is a rectangle according to the error percentage.

[0118] Similar to S630 above, it will not be elaborated here.

[0119] Exemplarily, the preset error value is 8; the preset error percentage is 30%. The number of sample trajectory coordinate points with error values greater than 8 is calculated to be 20, and the total number of sample trajectory coordinate points is 100. Then the error percentage is 20%. Since 20% < 30%, it can be determined that the trajectory graph is a rectangle.

[0120] This embodiment further illustrates how to determine whether the shape of the trajectory graph is a rectangle. By means of sampling calculation, it is not necessary to perform calculation processing on all data, reducing the amount of data calculation, thereby improving the verification efficiency. Based on the principle of determining a straight line by two points, the linear equations of the four side lines of the trajectory graph are calculated, and the distance between the point and the line is numerically processed to facilitate determining the error value between each distance value and the preset distance value, and then calculating the error percentage to accurately determine whether the trajectory graph is a rectangle.

[0121] In an exemplary embodiment of the present application, S240 is described in detail. For details, please refer to Figure 10 , Figure 10 is based on Figures 2 to 4 , Figure 6 , Figures 8 to 9A schematic flowchart of another verification method for a login interface shown in any of the exemplary embodiments. This verification method further includes S1010 to S1020 in S240, which are introduced in detail as follows:

[0122] S1010: If the verification result indicates that the graphic verification fails, it is determined that the drawing verification request is not passed, and the result that the drawing verification request is not passed is displayed on the login interface so that the user can determine whether to trigger the drawing verification request again.

[0123] Exemplarily, if the drawing verification request is not passed, "Drawing verification failed. Do you want to re-perform the drawing verification operation?" is displayed on the login interface. After the user triggers the request to re-perform the drawing verification operation, a new drawing strategy is displayed on the login interface.

[0124] In some embodiments, if the drawing verification request is not passed, "Drawing verification failed" is displayed on the login interface, and a new drawing strategy is displayed on the login interface, that is, without the user triggering the drawing verification request again, the new drawing strategy is directly displayed on the login interface, thereby accelerating the subsequent drawing verification process.

[0125] S1020: If the verification result indicates that the graphic verification is successful, it is determined that the drawing verification request is passed, and the user login information carried by the drawing verification request is sent to the server so that the server can perform a verification operation on the user login information.

[0126] In this embodiment, the drawing verification operation is executed at the login interface end without the participation of the server. Only after the drawing verification request is passed, the user login information will be sent to the server for verification operation. If the server verification is passed, the user logs in successfully and the login interface jumps to the subsequent interface; if the server verification fails, the result of verification failure is returned to the login interface, and the user needs to pass the drawing verification again before the modified or unmodified user login information can be sent to the server.

[0127] This embodiment further illustrates the subsequent operations after the drawing verification request is passed or not. Only after the drawing verification request is passed, the server will receive the user login information sent from the login interface end for verification operation. Compared with the existing operation of the server directly verifying the user login information multiple times, this embodiment reduces the verification times of the server and alleviates the verification pressure of the server.

[0128] To better illustrate how the verification method of the present application alleviates the verification pressure of the server, in another exemplary embodiment of the present application, the application scenarios of the above multiple verification methods are exemplarily illustrated. For details, please refer to Figure 11 , Figure 11It is a schematic diagram of the application scenario of the verification method of this application. Among them, it includes a user terminal 100, a login interface 200, and a server 300. The three terminals can be connected by wireless communication. This application does not limit the connection method between them.

[0129] The user terminal 100 is used to collect information input by the user, including but not limited to user login information and trajectory data generated during the drawing process, etc. The user terminal 100 can send the collected user login information to the login interface 200, and the login interface 200 then sends the user login information to the server 300 so that the server 300 can verify the user login information. Among them, the user terminal 100 includes but not limited to mobile phones, computers, or other PC terminals. This application does not limit its specific device type.

[0130] The login interface 200 can execute any of the above verification methods. Exemplarily, in response to a drawing verification request triggered by the user, the login interface 200 displays the drawing strategy that passes the drawing verification request on the login interface 200; among them, the drawing strategy includes specifying a drawing area; obtaining the trajectory data generated by the user during the drawing process on the login interface 200 in response to the drawing strategy; among them, the trajectory data includes multiple trajectory coordinate points; detecting whether all trajectory coordinate points are within the specified drawing area; if so, perform a verification operation on the trajectory data according to the specified preset graphic verification strategy, and determine whether the drawing verification request is passed according to the verification result.

[0131] In a preferred embodiment, the login interface 200 sends the user login information input by the user through the user terminal 100 to the server 300 for verification. If the number of verification failures reaches the preset number of failure times, the login interface 200 will display the drawing strategy that passes the drawing verification request on the login interface 200 so that the user can draw according to this drawing strategy, and send the collected trajectory data to the login interface 200 through the user terminal 100. The login interface 200 verifies according to the received trajectory data. If the verification passes, the user login information will be sent to the server 300 for verification. If the server 300 fails to verify the user login information, the login interface 200 will display a new drawing strategy different from the previous one that passed the drawing verification request on the login interface 200 so that the user can draw according to the new drawing strategy. The user terminal 100 sends the newly collected trajectory data to the login interface 200 for re-verification, and so on. If the number of failures in the re-verification reaches the corresponding preset number of failure times, the IP of the user terminal 100 will be locked. In addition, if the number of verification failures of the server 300 reaches the corresponding preset number of verification failures, the IP of the user terminal 100 will also be locked to prevent brute-force login.

[0132] The server 300 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. Among them, multiple servers can form a blockchain, and the server is a node on the blockchain. The server 300 can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. This is not restricted here either.

[0133] Another aspect of this application also provides a verification device for a login interface, as Figure 12 shown Figure 12 is a schematic structural diagram of the verification device shown in an exemplary embodiment of this application. The verification device 1200 includes:

[0134] A response module 1210, configured to display the drawing strategy passed by the drawing verification request on the login interface in response to the drawing verification request triggered by the user; wherein, the drawing strategy includes a specified drawing area.

[0135] An acquisition module 1230, configured to acquire the trajectory data generated by the user during the drawing process on the login interface in response to the drawing strategy; wherein, the trajectory data includes multiple trajectory coordinate points.

[0136] A detection module 1250, configured to detect whether all the trajectory coordinate points are within the specified drawing area.

[0137] A verification module 1270, configured to, if so, perform a verification operation on the trajectory data according to the specified preset graphic verification strategy, and determine whether the drawing verification request is passed according to the verification result.

[0138] In another exemplary embodiment, the verification module 1270 includes:

[0139] A first determination unit, configured to determine the trajectory graphic drawn by the user in the specified drawing area according to multiple trajectory coordinate points.

[0140] A first verification unit, configured to match the trajectory graphic with the preset graphic in the specified preset graphic verification strategy, and use the obtained matching result as the verification result to determine whether the drawing verification request is passed.

[0141] In another exemplary embodiment, the preset graphic verification strategy includes a triangle verification strategy; the verification module 1270 includes:

[0142] A division unit, configured to determine four target coordinate point arrays according to multiple trajectory coordinate points, and divide the multiple trajectory coordinate points into the four target coordinate point arrays.

[0143] A selection unit, configured to determine a preset determination strategy for vertices of a trajectory graph according to the number of trajectory coordinate points in each array of target coordinate points, so as to obtain the trajectory graph.

[0144] A second verification unit, configured to verify whether the trajectory graph is a triangle, and determine whether to pass the drawing verification request according to the verification result.

[0145] In another exemplary embodiment, the second verification unit includes:

[0146] A recording section, configured to select sample trajectory coordinate points from multiple trajectory coordinate points and record the total number of the sample trajectory coordinate points.

[0147] A calculation section, configured to determine three side lines of the trajectory graph according to the vertices of the trajectory image, calculate the distance value from each sample trajectory coordinate point to the corresponding side line, and calculate the error value between each distance value and a preset distance value.

[0148] A verification section, configured to calculate an error percentage according to the number of sample trajectory coordinate points with error values greater than a preset error value and the total number of the sample trajectory coordinate points, and verify whether the trajectory graph is a triangle according to the error percentage.

[0149] In another exemplary embodiment, the preset graph verification strategy includes a circular verification strategy; the verification module 1270 includes:

[0150] A first recording unit, configured to select sample trajectory coordinate points from multiple trajectory coordinate points and record the total number of the sample trajectory coordinate points.

[0151] A first calculation unit, configured to determine a target center and a target radius corresponding to the trajectory graph according to the sample trajectory coordinate points, calculate the distance value from each sample trajectory coordinate point to the target center, and calculate the error value between each distance value and the target radius.

[0152] A second verification unit, configured to calculate an error percentage according to the number of sample trajectory coordinate points with error values greater than a preset error value and the total number of the sample trajectory coordinate points, and verify whether the trajectory graph is a circle according to the error percentage.

[0153] In another exemplary embodiment, the preset graph verification strategy includes a rectangular verification strategy; the verification module 1270 includes:

[0154] A second determination unit, configured to determine four vertices of the trajectory graph from multiple trajectory coordinate points and determine four side lines of the trajectory graph according to the four vertices.

[0155] A second recording unit, configured to select sample trajectory coordinate points from multiple trajectory coordinate points and record the total number of the sample trajectory coordinate points.

[0156] A second calculation unit, configured to calculate the distance value from each sample trajectory coordinate point to the adjacent side line, and calculate the error value between each distance value and a preset distance value.

[0157] A third verification unit, configured to calculate an error percentage according to the number of sample trajectory coordinate points with error values greater than a preset error value and the total number of sample trajectory coordinate points, and verify whether the trajectory graph is a rectangle according to the error percentage.

[0158] In another exemplary embodiment, the verification device 1200 further includes:

[0159] A verification failure module, configured to determine that the drawing verification request fails if the verification result indicates that the graph verification fails, and display the result that the drawing verification request fails on the login interface, so that the user can determine whether to trigger the drawing verification request again.

[0160] A verification success module, configured to determine that the drawing verification request is passed if the verification result indicates that the graph verification is successful, and send the user login information carried by the drawing verification request to the server, so that the server performs a verification operation on the user login information.

[0161] The verification device on the login interface of the present application displays the drawing strategy that passes the drawing verification request on the login interface by responding to the drawing verification request triggered by the user; enhances the intensity of human-computer interaction during the verification process, and verifies by obtaining the trajectory data generated during the user's drawing process on the login interface. Since this trajectory data is dynamic data generated during the user's interaction with the login interface, it increases the difficulty of forging data and improves the security of the verification process to a certain extent. Secondly, it is required that all trajectory coordinate points are within the specified drawing area before verifying the trajectory data according to the specified preset graph verification strategy, that is, a progressive verification process is formed, enhancing the security of the verification process. In addition, the verification method of the present application only performs verification operations on the login interface and does not require server operation and processing, thereby reducing the verification pressure on the server.

[0162] It should be noted that the verification device provided in the above embodiment and the verification method provided in the foregoing embodiment belong to the same concept. The specific manners in which each module and unit perform operations have been described in detail in the method embodiment and will not be elaborated here.

[0163] On the other hand, the present application further provides an electronic device, including: a controller; a memory, configured to store one or more programs, and when the one or more programs are executed by the controller, to execute the above verification method.

[0164] Please refer to Figure 13 , Figure 13It is a schematic structural diagram of a computer system of an electronic device shown in an exemplary embodiment of the present application, which shows a schematic structural diagram of a computer system of an electronic device suitable for implementing the embodiments of the present application.

[0165] It should be noted that Figure 13 The computer system 1300 of the electronic device shown is only an example, and should not impose any limitations on the functions and usage scope of the embodiments of the present application.

[0166] As Figure 13 shown, the computer system 1300 includes a central processing unit (CPU) 1301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1302 or the program loaded from the storage section 1308 into the random access memory (RAM) 1303, such as executing the method in the above embodiments. In the RAM 1303, various programs and data required for system operation are also stored. The CPU 1301, ROM 1302, and RAM 1303 are connected to each other via a bus 1304. The input / output (I / O) interface 1305 is also connected to the bus 1304.

[0167] The following components are connected to the I / O interface 1305: an input section 1306 including a keyboard, a mouse, etc.; an output section 1307 including such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 1308 including a hard disk, etc.; and a communication section 1309 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1309 performs communication processing via a network such as the Internet. A drive 1310 is also connected to the I / O interface 1305 as required. A removable medium 1311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1310 as required, so that the computer program read from it can be installed into the storage section 1308 as required.

[0168] In particular, according to an embodiment of the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication section 1309, and / or installed from the removable medium 1311. When the computer program is executed by the central processing unit (CPU) 1301, various functions defined in the system of the present application are executed.

[0169] It should be noted that the computer-readable medium shown in the embodiments of the present application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device. In the present application, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and the computer-readable medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The computer program included on the computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0170] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. Among them, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the above-mentioned module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, as well as the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0171] The units involved in the embodiments described in the present application can be implemented in software or in hardware, and the described units can also be provided in a processor. Among them, the names of these units do not, in some cases, constitute a limitation on the unit itself.

[0172] Another aspect of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the verification method as described above is implemented. The computer-readable storage medium can be included in the electronic device described in the above embodiments, or can exist alone without being assembled into the electronic device.

[0173] Another aspect of the present application also provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the verification methods provided in the above various embodiments.

[0174] According to one aspect of an embodiment of the present application, a computer system is further provided, including a Central Processing Unit (CPU), which can perform various appropriate actions and processes according to a program stored in a Read-Only Memory (ROM) or a program loaded from a storage section into a Random Access Memory (RAM), such as executing the methods in the above embodiments. In the RAM, various programs and data required for system operation are also stored. The CPU, ROM, and RAM are connected to each other via a bus. An Input / Output (I / O) interface is also connected to the bus.

[0175] The following components are connected to the I / O interface: an input section including a keyboard, a mouse, etc.; an output section including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc. and a speaker, etc.; a storage section including a hard disk, etc.; and a communication section including a network interface card such as a Local Area Network (LAN) card, a modem, etc. The communication section performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as required. A removable medium, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive as required so that a computer program read from it can be installed into the storage section as required.

[0176] The above content is only a preferred exemplary embodiment of the present application and is not used to limit the implementation of the present application. Those of ordinary skill in the art can make corresponding adaptations or modifications very conveniently according to the main concept and spirit of the present application. Therefore, the protection scope of the present application should be subject to the protection scope required by the claims.

Claims

1. A login interface verification method, characterized in that: The verification method comprises: In response to a drawing verification request triggered by a user, a drawing strategy that passes the drawing verification request is displayed on the login interface; wherein the drawing strategy includes a designated drawing area; the designated drawing area is a blank drawing page displayed on the login page, and the blank drawing page is divided into a plurality of drawing areas; the drawing strategy indicates that at least two sub-drawing areas in the designated drawing area are to draw graphics of different shapes according to a prompted drawing order; wherein the designated drawing area is a blank drawing page displayed on the login interface; the graphics include triangles, rectangles, and circles; Acquire trajectory data generated by the user in the process of drawing on the login interface in response to the drawing strategy; wherein the trajectory data includes a plurality of trajectory coordinate points and trajectory moments of the plurality of trajectory coordinate points used to determine the drawing order; Detecting whether all trajectory coordinate points are within the specified drawing area; If so, the trajectory data is verified according to a specified preset graphic verification strategy, and whether the drawing verification request is passed is determined according to the verification result; wherein the preset graphic verification strategy is a verification strategy that represents drawing a preset geometric figure according to the prompted drawing order.

2. The verification method according to claim 1, characterized in that: The verifying operation on the trajectory data according to the specified preset graphic verification strategy and determining whether the drawing verification request is passed according to the verification result further includes: Determine a trajectory graph obtained by the user drawing in the designated drawing area according to the plurality of trajectory coordinate points; The trajectory graph is matched with a preset graph in the specified preset graph verification strategy, and the obtained matching result is used as a verification result to determine whether the drawing verification request is passed.

3. The verification method according to claim 1, characterized in that: The preset graphic verification strategy includes a triangle verification strategy; the verification operation is performed on the trajectory data according to the specified preset graphic verification strategy, and determining whether the drawing verification request is passed according to the verification result, further comprising: Determine four target coordinate point arrays according to the plurality of trajectory coordinate points, and divide the plurality of trajectory coordinate points into the four target coordinate point arrays; Determining a preset determination strategy for the vertex of the trajectory graph according to the number of trajectory coordinate points in each target coordinate point array to obtain the trajectory graph; Verifying whether the trajectory graphic is a triangle, and determining whether the drawing verification request is passed according to the verification result; The verifying whether the trajectory graph is a triangle further comprises: Selecting sample trajectory coordinate points from the plurality of trajectory coordinate points, and recording the total number of the sample trajectory coordinate points; Determine three side lines of the trajectory graph according to the vertices of the trajectory graph, calculate the distance value from each sample trajectory coordinate point to the corresponding side line, and calculate the error value between each distance value and a preset distance value; The error percentage is calculated according to the number of sample trajectory coordinate points whose error values ​​are greater than the preset error value and the total number of the sample trajectory coordinate points, and whether the trajectory figure is a triangle is verified according to the error percentage.

4. The verification method according to claim 1, characterized in that: The preset graphic verification strategy includes a circle verification strategy; the verification operation is performed on the trajectory data according to the specified preset graphic verification strategy, and determining whether the drawing verification request is passed according to the verification result, further comprising: Selecting sample trajectory coordinate points from the plurality of trajectory coordinate points, and recording the total number of the sample trajectory coordinate points; Determine the target center and target radius corresponding to the trajectory graph according to the sample trajectory coordinate points, calculate the distance value from each sample trajectory coordinate point to the target center, and calculate the error value between each distance value and the target radius; The error percentage is calculated according to the number of sample trajectory coordinate points whose error values ​​are greater than the preset error value and the total number of the sample trajectory coordinate points, and whether the trajectory figure is a circle is verified according to the error percentage.

5. The verification method according to claim 1, characterized in that: The preset graphic verification strategy includes a rectangle verification strategy; the verification operation is performed on the trajectory data according to the specified preset graphic verification strategy, and determining whether the drawing verification request is passed according to the verification result, further comprising: Determine four vertices of the trajectory figure from the plurality of trajectory coordinate points, and determine four side lines of the trajectory figure according to the four vertices; Selecting sample trajectory coordinate points from the plurality of trajectory coordinate points, and recording the total number of the sample trajectory coordinate points; Calculate the distance between each sample trajectory coordinate point and the adjacent edge line, and calculate the error between each distance value and the preset distance value; The error percentage is calculated according to the number of sample trajectory coordinate points whose error values ​​are greater than the preset error value and the total number of the sample trajectory coordinate points, and whether the trajectory figure is a rectangle is verified according to the error percentage.

6. The verification method according to any one of claims 1 to 5, characterized in that: The step of determining whether the drawing verification request is passed according to the verification result further includes: If the verification result indicates that the graphic verification fails, it is determined that the drawing verification request has not been passed, and the result that the drawing verification request has not been passed is displayed on the login interface, so that the user can determine whether to trigger the drawing verification request again; If the verification result indicates that the graphic verification is successful, it is determined that the drawing verification request is passed, and the user login information carried in the drawing verification request is sent to the server, so that the server performs a verification operation on the user login information.

7. A login interface verification device, characterized in that: The verification device comprises: A response module, for responding to a drawing verification request triggered by a user, and displaying a drawing strategy that passes the drawing verification request on the login interface; wherein the drawing strategy indicates that at least two sub-drawing areas in a designated drawing area draw graphics of different shapes according to a prompted drawing order; wherein the designated drawing area is a blank drawing page displayed on the login interface; the graphics include triangles, rectangles, and circles; An acquisition module, used to acquire trajectory data generated by the user in the process of drawing on the login interface in response to the drawing strategy; wherein the trajectory data includes a plurality of trajectory coordinate points and trajectory moments of the plurality of trajectory coordinate points used to determine the drawing order; A detection module, used to detect whether all trajectory coordinate points are within the specified drawing area; A verification module is used to verify the trajectory data according to a specified preset graphic verification strategy, and determine whether the drawing verification request is passed according to the verification result; wherein the preset graphic verification strategy is a verification strategy that represents drawing a preset geometric figure according to the prompted drawing order.

8. An electronic device, characterized in that: include: Controller; A memory for storing one or more programs, which, when executed by a controller, enables the controller to implement the verification method described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the verification method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Login method and device of application program, terminal equipment and storage medium

    CN109726543A

  • Verification method and device based on verification code, electronic equipment and storage medium

    CN109933971A

  • Verification method and device of sliding verification code, computer equipment and medium

    CN112651010A