Distributed identity authentication method, device access method and device

Through the distributed identity authentication method, the blockchain is used to store the user's encrypted information, and the terminal device calculates and sends the first value to the authenticated cloud service provider for verification, solving the authentication complexity and data security problems in the existing technology, and realizing the user Identity security authentication and information security.

CN113569210BActive Publication Date: 2024-11-22YGSOFT INC
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202110778279.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-09
Publication Date
2024-11-22
Estimated Expiration
2041-07-09

AI Technical Summary

Technical Problem

In the prior art, mobile users need to register user identities at different cloud service providers, resulting in complex and cumbersome authentication methods and risk of data leakage and single point of failure.

Method used

The distributed identity authentication method is adopted to store the user's encrypted information through the blockchain, the terminal device obtains the user information and calculates the first value, and sends it to the authenticated cloud service provider for verification, avoiding data management of the centralized registration center.

Benefits of technology

It realizes secure authentication of user identity, avoids data leakage and single point of failure, and improves the security of user information, so that users do not need to repeatedly register at different cloud service providers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113569210B_ABST
    Figure CN113569210B_ABST
Patent Text Reader

Abstract

The present application discloses a distributed identity authentication method, a device access method and a device. The distributed identity authentication method includes: a terminal device obtains user information; the terminal device obtains the user's encrypted information from the blockchain based on the user information; the terminal device calculates based on the encrypted information and the user information to obtain a first value; the terminal device sends the first value to the authentication cloud service provider, so that the authentication cloud service provider verifies the user's identity based on the first value. The present application can complete the user's identity authentication based on the encrypted information corresponding to the user stored in the blockchain, avoiding data leakage and single point failure problems caused by the centralized registration center.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to a distributed identity authentication method, a device access method and a device. Background Art

[0002] Mobile cloud computing provides additional computing capacity for resource-constrained terminal devices. However, in order to use services provided by different cloud service providers, mobile users must register their user identities with different cloud service providers and must remember multiple identities and credentials to access various cloud service providers. This authentication method is complex and cumbersome.

[0003] Currently, although many single sign-on solutions have emerged to eliminate the multiple repeated registrations of mobile users to access cloud service providers, most of these solutions rely on a trusted third-party registration center, which is a centralized entity that manages the identity information of all mobile users registered with it. The centralized registration center has full control over the data it owns, which increases the possibility of user data leakage and the risk of single point failure. Summary of the invention

[0004] The present application provides a distributed identity authentication method, a device access method and an apparatus, which can complete the user's identity authentication based on the encrypted information corresponding to the user stored in the blockchain, avoiding data leakage and single point failure problems caused by a centralized registration center.

[0005] To achieve the above objectives, the present application provides a distributed identity authentication method, the method comprising:

[0006] The terminal device obtains user information;

[0007] The terminal device obtains the user's encrypted information from the blockchain based on the user information;

[0008] The terminal device performs calculation based on the encrypted information and the user information to obtain a first value;

[0009] The terminal device sends the first value to the authentication cloud service provider, so that the authentication cloud service provider verifies the identity of the user based on the first value.

[0010] To achieve the above objectives, the present application provides a distributed identity authentication method, the method comprising:

[0011] The authentication cloud service provider obtains a first value from the terminal device, where the first value is calculated by the terminal device based on the user encryption information and the user information, and the user encryption information is obtained by the terminal device from the blockchain based on the user information;

[0012] The authentication cloud service provider verifies the first value;

[0013] If the verification is successful, the identity authentication message is sent to the terminal device to complete the identity authentication.

[0014] To achieve the above object, the present application provides a device access method, the method comprising:

[0015] The authentication cloud service provider obtains the access request and the first value sent by the terminal device, where the first value is calculated by the terminal device based on the user encryption information and the user information, and the user encryption information is obtained by the terminal device from the blockchain based on the user information;

[0016] The authentication cloud service provider verifies the first value;

[0017] If the verification is successful, the authentication cloud service provider grants the terminal device permission to access the authentication cloud service provider.

[0018] To achieve the above objectives, the present application also provides an electronic device, which includes a processor; the processor is used to execute instructions to implement the above method.

[0019] To achieve the above objectives, the present application also provides a computer-readable storage medium, which is used to store instructions / program data, and the instructions / program data can be executed to implement the above method.

[0020] When the terminal device of the present application performs identity authentication, it first obtains user information, and then obtains the user's encrypted information from the blockchain based on the user information. Then the terminal device can perform calculations based on the user's encrypted information and the user information to obtain a first value, and then send the first value to the authentication cloud service provider, so that the authentication cloud service provider can complete the user identity authentication if the first value is authenticated. Thus, the user's identity authentication can be completed based on the encrypted information corresponding to the user stored in the blockchain, so that different servers registered with the blockchain can authenticate the user's identity based on the encrypted information corresponding to the user on the blockchain, without the need for a centralized server to manage the user's information, thereby avoiding data leakage and single point failure problems. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0022] Figure 1 This is a flowchart of an implementation method of a user registration method based on blockchain in this application;

[0023] Figure 2 This is a flowchart of another implementation method of the blockchain-based user registration method of the present application;

[0024] Figure 3It is a flowchart of an implementation method of a distributed identity authentication method of the present application;

[0025] Figure 4 It is a schematic diagram of the workflow of the terminal device in the distributed identity authentication method of this application;

[0026] Figure 5 This is a schematic diagram of the workflow for authenticating a cloud service provider in the distributed identity authentication method of this application;

[0027] Figure 6 It is a flowchart of another implementation method of the distributed identity authentication method of the present application;

[0028] Figure 7 It is a structural schematic diagram of an embodiment of the electronic device of the present application;

[0029] Figure 8 It is a structural schematic diagram of an implementation method of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0030] Description and drawings illustrate the principle of the present application. It will therefore be appreciated that those skilled in the art will be able to design various arrangements, although arrangements are not explicitly described or shown herein, but they embody the principle of the present application and are included in the scope of the present application. In addition, all examples herein are mainly and explicitly intended for teaching purposes, to assist readers in understanding the principles of the present application and the concepts provided by the inventors, so as to deepen the field, and all examples should not be interpreted as being limited to such specific examples and conditions of elaboration. In addition, unless otherwise specified (for example, "or in addition" or "or in an alternative"), the term "or" as used herein refers to non-exclusive "or" (that is, "and / or"). Moreover, the various embodiments described herein are not necessarily mutually exclusive, because some embodiments can be combined with one or more other embodiments to form new embodiments.

[0031] In order to solve the problems of user data leakage and single point failure in the existing technical solution of managing user identities through a centralized registration center.

[0032] This application proposes a blockchain-based user registration method. When a user registers with a cloud service provider through a terminal device, the cloud service provider will process the user information into encrypted information and upload it to the blockchain. In this way, other cloud service providers can also use the encrypted information stored in the blockchain to authenticate the user, so that the user does not need to register for identity with different cloud service providers. The user identity information is managed through the blockchain without the need for a centralized registration center, thereby avoiding data leakage and single point failure problems. In addition, the encrypted information of user information is stored on the blockchain, which can improve the security of user information.

[0033] The following is a detailed description of the user registration method based on blockchain in this application, wherein the flowchart of the user registration method based on blockchain is as follows: Figure 1 and Figure 2 As shown, the blockchain-based user registration method of this embodiment includes the following steps. Among them, the application field of the blockchain-based user registration method of this application is not limited, for example, it can be applied to the field of cross-border trade or the field of IoT device management. It should be noted that the following step numbers are only used to simplify the description and are not intended to limit the execution order of the steps. The steps of this embodiment can be arbitrarily changed in execution order without violating the technical ideas of this application.

[0034] S101: A registration cloud service provider obtains a user registration request carrying user information.

[0035] In one implementation, the terminal device may directly send the user's registration request carrying the user information to the registration cloud service provider, so that the registration cloud service provider may obtain the user's registration request carrying the user information.

[0036] In another implementation, the user and the registered cloud service provider are nodes in the blockchain they jointly maintain. The user can exchange data with the registered cloud service provider through the blockchain, so that the registered cloud service provider only provides services based on the user's registration request and user information received, and cannot know who the user being served is, thereby protecting the user's privacy.

[0037] In addition, the terminal device can encrypt the user's registration request carrying the user information, and send the encrypted data to the registered cloud service provider to improve the security of the user information. Moreover, the terminal device can first select a cloud service provider as the cloud service provider that receives the user's registration request (i.e., the registered cloud service provider), and then use the registered cloud service provider's public key to encrypt the user's registration request carrying the user information, and then send the encrypted user's registration request to the registered cloud service provider, so that only the registered cloud service provider can use its own private key to decrypt the encrypted user's registration request to ensure the security of the user information.

[0038] The public key of the registered cloud service provider can be uploaded to the blockchain by the registered cloud service provider itself when the registered cloud service provider is registered in the blockchain, so that the terminal device can obtain the public key of the registered cloud service provider from the blockchain. In other implementations, the registered cloud service provider can send the public key to some blockchain nodes of its choice, or directly broadcast the public key to the entire network to send it to all blockchain nodes.

[0039] The calculation process of the public key of the registered cloud service provider can be: the registered cloud service provider first selects at least one private key, such as x, y; and then uses the private key to calculate the public key. For example, the public key Q can be calculated using the formula Q = (x + y). P; where x and y are the private keys selected by the registered cloud service provider, and P is the base point of the elliptic curve equation.

[0040] In addition, the user can select a nearby registered cloud service provider, and then send the user's registration request carrying the user information to the nearby selected registered cloud service provider, so that the nearby selected registered cloud service provider can process the user information, so that each cloud service provider in the blockchain is responsible for the registration requests of the user nodes adjacent to it, thereby realizing partitioned processing.

[0041] S102: The registered cloud service provider calculates at least one encrypted information based on its own key and user information.

[0042] After the registered cloud service provider obtains the user's registration request carrying user information, the registered cloud service provider can process the user information in response to the user's registration request, so that the registered cloud service provider can subsequently upload at least one processed encrypted information to the blockchain to complete the user's registration, and allow itself and other cloud service providers to obtain at least one encrypted information corresponding to the user from the blockchain, so as to authenticate the user's identity when the user logs in or accesses, so that the user only needs to register once to access and log in to multiple cloud service providers, and there is no need for a centralized registration center to manage the user's identity information, which can avoid data leakage and single point failure problems.

[0043] Optionally, the registered cloud service provider can perform reversible calculation on the user information based on its own key to obtain the first encrypted information. In this way, after the registered cloud service provider publishes the first encrypted information on the blockchain, the user can obtain his or her own first encrypted information from the blockchain. The user can infer the estimated value of the registered cloud service provider's key through the user information and the first encrypted information obtained from the blockchain. If the user information is correct, the estimated value of the registered cloud service provider's key is equal to the true value of the registered cloud service provider's key, and thus the user identity authentication can be passed.

[0044] Among them, the user information may include associated information, which is obtained by processing the user's biometric features by the user terminal. The registered cloud service provider can perform reversible calculations on the associated information based on its own key to obtain the first encrypted information. In this way, if the user's biometric features collected by the terminal device when the user logs in match the biometric features collected when the identity is registered, the terminal device can calculate the correct associated information based on the user's biometric features collected when the user logs in, and then deduce the true value of the key of the registered cloud service provider to complete the user's identity authentication. In this way, the terminal device does not need to store the user's biometric features, nor does it need to send the user's biometric features to other devices (such as registered cloud service providers or authentication cloud service providers), which can ensure the security of the user's biometric information.

[0045] Furthermore, the above-mentioned user association information can be obtained by associating the user's biometric features with the user's initial identification. Specifically, the user's terminal device can perform fuzzy extraction on the user's biometric features to obtain a key string; then associate the key string with the user's initial identification to obtain an association value; and then perform hash processing on the association value to obtain association information.

[0046] Specifically, the calculation formula of the association information is as follows: Gen(BIO i )=>(B i ,B F );

[0047] B1=h(ID i ||B i );

[0048] Among them, Gen(.) is the mother function of the fuzzy extractor; B i B is the key string obtained by fuzzy extraction of biometric features; F is the public copy string obtained by fuzzy extraction of biometric features; || is the association operation; is an XOR operation; h(.) is a one-way hash function; ID i Is the initial identification of the user.

[0049] In one implementation, after completing the user identity registration based on the present implementation, and when the user logs in, the terminal device can send the calculated value of the key of the registered cloud service provider to the authentication cloud service provider, allowing the authentication cloud service provider to verify the key calculation value. If the verification is successful, the authentication cloud service provider will authenticate the user's identity.

[0050] In another implementation, because the authentication cloud service provider may be different from the registration cloud service provider, and the authentication cloud service provider may not know the true value of the key of the registration cloud service provider, in order to facilitate the authentication cloud service provider to verify the user's identity, the registration cloud service provider may set two keys, a first key and a second key. The registration cloud service provider calculates the user information based on the first key to obtain the first encrypted information, and the registration cloud service provider calculates the first identifier of the registration cloud service provider based on the second key to obtain the second encrypted information; in addition, the registration cloud service provider may also multiply the first key and the preset value to obtain the third encrypted information; the registration cloud service provider may also multiply the second key and the above-mentioned preset value to obtain the fourth encrypted information; then in step S103, the first encrypted information, the second encrypted information, the third encrypted information and the fourth encrypted information are uploaded to the blockchain, so that when the user logs in, the terminal device used by the user can be based on the user information and the fourth encrypted information obtained from The first encrypted information obtained on the blockchain is used to infer the first key, and the first key is multiplied by the fourth encrypted information obtained from the blockchain to obtain a first value. In addition, the authentication cloud service provider will obtain the first identification and other information of the registered cloud service provider, and use the first identification and other information of the registered cloud service provider and the second encrypted information obtained from the blockchain to infer the second key, and use the second key and the third encrypted information obtained from the blockchain to multiply to obtain the second value. If the user information used by the terminal device to calculate the first value is correct and the calculation process is correct, then the second value will be the same as the first value. In this case, the authentication cloud service provider has authenticated the user's identity, so that cloud service providers other than the registered cloud service provider on the blockchain can also use at least one encrypted information of the user to authenticate the user's identity, and during the registration and login process, the cloud service provider does not need to obtain the user's biometric information, thereby ensuring the security of the user's biometric information. Among them, to facilitate the description of the first encryption information, the second encryption information, the third encryption information and the fourth encryption information, the first encryption information, the second encryption information, the third encryption information and the fourth encryption information may be referred to as the encryption information corresponding to the user, and the first encryption information and the fourth encryption information may be collectively referred to as the user's encryption information, and the second encryption information and the third encryption information may be collectively referred to as the encryption information of the registered cloud service provider.

[0051] The preset value mentioned above may be a randomly generated random number, or may be a value obtained by processing the user information and / or the identification information of the registered cloud service provider. Specifically, the user information may include a user identification, and the preset value may be calculated from the user identification and the second identification of the registered cloud service provider. Furthermore, in order to protect the user information and cloud service provider information, their identities may be hidden using equations such as elliptic curves. Specifically, the preset value may be obtained by performing an elliptic curve calculation on the sum of the user identification and the second identification of the registered cloud service provider. The user identification mentioned above may be the user's initial identification, or may be a value obtained by hashing the user's initial identification.

[0052] The specific calculation formula of the first encrypted information can be:

[0053] Among them, A4 is the user's first encrypted information, B1 is the user's associated information, n A The first key for registering a cloud service provider, ID j It is the second identifier of the registered cloud service provider. It is an XOR operation.

[0054] The specific calculation formula of the second encrypted information can be:

[0055] Among them, P C is the second encrypted information corresponding to the user, h(S) is the first identifier of the registered cloud service provider, n B Second key for registering cloud service provider, ID j The second identifier of the registered cloud service provider, It is an XOR operation.

[0056] The specific calculation formula of the third encrypted information can be: A =n A ×P.(ID j +h(ID i ));

[0057] Among them, P A is the third encrypted information, n A The first key for registering a cloud service provider, ID j The second ID of the registered cloud service provider, h(ID i ) is the user ID.

[0058] The specific calculation formula of the fourth encrypted information can be: B =n B ×P.(ID j +h(ID i ));

[0059] Among them, P B is the fourth encrypted information corresponding to the user, n B Second key for registering cloud service provider, ID j The second ID of the registered cloud service provider, h(ID i ) is the user ID.

[0060] In addition, the first identifier of the registered cloud service provider may be obtained by the registered cloud service provider processing its own second identifier.

[0061] Specifically, the registered cloud service provider may first generate a first random number r;

[0062] Then use the formula S = h (r1.P | | ID j ) calculates the intermediate value, where || is an association operation, P is the base point of the elliptic curve equation, h is a one-way hash function h(.): {0, 1}*->Zp*, r is the first random number, and S is the intermediate value;

[0063] The intermediate value S is then hashed to obtain the first identifier h(S) of the registered cloud service provider.

[0064] The above intermediate value can be saved by the registered cloud service provider on the local server. The second identifier and / or the first identifier of the registered cloud service provider can be stored on the blockchain, so that the authentication cloud service provider can obtain the second identifier and / or the first identifier of the registered cloud service provider corresponding to the user from the blockchain, so as to authenticate the registered user. The second identifier and / or the first identifier of the registered cloud service provider can be uploaded to the blockchain by the registered cloud service provider itself when the registered cloud service provider is registered in the blockchain.

[0065] It is understandable that the user registration method based on blockchain in the present application is executed based on blockchain. In order to facilitate the management of user identities and the authentication of user identities, at least some cloud service providers can determine a unified hash function and base point of the elliptic curve equation in the early stage of blockchain establishment, and publish the unified hash function and base point of the elliptic curve equation on the blockchain, so that the terminal device and the cloud service provider can use the same hash function and base point of the elliptic curve equation for data processing, so that the terminal device and the cloud service provider can quickly and accurately perform key conversion to avoid the situation where the user authentication fails due to external reasons such as the terminal device and the cloud service provider using inconsistent hash functions and base points of the elliptic curve equation, so as to provide a secure identity authentication channel for users and cloud service providers.

[0066] In addition, before step S102, the registration cloud service provider can check on the blockchain whether the user has already registered based on the user information; if the user has already registered, the registration cloud service provider can ignore the registration request and send a reminder to the terminal device to remind the user that the account has been registered; if the user has not registered, execute step S102.

[0067] S103: The registration cloud service provider uploads at least one encrypted information to the blockchain to complete the user's registration.

[0068] After obtaining at least one encrypted information based on step S102, the registration cloud service provider may upload at least one encrypted information to the blockchain. The registration cloud service provider may also send a successful registration message to the terminal device to let the user know that he has successfully registered.

[0069] In addition, the terminal device can store some parameters generated during the registration process (such as the public copy string, fuzzy extraction function Gen(.), copy function Rep(.), one-way hash h(.), time interval △t, base point P, and A1) on its own device.

[0070] Where A1 is the value of Calculated; where ID i The initial identification of the user; B i It is the user's associated information; PW i is the password entered by the user; l It can be a secret with a life cycle generated by processing the user's biometrics.

[0071] After uploading the encrypted information corresponding to the user to the blockchain based on the above-mentioned blockchain-based user registration method or other user registration methods, the terminal device and the authentication cloud service provider can use the encrypted information corresponding to the user in the blockchain to authenticate the user's identity. Among them, the cloud service provider of this application is the provider of cloud services, and the cloud service provider can be a complete node in the blockchain, which can have a complete copy of the blockchain distributed ledger, so that the cloud service provider can find the encrypted information corresponding to the user registered by other cloud service providers on the blockchain to authenticate the user's identity. Specifically, Figure 3 As shown, the method for performing distributed identity authentication using the above-mentioned encrypted information may include the following steps.

[0072] S201: The terminal device obtains user information.

[0073] S202: The terminal device obtains the user's encrypted information from the blockchain based on the user information.

[0074] S203: The terminal device performs calculation based on the user's encryption information and user information to obtain a first value.

[0075] S204: The authentication cloud service provider verifies the first value.

[0076] S205: If the verification is successful, the authentication cloud service provider sends an identity authentication message to the terminal device to complete the identity authentication.

[0077] When the terminal device performs identity authentication, it can first obtain user information so that the terminal device can obtain the user's encrypted information from the blockchain based on the user information, so that the terminal device can calculate based on the user's encrypted information and user information to obtain a first value, so as to complete the user identity authentication when the authentication cloud service provider authenticates the first value, and then the user's identity authentication can be completed based on the encrypted information corresponding to the user stored in the blockchain, so that different servers registered with the blockchain can authenticate the user's identity based on the encrypted information corresponding to the user on the blockchain, without the need for a centralized server to manage the user's information, thereby avoiding data leakage and single point failure problems.

[0078] In the first implementation, when the user registers, the user's encrypted information is obtained by the registered cloud service provider through reversible calculation of the user information based on the registered cloud service provider's key. Then in step S203, the terminal device can use the user information and the user's encrypted information to perform calculations to obtain the calculated value of the registered cloud service provider's key, and send the calculated value of the registered cloud service provider's key as the first value to the authentication cloud service provider, so that the authentication cloud service provider can authenticate the calculated value of the registered cloud service provider's key. If the authentication is successful, the authentication cloud service provider can send an identity authentication message to the terminal device to complete the user's identity authentication. Specifically, in step S204, the authentication cloud service provider can determine the true value of the registered cloud service provider's key based on the information such as the identifier of the registered cloud service provider corresponding to the user (for example, if the authentication cloud service provider is not the registered cloud service provider, the authentication cloud service provider can directly request the registered cloud service provider to obtain the true value of the registered cloud service provider's key); if the authentication cloud service provider determines that the true value of the registered cloud service provider's key is consistent with the calculated value of the registered cloud service provider's key sent by the terminal device, the first value authentication is successful.

[0079] In the second implementation, in step S203, the terminal device can use the user information and the user's encrypted information to perform calculations to deduce the estimated value of the key of the registered cloud service provider; the terminal device can use the estimated value of the key of the registered cloud service provider to perform calculations to obtain a first value, and then send the first value to the authentication cloud service provider to allow the authentication cloud service provider to authenticate the first value. If the authentication cloud service provider authenticates the first value, the authentication cloud service provider sends an identity authentication message to the terminal device to complete the user's identity authentication, that is, the user identity authentication is successful. Optionally, in step S204, the authentication cloud service provider can calculate the second value based on the first value, the identifier of the registered cloud service provider, and the encrypted information of the registered cloud service provider; confirm whether the first value and the second value are consistent; if the first value and the second value are the same, the authentication cloud service provider authenticates the first value.

[0080] In the third implementation, in order to facilitate different authentication cloud service providers to verify the user's identity, when the user registers, the registration cloud service provider can use the first key and the second key to obtain the four encrypted information corresponding to the user, namely the first encrypted information, the second encrypted information, the third encrypted information and the fourth encrypted information. Specifically, in step S202, the terminal device can obtain the first encrypted information and the fourth encrypted information stored on the blockchain when the user registers from the blockchain through the user information; then in step S203, the terminal device uses the first encrypted information and the user information to infer the estimated value of the first key of the registered cloud service provider; multiply the estimated value of the first key and the fourth encrypted information to obtain the first value; then the terminal device sends the first value to the authentication cloud service provider, so that the authentication cloud service provider can infer the second key of the registered cloud service provider based on the second encrypted information corresponding to the user and the identifier of the registered cloud service provider in step S204; then multiply the calculated second key and the third encrypted information to obtain the second value; the authentication cloud service provider confirms whether the calculated second value is consistent with the first value; if they are consistent, the first value is verified, that is, the user identity authentication is passed, and the identity authentication message can be sent to the terminal device to complete the user identity authentication.

[0081] In the fourth implementation, in step S202, the terminal device can obtain the first encrypted information and the fourth encrypted information stored on the blockchain when the user registers from the blockchain through the user information; then in step S203, the terminal device uses the first encrypted information and the user information to infer the estimated value of the first key of the registered cloud service provider; multiply the estimated value of the first key and the fourth encrypted information to obtain a first intermediate value; the terminal device performs reversible processing on the first intermediate value and the first encrypted information to obtain a first value; then the terminal device sends the first value to the authentication cloud service provider, so that the authentication cloud service provider, in step S204, based on the identifier of the registered cloud service provider The second key of the registered cloud service provider is calculated from the second encrypted information obtained from the blockchain; the calculated second key is then multiplied by the third encrypted information obtained from the blockchain to obtain a second intermediate value; the authentication cloud service provider performs reversible processing on the second intermediate value, the first value and the first encrypted information obtained from the blockchain to obtain a second transition value; the authentication cloud service provider then performs reversible calculation on the second transition value, the second intermediate value and the first encrypted information to obtain a second value; the authentication cloud service provider then confirms whether the calculated second value is consistent with the first value; if they are consistent, the first value is verified to be successful, and the identity authentication message can be sent to the terminal device to complete the user's identity authentication.

[0082] Optionally, the user information may include a user password, and the identifier of the registered cloud service provider may include a first identifier and a second identifier. The step of the terminal device reversibly processing the first intermediate value and the first encrypted information may include: the terminal device processes the user's initial identifier, the user password, the current key string, and the second identifier of the registered cloud service provider to obtain a first associated value; and then the terminal device performs an XOR operation on the first associated value, the first intermediate value, and the first encrypted information to obtain the first value.

[0083] The calculation formula of the first correlation value may be as follows:

[0084] A5=h(ID i ||PW i ||B i *||r2||T1||ID j );

[0085] Among them, A5 is the first associated value, ID i The initial identification of the user; PW i is the user's password; B i * is the user's current key string; r2 is the second random number; T1 is the first time, ID j The second random number r2 and the first time T1 may be generated by the terminal device when the terminal device obtains the user encryption information from the blockchain.

[0086] In addition, the calculation formula of the first value can be:

[0087] Among them, A6 is the first value, A5 is the first associated value, D1 is the first intermediate value, and A4 is the user's first encrypted information.

[0088] Furthermore, in the above implementation, the authentication cloud service provider may specifically perform a reversible calculation (eg, XOR calculation) on the first identifier, the second identifier, and the second encrypted information of the registered cloud service provider to obtain an estimated value of the second key of the registered cloud service provider.

[0089] In addition, the user information may include the user's current biometrics. In step S203 of the above implementation method, the terminal device may process the current biometrics to obtain the user's current associated information, and then the terminal device may use the user's current associated information and the user's encrypted information to perform a reversible operation to infer the calculated value of the key of the registered cloud service provider. In this way, when authenticating the user's identity, the terminal device may send the first value obtained by processing the user's biometrics to the authentication cloud service provider, instead of directly sending the user's biometrics to the authentication cloud service provider. This can ensure that the user's biometrics are not sent to other devices while authenticating the user's identity using the user's biometrics. In addition, the terminal device does not need to store the user's biometrics to protect the security of the user's biometrics.

[0090] Furthermore, the user information may also include the initial identification of the user. In step S203, the terminal device may process the initial identification of the user based on the current biometric features of the user to obtain the current associated information of the user.

[0091] Specifically, the steps in which the terminal device processes the user's initial identification based on the user's current biometrics may include: the terminal device may perform fuzzy extraction on the user's current biometrics to obtain a current key string; then associate the current key string with the user's initial identification to obtain an associated value; and then hash the associated value to obtain associated information.

[0092] Specifically, the calculation formula of the current association information is as follows: Gen(BIO i *)=>(B i *,B F *);

[0093] B1*=h(ID i ||B i *);

[0094] Among them, BIO i * is the user's current biometric feature, which is the biometric feature obtained from the user by the terminal device when the user logs in or accesses the authentication cloud service provider, or when the user performs identity authentication on the authentication cloud service provider; Gen(.) is the master function of the fuzzy extractor; B i * is the current key string obtained by fuzzy extraction of the user's current biometric features; B F * is the current public copy string obtained by fuzzy extraction of the user's current biometric features; || is the association operation; is an XOR operation; h(.) is a one-way hash function; ID i Is the initial identification of the user.

[0095] In addition, the user's initial identification can also be used to distinguish different users. In this way, in step S202, the terminal device can use the user's initial identification, or the user identification obtained by processing the initial identification, to find the user's encrypted information stored in the blockchain distributed ledger when the user registered.

[0096] Correspondingly, after obtaining the first value from the terminal device, the authentication cloud service provider can query the first encrypted information, the second encrypted information, the third encrypted information and other encrypted information corresponding to the user from the blockchain based on the user identifier, or based on the user identifier and the identifier of the authentication cloud service provider, so as to execute step S204 and verify the first value.

[0097] Among them, the authentication cloud service provider can determine the identification and other information of the registered cloud service provider corresponding to the user based on the following method. For example, in step S204, the authentication cloud service provider can use the user identification and other information in the user information to find the identification and other information of the registered cloud service provider from the blockchain. For another example, after the terminal device calculates the first value, it can send the first value and the identification of the registered cloud service provider to the authentication cloud service provider, so that the authentication cloud service provider can receive the identification of the registered cloud service provider at the same time as receiving the first value.

[0098] In addition, when the first value is obtained from the terminal device, the authentication cloud service provider can use the current time as the second time T2, and determine whether the difference between the second time T2 and the first time T1 is within the validity period △T; if so, the encrypted information corresponding to the user is queried from the blockchain based on the user identifier, or based on the user identifier and the identifier of the authentication cloud service provider.

[0099] Furthermore, before querying the encrypted information corresponding to the user from the blockchain based on the user identifier, or based on the user identifier and the identifier of the authentication cloud service provider, the authentication cloud service provider may also verify on the blockchain whether the user has been logged out based on the user identifier; if the user has been logged out, the request is terminated and steps S204 and S205 are not executed; if the user has not been logged out, steps S204 and S205 are executed to verify the first value based on the encrypted information corresponding to the queried user.

[0100] In addition, in step S205 of the above implementation, the authentication cloud service provider may generate an identity authentication message based on the first value, and send the generated identity authentication message to the terminal device.

[0101] The identity authentication message may be generated by the following formula, but is certainly not limited thereto:

[0102]

[0103] Wherein, A8 is the identity authentication message, A5* is the second transition value, A6 is the first value, r2 is the second random number, T3 is the third time, and r3 is the third random number. Wherein, the third time and the third random number can be generated when the authentication cloud service provider authenticates the first value.

[0104] As an exception, when the authentication cloud service provider sends the identity authentication message to the terminal device, it can also send the third time to the terminal device so that the terminal device can confirm whether the difference between the time point T4 when it receives the identity authentication message and the third time T3 is within the validity period △T. If so, the identity authentication is successful.

[0105] like Figure 4 As shown, for a terminal device, the steps for implementing a distributed identity authentication method are as follows.

[0106] S301: The terminal device obtains user information.

[0107] S302: The terminal device obtains the user's encrypted information from the blockchain based on the user information.

[0108] S303: The terminal device performs calculation based on the encryption information and the user information to obtain a first value.

[0109] S304: The terminal device sends the first value to the authentication cloud service provider, so that the authentication cloud service provider verifies the identity of the user based on the first value.

[0110] The above steps and Figure 3 The relevant steps in the illustrated embodiment are similar and will not be described in detail. When the terminal device performs identity authentication, it first obtains user information, and then obtains the user's encrypted information from the blockchain based on the user information. Then the terminal device can calculate based on the user's encrypted information and user information to obtain a first value, and then send the first value to the authentication cloud service provider, so that the authentication cloud service provider can complete the user identity authentication if the first value is authenticated, so that the user's identity authentication can be completed based on the encrypted information corresponding to the user stored in the blockchain, so that different servers registered to the blockchain can authenticate the user's identity based on the encrypted information corresponding to the user on the blockchain, without the need for a centralized server to manage the user's information, thereby avoiding data leakage and single point failure problems.

[0111] For the authentication of cloud service providers, please refer to the steps for implementing distributed identity authentication methods. Figure 5 , Figure 5 This is a schematic diagram of the workflow for authenticating a cloud service provider in the distributed identity authentication method of this application.

[0112] S401: Authenticate the cloud service provider to obtain a first value from the terminal device.

[0113] Among them, the first value is calculated by the terminal device based on the user's encrypted information and user information, and the user's encrypted information is obtained by the terminal device from the blockchain based on the user information.

[0114] S402: The authentication cloud service provider verifies the first value.

[0115] S403: If the verification is successful, an identity authentication message is sent to the terminal device to complete the identity authentication.

[0116] In this embodiment, the above steps are Figure 3 The relevant steps in the illustrated embodiment are similar and will not be described in detail. After receiving the first value from the terminal device, the authentication cloud service provider will send an identity authentication message to the terminal device to complete the identity authentication if the first value is authenticated successfully, wherein the first value is calculated by the terminal device based on the user's encrypted information and user information, and the user's encrypted information is obtained by the terminal device from the blockchain based on the user information. In this way, the user's identity authentication can be completed based on the encrypted information corresponding to the user stored in the blockchain, so that different servers registered to the blockchain can authenticate the user's identity based on the encrypted information corresponding to the user on the blockchain, without the need for a centralized server to manage the user's information, thereby avoiding data leakage and single point failure problems.

[0117] To better illustrate the distributed identity authentication method of the present application, the following user identity authentication specific embodiment is provided for exemplary explanation:

[0118] Example 1

[0119] like Figure 6 As shown, the distributed identity authentication method of this embodiment includes the following steps:

[0120] 1. User MU i Extract the ID from the terminal device i 、Password PW i 、Biometrics i , and request access to the blockchain to authenticate the cloud service provider CSP j Requests;

[0121] 2. After receiving the access request and related information, the blockchain will store the encrypted information A4, P B Send to user;

[0122] 3. The user receives A4 and P from the blockchain B After that, generate the second random number r2, the first time T1, and calculate

[0123]

[0124] A5=h(IDi ||PW i ||B i *||r2||T1||ID j ),

[0125] D1=n A ×P B ,

[0126]

[0127]

[0128] Then, the user sends the calculated first time T1, second random number r2, first value A6 and other information to the corresponding authentication cloud service provider CSP j , for identity authentication;

[0129] 4. Certified Cloud Service Provider (CSP) j Received from user MU i The first value A6 and other information sent are used to verify whether the difference between the second time T2 and the first time T1 is within the validity period △T. If so, the user's ID h(ID i ) and the second ID of the registered cloud service provider j Request the user's corresponding encrypted information from the blockchain;

[0130] 5. Blockchain receives the Certified Cloud Service Provider (CSP) j h(ID sent i ) and ID j , verify whether the user has been logged out on its distributed ledger. If so, terminate the request. Otherwise, query the obtained A4, P A and P C Return to the certified cloud service provider CSP j ;

[0131] 6. Certified Cloud Service Provider (CSP) j Received A4 from blockchain, P A and P C , through local calculation, verify whether the locally generated key is consistent with the key sent by the user:

[0132]

[0133] S1=n B ×P A ,

[0134]

[0135]

[0136] Verify whether the second value A6* is equal to the first value A6. If so, generate a third random number r3 and a third time T3, and encrypt the information into an identity authentication message A8 and send it to the user MU. i

[0137]

[0138] 7. User MU i Receive Certified Cloud Service Provider (CSP) j Sent<A8,T3> , first check whether the difference between the current timestamp T4 and the third time T3 is within the validity period △T. If so, the identity authentication is successful.

[0139] The identity authentication method of the present application can be applied to multiple application scenarios, such as the following two application scenarios.

[0140] In an application scenario, before a terminal device accesses an authentication cloud service provider, it can execute the identity authentication method of the present application, so that after the authentication cloud service provider passes the identity authentication of the user using the terminal device, the authentication cloud service provider grants access rights to the terminal device. Specifically, in step S202, and in this application scenario, the terminal device can submit a user's access request to the authentication cloud service provider to the blockchain jointly maintained by the terminal device and the authentication cloud service provider, so that the blockchain sends the user's encrypted information to the terminal device in response to the access request. Among them, the access request sent by the terminal device can carry information such as a user ID, so that the blockchain can find the user's encrypted information stored on the blockchain when the user registers based on information such as the user ID.

[0141] In another application scenario, the terminal device can execute the identity authentication method of the present application before interacting with the authentication cloud service provider, so that after the authentication cloud service provider passes the identity authentication of the user using the terminal device, the authentication cloud service provider can exchange information with the terminal device.

[0142] In addition, if the user needs to update or retrieve the password because he forgets the password, the user can enter his current biometric BIO i * and ID i Input to the terminal device so that the terminal device can detect the user's current biometric BIO i * and ID i Verification is performed. If the verification is successful, the terminal device will agree to the user's password reset request. At this time, the user can enter a new password or obtain a reset new password based on the terminal device.

[0143] The terminal device detects the user's current biometrics BIO i * and ID i The process of performing the verification can be as follows:

[0144] The terminal device uses the copy function of the fuzzy extractor to perform the current biometric BIO i * Calculate using the formula Rep(BIO i *, P F )=B i * Calculate and get the current key string B i *;

[0145] The terminal device has the user's current key string B i * and the user's ID i To associate, use the formula B1*=h(ID i ||B i *) to calculate and obtain the current associated information B1*;

[0146] The terminal device verifies whether the user's current association information B1* is consistent with the association information B1 stored on the terminal device;

[0147] If they are consistent, a new secret s with a life cycle is generated n , and based on the new password PW i n Generate a new A1 n , for example using the formula Calculate to generate new A1 n and use the new A1 n Replace A1 in the original mobile device to update / retrieve the password without the involvement of the cloud service provider.

[0148] See also Figure 7 , Figure 7 1 is a schematic diagram of the structure of an embodiment of the electronic device 20 of the present application. The electronic device 20 of the present application includes a processor 22, and the processor 22 is used to execute instructions to implement the method provided by any embodiment of the user registration method based on blockchain of the present application and any non-conflicting combination.

[0149] The electronic device 20 may be a terminal such as a mobile phone or a notebook computer, or may also be a server.

[0150] The processor 22 may also be referred to as a CPU (Central Processing Unit). The processor 22 may be an integrated circuit chip having signal processing capabilities. The processor 22 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor, or the processor 22 may also be any conventional processor, etc.

[0151] The electronic device 20 may further include a memory 21 for storing instructions and data required for the processor 22 to run.

[0152] See also Figure 8 , Figure 8 It is a schematic diagram of the structure of the computer-readable storage medium in the implementation mode of the present application. The computer-readable storage medium 30 of the embodiment of the present application stores instructions / program data 31, and when the instructions / program data 31 are executed, the method provided by any embodiment of the above-mentioned method of the present application and any non-conflicting combination is implemented. Among them, the instructions / program data 31 can form a program file and be stored in the above-mentioned storage medium 30 in the form of a software product, so that a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) executes all or part of the steps of each implementation method of the present application. The aforementioned storage medium 30 includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, or a computer, a server, a mobile phone, a tablet and other devices.

[0153] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0154] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0155] 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.

[0156] The above are only implementation methods of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A distributed identity authentication method, characterized in that: The method comprises: The terminal device obtains user information; The terminal device obtains the encrypted information of the user from the blockchain based on the user information, wherein the encrypted information of the user is obtained by a registered cloud service provider performing a reversible calculation on the user information based on a key of the registered cloud service provider, and the user information includes associated information, and the associated information is obtained by the user terminal processing the biometric features of the user; The terminal device calculates the first key of the registered cloud service provider based on the encrypted information of the user and the user information to obtain a first value; the encrypted information of the user includes fourth encrypted information, the fourth encrypted information is obtained by multiplying the second key of the registered cloud service provider and a preset value, the preset value is calculated based on the user information, and the first value is obtained by multiplying the calculated value of the first key of the registered cloud service provider and the fourth encrypted information; The terminal device sends the first value to the authentication cloud service provider, so that the authentication cloud service provider confirms whether the first value and the second value are consistent to complete the identity authentication of the user, the second value is obtained by multiplying the second key of the registration cloud service provider and the third encrypted information, the third encrypted information is obtained by multiplying the first key and a preset value, the second key of the registration cloud service provider is calculated by the authentication cloud service provider based on the identifier of the registration cloud service provider and the encrypted information of the registration cloud service provider, and the registration cloud service provider is a cloud service provider that completes the user registration in response to the user's registration request.

2. The distributed identity authentication method according to claim 1, characterized in that: The step of the terminal device calculating the first key of the registered cloud service provider based on the encryption information of the user and the user information to obtain the first value includes: The terminal device calculates the first key of the registered cloud service provider based on the encryption information of the user, the registered cloud service provider identifier and the user information; The step of completing the user's identity authentication by allowing the authentication cloud service provider to confirm whether the first value and the second value are consistent includes: When the authentication cloud service provider confirms that the first value and the second value are consistent, the authentication cloud service provider sends an identity authentication message to the terminal device to complete the identity authentication.

3. The distributed identity authentication method according to claim 1, characterized in that: The user information includes the current biometrics of the user and the initial identification of the user, and the terminal device calculates the first key of the registered cloud service provider based on the encryption information of the user and the user information, and the step of obtaining the first value includes: The terminal device processes the initial identification based on the current biometric feature to obtain current association information; The terminal device calculates the first key of the registered cloud service provider based on the current association information and the encryption information of the user.

4. The distributed identity authentication method according to claim 3, characterized in that: The user's encrypted information includes first encrypted information, the identifier of the registered cloud service provider includes a second identifier, and the step of the terminal device calculating the first key of the registered cloud service provider based on the current association information and the user's encrypted information includes: The terminal device performs a reversible calculation on the current association information, the first encrypted information, and the second identifier of the registered cloud service provider to obtain a calculated value of the first key of the registered cloud service provider, where the registered cloud service provider is a cloud service provider that completes user registration in response to the user's registration request; The terminal device multiplies the calculated value of the first key and the fourth encrypted information to obtain the first value.

5. The distributed identity authentication method according to claim 4, characterized in that: The step of the terminal device multiplying the calculated value of the first key by the fourth encrypted information to obtain the first value includes: The terminal device multiplies the calculated value of the first key and the fourth encrypted information to obtain a first intermediate value; The terminal device performs reversible processing on the first intermediate value and the first encrypted information to obtain the first value.

6. The distributed identity authentication method according to claim 5, characterized in that: The user information includes a user password, and the terminal device performs reversible processing on the first intermediate value and the first encrypted information to obtain the first value, comprising: The terminal device processes the initial identifier, the user's password, the current key string, and the second identifier of the registered cloud service provider to obtain a first associated value; The terminal device performs an XOR operation on the first associated value, the first intermediate value, and the first encrypted information to obtain the first value; The current key string is obtained by the terminal device extracting the current biometric feature using a fuzzy extractor.

7. An identity authentication method, characterized in that: The method comprises: The authentication cloud service provider obtains a first value from the terminal device, the first value is obtained by the terminal device calculating the first key of the registered cloud service provider based on the user's encryption information and user information, the user's encryption information is obtained by the terminal device from the blockchain based on the user information, and the user's encryption information is obtained by the registered cloud service provider performing a reversible calculation on the user information based on the key of the registered cloud service provider, the user information includes associated information, the associated information is obtained by the user terminal processing the user's biometrics, the user's encryption information includes fourth encrypted information, the fourth encrypted information is obtained by multiplying the second key of the registered cloud service provider and a preset value, the preset value is calculated based on the user information, and the first value is obtained by the terminal device multiplying the calculated value of the first key of the registered cloud service provider and the fourth encrypted information; The authentication cloud service provider confirms whether the first value and the second value are consistent, the second value is obtained by the authentication cloud service provider by multiplying the second key of the registration cloud service provider and the third encrypted information, the second key of the registration cloud service provider is calculated by the authentication cloud service provider based on the identifier of the registration cloud service provider and the encrypted information of the registration cloud service provider, the third encrypted information is obtained by multiplying the first key and a preset value, and the registration cloud service provider is a cloud service provider that completes the user registration in response to the user's registration request; If they are consistent, an identity authentication message is sent to the terminal device to complete the identity authentication.

8. The identity authentication method according to claim 7, characterized in that: The authentication cloud service provider confirms whether the first value and the second value are consistent, which includes: The authenticated cloud service provider requests the encrypted information of the registered cloud service provider from the blockchain through the registered cloud service provider's identifier.

9. The identity authentication method according to claim 8, characterized in that: The registered cloud service provider's identifier includes a first identifier and a second identifier, and the registered cloud service provider's encrypted information includes second encrypted information and third encrypted information. The step of authenticating the cloud service provider to confirm whether the first value and the second value are consistent includes: The authentication cloud service provider requests the first encrypted information of the user from the blockchain based on the user identifier; The step of calculating the second value comprises: The authentication cloud service provider calculates the first identifier, the second identifier and the second encrypted information of the registration cloud service provider to obtain a calculated value of the second key of the registration cloud service provider; The authentication cloud service provider multiplies the estimated value of the second key and the third encrypted information to obtain a second intermediate value; The authentication cloud service provider performs a reversible calculation on the second intermediate value, the first encrypted information, and the first value to obtain a second transition value; The authentication cloud service provider performs reversible calculation on the second transition value, the second intermediate value and the first encrypted information to obtain the second value.

10. A device access method, characterized in that: The method comprises: The authentication cloud service provider obtains the access request and the first value sent by the terminal device, the first value is obtained by the terminal device through the deduction of the first key of the registered cloud service provider based on the encrypted information of the user and the user information, the encrypted information of the user is obtained by the terminal device from the blockchain based on the user information, and the encrypted information of the user is obtained by the registered cloud service provider through reversible calculation of the user information based on the key of the registered cloud service provider, the user information includes associated information, the associated information is obtained by the user terminal processing the biometrics of the user, the encrypted information of the user includes fourth encrypted information, the fourth encrypted information is obtained by multiplying the second key of the registered cloud service provider and a preset value, the preset value is calculated based on the user information, and the first value is obtained by the terminal device multiplying the deduced value of the first key of the registered cloud service provider and the fourth encrypted information; The authentication cloud service provider confirms whether the first value and the second value are consistent, the second value is obtained by the authentication cloud service provider by multiplying the second key of the registration cloud service provider and the third encrypted information, the second key of the registration cloud service provider is calculated by the authentication cloud service provider based on the identifier of the registration cloud service provider and the encrypted information of the registration cloud service provider, the third encrypted information is obtained by multiplying the first key and a preset value, and the registration cloud service provider is a cloud service provider that completes the user registration in response to the user's registration request; If they are consistent, the authentication cloud service provider grants the terminal device permission to access the authentication cloud service provider.

11. An electronic device, characterized in that: The electronic device comprises a processor; the processor is used to execute instructions to implement the method according to any one of claims 1-10.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program file capable of implementing any one of the methods of claims 1-10.

Citation Information

Cited By

  • Network security verification method and system for distributed communication

    CN120582798A