Authentication method, device, electronic device and storage medium
By generating slider verification codes and combining the user's attribute characteristics, the problem of existing verification codes' decline in risk resistance is solved, and the security and user experience of identity verification are improved.
Patent Information
- Application Number
- CN202311591923.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-27
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2043-11-27
AI Technical Summary
With the development of optical character recognition technology, existing verification codes (such as SMS verification codes and graphic verification codes) have reduced their ability to resist risks, resulting in a decrease in the security of identity verification, which in turn has reduced the user experience.
Provide an authentication method, by receiving the user's authentication request, obtaining the verification code base map and slider template based on the user's attribute characteristics, generating the slider verification code, and generating verification parameters according to the user's identity verification operation, randomly generating slides Block verification code to improve the security of identity verification, and generate corresponding slider verification codes based on user attribute characteristics to improve user experience.
Authentication is performed through the slider verification code, which improves the security of identity verification. At the same time, the slider verification code corresponding to the user is generated based on the user's attribute characteristics, further improving the user experience.
Smart Images

Figure CN117851997B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to an identity authentication method, device, electronic device and storage medium. Background Art
[0002] In recent years, with the rapid development of electronic products, verification codes have been widely used in various program interaction interfaces, such as registration, login, transaction and other interfaces of application websites, playing an important role in identity verification and risk prevention in human-computer interaction interfaces. At present, the most commonly used verification codes for identity authentication are usually SMS verification codes and graphic verification codes. However, since the existing verification codes (such as SMS verification codes and image verification codes) are relatively simple to operate, with the continuous development of related technologies such as optical character recognition (OCR), the ability of existing verification codes to resist risks has declined, resulting in reduced security of identity authentication, thereby reducing user experience. Summary of the invention
[0003] In order to solve the above technical problems, the present disclosure provides an identity authentication method, device, electronic device and storage medium.
[0004] A first aspect of an embodiment of the present disclosure provides an identity authentication method, including:
[0005] Receiving an identity authentication request sent by a user, the identity authentication request including attribute characteristics of the user;
[0006] In response to the identity authentication request, a verification code base image and a slider template are acquired based on the attribute characteristics of the user, and a slider verification code is generated based on the verification code base image and the slider template, and the slider verification code is sent to the user end so that the user end displays the slider verification code after receiving the slider verification code, and generates verification parameters based on the user's identity authentication operation;
[0007] Receive verification parameters sent by the user, and determine the identity authentication result based on the verification parameters.
[0008] A second aspect of the embodiment of the present disclosure provides an identity authentication method, including:
[0009] Send an authentication request to the server;
[0010] Receive the slider verification code sent by the server and display the slider verification code, and generate verification parameters in response to the user's identity authentication operation performed on the slider verification code;
[0011] The verification parameters are sent to the server so that the server determines the identity authentication result based on the verification parameters.
[0012] A third aspect of an embodiment of the present disclosure provides an identity authentication device, including:
[0013] A request receiving module, used for receiving an identity authentication request sent by a user terminal, wherein the identity authentication request includes attribute characteristics of the user;
[0014] A verification code sending module is used to respond to an identity authentication request, obtain a verification code base image and a slider template based on the attribute characteristics of the user, generate a slider verification code based on the verification code base image and the slider template, send the slider verification code to the user end, so that the user end displays the slider verification code after receiving the slider verification code, and generate verification parameters based on the user's identity authentication operation;
[0015] The parameter receiving module is used to receive the verification parameters sent by the user end and determine the identity authentication result based on the verification parameters.
[0016] A fourth aspect of an embodiment of the present disclosure provides an identity authentication device, including:
[0017] Request sending module, used to send identity authentication request to the server;
[0018] A verification code receiving module, used to receive the slider verification code sent by the server and display the slider verification code, and generate verification parameters in response to the identity authentication operation performed by the user on the slider verification code;
[0019] The parameter sending module is used to send the verification parameters to the server so that the server determines the identity authentication result based on the verification parameters.
[0020] A fifth aspect of the embodiments of the present disclosure provides an electronic device, including:
[0021] processor;
[0022] A memory for storing executable instructions;
[0023] The processor is used to read executable instructions from the memory and execute the executable instructions to implement the identity authentication method provided by the first aspect or the second aspect.
[0024] A sixth aspect of an embodiment of the present disclosure provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor implements the identity authentication method provided by the first aspect or the second aspect above.
[0025] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0026] The identity authentication method, device, electronic device and storage medium provided by the embodiments of the present disclosure can receive an identity authentication request sent by a user terminal, the identity authentication request including the attribute characteristics of the user, and in response to the identity authentication request, obtain a verification code base image and a slider template based on the attribute characteristics of the user, and generate a slider verification code based on the verification code base image and the slider template, and send the slider verification code to the user terminal so that the user terminal displays the slider verification code after receiving the slider verification code, and generate verification parameters based on the user's identity authentication operation, receive the verification parameters sent by the user terminal, and determine the identity authentication result based on the verification parameters, thereby, being able to randomly generate a slider verification code, and perform identity authentication by means of the slider verification code, thereby improving the security of identity authentication, and at the same time generating a slider verification code corresponding to the user's attribute characteristics based on the user's attribute characteristics, thereby further improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0029] Figure 1 is a flow chart of an identity authentication method provided by an embodiment of the present disclosure;
[0030] Figure 2 is a flowchart of a method for generating a slider verification code provided by an embodiment of the present disclosure;
[0031] Figure 3 is a flow chart of another identity authentication method provided by an embodiment of the present disclosure;
[0032] Figure 4 is a structural diagram of an identity authentication device provided by an embodiment of the present disclosure;
[0033] Figure 5 is a schematic diagram of the structure of another identity authentication device provided by an embodiment of the present disclosure;
[0034] Figure 6 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0035] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0036] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0037] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0038] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0039] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0040] Figure 1 It is a flowchart of an identity authentication method provided by an embodiment of the present disclosure. The method can be executed by an identity authentication device. The identity authentication device can be implemented in software and / or hardware. The identity authentication device can be configured in an electronic device, such as a server.
[0041] like Figure 1 As shown, the identity authentication method provided in this embodiment includes the following steps.
[0042] S110: Receive an identity authentication request sent by a user terminal, where the identity authentication request includes attribute characteristics of the user.
[0043] In the disclosed embodiment, the identity authentication request may be a request for identity authentication generated by the user end based on user operations such as account login operations, account registration operations, payment operations, etc. The identity authentication request may be used to request an identity authentication code from the server end.
[0044] Optionally, the attribute characteristics of the user may include the user's age characteristics, gender characteristics, occupation characteristics, behavior characteristics, etc., which are used to characterize the user's attributes. A representative user role can be abstracted from the user's attribute characteristics.
[0045] Specifically, the server communicates with the terminal through a network, and the server can receive the identity authentication request sent by the user in real time.
[0046] S120. In response to the identity authentication request, a verification code base image and a slider template are obtained based on the attribute characteristics of the user, and a slider verification code is generated based on the verification code base image and the slider template, and the slider verification code is sent to the user end so that the user end displays the slider verification code after receiving the slider verification code, and generates verification parameters based on the user's identity authentication operation.
[0047] In the disclosed embodiment, the slider verification code includes two parts: a slider base map and a slider image. Whether the identity authentication is passed is determined by the position of the slider image in the slider base map.
[0048] The slider template can be understood as a template having the style, size and orientation of a slider. The style, size and orientation of each slider template are different, and the corresponding slider verification code is different.
[0049] Depending on the attribute characteristics of the user, the verification code background image and slider template obtained are also different.
[0050] The identity verification operation may include an operation of sliding or dragging a slider corresponding to the slider verification code.
[0051] Verification parameters can be understood as parameters used to determine whether identity authentication is successful.
[0052] Specifically, after receiving the identity authentication request sent by the user end, the server end randomly selects a picture from multiple pictures pre-stored in a preset database as the verification code background image in response to the identity authentication request, and simultaneously selects one from multiple slider templates pre-stored in the preset database as the slider template, and after obtaining the verification code background image and the slider template, generates a slider verification code according to the verification code background image and the slider template, and sends the generated slider verification code to the user end, so that the user end displays the slider verification code after receiving the slider verification code, and generates verification parameters based on the user's identity authentication operation.
[0053] S130: Receive verification parameters sent by the user terminal, and determine the identity authentication result based on the verification parameters.
[0054] In the embodiment of the present disclosure, after the server sends the slider verification code to the user end, it receives the verification parameters sent by the user end. After receiving the verification parameters, the verification parameters are compared with the preset parameters corresponding to the slider verification code to determine whether the identity authentication is passed. When the comparison results of the verification parameters and the preset parameters are consistent, the identity authentication is determined to be passed. When the comparison results of the verification parameters and the preset parameters are inconsistent, it is determined that the identity authentication has failed.
[0055] In an embodiment of the present disclosure, an identity authentication request sent by a user terminal can be received, the identity authentication request including the user's attribute characteristics. In response to the identity authentication request, a verification code base image and a slider template are obtained based on the user's attribute characteristics, and a slider verification code is generated based on the verification code base image and the slider template. The slider verification code is sent to the user terminal so that the user terminal displays the slider verification code after receiving the slider verification code, and verification parameters are generated based on the user's identity authentication operation, and the verification parameters sent by the user terminal are received. The identity authentication result is determined based on the verification parameters. Thus, a slider verification code can be randomly generated, and identity authentication is performed by means of the slider verification code, thereby improving the security of identity authentication. At the same time, a slider verification code corresponding to the user's attribute characteristics is generated based on the user's attribute characteristics, thereby further improving the user experience.
[0056] In an embodiment of the present disclosure, obtaining a verification code background image and a slider template based on the attribute characteristics of a user may specifically include: selecting a verification code background image and a slider template of a style corresponding to the age characteristics and / or gender characteristics based on the age characteristics and / or gender characteristics in the attribute characteristics of the user.
[0057] For example, when the user's age and gender characteristics indicate that the user is a young female, then beautiful scenery, cute pet pictures, etc. can be selected from the database as the verification code background image and a slider template of appropriate size to optimize the user experience.
[0058] When the user's age characteristics indicate that the user is an elderly person, an image that the elderly like is selected from the database as the verification code background image and a larger slider template to facilitate the elderly to perform verification operations and improve the user experience.
[0059] In some embodiments of the present disclosure, after obtaining the user slider template, the size of the slider template may be enlarged or reduced so that the size of the slider template is adapted to the attribute characteristics of the user (such as young people, old people, etc.).
[0060] Optionally, the verification code base image and slider template may also be obtained based on the user's occupational characteristics, behavioral characteristics, etc., which are not limited here.
[0061] At the same time, the verification fault tolerance ratio can also be adjusted according to the user's attribute characteristics. For example, when the user's attribute characteristics indicate that the user is an elderly person, the verification fault tolerance ratio is increased to help the elderly improve their verification pass rate.
[0062] In the disclosed embodiment, the verification code background image and the slider template can be obtained according to the attribute characteristics of the user, which further improves the user experience and the convenience of user operation.
[0063] In some embodiments of the present disclosure, the identity authentication request may also include a device identification code of the user terminal. Based on the device identification code of the user terminal, determine whether the user is a registered user, and if the user is a registered user, obtain the user's identity authentication token and identity information; and obtain the verification code base map and slider template based on the user's identity authentication token and identity information.
[0064] Based on the above embodiments of the present disclosure, before generating a slider verification code based on the verification code base image and the slider template, the identity authentication method may further include: inputting pixel coordinates of the verification code base image into a preset random function to generate puzzle coordinates.
[0065] In the embodiment of the present disclosure, the preset random function is a pre-set function for generating random coordinates.
[0066] The puzzle coordinates can be understood as the coordinates corresponding to when the slider image in the slider verification code is spliced with the verification code base image.
[0067] The puzzle coordinates may be any pixel coordinates in the verification code base image, and the coordinates include an X-axis coordinate and a Y-axis coordinate.
[0068] Furthermore, if Figure 2 The method for generating a slider verification code based on a verification code base image and a slider template may include the following steps:
[0069] S210: Generate a mask image based on a preset tool and the verification code base image. The size of the mask image is the same as that of the verification code base image, and the mask image is an image without a background.
[0070] In the embodiment of the present disclosure, the preset tool may be a pre-set tool for generating a background-free picture.
[0071] The mask image is an image without a background, that is, a transparent image.
[0072] Specifically, the server obtains the pixel coordinates of the verification code background image, and inputs the pixel coordinates of the verification code background image into a preset tool, and the preset tool generates a transparent image of the same size as the verification code background image according to the pixel coordinates of the verification code background image.
[0073] S220: Determine the position information of the slider template in the mask image based on the puzzle coordinates and the slider template.
[0074] Specifically, the server first determines the center position of the slider template, determines the puzzle coordinates as the coordinates of the center position of the slider template in the mask image, and then determines the position information of the slider template in the mask image based on the shape and size of the slider template, where the position information may include the pixel coordinates corresponding to the slider template in the mask image.
[0075] S230, performing cutout processing on the mask image based on the position information and the slider template to obtain a cutout mask image.
[0076] In the disclosed embodiment, the cutout processing may be performed by existing image processing software such as PS, etc., and may be an existing cutout tool, which will not be elaborated here.
[0077] Specifically, after determining the position information of the slider template in the mask image, the server performs a cutout process on the mask image according to the position information, such as the pixel coordinates corresponding to the slider template in the mask image, and deducts the area corresponding to the slider template in the mask image to obtain the cutout mask image.
[0078] S240: Overlap the cutout mask image with the verification code base image to determine the slider image.
[0079] Specifically, after obtaining the cutout mask image, the server overlaps the cutout mask image with the verification code base image, and determines the image corresponding to the unblocked area in the overlapping verification code base image as the slider image.
[0080] S250, according to the coordinate information of the slider image, the verification code base image is cut out, the slider image is deducted from the verification code base image to obtain the verification code base image after the cut out, and the slider image and the verification code base image after the cut out are determined as the slider verification code.
[0081] Specifically, after obtaining the slider image, the server performs cutout processing on the verification code background image according to the coordinate information of the slider image, deducts the area where the slider image is located in the verification code background image, obtains the cutout verification code background image, and determines the slider image and the cutout verification code background image as the slider verification code.
[0082] In the disclosed embodiment, a slider verification code can be generated according to the puzzle coordinates, the slider template and the verification code base map, thereby improving the accuracy of generating the slider verification code. At the same time, due to the randomness of the puzzle coordinates, the slider template and the verification code base map, the slider verification code generated each time is different, thereby improving the security of identity authentication.
[0083] In some embodiments of the present disclosure, the verification parameters may include the target position coordinates of the slider image in the verification code background image after cutting out, which is obtained by the user terminal based on the user's identity authentication operation, and may also include the device identification code of the user terminal.
[0084] In the embodiment of the present disclosure, the device identification code of the user terminal may be a unique identification of the user terminal, such as a MAC address or the like.
[0085] The target position coordinates may be the position coordinates of the center position of the slider image in the cutout verification code base image after the slider image is finally placed in the cutout verification code base image based on the user's identity authentication operation such as sliding or dragging the slider image.
[0086] Furthermore, determining the identity authentication result based on the verification parameters may specifically include: matching the target position coordinates with the puzzle coordinates, and when the target position coordinates and the puzzle coordinates match successfully, determining that the identity authentication is passed, and feeding back the result of the passed identity authentication to the user end; when the target position coordinates and the puzzle coordinates fail to match, determining that the identity authentication fails, and feeding back the result of the failed identity authentication to the user end.
[0087] In some embodiments of the present disclosure, after receiving the verification parameters sent by the user terminal, the identity authentication method may also include: obtaining the current location information of the user terminal and the frequency of the user terminal issuing identity authentication requests based on the identification code of the user terminal; when the current location information is inconsistent with the historical location information, and / or the frequency of issuing identity authentication requests is greater than a preset threshold, sending a reminder message to the user terminal.
[0088] In the disclosed embodiment, the current location information is the current location information of the user terminal, such as Province A, and the historical location information is the location information of the user terminal before this identity authentication request.
[0089] The frequency of identity authentication requests issued by the user end may include the number of times the user end issues the same identity authentication request within a preset time period, such as the number of times the identity authentication requests issued for the same account login of the same application within the preset time period; it may also be the number of different identity authentication requests issued by the user end for the same event within the preset time period, such as the number of times the identity authentication requests issued for different account registrations of the same application within the preset time period.
[0090] Specifically, when the server determines that the current location information is inconsistent with the historical location information, for example, for identity authentication requests for the same account, the historical location information is Province B, and the current location information is Province A, it means that the user is logging in from a different location. Therefore, a reminder message for logging in from a different location is sent to the user. Similarly, when the frequency of issuing identity authentication requests is greater than a preset threshold, it means that the user has improper or incorrect operations. At this time, a reminder message of frequent operations is sent to the user. Furthermore, after sending the reminder message, if the server continues to receive identity authentication requests sent by the user, the server can perform circuit breaking, operation restriction and other processing according to the specific situation.
[0091] In the embodiments of the present disclosure, the current location information of the user terminal and the frequency of identity authentication requests issued by the user terminal can be obtained through the identification code of the user terminal, and then the current location information of the user terminal and the frequency of identity authentication requests issued by the user terminal are analyzed, and corresponding response processing is performed based on the analysis results, such as reminders, etc., thereby improving the user experience and the security of user identity authentication.
[0092] Figure 3 It is a flowchart of another identity authentication method provided by an embodiment of the present disclosure. The method can be executed by an identity authentication device. The identity authentication device can be implemented in software and / or hardware. The identity authentication device can be configured in an electronic device, such as a terminal.
[0093] like Figure 3 As shown, the identity authentication method is applied to the user side and specifically includes the following steps:
[0094] S310: Send an identity authentication request to the server.
[0095] In an embodiment of the present disclosure, when the user end responds to a user's preset operation, it generates an identity authentication request corresponding to the preset operation and sends the identity authentication request to the server end, wherein the preset operation may include account login operation, account registration operation, payment operation and other operations that require identity authentication.
[0096] S320: Receive the slider verification code sent by the server and display the slider verification code, and generate verification parameters in response to the identity authentication operation performed by the user on the slider verification code.
[0097] In an embodiment of the present disclosure, after the user terminal sends an identity authentication request to the server terminal, the server terminal generates a slider verification code according to the identity authentication request, and then receives the slider verification code sent by the server terminal and displays the slider verification code, so that the user terminal performs an identity authentication operation on the display interface. After responding to the identity authentication operation performed by the user on the slider verification code, the position information of the slider in the slider verification code where the user slides to the verification code base map is determined according to the user's identity authentication operation, and the position information is determined as one of the verification parameters, and the identification code is determined as the verification parameter.
[0098] S330. Send the verification parameters to the server, so that the server determines the identity authentication result based on the verification parameters.
[0099] In the embodiment of the present disclosure, after generating the verification parameters, the user end sends the verification parameters to the server end, so that the server end determines the identity authentication result based on the verification parameters.
[0100] In the disclosed embodiment, it is possible to send an identity authentication request to a server, receive a slider verification code sent by the server and display the slider verification code, generate verification parameters in response to the identity authentication operation performed by the user on the slider verification code, and send the verification parameters to the server so that the server determines the identity authentication result based on the verification parameters. Thus, it is possible to display the slider verification code sent by the server, perform identity authentication by means of the slider verification code, and thereby improve the security of identity authentication and user experience.
[0101] In some embodiments of the present disclosure, sending the verification parameter to the server may specifically include: encrypting the verification parameter; and sending the encrypted verification parameter to the server.
[0102] Specifically, after generating the verification parameters, the user end can encrypt the verification parameters based on a preset encryption algorithm and send the encrypted verification parameters to the server end. After the server end receives the encrypted verification parameters, it decrypts the encrypted verification parameters based on a preset decryption algorithm, and then determines the identity authentication result and / or issues a reminder message based on the decryption result.
[0103] Among them, the preset encryption algorithm may include a symmetric encryption algorithm, an asymmetric encryption algorithm, etc. The symmetric encryption algorithm may include AES, DES, Blowfish and other algorithms, and the asymmetric encryption algorithm may include RSA algorithm, etc. The preset decryption algorithm corresponds one-to-one to the preset encryption algorithm.
[0104] It should be noted that the specific implementation methods of encrypting the verification parameters based on a preset encryption algorithm and decrypting the encrypted verification parameters based on a preset decryption algorithm are similar to the implementation methods of existing encryption and decryption algorithms and are not described in detail here.
[0105] In the disclosed embodiment, when sending the verification parameters to the server, the verification parameters can be encrypted to ensure the security of the verification parameters during transmission, thereby further improving the security of the identity authentication process.
[0106] Figure 4 It is a structural diagram of an identity authentication device provided in an embodiment of the present disclosure.
[0107] In the embodiment of the present disclosure, the identity authentication device may be arranged in an electronic device, and may be understood as a part of the functional modules in the above electronic device. Specifically, the electronic device may be a server.
[0108] like Figure 4 As shown, the identity authentication device 400 may include a request receiving module 410 , a verification code sending module 420 and a parameter receiving module 430 .
[0109] The request receiving module 410 may be configured to receive an identity authentication request sent by a user terminal, where the identity authentication request includes attribute characteristics of the user.
[0110] The verification code sending module 420 can be used to respond to an identity authentication request, obtain a verification code background image and a slider template based on the user's attribute characteristics, generate a slider verification code based on the verification code background image and the slider template, send the slider verification code to the user end, so that the user end displays the slider verification code after receiving the slider verification code, and generate verification parameters based on the user's identity authentication operation.
[0111] The parameter receiving module 430 may be configured to receive verification parameters sent by the user terminal, and determine an identity authentication result based on the verification parameters.
[0112] In an embodiment of the present disclosure, an identity authentication request sent by a user terminal can be received, the identity authentication request including the user's attribute characteristics. In response to the identity authentication request, a verification code base image and a slider template are obtained based on the user's attribute characteristics, and a slider verification code is generated based on the verification code base image and the slider template. The slider verification code is sent to the user terminal so that the user terminal displays the slider verification code after receiving the slider verification code, and verification parameters are generated based on the user's identity authentication operation, and the verification parameters sent by the user terminal are received. The identity authentication result is determined based on the verification parameters. Thus, a slider verification code can be randomly generated, and identity authentication is performed by means of the slider verification code, thereby improving the security of identity authentication. At the same time, a slider verification code corresponding to the user's attribute characteristics is generated based on the user's attribute characteristics, thereby further improving the user experience.
[0113] In some embodiments of the present disclosure, the verification code sending module 420 may be specifically used to select a verification code background image and a slider template of a style corresponding to the age feature and / or gender feature based on the age feature and / or gender feature in the attribute features of the user.
[0114] In some embodiments of the present disclosure, the identity authentication device 400 may further include a puzzle coordinate generation module.
[0115] The puzzle coordinate generation module can be used to input the pixel coordinates of the verification code base image into a preset random function to generate puzzle coordinates before generating a slider verification code based on the verification code base image and the slider template.
[0116] In some embodiments of the present disclosure, the verification code sending module 420 can be specifically used to generate a mask image based on a preset tool and a verification code background image, the size of the mask image is the same as the size of the verification code background image, and the mask image is a picture without background; based on the puzzle coordinates and the slider template, determine the position information of the slider template in the mask image; based on the position information and the slider template, perform cutout processing on the mask image to obtain the cutout mask image; overlap the cutout mask image with the verification code background image to determine the slider image; according to the coordinate information of the slider image, perform cutout processing on the verification code background image, subtract the slider image from the verification code background image to obtain the cutout verification code background image, and determine the slider image and the cutout verification code background image as the slider verification code.
[0117] In some embodiments of the present disclosure, the verification parameters include the target position coordinates of the slider image in the verification code background image after cutting out, which is obtained by the user end based on the user's identity authentication operation.
[0118] In some embodiments of the present disclosure, the parameter receiving module 430 can be specifically used to match the target position coordinates with the puzzle coordinates. When the target position coordinates and the puzzle coordinates match successfully, it is determined that the identity authentication is passed, and the result of the identity authentication is fed back to the user end; when the target position coordinates and the puzzle coordinates fail to match, it is determined that the identity authentication fails, and the result of the identity authentication failure is fed back to the user end.
[0119] In some embodiments of the present disclosure, the identity authentication device 400 may further include a reminder module.
[0120] The reminder module can be used to obtain the current location information of the user terminal and the frequency of identity authentication requests issued by the user terminal based on the identification code of the user terminal after receiving the verification parameters sent by the user terminal; when the current location information is inconsistent with the historical location information, and / or the frequency of issuing identity authentication requests is greater than a preset threshold, a reminder message is sent to the user terminal.
[0121] It should be noted that Figure 4The identity verification device 400 shown can perform the above Figure 1 to Figure 2 The various steps in the method embodiment shown, and the various processes and effects in the above method embodiment are implemented, will not be described in detail here.
[0122] Figure 5 It is a structural diagram of another identity authentication device provided in an embodiment of the present disclosure.
[0123] In the embodiment of the present disclosure, the identity authentication device may be arranged in an electronic device, and may be understood as a part of the functional modules in the above electronic device. Specifically, the electronic device may be a terminal.
[0124] like Figure 5 As shown, the identity authentication device 500 may include a request sending module 510 , a verification code receiving module 520 and a parameter sending module 530 .
[0125] The request sending module 510 may be used to send an identity authentication request to the server.
[0126] The verification code receiving module 520 may be configured to receive a slider verification code sent by the server and display the slider verification code, and generate verification parameters in response to an identity authentication operation performed by a user on the slider verification code.
[0127] The parameter sending module 530 may be used to send the verification parameters to the server, so that the server determines the identity authentication result based on the verification parameters.
[0128] In the disclosed embodiment, it is possible to send an identity authentication request to a server, receive a slider verification code sent by the server and display the slider verification code, generate verification parameters in response to the identity authentication operation performed by the user on the slider verification code, and send the verification parameters to the server so that the server determines the identity authentication result based on the verification parameters. Thus, it is possible to display the slider verification code sent by the server, perform identity authentication by means of the slider verification code, and thereby improve the security of identity authentication and user experience.
[0129] In some embodiments of the present disclosure, the parameter sending module 530 may be specifically used to encrypt the verification parameters; and send the encrypted verification parameters to the server.
[0130] It should be noted that Figure 5 The identity verification device 500 shown can perform the above Figure 3 The various steps in the method embodiment shown, and the various processes and effects in the above method embodiment are implemented, will not be described in detail here.
[0131] Figure 6 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure.
[0132] In the disclosed embodiment, Figure 6 The electronic device shown may be a server or a terminal, wherein the terminal specifically includes a mobile phone, a computer or a tablet computer, etc., which is not limited here.
[0133] like Figure 6 As shown, the electronic device may include a processor 610 and a memory 620 storing computer program instructions.
[0134] Specifically, the processor 610 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present disclosure.
[0135] The memory 620 may include a large capacity memory for information or instructions. By way of example and not limitation, the memory 620 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 620 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 620 may be inside or outside the integrated gateway device. In a particular embodiment, the memory 620 is a non-volatile solid-state memory. In a particular embodiment, the memory 620 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (Electrically Erasable Programmable ROM, EEPROM), an electrically rewritable ROM (EAROM) or a flash memory, or a combination of two or more of these.
[0136] The processor 610 reads and executes the computer program instructions stored in the memory 620 to perform the steps of the identity authentication method provided in the embodiment of the present disclosure.
[0137] In one example, the electronic device may further include a transceiver 630 and a bus 640. Figure 6 As shown, the processor 610, the memory 620 and the transceiver 630 are connected via a bus 640 and communicate with each other.
[0138] The bus 640 includes hardware, software, or both. For example, but not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an InfiniBand 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 Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus 640 may include one or more buses.
[0139] The embodiment of the present disclosure further provides a computer-readable storage medium, which may store a computer program. When the computer program is executed by a processor, the processor implements the identity authentication method provided by the embodiment of the present disclosure.
[0140] The above-mentioned storage medium may, for example, include a memory 620 of computer program instructions, and the above-mentioned instructions may be executed by the processor 610 of the electronic device to complete the identity authentication method provided in the embodiment of the present disclosure. Optionally, the storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a ROM, a random access memory (Random Access Memory, RAM), a compact disc read-only memory (Compact Disc ROM, CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0141] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An identity authentication method, characterized in that: Applied to the server, including: Receiving an identity authentication request sent by a user terminal, wherein the identity authentication request includes attribute characteristics of the user; In response to the identity authentication request, a verification code base image and a slider template are acquired based on the attribute characteristics of the user, and a slider verification code is generated based on the verification code base image and the slider template, and the slider verification code is sent to the user terminal so that the user terminal displays the slider verification code after receiving the slider verification code, and a verification parameter is generated based on the identity authentication operation of the user, wherein the slider template includes a slider style, size, and orientation, and the slider template is different based on different attribute characteristics of the user; Receive the verification parameters sent by the user terminal, and determine the identity authentication result based on the verification parameters.
2. The method according to claim 1, characterized in that: The obtaining of the verification code base image and the slider template based on the attribute characteristics of the user includes: Based on the age feature and / or gender feature in the attribute features of the user, a verification code base image and a slider template with styles corresponding to the age feature and / or gender feature are selected.
3. The method according to claim 1, characterized in that Before generating the slider verification code based on the verification code base map and the slider template, the method further includes: Inputting the pixel coordinates of the verification code base image into a preset random function to generate puzzle coordinates; The generating the slider verification code based on the verification code base map and the slider template includes: Generate a mask image based on a preset tool and the verification code base image, wherein the size of the mask image is the same as that of the verification code base image, and the mask image is an image without a background; Based on the puzzle coordinates and the slider template, determine the position information of the slider template in the mask image; Performing a cutout process on the mask image based on the position information and the slider template to obtain a cutout mask image; Overlapping the cutout mask image with the verification code base image to determine a slider image; According to the coordinate information of the slider image, the verification code base image is cut out, the slider image is deducted from the verification code base image to obtain the cutout verification code base image, and the slider image and the cutout verification code base image are determined as the slider verification code.
4. The method according to claim 3, characterized in that The verification parameters include the target position coordinates of the slider image in the verification code base image after the cutout, which are obtained by the user terminal based on the identity authentication operation of the user; The determining the identity authentication result based on the verification parameter comprises: Matching the target position coordinates with the puzzle coordinates, determining that the identity authentication is passed when the target position coordinates and the puzzle coordinates are matched successfully, and feeding back the result of the identity authentication to the user terminal; When the target position coordinates fail to match the puzzle coordinates, it is determined that the identity authentication has failed, and the result of the identity authentication failure is fed back to the user terminal.
5. The method according to claim 4, characterized in that After receiving the verification parameter sent by the user terminal, the method further includes: Acquire the current location information of the user terminal and the frequency of the identity verification request issued by the user terminal based on the identification code of the user terminal; When the current location information is inconsistent with the historical location information, and / or the frequency of issuing the identity authentication request is greater than a preset threshold, a reminder message is sent to the user terminal.
6. An identity authentication method, characterized in that: Applied to the user side, including: Send an authentication request to the server; Receiving a slider verification code sent by the server and displaying the slider verification code, generating a verification parameter in response to an identity authentication operation performed by a user on the slider verification code, wherein the slider verification code is generated based on a verification code base image and a slider template, wherein the slider template includes a slider style, size, and orientation, and the slider template is different based on different attribute characteristics of the user; The verification parameters are sent to the server, so that the server determines the identity authentication result based on the verification parameters.
7. An identity verification device, characterized in that: include: A request receiving module, used to receive an identity authentication request sent by a user terminal, wherein the identity authentication request includes attribute characteristics of the user; a verification code sending module, for obtaining a verification code base image and a slider template based on the attribute characteristics of the user in response to the identity authentication request, generating a slider verification code based on the verification code base image and the slider template, sending the slider verification code to the user terminal so that the user terminal displays the slider verification code after receiving the slider verification code, and generating verification parameters based on the identity authentication operation of the user, wherein the slider template includes a slider style, size and orientation, and the slider template is different based on the attribute characteristics of the user; The parameter receiving module is used to receive the verification parameters sent by the user terminal and determine the identity authentication result based on the verification parameters.
8. An identity verification device, characterized in that: include: Request sending module, used to send identity authentication request to the server; a verification code receiving module, configured to receive a slider verification code sent by the server and display the slider verification code, and generate a verification parameter in response to an identity authentication operation performed by a user on the slider verification code, wherein the slider verification code is generated based on a verification code base image and a slider template, wherein the slider template includes a slider style, size, and orientation, and the slider template is different based on different attribute characteristics of the user; The parameter sending module is used to send the verification parameter to the server, so that the server determines the identity authentication result based on the verification parameter.
9. An electronic device, characterized in that: include: processor; A memory for storing executable instructions; The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the identity authentication method described in any one of claims 1 to 5 or claim 6.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the identity authentication method described in any one of claims 1 to 5 or claim 6.
Citation Information
Patent Citations
Method and terminal for generating identifying codes
CN105930713A
Computer login system and method based on verification code recognition
CN114626048A
Unlocking method and device of intelligent door lock, intelligent door lock, electronic equipment and medium
CN115828213A