Authentication method, device, storage medium and electronic device

By encrypting identity data on the client and sending the encrypted ciphertext to the server for comparison, the problem of privacy data leakage during the authentication process is solved and secure authentication is achieved.

CN115766115BActive Publication Date: 2024-09-13ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211339186.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-28
Publication Date
2024-09-13
Estimated Expiration
2042-10-28

AI Technical Summary

Technical Problem

Existing authentication processes may leak users' private data, such as face data and fingerprint data.

Method used

By generating and encrypting parameters on the client, the identity data to be verified is collected, and the encrypted ciphertext and user ID are sent to the server. The server queries the standard identity data for comparison based on the user ID to avoid direct transmission of unencrypted identity data.

Benefits of technology

It effectively prevents the leakage of user identity data and ensures the security of the identity verification process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115766115B
    Figure CN115766115B
Patent Text Reader

Abstract

The present specification discloses an identity authentication method, device, storage medium and electronic device. In the embodiment of the present specification, the client uses a specified parameter to encrypt a generated first parameter to obtain a first ciphertext, and uses the first parameter to encrypt the collected identity data to be verified to obtain a second ciphertext. The second ciphertext is encrypted using the specified parameter to obtain a third ciphertext. The first ciphertext, the third ciphertext and the user identification are sent to the server. The server queries the user's standard identity data based on the user identification. The fourth ciphertext encrypted by using the first ciphertext to encrypt the standard identity data is compared with the third ciphertext, and the user's identity is verified based on the comparison result. In this method, the client does not directly send the user's identity data to be verified to the server, but sends the third ciphertext encrypted by the identity data to be verified, which can avoid leaking the user's identity data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network security technology, and in particular to an identity authentication method, device, storage medium and electronic device. Background Art

[0002] Currently, when users are performing various services, the service provider needs to verify the user's identity. Only after the identity verification is passed can the corresponding services be performed, such as payment services, query services, etc.

[0003] During the identity verification process, the business party can first obtain the identity data currently entered by the user, and then verify the user's identity based on the currently obtained identity data and the pre-saved original identity data. The identity data may include: face data, fingerprint data and other private data.

[0004] However, the existing identity authentication process may have the problem of leaking users' privacy data. Summary of the invention

[0005] The embodiments of this specification provide an identity authentication method, device, storage medium and electronic device to partially solve the problems existing in the above-mentioned prior art.

[0006] The embodiments of this specification adopt the following technical solutions:

[0007] This specification provides an identity authentication method, which is applied to a client used by a user, and includes:

[0008] In response to a user's identity authentication request, generating a first parameter, and collecting identity data to be verified of the user;

[0009] Encrypting the first parameter using a specified parameter to obtain a first ciphertext, encrypting the identity data to be verified using the first parameter to obtain a second ciphertext, and encrypting the second ciphertext using the specified parameter to obtain a third ciphertext;

[0010] The first ciphertext, the third ciphertext and the user identifier of the user are sent to a server, so that the server queries the standard identity data corresponding to the user according to the user identifier, and uses the first ciphertext to encrypt the standard identity data to obtain a fourth ciphertext, and compares the third ciphertext with the fourth ciphertext to obtain a comparison result, so as to authenticate the user according to the comparison result.

[0011] Optionally, before responding to the user's identity authentication request, the method further includes:

[0012] Obtaining original identity data entered by the user;

[0013] Extracting features from the original identity data to obtain identity feature data of the user;

[0014] The identity feature data is encrypted using the designated parameters to obtain standard identity data, and the standard identity data is sent to the server so that the server receives the standard identity data and stores the standard identity data in correspondence with the user identifier corresponding to the user.

[0015] Optionally, encrypting the original identity data using the specified parameters to obtain standard identity data specifically includes:

[0016] Using the specified parameter as the base and the original identity data as the exponent to perform a power operation to obtain the standard identity data;

[0017] The first parameter is encrypted using a specified parameter to obtain a first ciphertext, specifically including:

[0018] Taking the specified parameter as the base and the first parameter as the exponent to perform a power operation, a first ciphertext is obtained;

[0019] Encrypting the second ciphertext by using the specified parameter to obtain a third ciphertext specifically includes:

[0020] A power operation is performed with the specified parameter as a base and the second ciphertext as an exponent to obtain a third ciphertext.

[0021] Optionally, encrypting the identity data to be verified by using the first parameter to obtain a second ciphertext specifically includes:

[0022] receiving a second parameter sent by the server, wherein the second parameter is a parameter generated by the server for identity authentication of the user;

[0023] Encrypting the identity data to be verified using the second parameter to obtain a fifth ciphertext;

[0024] The fifth ciphertext is encrypted using the first parameter to obtain a second ciphertext.

[0025] Optionally, sending the first ciphertext, the third ciphertext, and the user identifier of the user to a server so that the server queries the standard identity data corresponding to the user according to the user identifier, encrypts the standard identity data using the first ciphertext to obtain a fourth ciphertext, compares the third ciphertext with the fourth ciphertext to obtain a comparison result, and authenticates the user according to the comparison result, specifically including:

[0026] The first ciphertext, the third ciphertext and the user identifier of the user are sent to a server, so that the server queries the standard identity data corresponding to the user according to the user identifier, and encrypts the standard identity data with the second parameter to obtain a sixth ciphertext, encrypts the sixth ciphertext with the first ciphertext to obtain a fourth ciphertext, compares the third ciphertext with the fourth ciphertext to obtain a comparison result, and authenticates the user according to the comparison result.

[0027] This specification provides an identity authentication method, which is applied to a server and includes:

[0028] Receive a first ciphertext, a third ciphertext, and a user ID of the user sent by a client used by the user, wherein the first ciphertext is obtained by the client encrypting a first parameter using a specified parameter, the first parameter is generated by the client in response to the identity authentication request of the user, the third ciphertext is obtained by the client encrypting a second ciphertext using the specified parameter, the second ciphertext is obtained by the client encrypting identity data to be verified of the user using the first parameter, the identity data to be verified is collected when the client responds to the identity authentication request of the user;

[0029] According to the user identifier, query the standard identity data corresponding to the user;

[0030] Encrypting the standard identity data using the first ciphertext to obtain a fourth ciphertext;

[0031] Comparing the third ciphertext with the fourth ciphertext to obtain a comparison result;

[0032] The user's identity is authenticated according to the comparison result.

[0033] Optionally, the first ciphertext is data obtained by the client performing a power operation on the specified parameter as the base and the first parameter as the exponent, the second ciphertext is data obtained by the client summing the first parameter and the identity data to be verified, and the third ciphertext is data obtained by the client performing a power operation on the specified parameter as the base and the second ciphertext as the exponent;

[0034] The standard identity data is encrypted using the first ciphertext to obtain a fourth ciphertext, which specifically includes:

[0035] The product between the first ciphertext and the standard identity data is determined to obtain a fourth ciphertext, wherein the standard identity data is obtained by encrypting the original identity data entered by the user by the client using the specified parameters.

[0036] Optionally, before receiving the first ciphertext, the third ciphertext and the user identifier of the user sent by the client used by the user, the method further includes:

[0037] generating a second parameter for the identity verification of the user;

[0038] Sending the second parameter to the client used by the user, so that the client uses the second parameter to encrypt the identity data to be verified to obtain a fifth ciphertext, and uses the first parameter to encrypt the fifth ciphertext to obtain a second ciphertext;

[0039] The standard identity data is encrypted using the first ciphertext to obtain a fourth ciphertext, which specifically includes:

[0040] Using the standard identity data as a base and the second parameter as an exponent to perform a power operation, a sixth ciphertext is obtained;

[0041] Determine the product between the first ciphertext and the sixth ciphertext to obtain a fourth ciphertext; wherein the first ciphertext is data obtained by the client performing a power operation with a specified parameter as a base and the first parameter as an exponent.

[0042] This specification provides an identity verification device, including:

[0043] A generating module, configured to generate a first parameter in response to an identity authentication request of a user, and to collect identity data to be verified of the user;

[0044] an encryption module, configured to encrypt the first parameter using a specified parameter to obtain a first ciphertext, encrypt the identity data to be verified using the first parameter to obtain a second ciphertext, and encrypt the second ciphertext using the specified parameter to obtain a third ciphertext;

[0045] A verification module is used to send the first ciphertext, the third ciphertext and the user identification of the user to the server, so that the server can query the standard identity data corresponding to the user according to the user identification, and use the first ciphertext to encrypt the standard identity data to obtain a fourth ciphertext, compare the third ciphertext with the fourth ciphertext to obtain a comparison result, and authenticate the user according to the comparison result.

[0046] This specification provides an identity verification device, including:

[0047] A receiving module, configured to receive a first ciphertext, a third ciphertext, and a user identification of the user sent by a client used by the user, wherein the first ciphertext is obtained by the client encrypting a first parameter using a specified parameter, the first parameter is generated by the client in response to the identity authentication request of the user, the third ciphertext is obtained by the client encrypting a second ciphertext using the specified parameter, the second ciphertext is obtained by the client encrypting identity data to be verified of the user using the first parameter, the identity data to be verified is collected when the client responds to the identity authentication request of the user;

[0048] A query module, used to query the standard identity data corresponding to the user according to the user identifier;

[0049] an encryption module, configured to encrypt the standard identity data using the first ciphertext to obtain a fourth ciphertext;

[0050] A comparison module, used for comparing the third ciphertext with the fourth ciphertext to obtain a comparison result;

[0051] A verification module is used to authenticate the user according to the comparison result.

[0052] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned identity authentication method is implemented.

[0053] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned identity authentication method when executing the program.

[0054] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:

[0055] In the embodiments of this specification, the client used by the user responds to the user's identity authentication request, generates a first parameter and collects the user's identity data to be verified, then encrypts the first parameter using the specified parameter to obtain a first ciphertext, encrypts the identity data to be verified using the first parameter to obtain a second ciphertext, and encrypts the second ciphertext using the specified parameter to obtain a third ciphertext, and sends the first ciphertext, the third ciphertext and the user ID to the server. The server queries the user's standard identity data based on the user ID. The server encrypts the standard identity data using the first ciphertext to obtain a fourth ciphertext, compares the fourth ciphertext with the third ciphertext, and verifies the user's identity based on the comparison result. In this method, the client does not directly send the user's identity data to be verified to the server, but sends the third ciphertext encrypted with the identity data to be verified, which can avoid leaking the user's identity data. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:

[0057] Figure 1 A schematic diagram of an identity registration system provided in an embodiment of this specification;

[0058] Figure 2 A flowchart of an identity registration method provided in an embodiment of this specification;

[0059] Figure 3 A flowchart of another identity registration method provided in an embodiment of this specification;

[0060] Figure 4 A schematic diagram of an identity verification system provided in an embodiment of this specification;

[0061] Figure 5 A flowchart of an identity authentication method provided in an embodiment of this specification;

[0062] Figure 6 A flowchart of another identity authentication method provided in an embodiment of this specification;

[0063] Figure 7 A schematic diagram of the structure of an identity verification method provided in an embodiment of this specification;

[0064] Figure 8 A schematic diagram of the structure of another identity authentication method provided in the embodiments of this specification;

[0065] Fig. 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION

[0066] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0067] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0068] The embodiments of this specification involve two aspects: user identity registration and user identity verification. During the process of user identity registration and user identity verification, it is necessary to ensure that the user's identity data is not leaked. The user's identity data may include at least one of: face data, fingerprint data, palm print data, voice print data, iris data, password data, privacy question and answer data, etc.

[0069] Next, the user's identity registration process and the user's identity verification process are described respectively.

[0070] Figure 1 A schematic diagram of an identity registration system is provided for the purpose of this specification. The identity registration system may include: a client used by a user and a server for identity registration.

[0071] The client used by the user sends an identity registration request to the server for identity registration.

[0072] The server receives the identity registration request and returns input prompt information to the client according to the identity registration request.

[0073] The client receives and displays the input prompt information, and the user enters the original identity data used to represent the user's identity on the client. The client obtains the original identity data used to represent the user's identity in response to the user's input operation for the input prompt information.

[0074] After obtaining the original identity data of the user, the client may encrypt the original identity data to obtain the ciphertext corresponding to the original identity data in order to prevent leakage of the original identity data of the user.

[0075] Specifically, the client may encrypt the original identity data using a specified parameter to obtain standard identity data for representing the user identity, and send the standard identity data to the server. The specified parameter may be a random number generated by the client for the identity registration request. The specified parameter may be a relatively large prime number.

[0076] Furthermore, after obtaining the original identity data entered by the user, the client can extract features from the original identity data to obtain the user's identity feature data. Then, the identity feature data is encrypted using specified parameters to obtain standard identity data (i.e., the ciphertext corresponding to the original identity data), and the standard identity data is sent to the server.

[0077] When obtaining the standard identity data, the client can perform a power operation with the specified parameter as the base and the original identity data or identity feature data as the exponent to obtain the standard identity data.

[0078] The specific formula can be: C = g x . C can represent standard identity data, g can be a specified parameter, and g is a large public parameter. x can refer to the user's identity data or identity feature data. Since g is relatively large, it is difficult to infer x from C, that is, it is impossible to infer the original identity data based on the standard identity data, so it is not easy to leak the user's identity data.

[0079] After the client sends the standard identity data to the server, the server receives the standard identity data, determines the user ID corresponding to the user, and saves the user's standard identity data and the user ID in correspondence. Finally, the server returns the registration completion information to the client. Among them, the user ID corresponding to the user can be a decentralized identity (Decentralized Identifier, DID) identifier. The registration completion information carries the user's user ID.

[0080] Specifically, the server may save the user's standard identity data and the user's user identification in a corresponding manner in the server's database, or may save the standard identity data and the user's user identification in a public network, which may include: blockchain, InterPlanetary File System (IPFS), distributed database, etc.

[0081] Based on the above description of the identity registration system, Figure 2 A flowchart of an identity registration method is provided in an embodiment of this specification. The identity registration method is applied to a client and includes:

[0082] S200: sending an identity registration request to a server for identity registration, so that the server receives the identity registration request and returns input prompt information to the client according to the identity registration request.

[0083] S202: receiving the input prompt information, and in response to the user's input operation for the input prompt information, acquiring original identity data for representing the identity of the user.

[0084] S204: Encrypt the original identity data using specified parameters to obtain standard identity data for characterizing the user's identity, and send the standard identity data to the server, so that the server receives the standard identity data, stores the standard identity data in correspondence with the user's user ID, and returns registration completion information to the client.

[0085] In the embodiment of the present specification, the client sends an identity registration request to a server for identity registration, so that the server receives the identity registration request and returns input prompt information to the client according to the identity registration request.

[0086] The client receives the input prompt information, and in response to the user's input operation for the input prompt information, obtains the original identity data used to characterize the user's identity. The original identity data is encrypted using the specified parameters to obtain the standard identity data used to characterize the user's identity, and the standard identity data is sent to the server for identity registration, so that the server receives the standard identity data, stores the standard identity data in correspondence with the user's user identification, and returns registration completion information to the client.

[0087] Based on the above description of the identity registration system, Figure 3 A flowchart of another identity registration method is provided in an embodiment of this specification. The identity registration method is applied to a server for identity registration, including:

[0088] S300: receiving an identity registration request sent by a client used by a user.

[0089] S302: According to the identity registration request, the entry prompt information is returned to the client, so that the client receives the entry prompt information, and in response to the user's entry operation for the entry prompt information, the original identity data used to characterize the identity of the user is obtained, the original identity data is encrypting with specified parameters to obtain standard identity data used to characterize the identity of the user, and the standard identity data is sent to the server.

[0090] S304: Receive the standard identity data, store the standard identity data in correspondence with the user identifier of the user, and return registration completion information to the client.

[0091] In the embodiment of the present specification, the server receives an identity registration request sent by a client used by a user, and returns input prompt information to the client according to the identity registration request, so that the client receives the input prompt information, and in response to the user's input operation for the input prompt information, obtains the original identity data used to characterize the user's identity, encrypts the original identity data using specified parameters, obtains standard identity data used to characterize the user's identity, and sends the standard identity data to the server. Afterwards, the server receives the standard identity data, determines the user ID generated when the user registers, stores the standard identity data in correspondence with the user ID of the user, and returns registration completion information to the client. The registration completion information carries the user ID of the user.

[0092] After the user completes the identity registration on the server for identity registration, when the user performs other services, the service server can verify the user's identity through the standard identity data corresponding to the user identifier.

[0093] Next, user identity authentication is described.

[0094] Figure 4 A schematic diagram of an identity authentication system is provided in an embodiment of the present specification, and the identity authentication system may include: a client used by a user and a server for performing identity authentication, wherein the server for performing identity authentication may be the same as or different from the server for identity registration.

[0095] When the user is performing a business, the server that performs identity authentication can send an identity authentication request to the client for the business performed by the user.

[0096] The client used by the user can generate a first parameter, determine the user's user identification, and collect the identity data to be verified entered by the user in response to the user's identity authentication request. The first parameter can be a random number generated for the identity authentication request.

[0097] In order to prevent the first parameter from being leaked, the client may encrypt the first parameter using the specified parameter to obtain a first ciphertext. Similarly, in order to prevent the user's identity data to be verified from being leaked, the client may encrypt the identity data to be verified using the first parameter to obtain a second ciphertext. Then, the second ciphertext is encrypted using the specified parameter to obtain a third ciphertext. The specified parameter is a random number generated by the client for identity registration, that is, the specified parameter involved in the user's identity registration process and the identity authentication process is the same.

[0098] Finally, the client sends the first ciphertext, the third ciphertext and the user ID of the user to the server.

[0099] The server receives the first ciphertext, the third ciphertext, and the user ID of the user. Then, based on the user ID of the user, the standard identity data corresponding to the user is queried. After that, the standard identity data is encrypted using the first ciphertext to obtain a fourth ciphertext. Finally, the third ciphertext is compared with the fourth ciphertext to obtain a comparison result, and the user is authenticated based on the comparison result. Among them, the standard identity data is the data obtained by the client after obtaining the original identity data of the user and encrypting the original identity data using specified parameters.

[0100] Based on the above identity authentication system, a flowchart of an identity authentication method is provided in an embodiment of this specification, such as Figure 5 This authentication method is applied to the client used by the user, including:

[0101] S500: In response to an identity authentication request from a user, generate a first parameter, and collect identity data to be verified from the user.

[0102] In the embodiments of this specification, before the user executes the service, the client can obtain the original identity data entered by the user. Then, the original identity data is encrypted using the specified parameters to obtain the standard identity data. After that, the standard identity data is sent to the server for identity registration, so that the server for identity registration receives the standard identity data and saves the standard identity data in correspondence with the user ID of the user. Among them, it can be saved in a public network such as a blockchain, a distributed database, etc.

[0103] Specifically, the client can extract features from the original identity data to obtain the user's identity feature data, and then encrypt the identity feature data using specified parameters to obtain standard identity data.

[0104] Furthermore, a power operation is performed with the specified parameter as the base and the identity feature data as the exponent to obtain the standard identity data.

[0105] When a user performs a service, the user may send a service request to the identity authentication server, and the identity authentication server may send an identity authentication request for the service identifier carried in the service request to the client. The identity authentication server may be the same as or different from the server used for identity registration. The identity authentication request may carry a second parameter generated by the server for the user's identity authentication.

[0106] The client used by the user can generate a first parameter, determine the user's user identification, and collect the identity data to be verified entered by the user in response to the user's identity authentication request. The first parameter can be a random number generated for the identity authentication request.

[0107] The purpose of the client generating the first parameter may include: since the first parameter is a random number, the first parameter can avoid replay attacks by attackers, that is, the first parameter can be used to verify the credibility of the client. In addition, the first parameter encrypts the identity data to be verified, thereby avoiding leakage of the user's identity data to be verified.

[0108] When determining the user ID of the user, the client may obtain the user ID of the user in response to the user ID input by the user, or the client may call an application having the user ID and obtain the user ID from the called application.

[0109] It should be noted that the client may also determine the user ID of the user before sending the service request to the server, and send the user ID to the server when sending the service request, and this specification does not limit this.

[0110] When collecting the identity data to be verified, in response to the user's identity authentication request, the client can display input prompt information to the user, and the user enters the identity data to be verified according to the input prompt information. In response to the user's input operation, the client collects or obtains the identity data to be verified entered by the user.

[0111] S502: Encrypt the first parameter using a specified parameter to obtain a first ciphertext, encrypt the identity data to be verified using the first parameter to obtain a second ciphertext, and encrypt the second ciphertext using the specified parameter to obtain a third ciphertext.

[0112] In the embodiment of the present specification, after obtaining the user's identity data to be verified, the client may encrypt the first parameter and the identity data to be verified respectively to prevent leakage of the first parameter and the identity data to be verified.

[0113] With respect to the first parameter, the client may use the specified parameter to encrypt the first parameter to obtain a first ciphertext.

[0114] Specifically, the client may perform a power operation with the specified parameter as the base and the first parameter as the exponent to obtain the first ciphertext.

[0115] The specific formula can be: d = g y d may represent the first ciphertext, g may be a specified parameter, and g is a large public parameter. y may refer to the random first parameter. Since g is relatively large, it is difficult to infer y from d, thereby avoiding the disclosure of the first parameter.

[0116] For the identity data to be verified, the client can use the first parameter to encrypt the identity data to be verified to obtain a second ciphertext. Then, the second ciphertext is encrypted by the specified parameter to obtain a third ciphertext.

[0117] Specifically, the client sums the first parameter and the identity data to be verified to obtain the second ciphertext, and then performs a power operation with the specified parameter as the base and the second ciphertext as the exponent to obtain the third ciphertext.

[0118] The formula of the second ciphertext can be: R = y + x'. R is the second ciphertext, y is the first parameter, and x' is the identity data to be verified. The formula of the third ciphertext can be: D = g y+x′ D is the third ciphertext, g is the specified parameter, and y+x′ is the second ciphertext.

[0119] In addition to the above method for obtaining the second ciphertext, the client can also receive a second parameter sent by the server, wherein the second parameter is a parameter generated by the server for the user's identity authentication, and the second parameter can be a random number. Then, the client uses the second parameter to encrypt the identity data to be verified to obtain a fifth ciphertext. Finally, the fifth ciphertext is encrypted using the first parameter to obtain the second ciphertext.

[0120] Specifically, the product of the second parameter and the identity data to be verified may be determined first as the fifth ciphertext, and then the first parameter and the fifth ciphertext are summed to obtain the second ciphertext.

[0121] The formula of the second ciphertext may be: R=y+ax′, where R is the second ciphertext, y is the first parameter, x′ is the identity data to be verified, ax′ is the fifth ciphertext, and a is the second parameter.

[0122] After obtaining the second ciphertext, a power operation may be performed with the specified parameter as the base and the second ciphertext as the exponent to obtain the third ciphertext.

[0123] The formula for the third ciphertext can be: D = g y+ax′ D is the third ciphertext, g is the specified parameter, and y+ax′ is the second ciphertext.

[0124] It should be noted that, since the second parameter is a random number, the second parameter can avoid replay attacks by attackers, that is, the second parameter can be used to verify the credibility of the server.

[0125] S504: Send the first ciphertext, the third ciphertext and the user identifier of the user to the server, so that the server queries the standard identity data corresponding to the user according to the user identifier, and uses the first ciphertext to encrypt the standard identity data to obtain a fourth ciphertext, compares the third ciphertext with the fourth ciphertext to obtain a comparison result, and authenticates the user according to the comparison result.

[0126] In the embodiment of the present specification, the client may send the first ciphertext, the third ciphertext and the user identification of the user to the server.

[0127] In the process of sending the first ciphertext and the third ciphertext to the server, since the first ciphertext is the ciphertext of the first parameter encrypted, the attacker cannot obtain the first parameter, and the second ciphertext is the ciphertext of the identity data to be verified encrypted by the first parameter. Since the attacker cannot obtain the first parameter, he cannot obtain the identity data to be verified, thereby avoiding the leakage of user identity data during the transmission of identity data.

[0128] The server receives the first ciphertext, the third ciphertext and the user ID of the user. Then, the server queries the standard identity data corresponding to the user according to the user ID of the user. The standard identity data is the data obtained by the client after obtaining the original identity data of the user and encrypting the original identity data with the specified parameters.

[0129] Specifically, the server can obtain standard identity data corresponding to the user identifier and used to characterize the user's identity from public networks such as blockchain, distributed database, IPFS, etc. based on the user identifier.

[0130] Afterwards, the server uses the first ciphertext to encrypt the standard identity data to obtain a fourth ciphertext.

[0131] There are two situations: the first one is that the second ciphertext does not involve the second parameter; the second one is that the second ciphertext involves the second parameter.

[0132] For the first type:

[0133] When the fourth ciphertext is obtained, the server can determine the product between the first ciphertext and the standard identity data to obtain the fourth ciphertext. The formula of the fourth ciphertext can be: B = dC. B is the fourth ciphertext, d is the first ciphertext, and C is the standard identity data corresponding to the user.

[0134] For the second type:

[0135] When the fourth ciphertext is obtained, the server may encrypt the standard identity data using the second parameter to obtain a sixth ciphertext, and encrypt the sixth ciphertext using the first ciphertext to obtain a fourth ciphertext.

[0136] Specifically, the server may perform a power operation with the standard identity data as the base and the second parameter as the exponent to obtain the sixth ciphertext. Then, the product between the first ciphertext and the sixth ciphertext is determined to obtain the fourth ciphertext.

[0137] The formula of the fourth ciphertext can be: B = dC a B is the fourth ciphertext, d is the first ciphertext, C is the standard identity data corresponding to the user, and a is the second parameter.

[0138] After obtaining the fourth ciphertext, the server may compare the fourth ciphertext with the third ciphertext to obtain a comparison result, and perform identity authentication on the user according to the comparison result.

[0139] If the fourth ciphertext is the same as the third ciphertext, it is determined that the user's identity authentication has passed. On the contrary, if the fourth ciphertext is different from the third ciphertext, it is determined that the user's identity authentication has not passed.

[0140] It should be noted that, taking the fourth ciphertext in the second case as an example, under the premise that the server does not need to obtain the original identity data of the user, the principle of verifying the identity of the user by comparing the third ciphertext with the fourth ciphertext is:

[0141] g y+ax′ =dC a

[0142]

[0143]

[0144]

[0145]

[0146] Based on the above identity authentication system, the present specification provides a flowchart of another identity authentication method, such as Figure 6 The authentication method is applied to the authentication server, and the method includes:

[0147] S600: Receive a first ciphertext, a third ciphertext and a user identifier of the user sent by a client used by the user, wherein the first ciphertext is obtained by the client encrypting a first parameter with a specified parameter, the first parameter is generated by the client in response to the user's identity authentication request, the third ciphertext is obtained by the client encrypting a second ciphertext with the specified parameter, the second ciphertext is obtained by the client encrypting the user's identity data to be verified with the first parameter, and the identity data to be verified is collected when the client responds to the user's identity authentication request.

[0148] S602: Query the standard identity data corresponding to the user according to the user identifier.

[0149] S604: Use the first ciphertext to encrypt the standard identity data to obtain a fourth ciphertext.

[0150] S606: Compare the third ciphertext with the fourth ciphertext to obtain a comparison result.

[0151] S608: Authentication of the user is performed according to the comparison result.

[0152] In the embodiments of this specification, before the user executes the service, the client can obtain the original identity data entered by the user. Then, the original identity data is encrypted using the specified parameters to obtain the standard identity data. After that, the standard identity data is sent to the server for identity registration, so that the server for identity registration receives the standard identity data and saves the standard identity data in correspondence with the user identifier generated when the user registers. Among them, it can be saved in a public network such as a blockchain or a distributed database.

[0153] Specifically, a power operation is performed with the specified parameter as the base and the original identity data as the exponent to obtain the standard identity data.

[0154] When a user performs a service, the user sends a service request to the server. The server receives the service request and can generate a second parameter for the service request according to the service identifier in the service request. The second parameter is a random number. Then, the server can send an identity authentication request for the user to the user's client according to the second parameter.

[0155] The client used by the user can generate a first parameter, determine the user's user ID, and collect the identity data to be verified entered by the user in response to the user's identity authentication request. Then, the first parameter is encrypted using the specified parameter to obtain a first ciphertext. The identity data to be verified is encrypted using the first parameter to obtain a second ciphertext. After that, the second ciphertext is encrypted using the specified parameter to obtain a third ciphertext. Finally, the first ciphertext, the third ciphertext, and the user's user ID are sent to the server.

[0156] It should be noted that in the embodiments of this specification, the client may also determine the user identifier of the user before sending the service request to the server, and send the determined user identifier to the server when sending the service request to the server.

[0157] The server receives the first ciphertext, the third ciphertext and the user ID of the user. Then, the server queries the standard identity data corresponding to the user according to the user ID of the user. The standard identity data is the data obtained by the client after obtaining the original identity data of the user and encrypting the original identity data with the specified parameters.

[0158] Then, the server encrypts the standard identity data using the first ciphertext to obtain a fourth ciphertext. Finally, the fourth ciphertext can be compared with the third ciphertext to obtain a comparison result, so as to authenticate the user's identity based on the comparison result.

[0159] It should be noted that the specific authentication process involved in the server is different from Figure 5 The authentication process described is the same and will not be repeated here.

[0160] In addition to the above-mentioned client directly sending the third ciphertext to the server, during the identity authentication process, the client can send the second ciphertext to the server, and the server receives the second ciphertext and encrypts the second ciphertext using specified parameters to obtain the third ciphertext. Afterwards, the server compares the third ciphertext with the fourth ciphertext.

[0161] Through the above Figure 1 to Figure 6 As can be seen from the method involved, the client used by the user in this specification generates a first parameter and collects the user's identity data to be verified in response to the user's identity authentication request, then encrypts the first parameter using the specified parameter to obtain a first ciphertext, encrypts the identity data to be verified using the first parameter to obtain a second ciphertext, and encrypts the second ciphertext using the specified parameter to obtain a third ciphertext, and sends the first ciphertext, the third ciphertext and the user identification to the server. The server queries the user's standard identity data based on the user identification. The server encrypts the standard identity data using the first ciphertext to obtain a fourth ciphertext, compares the fourth ciphertext with the third ciphertext, and verifies the user's identity based on the comparison result. In this method, the client does not directly send the user's identity data to be verified to the server, but sends the third ciphertext encrypted with the identity data to be verified, which can avoid leaking the user's identity data.

[0162] The above is the identity authentication method provided in the embodiments of this specification. Based on the same idea, this specification also provides corresponding devices, storage media and electronic devices.

[0163] Figure 7 A schematic diagram of the structure of an identity verification device provided in an embodiment of this specification, the device comprising:

[0164] A generating module 701 is used to generate a first parameter in response to a user's identity authentication request, and to collect the user's identity data to be verified;

[0165] An encryption module 702 is used to encrypt the first parameter using a specified parameter to obtain a first ciphertext, encrypt the identity data to be verified using the first parameter to obtain a second ciphertext, and encrypt the second ciphertext using the specified parameter to obtain a third ciphertext;

[0166] The verification module 703 is used to send the first ciphertext, the third ciphertext and the user identification of the user to the server, so that the server can query the standard identity data corresponding to the user according to the user identification, and use the first ciphertext to encrypt the standard identity data to obtain a fourth ciphertext, compare the third ciphertext with the fourth ciphertext to obtain a comparison result, and authenticate the user according to the comparison result.

[0167] Optionally, before responding to the user's identity authentication request, the generation module 701 is also used to obtain the original identity data entered by the user; perform feature extraction on the original identity data to obtain the identity feature data of the user; encrypt the identity feature data using the specified parameters to obtain standard identity data, and send the standard identity data to the server, so that the server receives the standard identity data and saves the standard identity data in correspondence with the user identifier corresponding to the user.

[0168] Optionally, the encryption module 702 is specifically used to perform a power operation with a specified parameter as the base and the original identity data as the exponent to obtain standard identity data; perform a power operation with a specified parameter as the base and the first parameter as the exponent to obtain a first ciphertext; and perform a power operation with the specified parameter as the base and the second ciphertext as the exponent to obtain a third ciphertext.

[0169] Optionally, the encryption module 702 is specifically used to receive a second parameter sent by the server, wherein the second parameter is a parameter generated by the server for the identity authentication of the user; use the second parameter to encrypt the identity data to be verified to obtain a fifth ciphertext; use the first parameter to encrypt the fifth ciphertext to obtain a second ciphertext.

[0170] Optionally, the verification module 703 is specifically used to send the first ciphertext, the third ciphertext and the user identifier of the user to the server, so that the server queries the standard identity data corresponding to the user according to the user identifier, and encrypts the standard identity data using the second parameter to obtain a sixth ciphertext, encrypts the sixth ciphertext using the first ciphertext to obtain a fourth ciphertext, compares the third ciphertext with the fourth ciphertext to obtain a comparison result, and authenticates the user according to the comparison result.

[0171] Figure 8 A schematic diagram of another identity verification device provided in an embodiment of this specification, the device comprising:

[0172] A receiving module 801 is configured to receive a first ciphertext, a third ciphertext, and a user identifier of the user sent by a client used by the user, wherein the first ciphertext is obtained by the client encrypting a first parameter using a specified parameter, the first parameter is generated by the client in response to the identity authentication request of the user, the third ciphertext is obtained by the client encrypting a second ciphertext using the specified parameter, the second ciphertext is obtained by the client encrypting identity data to be verified of the user using the first parameter, the identity data to be verified is collected when the client responds to the identity authentication request of the user;

[0173] A query module 802 is used to query the standard identity data corresponding to the user according to the user identifier;

[0174] An encryption module 803, configured to encrypt the standard identity data using the first ciphertext to obtain a fourth ciphertext;

[0175] A comparison module 804, configured to compare the third ciphertext with the fourth ciphertext to obtain a comparison result;

[0176] The verification module 805 is used to perform identity verification on the user according to the comparison result.

[0177] Optionally, the first ciphertext is data obtained by the client using a specified parameter as a base and the first parameter as an exponent to perform a power operation, the second ciphertext is data obtained by the client summing the first parameter and the identity data to be verified, and the third ciphertext is data obtained by the client using the specified parameter as a base and the second ciphertext as an exponent to perform a power operation.

[0178] Optionally, the encryption module 803 is specifically used to determine the product between the first ciphertext and the standard identity data to obtain a fourth ciphertext, wherein the standard identity data is obtained by the client after obtaining the original identity data entered by the user and encrypting the original identity data using the specified parameters.

[0179] Optionally, before receiving the first ciphertext, the third ciphertext and the user identification of the user sent by the client used by the user, the receiving module 801 is also used to generate a second parameter for the identity authentication of the user; send the second parameter to the client used by the user, so that the client uses the second parameter to encrypt the identity data to be verified to obtain a fifth ciphertext, and uses the first parameter to encrypt the fifth ciphertext to obtain a second ciphertext.

[0180] Optionally, the encryption module 803 is specifically used to perform a power operation with the standard identity data as the base and the second parameter as the exponent to obtain a sixth ciphertext; determine the product between the first ciphertext and the sixth ciphertext to obtain a fourth ciphertext; wherein the first ciphertext is the data obtained by the client performing a power operation with the specified parameter as the base and the first parameter as the exponent.

[0181] This specification also provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, it can be used to perform the above Figure 5 and Figure 6 The authentication method provided.

[0182] based on Figure 5 and Figure 6 The authentication method shown in the specification also provides Fig. 9 The structural diagram of the unmanned equipment is shown in FIG. Fig. 9 At the hardware level, the unmanned equipment includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 5 and Figure 6 The authentication method indicated.

[0183] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0184] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0185] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0186] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0187] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0188] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0189] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0190] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0191] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0192] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0193] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0194] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0195] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0196] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0197] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0198] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0199] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. An identity authentication method, the method being applied to a client used by a user, the method comprising: In response to a user's identity authentication request, generating a first parameter, and collecting identity data to be verified of the user; Encrypting the first parameter using a specified parameter to obtain a first ciphertext, encrypting the identity data to be verified using the first parameter to obtain a second ciphertext, and encrypting the second ciphertext using the specified parameter to obtain a third ciphertext; The first ciphertext, the third ciphertext and the user identifier of the user are sent to a server, so that the server queries the standard identity data corresponding to the user according to the user identifier, and uses the first ciphertext to encrypt the standard identity data to obtain a fourth ciphertext, and compares the third ciphertext with the fourth ciphertext to obtain a comparison result, so as to authenticate the user according to the comparison result.

2. The method according to claim 1, before responding to the user's identity authentication request, the method further comprises: Obtaining original identity data entered by the user; Extracting features from the original identity data to obtain identity feature data of the user; The identity feature data is encrypted using the designated parameters to obtain standard identity data, and the standard identity data is sent to the server so that the server receives the standard identity data and stores the standard identity data in correspondence with the user identifier corresponding to the user.

3. The method according to claim 2, wherein the original identity data is encrypted using the specified parameters to obtain the standard identity data, specifically comprising: Using the specified parameter as the base and the original identity data as the exponent to perform a power operation to obtain the standard identity data; The first parameter is encrypted using a specified parameter to obtain a first ciphertext, specifically including: Taking the specified parameter as the base and the first parameter as the exponent to perform a power operation, a first ciphertext is obtained; Encrypting the second ciphertext by using the specified parameter to obtain a third ciphertext specifically includes: A power operation is performed with the specified parameter as a base and the second ciphertext as an exponent to obtain a third ciphertext.

4. The method according to claim 1, wherein the first parameter is used to encrypt the identity data to be verified to obtain a second ciphertext, specifically comprising: receiving a second parameter sent by the server, wherein the second parameter is a parameter generated by the server for identity authentication of the user; Encrypting the identity data to be verified using the second parameter to obtain a fifth ciphertext; The fifth ciphertext is encrypted using the first parameter to obtain a second ciphertext.

5. The method according to claim 4, wherein the first ciphertext, the third ciphertext and the user identifier of the user are sent to a server, so that the server queries the standard identity data corresponding to the user according to the user identifier, encrypts the standard identity data with the first ciphertext to obtain a fourth ciphertext, compares the third ciphertext with the fourth ciphertext to obtain a comparison result, and authenticates the user according to the comparison result, specifically comprising: The first ciphertext, the third ciphertext and the user identifier of the user are sent to a server, so that the server queries the standard identity data corresponding to the user according to the user identifier, and encrypts the standard identity data with the second parameter to obtain a sixth ciphertext, encrypts the sixth ciphertext with the first ciphertext to obtain a fourth ciphertext, compares the third ciphertext with the fourth ciphertext to obtain a comparison result, and authenticates the user according to the comparison result.

6. An identity authentication method, the method being applied to a server, the method comprising: Receive a first ciphertext, a third ciphertext, and a user ID of the user sent by a client used by the user, wherein the first ciphertext is obtained by the client encrypting a first parameter using a specified parameter, the first parameter is generated by the client in response to the identity authentication request of the user, the third ciphertext is obtained by the client encrypting a second ciphertext using the specified parameter, the second ciphertext is obtained by the client encrypting identity data to be verified of the user using the first parameter, the identity data to be verified is collected when the client responds to the identity authentication request of the user; According to the user identifier, query the standard identity data corresponding to the user; Encrypting the standard identity data using the first ciphertext to obtain a fourth ciphertext; Comparing the third ciphertext with the fourth ciphertext to obtain a comparison result; The user's identity is authenticated according to the comparison result.

7. The method according to claim 6, wherein the first ciphertext is data obtained by the client using a specified parameter as a base and the first parameter as an exponent to perform a power operation, the second ciphertext is data obtained by the client summing the first parameter and the identity data to be verified, and the third ciphertext is data obtained by the client using a specified parameter as a base and the second ciphertext as an exponent to perform a power operation; The standard identity data is encrypted using the first ciphertext to obtain a fourth ciphertext, which specifically includes: The product between the first ciphertext and the standard identity data is determined to obtain a fourth ciphertext, wherein the standard identity data is obtained by encrypting the original identity data entered by the user by the client using the specified parameters.

8. The method according to claim 6, before receiving the first ciphertext, the third ciphertext and the user identification of the user sent by the client used by the user, the method further comprises: generating a second parameter for the identity verification of the user; Sending the second parameter to the client used by the user, so that the client uses the second parameter to encrypt the identity data to be verified to obtain a fifth ciphertext, and uses the first parameter to encrypt the fifth ciphertext to obtain a second ciphertext; The standard identity data is encrypted using the first ciphertext to obtain a fourth ciphertext, which specifically includes: Using the standard identity data as a base and the second parameter as an exponent to perform a power operation, a sixth ciphertext is obtained; Determine the product between the first ciphertext and the sixth ciphertext to obtain a fourth ciphertext; wherein the first ciphertext is data obtained by the client performing a power operation with a specified parameter as a base and the first parameter as an exponent.

9. An identity verification device, comprising: A generating module, configured to generate a first parameter in response to an identity authentication request of a user, and to collect identity data to be verified of the user; an encryption module, configured to encrypt the first parameter using a specified parameter to obtain a first ciphertext, encrypt the identity data to be verified using the first parameter to obtain a second ciphertext, and encrypt the second ciphertext using the specified parameter to obtain a third ciphertext; A verification module is used to send the first ciphertext, the third ciphertext and the user identification of the user to the server, so that the server can query the standard identity data corresponding to the user according to the user identification, and use the first ciphertext to encrypt the standard identity data to obtain a fourth ciphertext, compare the third ciphertext with the fourth ciphertext to obtain a comparison result, and authenticate the user according to the comparison result.

10. An identity verification device, comprising: A receiving module, configured to receive a first ciphertext, a third ciphertext, and a user identification of the user sent by a client used by the user, wherein the first ciphertext is obtained by the client encrypting a first parameter using a specified parameter, the first parameter is generated by the client in response to the identity authentication request of the user, the third ciphertext is obtained by the client encrypting a second ciphertext using the specified parameter, the second ciphertext is obtained by the client encrypting identity data to be verified of the user using the first parameter, the identity data to be verified is collected when the client responds to the identity authentication request of the user; A query module, used to query the standard identity data corresponding to the user according to the user identifier; an encryption module, configured to encrypt the standard identity data using the first ciphertext to obtain a fourth ciphertext; A comparison module, used for comparing the third ciphertext with the fourth ciphertext to obtain a comparison result; A verification module is used to authenticate the user according to the comparison result.

11. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1 to 8.

12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 8 when executing the program.