Identity authentication method and device, computing equipment and computer storage medium

Through periodically updated static keys and dynamic credentials generated by dynamic factors, the problem of low identification efficiency and security threats between computer systems is solved, efficient and secure authentication is achieved, system management and maintenance are simplified, and system management and maintenance are enhanced. System reliability and security.

CN118784375AInactive Publication Date: 2024-10-15BEIJING INFOSEC TECH CO LTD

Patent Information

Application Number
CN202411260494.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, the efficiency of identity authentication between computer systems is low and there are security threats. Especially in large-scale business scenarios, frequent requests increase the burden on the management system, affect the efficiency of identity authentication, and increase the cost of authentication. The risk of credentials being transmitted across the network.

Method used

Using periodically updated static keys and dynamic credentials generated based on these keys and dynamic factors, the client and server directly exchange dynamically generated credentials. The client carries the dynamic credentials when initiating an authentication request, and the server passes Compare dynamic credentials to identify the client, avoid the need for frequent access to the management system, and reduce the number of times the credentials are transmitted in the network.

Benefits of technology

It improves the efficiency and security of authentication, simplifies system deployment and maintenance, enhances system reliability and flexibility, reduces security risks and network delays, and prevents replay attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784375A_ABST
    Figure CN118784375A_ABST
Patent Text Reader

Abstract

The invention provides an identity authentication method and device, computing equipment and a computer storage medium. Wherein the client receives and stores a first static key from the management system in advance, and the first static key is the same as a second static key issued to the server by the management system; an identity authentication request is sent to a server side, the identity authentication request carries a first dynamic certificate generated based on the first static secret key and a preset dynamic factor, and the server side authenticates the identity of the client side by comparing the first dynamic certificate with a second dynamic certificate generated by the server side, the second dynamic certificate is generated by the server based on the second static key and a preset dynamic factor. According to the technical scheme provided by the invention, the security and efficiency of identity authentication can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and in particular, to an identity authentication method, apparatus, computing device, and computer storage medium. Background Art

[0002] In modern enterprise information systems, interactions and connections between computer systems (such as clients, servers, etc.) are common and necessary operations. In order to ensure the security of these interactions and connections, identity authentication is required, that is, confirming the identity of the other party through credentials (such as account and password).

[0003] The current identity authentication method is usually that the management system manages the credentials for interaction between computer systems. When the client and the server perform identity authentication, the client needs to obtain the server's credentials from the management system through request methods such as the Application Programming Interface (API), resulting in low efficiency in identity authentication. Summary of the invention

[0004] The embodiments of the present application provide an identity authentication method, apparatus, computing device and computer storage medium to solve the problem of low efficiency of identity authentication in the prior art.

[0005] In a first aspect, an embodiment of the present application provides an identity authentication method, which is applied to a client and includes: The client receives and stores a first static key from the management system in advance, and the first static key is the same as a second static key sent by the management system to the server; Sending an identity authentication request to the server, wherein the identity authentication request carries a first dynamic credential generated based on the first static key and a preset dynamic factor, and the server compares the first dynamic credential with a second dynamic credential generated by itself to authenticate the identity of the client; The second dynamic credential is generated by the server based on the second static key and a preset dynamic factor.

[0006] Optionally, generating a first dynamic credential based on the first static key and a preset dynamic factor includes: Decrypting the first static key using the client private key to obtain the decrypted first static key; Generate a preset dynamic factor according to a dynamic factor generation rule, wherein the dynamic factor generation rule at least includes: generating according to a timestamp, a random number or data related to a specific event; A first dynamic credential is generated according to the decrypted first static key and the preset dynamic factor.

[0007] In a second aspect, an embodiment of the present application provides an identity authentication method, which is applied to a server, including: The server receives and stores a second static key from the management system in advance, and the second static key is the same as the first static key sent by the management system to the client; generating a second dynamic credential based on the second static key and a preset dynamic factor; Receiving an identity authentication request sent by a client, wherein the identity authentication request carries a first dynamic credential generated by the client based on the first static key and a preset dynamic factor; The first dynamic credential and the second dynamic credential are compared to authenticate the identity of the client.

[0008] Optionally, the generating a second dynamic credential based on the second static key and a preset dynamic factor includes: Decrypting the second static key using the server private key to obtain the decrypted second static key; Generate a preset dynamic factor according to a dynamic factor generation rule, wherein the dynamic factor generation rule at least includes: generating according to a timestamp, a random number or data related to a specific event; A second dynamic credential is generated according to the decrypted second static key and the preset dynamic factor.

[0009] Optionally, comparing the first dynamic credential with the second dynamic credential to authenticate the identity of the client includes: comparing whether the first dynamic credential is the same as the second dynamic credential; If so, the client's identity authentication is successful; If not, the identity authentication of the client fails.

[0010] Optionally, it also includes: When the identity authentication of the client is successful, a communication connection is established with the client.

[0011] In a third aspect, an embodiment of the present application provides an identity authentication device, which is applied to a client, including: A first receiving module, used for the client to receive and store a first static key from the management system in advance, and the first static key is the same as the second static key sent by the management system to the server; A first sending module is used to send an identity authentication request to a server, wherein the identity authentication request carries a first dynamic credential generated based on the first static key and a preset dynamic factor, and the server compares the first dynamic credential with a second dynamic credential generated by itself to authenticate the identity of the client; The second dynamic credential is generated by the server based on the second static key and a preset dynamic factor.

[0012] In a fourth aspect, an embodiment of the present application provides an identity authentication device, which is applied to a server, including: A second receiving module is used for the server to receive and store a second static key from the management system in advance, and the second static key is the same as the first static key sent by the management system to the client; A second generating module, configured to generate a second dynamic credential based on the second static key and a preset dynamic factor; The second receiving module is further used to receive an identity authentication request sent by a client, wherein the identity authentication request carries a first dynamic credential generated by the client based on the first static key and a preset dynamic factor; The second comparison module is used to compare the first dynamic credential and the second dynamic credential to authenticate the identity of the client.

[0013] In a fifth aspect, an embodiment of the present application provides a computing device, comprising a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement the identity authentication method described in the first aspect above, or the identity authentication method described in the second aspect.

[0014] In a sixth aspect, an embodiment of the present application provides a computer storage medium storing a computer program. When the computer program is executed by a computer, it implements the identity authentication method described in the first aspect or the identity authentication method described in the second aspect.

[0015] In an embodiment of the present application, the client receives and stores a first static key from the management system in advance, and the first static key is the same as the second static key sent by the management system to the server; an identity authentication request is sent to the server, and the identity authentication request carries a first dynamic credential generated based on the first static key and a preset dynamic factor, and the server authenticates the identity of the client by comparing the first dynamic credential with a second dynamic credential generated by itself, wherein the second dynamic credential is generated by the server based on the second static key and a preset dynamic factor.

[0016] The beneficial effects of the identity authentication method of the present application are embodied in the following aspects: Enhanced security: First, static keys are periodically updated by the management system and distributed to the client and server. Even if the key is leaked, the attacker has a very limited window of time to exploit it because the key is changed regularly, thus reducing security risks. Dynamic credentials are based on the current time or specific events, which means that even if a dynamic credential is intercepted, it cannot be reused in the future because the dynamic factor used for each authentication will change.

[0017] Simplified deployment and maintenance: The client receives and stores static keys from the management system in advance, eliminating the need for the client to request server credentials from the management system every time authentication is performed, thereby reducing network traffic and improving efficiency. The periodic key update mechanism allows system administrators to perform key management on a planned basis, simplifying key management and maintenance.

[0018] Prevent replay attacks: Since dynamic credentials combine static keys and dynamic factors, each generated dynamic credential is unique, which effectively prevents attackers from committing fraud by replaying previous dynamic credentials. In addition, it also solves the problem of high network load when the management system issues a change instruction every time the credentials are automatically changed. The server-side credentials change synchronously and independently in the client and server, ensuring the security of identity credentials and reducing network traffic.

[0019] Improved authentication efficiency: When the client sends an authentication request, it carries the first dynamic credential, and the server can directly compare it without additional interaction steps, which speeds up the authentication process. Since no additional key exchange process is required, the overall authentication process is faster and reduces the communication delay between the client and the server.

[0020] In summary, the present application scheme provides a more secure and efficient identity authentication mechanism by adopting periodically updated static keys and dynamic credentials generated based on these keys and dynamic factors, while simplifying the deployment and maintenance of the system and enhancing the reliability and flexibility of the system.

[0021] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0023] Figure 1A flowchart of an embodiment of an identity authentication method provided in an embodiment of the present application; Figure 2 A flowchart of another embodiment of an identity authentication method provided in an embodiment of the present application; Figure 3 An interactive diagram of an identity authentication method provided in an embodiment of the present application; Figure 4 A schematic diagram of the structure of an embodiment of an identity authentication device provided in an embodiment of the present application; Figure 5 A structural diagram of another embodiment of an identity authentication device provided in an embodiment of the present application; Figure 6 A schematic diagram of the structure of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0025] In some of the processes described in the specification and claims of this application and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish between different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.

[0026] The technical solution of this application can be widely used in multiple fields and scenarios, especially in online services that have high requirements for user identity security. The following are some specific application scenario examples: Internet of Things (IoT) devices: IoT devices such as smart homes, industrial sensors, and smart wearable devices are becoming increasingly popular, but they may also become targets of hacker attacks. This solution can be applied to the remote management of IoT devices to ensure the security of devices and data.

[0027] Cloud service providers: Cloud storage and cloud computing platforms store massive amounts of data and run critical businesses, which have extremely high requirements for identity authentication. This solution can be applied to the identity management of cloud services to ensure data security and business continuity.

[0028] By applying this solution in these scenarios, the security and efficiency of identity authentication can be significantly improved, user privacy can be protected, data leakage can be prevented, and normal business operations can be maintained.

[0029] The inventors have found that in the current enterprise information environment, communication and collaboration between computer systems (such as clients and servers) are the norm, and identity authentication is a key step to ensure the security of these interactions. Traditional identity authentication methods usually use hard-coded credentials or manually enter passwords, which not only have low authentication efficiency but are also extremely vulnerable to security threats. Once hard-coded credentials are exposed, they open the door to attackers; and frequent manual input is not only time-consuming and error-prone, but the limitations of this management method are even more prominent, especially when the system scale is expanded and the frequency of interactions increases.

[0030] To solve this problem, the current mainstream authentication solution is to introduce a centralized credential management system. This management system is responsible for storing, distributing, and regularly updating authentication credentials between computer systems. Before establishing a connection with the server, the client needs to request the latest authentication credentials from this management system; the server follows the automated password update strategy, changes its authentication credentials as needed, and the management system is also updated synchronously. However, this method has obvious shortcomings in large-scale business scenarios. Frequent requests increase the burden on the management system, affect the efficiency of identity authentication, and increase the risk of authentication credentials being transmitted in the network.

[0031] In view of this, the present application proposes a new identity authentication scheme, which aims to achieve autonomous, secure and efficient management of credentials. Specifically, the scheme allows the client and the server to directly exchange dynamically generated credentials, so that when the client initiates an identity authentication application to the server, it does not need to obtain the identity credentials of the server from the management system every time. After the client initiates the identity authentication request, it uses the static key and preset dynamic factors obtained from the management system to generate dynamic credentials, and sends them to the server. After receiving the dynamic credentials, the server completes the identity confirmation of the client by comparing the received dynamic credentials with the dynamic credentials it automatically generated. This process avoids the need for frequent access to the management system and reduces the number of times the credentials are transmitted in the network, thereby reducing the pressure on the management system, improving business efficiency, and enhancing the security of the credentials.

[0032] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0033] Figure 1A flowchart of an embodiment of an identity authentication method provided in an embodiment of the present application, such as Figure 1 As shown, the method is applied to a client, and the method includes: 101. The client receives and stores a first static key from the management system in advance, where the first static key is the same as a second static key sent by the management system to the server. In this step, the first static key is managed by the management system, wherein the management method includes but is not limited to: updating the first static key (such as fixed period update, non-fixed period update or manual update according to demand). Of course, the management system can also choose not to update the first static key, which can be set according to demand.

[0034] Client: This refers to the party requesting access to a resource, such as a user's application or device.

[0035] Management system: This is a centralized system responsible for key generation, distribution and management.

[0036] First static key: A secret value generated by the management system and provided to the client for generating dynamic credentials.

[0037] Second static key: Same as the first static key, but provided to the server for verifying dynamic credentials. Specifically, the static keys of the client and the server are the same at the same time.

[0038] In an embodiment of the present application, the management system generates a pair of identical static keys (a first static key and a second static key). For example, these keys are updated periodically, such as once every 24 hours. The client receives the first static key from the management system in a secure manner (such as an encrypted network connection) and stores it securely.

[0039] 102. Send an identity authentication request to the server, wherein the identity authentication request carries a first dynamic credential generated based on the first static key and a preset dynamic factor, and the server compares the first dynamic credential with a second dynamic credential generated by itself to authenticate the identity of the client; In this step, the second dynamic credential is generated by the server based on the second static key and a preset dynamic factor.

[0040] Authentication request: A request sent by a client to a server that contains a dynamic credential used to verify the client's identity.

[0041] Preset dynamic factor: A changing factor, such as a timestamp or counter value, used to generate dynamic credentials to prevent replay attacks.

[0042] First dynamic credential: a temporary password generated by the client using the first static key and a preset dynamic factor.

[0043] Second dynamic credential: A temporary password generated by the server using a second static key and the same preset dynamic factor, used for comparison with the first dynamic credential.

[0044] In an embodiment of the present application, when the client wants to authenticate, it uses the first static key combined with the current timestamp as a preset dynamic factor to generate a first dynamic credential. The client sends an identity authentication request to the server, which includes the first dynamic credential. The server generates a second dynamic credential using a second static key and the same timestamp, and compares it with the first dynamic credential received from the client. If the two dynamic credentials match, the client's identity is considered to have been verified; if they do not match, the access request is denied.

[0045] In this way, even if the first static key is leaked, it will soon become invalid because it is updated periodically. At the same time, because each authentication uses a different preset dynamic factor (such as a timestamp), even if an attacker intercepts a successful authentication request, he cannot replay the request to impersonate the client. This mechanism improves the overall security of the system.

[0046] In short, in this embodiment, the client first receives and stores the first static key from the management system. When the client needs to authenticate, it combines the first static key and the current timestamp (preset dynamic factor) to generate a first dynamic credential and sends it to the server. The server uses the same second static key and timestamp to generate a second dynamic credential and compares it with the first dynamic credential sent by the client to determine whether the client's identity is legitimate.

[0047] Through the above steps, the embodiment of the present application provides an efficient and secure identity authentication method, which generates dynamic credentials by combining static keys and dynamic factors, thereby ensuring the security of identity authentication and improving efficiency, reducing dependence on the central management system and network latency, and also reducing the risk of credential leakage.

[0048] Optionally, in the embodiment of the present application, “generating a first dynamic credential based on the first static key and a preset dynamic factor” in step 102 may specifically include the following process: 1021. Decrypt the first static key using the client private key to obtain a decrypted first static key; In this step, the client uses its own private key to decrypt the received first static key. During the identity authentication process, the first static key may be transmitted in an encrypted form to increase security. The client private key is a component of the public key cryptography system, as opposed to the public key. The private key is unique to the client and is used to decrypt information encrypted with its public key. Therefore, when the first static key is encrypted with the client's public key, only a legitimate client holding the corresponding private key can correctly decrypt and obtain the original first static key.

[0049] In the embodiment of the present application, the first static key received by the client (Client) from the server (Server) is actually encrypted with the client's public key. In order to ensure that only the real client can read this key, the client needs to use its own private key to decrypt it. For example, the server uses the client's public key to encrypt the static key "SecureKey123" into the ciphertext "EncryptedKey" and then sends it to the client. After receiving the "EncryptedKey", the client uses its own private key to decrypt it, thereby restoring the original static key "SecureKey123".

[0050] 1022. Generate a preset dynamic factor according to a dynamic factor generation rule, wherein the dynamic factor generation rule at least includes: generating according to a timestamp, a random number, or data related to a specific event; In this step, the client generates a dynamic factor according to the preset dynamic factor generation rules. The dynamic factor generation rules can be based on a variety of factors, such as timestamps, random numbers, or data related to specific events. This mechanism ensures that each generated dynamic credential is unique, and even if the same static key is reused, it will not cause security vulnerabilities because the dynamic factor changes over time or events.

[0051] In the embodiment of the present application, after decrypting the first static key, the client then generates a dynamic factor according to a preset rule. For example, the client can use the current timestamp accurate to milliseconds as part of the dynamic factor, or generate a random number, or data based on a specific event. For example, if the timestamp is used, the client obtains the current timestamp as 1650000000.123456; if a random number is used, the random number generated by the client may be "5678". These dynamic factors will be used together with the static key to generate dynamic credentials in the next step.

[0052] 1023. Generate a first dynamic credential according to the decrypted first static key and a preset dynamic factor.

[0053] In this step, the client uses the decrypted first static key and the preset dynamic factor to generate the first dynamic credential through a certain algorithm or rule. This step combines the static key and the dynamic factor to generate a composite key, namely the first dynamic credential. This dynamic credential is unique and time-effective, ensuring the security and real-time nature of identity authentication.

[0054] In the embodiment of the present application, after obtaining the decrypted static key "SecureKey123" and the dynamic factor (such as the timestamp 1650000000.123456 or the random number 5678), the Client combines them and generates the first dynamic credential through a secure hash algorithm (such as SHA-256). For example, taking "SecureKey123" and "1650000000.123456" or "5678" as input, the generated dynamic credential may be "b3f9...c4da". This dynamic credential contains the stability of the static key and the immediacy of the dynamic factor, ensuring that it is unique in a short period of time, thereby improving the security and efficiency of identity authentication.

[0055] Through these three detailed steps, the embodiment of the present application provides a more detailed dynamic credential generation process, which not only increases the security of identity authentication, but also further improves the complexity and reliability of the entire authentication process by introducing client private key decryption and dynamic factor generation rules.

[0056] Figure 2 A flowchart of another embodiment of an identity authentication method provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the method is applied to the server, and the method includes: 201. The server receives and stores a second static key from the management system in advance, where the second static key is the same as the first static key sent by the management system to the client. In this step, the second static key is managed by the management system, wherein the management method includes but is not limited to: updating the second static key (such as fixed period update, non-fixed period update or manual update according to demand). Of course, the management system can also choose not to update the second static key, which can be set according to demand.

[0057] The server obtains the second static key from the management system. The second static key mentioned here is the same as the first static key sent by the management system to the client. The purpose of this is to establish a consistent authentication basis between the server and the client. The second static key is managed uniformly by the management system to ensure consistency and security in the entire system.

[0058] In the embodiment of the present application, the server receives a second static key (such as "SecureKey123") from the management system. This key is exactly the same as the first static key previously issued by the management system to the client. The purpose of this design is to allow the server to use the same static key to verify the dynamic credentials provided by the client in the subsequent identity authentication process.

[0059] 202. Generate a second dynamic credential based on the second static key and a preset dynamic factor; In this step, the server generates a second dynamic credential based on the second static key and the preset dynamic factor. The dynamic factor here can be a timestamp, a random number, or data related to a specific event, which is consistent with the dynamic factor used by the client when generating the dynamic credential. By combining the second static key and the dynamic factor, the server can generate a second dynamic credential that matches the dynamic credential that the client should theoretically generate.

[0060] In the embodiment of the present application, the server uses the second static key "SecureKey123" and the current dynamic factor (such as the timestamp 1650000000.123456 or the random number 5678) to generate the second dynamic credential. Like the client, the server also follows the preset dynamic factor generation rules. Assuming that the server uses the same hash algorithm (such as SHA-256), the second dynamic credential generated by combining "SecureKey123" and the dynamic factor may be "b3f9...c4da". This dynamic credential will be used for subsequent comparison with the client's dynamic credential.

[0061] 203. Receive an identity authentication request sent by a client, where the identity authentication request carries a first dynamic credential generated by the client based on the first static key and a preset dynamic factor; 204. Compare the first dynamic credential and the second dynamic credential to authenticate the identity of the client.

[0062] In the above steps 203-204, the server receives the first dynamic credential sent by the client, and upon receiving the identity authentication request from the client, compares the first dynamic credential of the client with the second dynamic credential generated by itself to authenticate the identity of the client. If the two dynamic credentials match, the identity of the client is considered legitimate; if they do not match, it indicates a potential security issue, and the server may reject the client's access request.

[0063] In the embodiment of the present application, the server receives the first dynamic credential sent by the client and receives the identity authentication request initiated by the client. At this time, the server compares the second dynamic credential generated by itself with the first dynamic credential received. Assuming that the first dynamic credential is also "b3f9...c4da", then since the two dynamic credentials are exactly the same, the server will determine that the identity of the client is legal, and then allow the client to continue subsequent operations or access resources. However, if the first dynamic credential does not match the second dynamic credential, the server will reject the client's request to prevent unauthorized access.

[0064] Through these three steps, the server can effectively verify the identity of the client, ensuring the accuracy and security of identity authentication in the entire system. This embodiment shows how to achieve the generation and comparison of dynamic credentials on the server, which is an important part of the identity authentication process.

[0065] Optionally, in the embodiment of the present application, step 202 may specifically include the following process: 2021. Decrypt the second static key using the server private key to obtain the decrypted second static key; In this step, the server uses its own private key to decrypt the second static key to obtain the decrypted second static key. In this process, the private key is unique to the server and is used to decrypt the second static key that may have been encrypted before transmission to ensure the security of the key during transmission. This step is necessary because directly transmitting unencrypted keys on the network will bring security risks.

[0066] In the embodiment of the present application, the server uses its private key (for example, RSA private key) to decrypt the encrypted second static key. Assuming that the second static key "SecureKey123" has been encrypted before transmission, the server recovers the original second static key "SecureKey123" through the decryption process. This is a key step to ensure that the second static key reaches the server safely.

[0067] 2022. Generate a preset dynamic factor according to a dynamic factor generation rule, wherein the dynamic factor generation rule at least includes: generating according to a timestamp, a random number, or data related to a specific event; In this step, the server generates a dynamic factor according to the preset dynamic factor generation rules. The generation of dynamic factors can rely on timestamps, random numbers, or data related to specific events. These factors make each generated dynamic factor unique, thereby increasing the security of dynamic credentials. This mechanism ensures that even if an attacker intercepts a dynamic credential once, he cannot predict or copy the next dynamic credential.

[0068] In the embodiment of the present application, the server generates a dynamic factor according to a preset dynamic factor generation rule. Assuming that the rule is defined as "using the current timestamp as the dynamic factor", the timestamp generated by the server at a certain moment (for example, 12:00:00 on April 1, 2023) is the dynamic factor at that moment. This timestamp can be a UNIX timestamp (for example, 1650000000) or other forms of time representation, which will be used as part of generating the second dynamic credential.

[0069] 2023. Generate a second dynamic credential according to the decrypted second static key and the preset dynamic factor.

[0070] In this step, the server uses the decrypted second static key and the preset dynamic factor to generate a second dynamic credential. This usually involves the application of some encryption algorithm or hash function to combine the static key and the dynamic factor to generate an unpredictable and difficult to forge dynamic credential. The generation of dynamic credentials ensures that each identity authentication request is unique, thereby improving the security of the overall system.

[0071] In the embodiment of the present application, the server uses the decrypted second static key "SecureKey123" and the current dynamic factor (e.g., timestamp 1650000000) to generate a second dynamic credential. Assuming that the server uses the SHA-256 hash algorithm to combine the static key and the dynamic factor, the generated second dynamic credential may be "a9e8...b7dc". This dynamic credential will be used for subsequent comparison with the client's dynamic credential to verify the client's identity.

[0072] Through these three detailed steps, the server can generate dynamic credentials based on time and key, further enhancing the security of identity authentication. This embodiment shows how to implement decryption of encryption keys, generation of dynamic factors and creation of dynamic credentials on the server side, which is an indispensable part of the identity authentication process.

[0073] Optionally, in an embodiment of the present application, the process of "comparing the first dynamic credential and the second dynamic credential to authenticate the identity of the client" in step 204 may include: comparing whether the first dynamic credential and the second dynamic credential are the same; if so, the identity authentication of the client is successful; if not, the identity authentication of the client fails.

[0074] In this step, the system compares the first dynamic credential generated by the client and the second dynamic credential generated by the server to see if they are completely consistent. If the two dynamic credentials match, it means that the client's identity authentication is successful; conversely, if the two dynamic credentials do not match, it means that the client's identity authentication has failed. This process is a dual verification mechanism based on time synchronization and key sharing, ensuring that only legitimate clients with known keys can pass identity authentication.

[0075] In the embodiment of the present application, the server receives the first dynamic credential "f7a4...c8d1" from the client, and compares it with the second dynamic credential generated by itself based on the same static key and dynamic factor. Assuming that the second dynamic credential is also "f7a4...c8d1", the two credentials match, and the system determines that the client's identity authentication is successful. On the contrary, if the second dynamic credential is "b9e8...b7dc", the two credentials do not match, and the system determines that the client's identity authentication has failed.

[0076] Optionally, in the embodiment of the present application, the method further includes: establishing a communication connection with the client when the identity authentication of the client is successful.

[0077] In this step, when the client's identity authentication is successful, a secure communication connection will be established between the server and the client. This usually means that the server will enable a security protocol (such as TLS / SSL) to ensure that subsequent data transmission is both private and complete to prevent data from being eavesdropped or tampered with. In addition, establishing a connection may also involve both parties confirming details such as the communication protocol version, encryption suite, compression algorithm, etc. to ensure efficient and compatible communication.

[0078] In the embodiment of the present application, after the identity authentication is successful, a TLS connection is established between the server and the client. First, the server sends a TLS handshake message to the client, which includes the TLS version supported by the server, a list of encryption algorithms, etc. After the client selects the appropriate encryption algorithm and key exchange algorithm, it sends a confirmation message to the server. Subsequently, the two parties exchange keys and generate a session key for encrypting and decrypting subsequent communication data. Finally, when the TLS handshake is completed, an encrypted, two-way communication channel is established between the server and the client, and data can be transmitted securely.

[0079] Through the above process, not only the identity of the client is verified, but also the security of subsequent communications is ensured, which is a very critical step in modern network applications.

[0080] The following is an example of a specific scenario interaction. Figure 3As shown, the scenario interaction includes a management system 1, a client 2 and a server 3; 301. The management system 1 sends a first static key and a second static key to the client 2 and the server 3 respectively, wherein the first static key and the second static key are the same, and the static keys need to be updated periodically; In this step, the management system 1 sends the same key (the first static key and the second static key) to the client 2 and the server 3. These keys need to be updated periodically to enhance security.

[0081] 302. The client 2 generates a first dynamic credential based on the first static key and a preset dynamic factor; 303: The client 2 sends an identity authentication request to the server 3, wherein the identity authentication request carries the first dynamic credential; In the above steps 302 to 303, the client 2 generates a first dynamic credential using the first static key and the preset dynamic factor, and includes the dynamic credential in an identity authentication request and sends it to the server 3.

[0082] 304. The server 3 generates a second dynamic credential based on the second static key and the preset dynamic factor, and compares the first dynamic credential with the second dynamic credential to authenticate the identity of the client; In this step, the server 3 also uses the second static key and the same preset dynamic factor to generate a second dynamic credential, and compares it with the first dynamic credential received from the client 2 to verify the identity of the client 2 .

[0083] 305. When the identity authentication of the client 2 is successful, the server 3 establishes a communication connection with the client 2.

[0084] In this step, if the server 3 confirms that the first dynamic credential is consistent with the second dynamic credential, that is, the identity of the client 2 is successfully verified, then the server 3 will establish a communication connection with the client 2.

[0085] The entire scene interaction designs an authentication mechanism based on static keys and dynamic credentials to ensure the security and reliability of communication between the client and the server. The management system coordinates key distribution, and the client and server independently generate dynamic credentials. The client's identity is then verified through the consistency of the dynamic credentials. Finally, a secure communication connection is established based on successful authentication. This mechanism effectively prevents man-in-the-middle attacks and replay attacks, and improves the security of the system.

[0086] Figure 4 A schematic diagram of the structure of an embodiment of an identity authentication device provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the device is applied to a client, and the device includes: A first receiving module 41 is used for the client to receive and store a first static key from the management system in advance, and the first static key is the same as the second static key sent by the management system to the server; A first sending module 42 is used to send an identity authentication request to the server, wherein the identity authentication request carries a first dynamic credential generated based on the first static key and a preset dynamic factor, and the server compares the first dynamic credential with a second dynamic credential generated by itself to authenticate the identity of the client; The second dynamic credential is generated by the server based on the second static key and a preset dynamic factor.

[0087] Optionally, in the embodiment of the present application, the device further includes: a first generating module 43; The first generation module 43 is used to decrypt the first static key using the client private key to obtain the decrypted first static key; generate a preset dynamic factor according to a dynamic factor generation rule, and the dynamic factor generation rule at least includes: generating according to a timestamp, a random number or data related to a specific event; generating a first dynamic credential according to the decrypted first static key and the preset dynamic factor.

[0088] Figure 4 The identity authentication device can perform Figure 1 The implementation principle and technical effect of the identity authentication method described in the embodiment are not described in detail. The specific way in which each module and unit performs operations in the identity authentication device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.

[0089] Figure 5 A structural diagram of another embodiment of an identity authentication device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the device is applied to the server, and the device includes: A second receiving module 51 is used for the server to receive and store a second static key from the management system in advance, and the second static key is the same as the first static key sent by the management system to the client; A second generating module 52, configured to generate a second dynamic credential based on the second static key and a preset dynamic factor; The second receiving module 51 is further configured to receive an identity authentication request sent by a client, wherein the identity authentication request carries a first dynamic credential generated by the client based on the first static key and a preset dynamic factor; The second comparison module 53 is used to compare the first dynamic credential and the second dynamic credential to authenticate the identity of the client.

[0090] Optionally, in an embodiment of the present application, the second generation module 52 is specifically used to decrypt the second static key using the server private key to obtain a decrypted second static key; generate a preset dynamic factor according to a dynamic factor generation rule, and the dynamic factor generation rule at least includes: generating according to a timestamp, a random number or data related to a specific event; generating a second dynamic credential according to the decrypted second static key and the preset dynamic factor.

[0091] Optionally, in the embodiment of the present application, the second comparison module 53 is specifically used to compare whether the first dynamic credential is the same as the second dynamic credential; if so, the identity authentication of the client is successful; if not, the identity authentication of the client fails.

[0092] Optionally, in the embodiment of the present application, the device further includes: a second communication module 54; The second communication module 54 is used to establish a communication connection with the client when the identity authentication of the client is successful.

[0093] Figure 5 The identity authentication device can perform Figure 2 The implementation principle and technical effect of the identity authentication method described in the embodiment are not described in detail. The specific way in which each module and unit performs operations in the identity authentication device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.

[0094] In one possible design, Figure 4 The identity authentication device of the embodiment shown or Figure 5 The identity authentication device of the embodiment shown can be implemented as a computing device, such as Figure 6 As shown, the computing device may include a storage component 61 and a processing component 62; The storage component 61 stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component 62 .

[0095] The processing component 62 is used for: the client receives and stores a first static key from the management system in advance, and the first static key is the same as the second static key sent by the management system to the server; sends an identity authentication request to the server, and the identity authentication request carries a first dynamic credential generated based on the first static key and a preset dynamic factor, and the server authenticates the identity of the client by comparing the first dynamic credential with a second dynamic credential generated by itself, wherein the second dynamic credential is generated by the server based on the second static key and the preset dynamic factor.

[0096] The processing component 62 may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing component may also be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0097] The storage component 61 is configured to store various types of data to support operations at the terminal. The storage component can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0098] Of course, the computing device may also include other components, such as input / output interfaces, display components, communication components, etc.

[0099] The display component 63 can be an electroluminescent (EL) element, a liquid crystal display or a micro display having a similar structure, or a retinal direct display or a similar laser scanning display.

[0100] The input / output interface provides an interface between the processing component and the peripheral interface module, which may be an output device, an input device, etc.

[0101] The communication component is configured to facilitate, among other things, wired or wireless communications between the computing device and other devices.

[0102] Among them, the computing device can be a physical device or an elastic computing host provided by a cloud computing platform, etc. In this case, the computing device can refer to a cloud server, and the above-mentioned processing components, storage components, etc. can be basic server resources rented or purchased from the cloud computing platform.

[0103] The present application also provides a computer storage medium storing a computer program, wherein the computer program can achieve the above-mentioned Figure 1 The identity authentication method of the embodiment shown or Figure 2 The identity authentication method of the illustrated embodiment.

[0104] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0105] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0106] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0107] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. An identity authentication method, characterized in that: Applied to the client, including: The client receives and stores a first static key from the management system in advance, and the first static key is the same as a second static key sent by the management system to the server; Sending an identity authentication request to the server, wherein the identity authentication request carries a first dynamic credential generated based on the first static key and a preset dynamic factor, and the server compares the first dynamic credential with a second dynamic credential generated by itself to authenticate the identity of the client; The second dynamic credential is generated by the server based on the second static key and a preset dynamic factor.

2. The method according to claim 1, characterized in that: Generating a first dynamic credential based on the first static key and a preset dynamic factor includes: Decrypting the first static key using the client private key to obtain the decrypted first static key; Generate a preset dynamic factor according to a dynamic factor generation rule, wherein the dynamic factor generation rule at least includes: generating according to a timestamp, a random number or data related to a specific event; A first dynamic credential is generated according to the decrypted first static key and the preset dynamic factor.

3. An identity authentication method, characterized in that: Applied to the server, including: The server receives and stores a second static key from the management system in advance, and the second static key is the same as the first static key sent by the management system to the client; generating a second dynamic credential based on the second static key and a preset dynamic factor; Receiving an identity authentication request sent by a client, wherein the identity authentication request carries a first dynamic credential generated by the client based on the first static key and a preset dynamic factor; The first dynamic credential and the second dynamic credential are compared to authenticate the identity of the client.

4. The method according to claim 3, characterized in that The generating a second dynamic credential based on the second static key and a preset dynamic factor includes: Decrypting the second static key using the server private key to obtain the decrypted second static key; Generate a preset dynamic factor according to a dynamic factor generation rule, wherein the dynamic factor generation rule at least includes: generating according to a timestamp, a random number or data related to a specific event; A second dynamic credential is generated according to the decrypted second static key and the preset dynamic factor.

5. The method according to claim 3, characterized in that: The comparing the first dynamic credential and the second dynamic credential to authenticate the identity of the client includes: comparing whether the first dynamic credential is the same as the second dynamic credential; If so, the client's identity authentication is successful; If not, the identity authentication of the client fails.

6. The method according to claim 4, characterized in that Also includes: When the identity authentication of the client is successful, a communication connection is established with the client.

7. An identity authentication device, characterized in that: Applied to the client, including: A first receiving module, used for the client to receive and store a first static key from the management system in advance, and the first static key is the same as the second static key sent by the management system to the server; A first sending module is used to send an identity authentication request to a server, wherein the identity authentication request carries a first dynamic credential generated based on the first static key and a preset dynamic factor, and the server compares the first dynamic credential with a second dynamic credential generated by itself to authenticate the identity of the client; The second dynamic credential is generated by the server based on the second static key and a preset dynamic factor.

8. An identity authentication device, characterized in that: Applied to the server, including: A second receiving module is used for the server to receive and store a second static key from the management system in advance, and the second static key is the same as the first static key sent by the management system to the client; A second generating module, configured to generate a second dynamic credential based on the second static key and a preset dynamic factor; The second receiving module is further used to receive an identity authentication request sent by a client, wherein the identity authentication request carries a first dynamic credential generated by the client based on the first static key and a preset dynamic factor; The second comparison module is used to compare the first dynamic credential and the second dynamic credential to authenticate the identity of the client.

9. A computing device, characterized in that It comprises a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement the identity authentication method as described in claim 1 or 2, or the identity authentication method as described in any one of claims 3 to 6.

10. A computer storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a computer, the identity authentication method according to claim 1 or 2, or the identity authentication method according to any one of claims 3 to 6 is implemented.

Citation Information

Patent Citations

  • Wireless multiuser anti-collision security authentication method and system

    CN105101193A

  • Bidirectional authentication method and system

    CN106506529A

  • Secret key application method based on SM9 algorithm

    CN112699394A

  • Method for realizing database login authentication based on Kerberos mechanism

    CN113704724A

  • User authentication method, computer equipment and computer storage medium

    CN116707961A

Cited By

  • Server high-strength identity authentication access control method based on hardware Key

    CN121644235A

  • Server high-strength authentication access control method based on hardware key

    CN121644235B