Key management method, device, system, equipment and storage medium

Through the method of security verification and container instance update, combined with the national secret algorithm and Bida message transmission, the problem of complex rules and leakage in key management is solved, and the high security and single validity of the key are achieved.

CN117061229BActive Publication Date: 2024-09-06CHINA MOBILE INTERNET CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311185647.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-13
Publication Date
2024-09-06
Estimated Expiration
2043-09-13

AI Technical Summary

Technical Problem

Key management solutions in the existing technology require complex audit rules and user identity information protection, and may lead to key leakage when attacked, resulting in compromised system security.

Method used

Obtain the key acquisition request from the terminal device, perform security verification, update the device's login key to a new key, and send the new key to the terminal device. Use the container instance to update and destroy the key, combined with the national secret algorithm. Encrypted transmission of Bida messages ensures the security and single validity of the key.

Benefits of technology

It achieves high-security management of keys, prevents key leakage, improves system security and single-time validity of keys, and ensures single-time use of keys.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117061229B
    Figure CN117061229B
Patent Text Reader

Abstract

The present application discloses a key management method, apparatus, system, device and storage medium. The method is applied to a network-side device, and includes: obtaining a key acquisition request sent by a terminal device; performing a security check on the key acquisition request; in response to the key acquisition request passing the security check, updating the login key of a first device to a first key; and sending the first key to the terminal device. Through the technical solution of the present application, different users can use different keys to control the same device, effectively preventing key leakage, thereby achieving high-security key authorization management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data security technology, and in particular to a key management method, device, system, equipment and storage medium. Background Art

[0002] In related technologies, multi-factor authentication, single sign-on, unified identity management and other solutions are usually used to centrally manage keys. However, the above technical solutions require the establishment of complex audit rules and user identity information protection rules to ensure the reliability and security of the system, and may lead to key leakage when attacked. Summary of the invention

[0003] In order to at least partially solve the problems existing in the related art, the present application provides a key management method, apparatus, system, device and storage medium.

[0004] In a first aspect, an embodiment of the present application provides a key management method, which is applied to a network side device, and the method includes: obtaining a key acquisition request sent by a terminal device; performing a security verification on the key acquisition request; in response to the key acquisition request passing the security verification, updating a login key of a first device to a first key; and sending the first key to the terminal device.

[0005] In one implementation, updating the login key of the first device to the first key includes: generating the first key; creating a container instance; modifying the login key of the first device to the first key based on the container instance; and destroying the container instance.

[0006] In an optional implementation, generating the first key includes: obtaining a random number seed and a preset second key; encrypting the second key based on the random number seed to obtain an encryption result; and obtaining a message digest of the encryption result as the first key.

[0007] In one implementation, sending the first key to the terminal device includes: encrypting the first key based on a national encryption algorithm; and sending the encrypted first key to the terminal device based on a must-reach message.

[0008] In an optional implementation, the method further includes: determining whether the first key has been used to log in to the first device; in response to the first key having been used to log in to the first device, updating the login key of the first device to a third key

[0009] In an optional implementation, the method also includes: obtaining key application information sent by the terminal device; performing risk control analysis based on the key application information to obtain a risk control analysis result; in response to the risk control analysis result being normal, generating a key acquisition link; sending the key acquisition link to the terminal device; wherein obtaining the key acquisition request sent by the terminal device includes: obtaining the key acquisition request sent by the terminal device through the key acquisition link.

[0010] Optionally, the key application information includes at least one of the following: first identification information of a first object; wherein, the first object is the object that submits the key application information through the terminal device; identification information of the first device; a first login account of the first device; a start time of control over the first device; and a duration of control over the first device.

[0011] Optionally, determining whether the first key has been used to log in to the first device includes: obtaining a second login account sent by the first device; and determining whether the first key has been used to log in to the first device based on the first login account and the second login account.

[0012] Optionally, the risk control analysis based on the key application information includes: determining first device information and a controllable time period of the first device according to the identification information; determining whether the first object has the right to apply for a key according to the first identification information and the control duration; in response to the first object having the right to apply for a key, determining the applicable operation duration of the first object and second device information of the device for which the first object can apply to operate according to the first identification information; and performing risk control analysis based on the control start time, the controllable time period, the applicable operation duration, the first device information and the second device information.

[0013] Optionally, determining the applicable operation duration of the first object and second device information of the applicable operation device of the first object based on the first identification information includes: determining association information of the first object based on the first identification information; determining a weight value based on the association information; determining a target object level of the first object from a plurality of preset object levels based on the weight value; wherein each object level corresponds to a different applicable operation duration and applicable operation device; and determining the applicable operation duration and the second device information based on the target object level.

[0014] Optionally, the associated information includes at least one of the following: working years of the first object; associated project information of the first object; project reuse information of the first object; own attribute information of the first object; abnormal operation information of the first object.

[0015] Optionally, generating a key acquisition link includes: generating a first link; wherein the first link corresponds to a key acquisition entry; generating an encryption identifier based on the key application information; attaching the encryption identifier to the first link to obtain the key acquisition link; and sending the key acquisition link to the terminal device.

[0016] Optionally, the key acquisition request includes a digital signature encrypted using a preset public key, the encryption identifier, and at least one of the second identification information of the terminal device, and the security verification of the key acquisition request includes: performing identity authentication based on the second identification information of the terminal device; in response to the identity authentication being passed, determining whether the sending time of the key acquisition request is within a preset validity period; in response to the sending time of the key acquisition request being within the validity period, decrypting the encrypted digital signature based on a preset private key to obtain a first hash value; performing hash calculation based on the encryption identifier to obtain a second hash value; matching the first hash value and the second hash value to obtain a matching result; and in response to the matching result satisfying the first condition, determining that the security verification has passed.

[0017] In a second aspect, an embodiment of the present application provides a key management method, which is applied to a terminal device, and the method includes: sending a key acquisition request to a network side device; wherein the key acquisition request is used by the network side device to update the login key of a first device to a first key after passing security verification; and receiving the first key sent by the network side device.

[0018] In one implementation, the method also includes: sending key application information to a network side device; wherein the key application information is used by the network side device to send the key acquisition link to the terminal device after the risk control analysis passes; receiving the key acquisition link sent by the network side device; wherein the key acquisition link is attached with an encryption identifier, and sending the key acquisition request to the network side device includes: sending the key acquisition request to the network side device through the key acquisition link.

[0019] In an optional implementation, the key application information includes at least one of the following: first identification information of a first object; wherein the first object is an object that submits the key application information through the terminal device; identification information of the first device; a first login account of the first device; a start time of control over the first device; and a duration of control over the first device.

[0020] In an optional implementation, the key acquisition link is attached with an encryption identifier, and sending a key acquisition request to the network side device includes: performing a hash calculation based on the encryption identifier to obtain a first hash value; signing the first hash value based on a preset public key to obtain a digital signature; and sending the encryption identifier and / or the digital signature as the key acquisition request to the network side device. In an implementation, receiving the first key sent by the network side device includes: obtaining the first key sent by the network side device via a must-reach message; wherein the first key is a key encrypted based on a national encryption algorithm.

[0021] In one implementation, the method further includes: decrypting the first key based on the national encryption algorithm; providing a display interface; wherein the display interface is used to display the decrypted first key; in response to the decrypted first key being known, deleting the decrypted first key.

[0022] In the third aspect, an embodiment of the present application provides a key management method, which is applied to a first device, and the method includes: in response to a login operation on the first device, sending a second login account corresponding to the login operation to the network side device; wherein, the second login account is used by the network side device to determine whether the first key has been used to log in to the first device after the login key of the first device is updated to the first key.

[0023] In a fourth aspect, an embodiment of the present application provides a key management device, which is applied to a network side device, and the device includes: a first acquisition module, used to obtain a key acquisition request sent by a terminal device; a verification module, used to perform a security verification on the key acquisition request; a processing module, used to update the login key of the first device to a first key in response to the key acquisition request passing the security verification; a first sending module, used to send the first key to the terminal device.

[0024] In one implementation, the device also includes: a second acquisition module, used to obtain the key application information sent by the terminal device; a risk control module, used to perform risk control analysis based on the key application information and obtain the risk control analysis result; a generation module, used to generate a key acquisition link in response to the risk control analysis result being normal; a second sending module, used to send the key acquisition link to the terminal device; wherein the first acquisition module is specifically used to: obtain the key acquisition request sent by the terminal device through the key acquisition link.

[0025] In an optional implementation, the key application information includes at least one of the following: first identification information of a first object; wherein the first object is an object that submits the key application information through the terminal device; identification information of the first device; a first login account of the first device; a start time of control over the first device; and a duration of control over the first device.

[0026] Optionally, the risk control module is specifically used to: determine the first device information and controllable time period of the first device based on the identification information; determine whether the first object has the right to apply for a key based on the first identification information and the control duration; in response to the first object having the right to apply for a key, determine the applicable operation duration of the first object and the second device information of the device for which the first object can apply to operate based on the first identification information; perform risk control analysis based on the control start time, the controllable time period, the applicable operation duration, the first device information and the second device information.

[0027] Optionally, the risk control module is specifically used to: determine the associated information of the first object based on the first identification information; determine a weight value based on the associated information; determine a target object level of the first object from a plurality of preset object levels based on the weight value; wherein each object level corresponds to a different applicable operation time and applicable operation device; determine the applicable operation time and the second device information based on the target object level.

[0028] Optionally, the associated information includes at least one of the following: working years of the first object; associated project information of the first object; project reuse information of the first object; own attribute information of the first object; abnormal operation information of the first object.

[0029] In an optional implementation, the generation module is specifically used to: generate a first link; wherein the first link corresponds to a key acquisition entry; generate an encryption identifier based on the key application information; attach the encryption identifier to the first link to obtain the key acquisition link; and send the key acquisition link to the terminal device.

[0030] Optionally, the key acquisition request includes a digital signature encrypted using a preset public key, the encryption identifier, and at least one of the second identification information of the terminal device, and the verification module is specifically used to: perform identity authentication based on the second identification information of the terminal device; in response to the identity authentication being passed, determine whether the sending time of the key acquisition request is within a preset validity period; in response to the sending time of the key acquisition request being within the validity period, decrypt the encrypted digital signature based on a preset private key to obtain a first hash value; perform hash calculation based on the encryption identifier to obtain a second hash value; match the first hash value and the second hash value to obtain a matching result; in response to the matching result satisfying the first condition, determine that the security verification has passed.

[0031] In one implementation, the processing module is specifically used to: generate the first key; create a container instance; modify the login key of the first device to the first key based on the container instance; and destroy the container instance.

[0032] In an optional implementation, the processing module is specifically used to: obtain a random number seed and a preset second key; encrypt the second key based on the random number seed to obtain an encryption result; and obtain a message digest of the encryption result as the first key.

[0033] In one implementation, the first sending module is specifically used to: encrypt the first key based on a national encryption algorithm; and send the encrypted first key to the terminal device based on a must-reach message.

[0034] Optionally, the apparatus further includes: a third acquisition module, used to acquire a second login account sent by the first device; and a second processing module, used to determine whether the first key has been used to log in to the first device based on the first login account and the second login account.

[0035] In the fifth aspect, an embodiment of the present application provides a key management device, which is applied to a terminal device, and the device includes: a first sending module, used to send a key acquisition request to a network side device; wherein the key acquisition request is used by the network side device to update the login key of the first device to a first key after passing the security verification; a first receiving module, used to receive the first key sent by the network side device.

[0036] In one implementation, the device also includes: a second sending module, used to send key application information to the network side device; wherein the key application information is used by the network side device to send the key acquisition link to the terminal device after the risk control analysis passes; a second receiving module, used to receive the key acquisition link sent by the network side device; wherein the first sending module is specifically used to: send the key acquisition request to the network side device through the key acquisition link.

[0037] In an optional implementation, the key application information includes at least one of the following: first identification information of a first object; wherein the first object is an object that submits the key application information through the terminal device; identification information of the first device; a first login account of the first device; a start time of control over the first device; and a duration of control over the first device.

[0038] In an optional implementation, the first sending module is specifically used to: perform hash calculation based on the encryption identifier to obtain a first hash value; sign the first hash value based on a preset public key to obtain a digital signature; and send the encryption identifier and / or the digital signature as the key acquisition request to the network side device. In one implementation, the receiving of the first key sent by the network side device includes: obtaining the first key sent by the network side device via a must-reach message; wherein the first key is a key encrypted based on a national encryption algorithm.

[0039] In one implementation, the device also includes: a decryption module, used to decrypt the first key based on the national encryption algorithm; a display module, used to provide a display interface; wherein the display interface is used to display the decrypted first key; and a processing module, used to delete the decrypted first key in response to the decrypted first key being known.

[0040] In the sixth aspect, an embodiment of the present application provides a key management device, which is applied to a first device, and the device includes: a processing module, which is used to send a second login account corresponding to the login operation to the network side device in response to the login operation on the first device; wherein the second login account is used by the network side device to determine whether the first key has been used to log in to the first device after the login key of the first device is updated to the first key.

[0041] In the seventh aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the key management method as described in the first aspect.

[0042] In an eighth aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the key management method as described in the second aspect.

[0043] In the ninth aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the key management method as described in the third aspect.

[0044] In the tenth aspect, the present application provides a key management system, which includes the key management device described in the fourth aspect, the key management device described in the fifth aspect, and the key management device described in the sixth aspect, or the system includes the electronic device described in the seventh aspect, the electronic device described in the eighth aspect, and the electronic device described in the ninth aspect.

[0045] In an eleventh aspect, an embodiment of the present application provides a computer-readable storage medium for storing instructions, which, when executed, enables the method described in the first aspect to be implemented.

[0046] In a twelfth aspect, an embodiment of the present application provides a computer-readable storage medium for storing instructions, which, when executed, enables the method described in the second aspect to be implemented.

[0047] In a thirteenth aspect, an embodiment of the present application provides a computer-readable storage medium for storing instructions, which, when executed, enables the method described in the third aspect to be implemented.

[0048] In a fourteenth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the key management method as described in the first aspect.

[0049] In a fifteenth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the key management method as described in the second aspect.

[0050] In a sixteenth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the key management method as described in the third aspect.

[0051] The technical solution provided by the embodiment of the present application may include the following beneficial effects: the network side device can update the login key of the first device in response to receiving the key acquisition request sent by the terminal device, and send the updated login key to the terminal device. The terminal device can also update the login key of the first device again after determining that the updated login key has been used to log in to the first device based on the information sent by the first device. The single-time validity of a single key is achieved, and key leakage is effectively prevented to improve the security of key management.

[0052] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.

[0054] Figure 1 It is a flow chart of a key management method provided in an embodiment of the present application;

[0055] Figure 2 is a flowchart of another key management method provided in an embodiment of the present application;

[0056] Figure 3 is a flowchart of another key management method provided in an embodiment of the present application;

[0057] Figure 4 is a flowchart of another key management method provided in an embodiment of the present application;

[0058] Figure 5 is a schematic diagram of a key update process provided in an embodiment of the present application;

[0059] Figure 6 is a flowchart of another key management method provided in an embodiment of the present application;

[0060] Figure 7 It is a schematic diagram of a risk control analysis solution provided in an embodiment of the present application;

[0061] Figure 8 is a flowchart of another key management method provided in an embodiment of the present application;

[0062] Fig. 9 is a flowchart of another key management method provided in an embodiment of the present application;

[0063] Fig.10 is a flowchart of another key management method provided in an embodiment of the present application;

[0064] Fig.11 is a flowchart of another key management method provided in an embodiment of the present application;

[0065] Fig.12 It is an interactive flow chart of a key management solution provided in an embodiment of the present application;

[0066] Fig.13 is a schematic diagram of a key management device provided in an embodiment of the present application;

[0067] Fig.14 is a schematic diagram of another key management device provided in an embodiment of the present application;

[0068] Fig.15 is a schematic diagram of another key management device provided in an embodiment of the present application;

[0069] Fig.16 is a schematic diagram of another key management device provided in an embodiment of the present application;

[0070] Fig.17 is a schematic diagram of another key management device provided in an embodiment of the present application;

[0071] Fig.18 is a schematic diagram of another key management device provided in an embodiment of the present application;

[0072] Fig.19 is a schematic diagram of another key management device provided in an embodiment of the present application;

[0073] Fig. 20 is a schematic block diagram of an example electronic device that can be used to implement embodiments of the present application. DETAILED DESCRIPTION

[0074] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0075] In the description of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The various numbers such as first, second, etc. involved in this application are only distinguished for the convenience of description, and are not used to limit the scope of the embodiments of this application, nor do they indicate the order of precedence.

[0076] See also Figure 1 , Figure 1 1 is a flowchart of a key management method provided by an embodiment of the present application. The method can be applied to network side devices. Figure 1 As shown, the method may include but is not limited to the following steps:

[0077] Step S101: Obtain a key acquisition request sent by a terminal device.

[0078] For example, a key acquisition request sent by a terminal device through a preset request sending channel (for example, a 5G (5th Generation Mobile Communication Technology) message or an App (application)) is obtained. The key acquisition request is used to request to obtain a key from a network side device.

[0079] Step S102: Perform security verification on the key acquisition request.

[0080] For example, the key acquisition request is identified through a preset security gateway to screen and eliminate abnormal access data, verify the identity of the terminal device sending the key acquisition request, and confirm the security of the channel sending the key acquisition request.

[0081] In some embodiments of the present application, for a terminal device equipped with a SIM (Subscriber Identity Module) card, the identity of the terminal device can be authenticated through SIM authentication.

[0082] Step S103: In response to the key acquisition request passing the security verification, the login key of the first device is updated to the first key.

[0083] In the embodiment of the present application, the first device is a device that the user expects to obtain a login key and log in through a key acquisition request.

[0084] It should be noted that, in the embodiments of the present application, the first device may be a software device or a hardware device.

[0085] For example, in response to a key acquisition request sent by a terminal device passing a security check, a login key of a first device that a user needs to log in using a key is changed to a randomly generated first key.

[0086] In some embodiments of the present application, the first key may have a corresponding effective time, that is, only within the effective time period, the login key of the first device is updated to the first key.

[0087] Step S104: Send the first key to the terminal device.

[0088] For example, the first key is encrypted and sent to the terminal device via a 5G message.

[0089] By implementing the embodiments of the present application, a security check can be performed on the key acquisition request of the terminal device, and after the security check is passed, the login key of the first device is updated to the first key, and the first key is sent to the terminal device, so that the user can obtain the first key through the terminal device and use the first key to log in to the first device. Different users can use different keys to control the same device, thereby achieving high-security key authorization management.

[0090] In an optional implementation, the container technology may be used to update the login key of the first device to the first key to avoid leakage of the first key. As an example, see Figure 2 , Figure 2 FIG. 1 is a flow chart of another key management method provided in an embodiment of the present application. The method can be applied to network side devices. Figure 2 As shown, the method may include but is not limited to the following steps:

[0091] Step S201: Obtain a key acquisition request sent by a terminal device.

[0092] In the embodiments of the present application, step S201 can be implemented in any of the ways in the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.

[0093] Step S202: Perform security verification on the key acquisition request.

[0094] In the embodiments of the present application, step S202 can be implemented by any of the methods in the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.

[0095] Step S203: In response to the key acquisition request passing the security verification, a first key is generated.

[0096] For example, in response to the key acquisition request passing the security verification, a key is randomly generated as the first key.

[0097] In an optional implementation, the above-mentioned generation of the first key may include the following steps: obtaining a random number seed and a preset second key; encrypting the second key based on the random number seed to obtain an encryption result; and obtaining a message digest of the encryption result as the first key.

[0098] For example, the current time value is obtained as a random number seed, the preset second key is encrypted to obtain an encryption result, and the SHA-1 (Secure Hash Algorithm 1) algorithm is used to extract the message digest of the encryption result, and the message digest is used as the first key.

[0099] It can be understood that in some embodiments of the present application, the first key can be verified after it is generated, and subsequent steps are executed in response to the first key passing the verification; or, in response to the first key failing the verification, a new first key is regenerated.

[0100] For example, the generated first key is verified to check whether the complexity of the first key meets the preset requirements and whether the first key meets the key rules. For example, the characters in the first key should contain at least two of uppercase letters, lowercase letters, numbers and special characters, and passwords that cannot be used normally by the operating system, such as R$xxxxx causing the password content after the symbol "$" to be truncated, and R! 1234 causing the content after the symbol "!" to become a random value, should be avoided.

[0101] Step S204: Create a container instance.

[0102] Step S205: modifying the login key of the first device to the first key based on the container instance.

[0103] For example, the first key is sent to the container instance, so that the container instance modifies the login key of the first device to the first key.

[0104] Step S206: destroy the container instance.

[0105] For example, calling the destruction method of the instance destroys the instance in the container and releases the system resources and content corresponding to the instance.

[0106] Step S207: Send the first key to the terminal device.

[0107] In the embodiments of the present application, step S207 can be implemented by any of the methods in the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.

[0108] By implementing the embodiment of the present application, a security check can be performed on the key acquisition request of the terminal device, and after the security check is passed, the login key of the first device is updated to the first key based on the container instance, and the container instance is destroyed after the update is completed, so as to prevent the first key from being leaked from the network side device. Thus, high-security key authorization management is achieved.

[0109] In an optional implementation, the first key can be sent to the terminal device via the Bida message platform. As an example, see Figure 3 , Figure 3 FIG. 1 is a flowchart of another key management method provided in an embodiment of the present application. The method can be applied to network side devices. Figure 3 As shown, the method may include but is not limited to the following steps:

[0110] Step S301: Obtain a key acquisition request sent by a terminal device.

[0111] In the embodiments of the present application, step S301 can be implemented in any of the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.

[0112] Step S302: Perform security verification on the key acquisition request.

[0113] In the embodiments of the present application, step S302 can be implemented by any of the methods in the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.

[0114] Step S303: In response to the key acquisition request passing the security verification, the login key of the first device is updated to the first key.

[0115] In the embodiments of the present application, step S303 can be implemented by any of the methods in the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.

[0116] Step S304: Encrypt the first key based on the national encryption algorithm.

[0117] Step S305: Send the encrypted first key to the terminal device based on the must-reach message.

[0118] For example, the BiDa notification service based on the 5G super SIM card will send the first key encrypted using the national secret algorithm to the terminal device.

[0119] By implementing the embodiment of the present application, a security check can be performed on the key acquisition request of the terminal device, and after the security check is passed, the login key of the first device is updated to the first key, and the first key is sent to the terminal device through the BiDa message platform, so that the user can obtain the first key through the terminal device and use the first key to log in to the first device. It is possible to achieve multiple users using different keys to control the same device, thereby achieving high-security key authorization management.

[0120] In one implementation, after determining that the first device is logged in using the first key, the login key of the first device may be updated again. As an example, see Figure 4 , Figure 4 FIG. 1 is a flowchart of another key management method provided in an embodiment of the present application. The method can be applied to network side devices. Figure 4 As shown, the method may include but is not limited to the following steps:

[0121] Step S401: Obtain a key acquisition request sent by a terminal device.

[0122] In the embodiments of the present application, step S401 can be implemented by any of the methods in the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.

[0123] Step S402: Perform security verification on the key acquisition request.

[0124] In the embodiments of the present application, step S402 can be implemented by any of the methods in the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.

[0125] Step S403: In response to the key acquisition request passing the security verification, the login key of the first device is updated to the first key.

[0126] In the embodiments of the present application, step S403 can be implemented by any of the methods in the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.

[0127] Step S404: Send the first key to the terminal device.

[0128] In the embodiments of the present application, step S404 can be implemented by any of the methods in the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.

[0129] Step S405: Determine whether the first key has been used to log in to the first device.

[0130] For example, it is determined whether the user has logged into the first device using the first key.

[0131] Step S406: In response to the first key being used to log in to the first device, updating the login key of the first device to a third key.

[0132] For example, in response to the user having logged into the first device using the first key, the login key of the first device is updated to the third key.

[0133] It should be noted that in the embodiments of the present application, the specific steps of updating the login key of the first device to the third key may be the same as the steps of updating the login key of the first device to the first key in any of the aforementioned embodiments. The embodiments of the present application do not limit this and will not be repeated.

[0134] It should be noted that in an embodiment of the present application, when the login key of the first device is updated to the third key, if the user who logs in to the first device using the first key has not logged out, the user will not be logged out due to the update of the login password.

[0135] By implementing the embodiment of the present application, the network side device can update the login key of the first device again after determining that the first device is logged in using the first key, thereby ensuring the single validity of the authorized key and improving the security of key authorization.

[0136] As an example, see Figure 5 , Figure 5 Schematic diagram of a key update process provided by an embodiment of the present application. Figure 5 As shown, after receiving the key application information, the key application information can be security checked, and after the security check passes, the login key of the first device is modified to the first key. The first key is sent to the terminal device. At the same time, the login status of the first device is monitored, and after monitoring that the user logs in to the first device using the first key, the login key of the first device is changed.

[0137] In one implementation, the network side device may perform relevant analysis based on the relevant information sent by the terminal device to determine whether to process the key acquisition request of the terminal device. Figure 6 , Figure 6 FIG. 1 is a flowchart of another key management method provided in an embodiment of the present application. The method can be applied to network side devices. Figure 6 As shown, the method may include but is not limited to the following steps:

[0138] Step S601: Obtain key application information sent by the terminal device.

[0139] In an optional implementation, the key application information includes at least one of the following: first identification information of the first object; wherein the first object is the object that submits the key application information through the terminal device; identification information of the first device; the first login account of the first device; the start time of control over the first device; and the control duration of the first device.

[0140] In the embodiment of the present application, the first identification information of the first object may include but is not limited to: an ID (Identity document, identification number), a name, etc. of the first object.

[0141] In some embodiments of the present application, the identification information of the terminal device may be used as the identification information of the first object. The identification information of the terminal device may include but is not limited to IMEI (International Mobile Equipment Identity) and ICCID (Integrate circuit card identity) of the SIM card in the terminal device.

[0142] In the embodiment of the present application, the identification information of the first device may include but is not limited to: an IP (Internet Protocol) address corresponding to the first device, a device identification code of the first device (eg, IMEI), etc.

[0143] Step S602: Perform risk control analysis based on the key application information and obtain risk control analysis results.

[0144] Specifically, risk control analysis is performed based on the key application information to identify whether there is a risk in the key application information and obtain a risk control analysis result.

[0145] In an optional implementation, the risk control analysis based on the key application information may include the following steps:

[0146] A1: Determine first device information and a controllable time period of the first device according to the identification information.

[0147] Specifically, according to the identification information of the first device, the first device information of the first device (for example, the performance index of the first device, the load level of the first device) is determined, and the controllable time period during which the first device can be currently used is determined.

[0148] A2: Determine whether the first object has the right to apply for a key according to the first identification information and the control duration.

[0149] For example, the controllable duration of the first object is determined according to the first identification information, thereby determining whether the controllable duration of the first object is greater than the control duration, thereby determining whether the first object has the right to apply for a key.

[0150] A3: In response to the first object being entitled to apply for a key, determining, according to the first identification information, the applicable operation duration of the first object and second device information of the device that the first object can apply to operate;

[0151] For example, different object levels can be preset, each object level can control different devices, and each object level can control the device for different durations. The target object level corresponding to the first object is determined based on the first identification information, so that the applicable operation duration of the first object and the second device information of the device that the first object can apply to operate are determined based on the devices that the target object level can control and the duration that the target object level can control the device.

[0152] Optionally, determining the applicable operation duration of the first object and the second device information of the device for which the first object can apply for operation based on the first identification information may include the following steps: determining the associated information of the first object based on the first identification information; determining a weight value based on the associated information; determining a target object level of the first object from a plurality of preset object levels based on the weight value; and determining the applicable operation duration and the second device information based on the target object level.

[0153] Among them, in an embodiment of the present application, the associated information includes at least one of the following: working years of the first object; associated project information of the first object; project reuse information of the first object; own attribute information of the first object; abnormal operation information of the first object.

[0154] In the embodiment of the present application, the associated project information of the first object may include but is not limited to the project attributes associated with the first object, such as operation support projects, research and development projects, etc.

[0155] In the embodiment of the present application, the first object's own attribute information may include but is not limited to the first object's position information and the first object's rank information.

[0156] In an embodiment of the present application, the abnormal operation information of the first object may be the number of illegal operations of the first object within a preset period of time (for example, one year).

[0157] In the embodiment of the present application, each object level corresponds to different applicable operation durations and applicable operation devices.

[0158] For example, according to the first identification information, the associated information of the first object is determined from the associated information of multiple objects obtained in advance, and a weight value is assigned to each associated information based on a preset rule, and the weight value corresponding to each associated information is weighted and summed to obtain the weight value corresponding to the first object. Multiple object levels are pre-set, and each object level has a different weight value range, so that the weight value range to which the weight value corresponding to the first object belongs can be determined, and then the target object level corresponding to the first object is determined, and the applicable operation time and applicable operation device corresponding to the target object level are determined as the applicable operation time and second device information of the first object.

[0159] A4: Conduct risk control analysis based on the control start time, controllable time period, applicable operation duration, first device information, and second device information.

[0160] As an example, see Figure 7 , Figure 7 Schematic diagram of a risk control analysis solution provided in an embodiment of the present application. Figure 7 As shown, the key application information can be obtained, and according to the identification information of the user in the key information, multiple pieces of associated information of the user (i.e., the first object) can be obtained, so as to assign weights to each piece of associated information according to the importance, and obtain the final weight value through the weighted sum algorithm, so as to obtain the user level of the applying user according to the final weight value. For example, it can be divided into level 1 (the applicable operation time is ≤24 hours, and all devices can be operated), level 2 (the applicable operation time is ≤8 hours, and core and low-load devices can be operated), and level 3 (the applicable operation time is ≤1 hour, and non-core and low-load devices can be operated). At the same time, the identification information of the device applied for operation is identified and analyzed, including determining whether the applied device has been applied for within the application period, determining whether the device applied for operation is a core device, and determining the load level of the device applied for operation. Finally, combined with the user level, the device applied for operation is analyzed and screened, and the relevant information is finally returned to the user (for example, the user is level X, the applicable operation time is ≤x hours, and the identification information of the device that can be applied for this time is XXX).

[0161] Step S603: In response to the risk control analysis result being normal, a key acquisition link is generated.

[0162] For example, in response to the risk control analysis result that the first object can control the first device in the corresponding time period, a key acquisition link is generated.

[0163] In some embodiments of the present application, the risk control analysis results may also be sent to a terminal device so that the user can promptly learn about the processing status of the key application through the terminal device.

[0164] In some embodiments of the present application, before generating a key acquisition link, manual approval may be performed based on the risk control analysis result, and in response to the manual approval being passed, a key acquisition link is generated.

[0165] Optionally, the above-mentioned generation of the key acquisition link may include the following steps: generating a first link; generating an encryption identifier based on the key application information; attaching the encryption identifier to the first link to obtain the key acquisition link; and sending the key acquisition link to the terminal device.

[0166] Among them, in the embodiment of the present application, the first link corresponds to the key acquisition entry.

[0167] Specifically, a first connection for obtaining a key is generated, a private field is created to store key application information, the values ​​of the various fields in the key application information are combined together to form an encrypted identifier, which is attached to the first link to obtain a key acquisition link, and the key acquisition link is sent to the terminal device.

[0168] Step S604: Send a key acquisition link to the terminal device.

[0169] For example, the key acquisition link is sent to the terminal device via a 5G message.

[0170] Step S605: Obtain a key acquisition request sent by the terminal device through the key acquisition link.

[0171] For example, a key acquisition request sent by a user by clicking a key acquisition link through a terminal device is obtained.

[0172] Step S606: Perform security verification on the key acquisition request.

[0173] In the embodiments of the present application, step S606 can be implemented in any of the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.

[0174] Optionally, the key acquisition request includes at least one of a digital signature encrypted using a preset public key, an encryption identifier, and second identification information of the terminal device, and performing security verification on the key acquisition request includes:

[0175] B1: Perform identity authentication based on the second identification information of the terminal device.

[0176] In the embodiment of the present application, the second identification information may include but is not limited to the IMEI of the terminal device and the ICCID of the SIM card in the terminal device.

[0177] B2: In response to the identity authentication being passed, determining whether the sending time of the key acquisition request is within a preset validity period.

[0178] Specifically, in response to the identity authentication being passed, it is determined whether the moment when the first object sends the key acquisition request by clicking the key acquisition link is within a preset link validity period.

[0179] B3: In response to the sending time of the key acquisition request being within the validity period, the encrypted digital signature is decrypted based on a preset private key to obtain a first hash value.

[0180] Specifically, in response to the moment when the first object sends a key acquisition request by clicking the key acquisition link, within a preset link validity period, the encrypted digital signature is decrypted based on a preset private key to obtain a first hash value.

[0181] In some other embodiments of the present application, in response to the moment when the first object sends a key acquisition request by clicking on the key acquisition link, if the moment is not within a preset link validity period, a corresponding prompt message is sent to the terminal device.

[0182] B4: Perform hash calculation based on the encrypted identifier to obtain a second hash value.

[0183] B5: Match the first hash value and the second hash value to obtain a matching result.

[0184] B6: In response to the matching result satisfying the first condition, determining that the security check has passed.

[0185] For example, in response to the matching result that the first hash value is identical to the second hash value, it is determined that the security check has passed.

[0186] Step S607: In response to the key acquisition request passing the security verification, the login key of the first device is updated to the first key.

[0187] In the embodiments of the present application, step S607 can be implemented by any of the methods in the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.

[0188] Step S608: Send the first key to the terminal device.

[0189] In the embodiments of the present application, step S608 can be implemented in any of the ways in the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.

[0190] By implementing the embodiment of the present application, the network side device can receive the key application information sent by the terminal device, and perform risk analysis based on the key application information, and send a key acquisition link to the terminal device after the risk analysis passes, so that the terminal device can send a key acquisition request through the key acquisition link. The identity of the terminal device and the key request can be security verified, thereby realizing high-security key authorization management.

[0191] In the above-mentioned embodiments provided in the present application, the key management method provided in the embodiments of the present application is introduced from the perspective of the network side device. Next, the key management method provided in the embodiments of the present application will be further introduced from the perspective of the terminal device.

[0192] See also Figure 8 , Figure 8 1 is a flowchart of another key management method provided in an embodiment of the present application. The method is applied to a terminal device. Figure 8 As shown, the method may include but is not limited to the following steps:

[0193] Step S801: Send a key acquisition request to a network side device.

[0194] In an embodiment of the present application, the key acquisition request is used by the network side device to update the login key of the first device to the first key after passing the security verification.

[0195] For example, a key acquisition request is sent to a network side device, where the key acquisition request is used to request to obtain a key for logging into the first device from the network side device.

[0196] Step S802: Obtain a first key sent by the network side device.

[0197] For example, a first key sent by a network side device for logging into a first device is obtained.

[0198] By implementing the embodiment of the present application, the terminal device can send a key acquisition request to the network side device to receive the first key sent by the network side device based on the key acquisition request, thereby achieving high-security key authorization management.

[0199] In one implementation, the terminal device may also send relevant information for applying for a key to the network device. The relevant information is used by the network device to analyze the relevant situation of the terminal device and determine whether to send information for obtaining a key to the terminal device based on the relevant information. As an example, see Fig. 9 , Fig. 9 1 is a flowchart of another key management method provided in an embodiment of the present application. The method is applied to a terminal device. Fig. 9 As shown, the method may include but is not limited to the following steps:

[0200] Step S901: Send key application information to the network side device.

[0201] Among them, the key application information is used by the network side device to send the key acquisition link to the terminal device after the risk control analysis is passed;

[0202] The key application information includes at least one of the following: first identification information of the first object; identification information of the first device; a first login account of the first device; a start time of control over the first device; and a control duration of the first device.

[0203] Among them, the first object is the object that submits the key application information through the terminal device.

[0204] Step S902: Receive a key acquisition link sent by a network-side device.

[0205] For example, a key acquisition link sent by a network side device is received, and the key acquisition link points to a key acquisition entry.

[0206] Step S903: Send a key acquisition request to the network side device through the key acquisition link.

[0207] For example, when the user needs to log in to the first device, the user clicks the key application link to send a key acquisition request to the network side device.

[0208] Among them, in an embodiment of the present application, the key acquisition link is attached with an encryption identifier, and a key acquisition request is sent to the network side device, including: performing a hash calculation based on the encryption identifier to obtain a first hash value; signing the first hash value based on a preset public key to obtain a digital signature; and sending the encryption identifier and / or digital signature as a key acquisition request to the network side device.

[0209] For example, the key acquisition link is attached with an encryption identifier. In response to the user clicking the key acquisition link, the encryption identifier is hashed to obtain a hash value, and the hash value is signed using a preset public key to generate a digital signature, thereby sending the digital signature and encryption identifier to the network side device.

[0210] Step S904: Acquire the first key sent by the network side device.

[0211] For example, a 5G message sent by a network side device is received, and the 5G message carries a first key.

[0212] By implementing the embodiment of the present application, the terminal device can send key application information to the network side device, receive the key acquisition link sent by the network side device after risk control analysis based on the key application information, and send a key acquisition request to the network side device with the key acquisition link. This can improve the security of key management.

[0213] In one implementation, the first key sent by the network-side device based on the Bida message platform can be obtained and displayed. As an example, see Fig.10 , Fig.101 is a flowchart of another key management method provided in an embodiment of the present application. The method is applied to a terminal device. Fig.10 As shown, the method may include but is not limited to the following steps:

[0214] Step S1001: Send a key acquisition request to a network side device.

[0215] In the embodiments of the present application, step S1001 can be implemented in any of the ways in the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.

[0216] Step S1002: Obtain the first key sent by the network side device through the must-reach message.

[0217] In the embodiments of the present application, step S1002 can be implemented in any of the ways in the embodiments of the present application, and the embodiments of the present application do not limit this and will not be described in detail.

[0218] Among them, the first key is the key encrypted based on the national secret algorithm.

[0219] Step S1003: Decrypt the first key based on the national encryption algorithm.

[0220] Specifically, the encrypted first key is decrypted based on the national encryption algorithm to obtain the decrypted first key.

[0221] In some embodiments of the present application, the first key can be decrypted based on the national encryption algorithm through the encryption and decryption function module of the super SIM card in the terminal device.

[0222] Step S1004: providing a display interface, where the display interface is used to display the decrypted first key.

[0223] For example, the decrypted first key is displayed through a display interface of the terminal device.

[0224] Step S1005: In response to the decrypted first key being known, deleting the decrypted first key.

[0225] For example, through the relevant functions of the must-reach message, after determining that the user has read the first key, the pop-up window for displaying the first key is canceled, and the first key is deleted on the terminal device.

[0226] By implementing the embodiment of the present application, the terminal device can receive the first key sent by the network side device based on the must-reach message, and after the user learns the first key through the terminal device, the first key is deleted from the terminal device to avoid leakage of the first key, thereby improving the security of key management.

[0227] In the above-mentioned embodiments provided in the present application, the key management method provided in the embodiments of the present application is introduced from the perspectives of the network side device and the terminal device respectively. Next, the key management method provided in the embodiments of the present application will be further introduced from the perspective of the first device.

[0228] See also Fig.11 , Fig.11 FIG. 1 is a flowchart of another key management method provided in an embodiment of the present application. The method can be applied to the first device. Fig.11 As shown, the method may include but is not limited to the following steps:

[0229] Step S1101: In response to a login operation on a first device, a second login account corresponding to the login operation is sent to a network side device.

[0230] The second login account is used by the network side device to determine whether the first key has been used to log in to the first device after the login key of the first device is updated to the first key.

[0231] Specifically, in response to a user logging into the first device, the account used by the user to log into the first device is sent to the network side device.

[0232] As an example, the first device can monitor the WTMP log in real time through a pre-installed Agent, and collect the original logs generated when the service is running according to the configured parsing rules to monitor the changes in the log content, thereby reading the locally logged-in account and sending the locally logged-in account to the network side device.

[0233] By implementing the embodiment of the present application, the first device can send the second login account corresponding to the login operation to the network side device in response to the user's login operation, so that the network side device determines whether to update the login account of the first device according to whether the first object logs in to the first device, thereby improving the security of the first device.

[0234] See also Fig.12 , Fig.12 : is an interactive flow chart of a key management solution provided in an embodiment of the present application. Fig.12As shown, in this scheme, the network side device can perform risk control analysis based on the key application information sent by the user through the terminal device, and provide the terminal device with a key acquisition link after the risk control analysis passes. During the preset authorization period, the user can send a key acquisition request to the network side device through the key acquisition link. After receiving the key acquisition request, the network side device verifies the key acquisition request, and after the verification passes, generates a temporary container for modifying the key of the specified device to a randomly generated first key. After the modification is completed, the container is released to ensure that the key information is destroyed. And the first key is sent to the terminal device to ensure that the key information is destroyed. After detecting that the user uses the first key to log in to the system, the network side device will re-initiate a password change action and modify the login key of the above-mentioned specified device to the third key again, thereby ensuring that each key can only be used once.

[0235] See also Fig.13 , Fig.13 Schematic diagram of a key management device provided in an embodiment of the present application. The device is applied to a network side device. Fig.13 As shown, the device 1300 includes: a first acquisition module 1301, used to obtain a key acquisition request sent by a terminal device; a verification module 1302, used to perform security verification on the key acquisition request; a first processing module 1303, used to update the login key of the first device to a first key in response to the key acquisition request passing the security verification; a first sending module 1304, used to send the first key to the terminal device.

[0236] In one implementation, the above device further includes: a second acquisition module, a risk control module, a generation module, and a second sending module. As an example, see Fig.14 , Fig.14 Schematic diagram of another key management device provided in an embodiment of the present application. Fig.14 As shown, the device 1400 also includes: a second acquisition module 1405, which is used to obtain the key application information sent by the terminal device; a risk control module 1406, which is used to perform risk control analysis based on the key application information and obtain the risk control analysis result; a second sending module 1407, which is used to send the risk control analysis result to the terminal device; a generation module 1408, which is used to generate a key acquisition link in response to the risk control analysis result being normal; the second sending module 1407 is also used to send the key acquisition link to the terminal device; wherein the first acquisition module 1401 is specifically used to: obtain the key acquisition request sent by the terminal device through the key acquisition link. Fig.14 Modules 1401 to 1404 in Fig.13 Modules 1301 to 1304 in the embodiment have the same structure and function.

[0237] In an optional implementation, the key application information includes at least one of the following: first identification information of the first object; wherein the first object is the object that submits the key application information through the terminal device; identification information of the first device; the first login account of the first device; the start time of control over the first device; and the control duration of the first device.

[0238] Optionally, the risk control module 1406 is specifically used to: determine the first device information and controllable time period of the first device based on the identification information; determine whether the first object has the right to apply for a key based on the first identification information and the control duration; in response to the first object having the right to apply for a key, determine the applicable operation duration of the first object and the second device information of the device for which the first object can apply to operate based on the first identification information; perform risk control analysis based on the control start time, the controllable time period, the applicable operation duration, the first device information and the second device information.

[0239] Optionally, the risk control module 1406 is specifically used to: determine the associated information of the first object based on the first identification information; determine the weight value based on the associated information; determine the target object level of the first object from multiple preset object levels based on the weight value; wherein each object level corresponds to different applicable operation time and applicable operation device; determine the applicable operation time and the second device information based on the target object level.

[0240] Optionally, the associated information includes at least one of the following: working years of the first object; associated project information of the first object; project reuse information of the first object; own attribute information of the first object; abnormal operation information of the first object.

[0241] In an optional implementation, the generation module 1408 is specifically used to: generate a first link; wherein the first link corresponds to a key acquisition entry; generate an encryption identifier based on the key application information; attach the encryption identifier to the first link to obtain a key acquisition link; and send the key acquisition link to the terminal device.

[0242] Optionally, the key acquisition request includes at least one of a digital signature encrypted using a preset public key, an encrypted identifier, and a second identification information of the terminal device, and the verification module 1302 is specifically used to: perform identity authentication based on the second identification information of the terminal device; in response to successful identity authentication, determine whether the sending time of the key acquisition request is within a preset validity period; in response to the sending time of the key acquisition request being within the validity period, decrypt the encrypted digital signature based on a preset private key to obtain a first hash value; perform hash calculation based on the encrypted identifier to obtain a second hash value; match the first hash value and the second hash value to obtain a matching result; in response to the matching result satisfying the first condition, determine that the security verification has passed.

[0243] In one implementation, the first processing module 1303 is specifically used to: generate a first key; create a container instance; modify a login key of the first device to the first key based on the container instance; and destroy the container instance.

[0244] In an optional implementation, the first processing module 1303 is specifically used to: obtain a random number seed and a preset second key; encrypt the second key based on the random number seed to obtain an encryption result; and obtain a message digest of the encryption result as the first key.

[0245] In one implementation, the first sending module 1304 is specifically used to: encrypt the first key based on the national encryption algorithm; and send the encrypted first key to the terminal device based on the must-reach message.

[0246] Optionally, the above device further includes a third acquisition module and a second processing module. As an example, see Fig.15 , Fig.15 Schematic diagram of another key management device provided in an embodiment of the present application. Fig.15 As shown, the device 1500 further includes: a third acquisition module 1509, used to acquire the second login account sent by the first device; a second processing module 1510, used to determine whether the first key has been used to log in to the first device according to the first login account and the second login account. Fig.15 Modules 1501 to 1508 in Fig.14 Modules 1401 to 1408 in the embodiment have the same structure and function.

[0247] See also Fig.16 , Fig.16 1600 is a schematic diagram of another key management device provided in an embodiment of the present application. The device 1600 is applied to a terminal device. Fig.16 As shown, the device 1600 includes: a first sending module 1601, used to send a key acquisition request to a network side device; wherein the key acquisition request is used by the network side device to update the login key of the first device to the first key after passing the security verification; a first receiving module 1602, used to receive the first key sent by the network side device.

[0248] In one implementation, the above device further includes: a second sending module and a second receiving module. As an example. Fig.17 , Fig.17 1700 is a schematic diagram of another key management device provided in an embodiment of the present application. The device 1700 is applied to a terminal device. Fig.17As shown, the device 1700 also includes: a second sending module 1703, used to send key application information to the network side device; wherein the key application information is used by the network side device to send a key acquisition link to the terminal device after the risk control analysis is passed; a second receiving module 1704, used to receive the key acquisition link sent by the network side device; wherein the first sending module 1701 is specifically used to: send a key acquisition request to the network side device through the key acquisition link. Fig.17 Modules 1701 and 1702 in Fig.16 Modules 1601 and 1602 in the embodiment have the same structure and function.

[0249] In an optional implementation, the key application information includes at least one of the following: first identification information of the first object; wherein the first object is the object that submits the key application information through the terminal device; identification information of the first device; the first login account of the first device; the start time of control over the first device; and the control duration of the first device.

[0250] In an optional implementation, the first sending module 1601 is specifically used to: perform hash calculation based on the encryption identifier to obtain a first hash value; sign the first hash value based on a preset public key to obtain a digital signature; and send the encryption identifier and / or digital signature as a key acquisition request to a network side device.

[0251] In one implementation, the first receiving module 1602 is specifically used to: obtain a first key sent by a network-side device through a must-reach message; wherein the first key is a key encrypted based on a national encryption algorithm.

[0252] In one implementation, the above device further includes: a decryption module, a display module and a processing module. As an example. Fig.18 , Fig.18 1800 is a schematic diagram of another key management device provided in an embodiment of the present application. The device 1800 is applied to a terminal device. Fig.18 As shown, the device 1800 further includes: a decryption module 1803, used to decrypt the first key based on the national encryption algorithm; a display module 1804, used to provide a display interface; wherein the display interface is used to display the decrypted first key; and a processing module 1805, used to delete the decrypted first key in response to the decrypted first key being known. Fig.18 Modules 1801 and 1802 in Fig.16 Modules 1601 and 1602 in the embodiment have the same structure and function.

[0253] See also Fig.19 , Fig.191900 is a schematic diagram of another key management device provided in an embodiment of the present application. The device 1900 is applied to a first device. Fig.19 As shown, the device 1900 includes: a processing module 1901, which is used to send a second login account corresponding to the login operation to the network side device in response to the login operation on the first device; wherein the second login account is used for the network side device to determine whether the first key has been used to log in to the first device after the login key of the first device is updated to the first key.

[0254] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0255] Based on the embodiments of the present application, the present application also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the key management method of any of the aforementioned embodiments.

[0256] Based on the embodiments of the present application, the present application also provides a computer-readable storage medium, wherein computer instructions are used to enable a computer to execute a key management method according to any of the foregoing embodiments provided in the embodiments of the present application.

[0257] See also Fig. 20 ,like Fig. 20 , is a schematic block diagram of an example electronic device that can be used to implement an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0258] like Fig. 20As shown, the device 2000 includes a computing unit 2001, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 2002 or a computer program loaded from a storage unit 20020 into a random access memory (RAM) 2003. In RAM 2003, various programs and data required for the operation of the device 2000 can also be stored. The computing unit 2001, ROM 2002 and RAM 2003 are connected to each other via a bus 2004. An input / output (I / O) interface 2005 is also connected to the bus 2004.

[0259] A number of components in the device 2000 are connected to the I / O interface 2005, including: an input unit 2006, such as a keyboard, a mouse, etc.; an output unit 2007, such as various types of displays, speakers, etc.; a storage unit 20020, such as a disk, an optical disk, etc.; and a communication unit 2009, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 2009 allows the device 2000 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0260] The computing unit 2001 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 2001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSP), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 2001 performs the various methods and processes described above, such as a key management method. For example, in some embodiments, the key management method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 20020. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 2000 via the ROM 2002 and / or the communication unit 2009. When the computer program is loaded into the RAM 2003 and executed by the computing unit 2001, one or more steps of the key management method described above may be performed. Alternatively, in other embodiments, the computing unit 2001 may be configured to execute the key management method in any other appropriate manner (for example, by means of firmware).

[0261] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard parts (ASSPs), system on chip systems (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a dedicated or general programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0262] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0263] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0264] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a cathode ray tube (CRT) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0265] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN), the Internet, and blockchain networks.

[0266] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS (Virtual Private Server) services. The server may also be a server of a distributed system, or a server combined with a blockchain.

[0267] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in the present application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution of the present application can be achieved, and this document does not limit this.

[0268] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A key management method, characterized in that: The method is applied to a network side device, and the method includes: Obtain a key acquisition request sent by a terminal device; Performing a security check on the key acquisition request; In response to the key acquisition request passing the security verification, updating the login key of the first device to the first key; Sending the first key to the terminal device; The method further comprises: Obtaining key application information sent by the terminal device; Perform risk control analysis based on the key application information to obtain risk control analysis results; In response to the risk control analysis result being normal, generating a key acquisition link; Sending the key acquisition link to the terminal device; The step of obtaining a key acquisition request sent by a terminal device includes: Acquire a key acquisition request sent by the terminal device through the key acquisition link.

2. The method according to claim 1, characterized in that The updating the login key of the first device to the first key includes: generating the first key; Create a container instance; Modify the login key of the first device to the first key based on the container instance; Destroys the container instance.

3. The method according to claim 2, characterized in that The generating the first key comprises: Obtain a random number seed and a preset second key; Encrypt the second key based on the random number seed to obtain an encryption result; A message digest of the encryption result is obtained as the first key.

4. The method according to claim 1, characterized in that The sending the first key to the terminal device includes: Encrypting the first key based on the national secret algorithm; The encrypted first key is sent to the terminal device based on the must-reach message.

5. The method according to claim 1, characterized in that The method further comprises: determining whether the first key has been used to log into the first device; In response to the first key being used to log into the first device, updating the login key of the first device to a third key.

6. The method according to claim 1, characterized in that The key application information includes at least one of the following: First identification information of a first object; wherein the first object is an object that submits the key application information through the terminal device; identification information of the first device; a first login account of the first device; a start time of controlling the first device; The duration of controlling the first device.

7. The method according to claim 6, characterized in that Determining whether the first key has been used to log in to the first device includes: Obtaining a second login account sent by the first device; According to the first login account and the second login account, it is determined whether the first key has been used to log in to the first device.

8. The method according to claim 6, characterized in that The risk control analysis based on the key application information includes: Determining first device information and a controllable time period of the first device according to the identification information; Determining, according to the first identification information and the control duration, whether the first object has the right to apply for a key; In response to the first object being entitled to apply for a key, determining, according to the first identification information, a duration for which the first object can apply for an operation, and second device information of a device for which the first object can apply for an operation; A risk control analysis is performed based on the control start time, the controllable time period, the applicable operation duration, the first device information, and the second device information.

9. The method according to claim 8, characterized in that The determining, according to the first identification information, the applicable operation duration of the first object and the second device information of the device that the first object can apply to operate includes: Determine the association information of the first object according to the first identification information; Determining a weight value based on the association information; Determining a target object level of the first object from a plurality of preset object levels according to the weight value; wherein each object level corresponds to a different applicable operation duration and applicable operation device; The applicable operation duration and the second device information are determined according to the target object level.

10. The method according to claim 9, characterized in that The associated information includes at least one of the following: The first subject’s years of work experience; Related project information of the first object; Project reuse information of the first object; The first object's own attribute information; Abnormal operation information of the first object.

11. The method according to claim 6, characterized in that The step of generating a key to obtain a link includes: Generate a first link; wherein the first link corresponds to a key acquisition entry; Generate an encryption identifier based on the key application information; Attaching the encryption identifier to the first link to obtain the key acquisition link; The key acquisition link is sent to the terminal device.

12. The method according to claim 11, characterized in that The key acquisition request includes a digital signature encrypted using a preset public key, the encryption identifier, and at least one of the second identification information of the terminal device, and the security verification of the key acquisition request includes: Performing identity authentication based on the second identification information of the terminal device; In response to the identity authentication being passed, determining whether the sending time of the key acquisition request is within a preset validity period; In response to the sending time of the key acquisition request being within the validity period, decrypting the encrypted digital signature based on a preset private key to obtain a first hash value; Performing a hash calculation based on the encryption identifier to obtain a second hash value; Matching the first Hash value and the second Hash value to obtain a matching result; In response to the matching result satisfying the first condition, it is determined that the security check is passed.

13. A key management method, characterized in that: The method is applied to a terminal device, and the method comprises: Sending a key acquisition request to the network side device; wherein the key acquisition request is used by the network side device to update the login key of the first device to the first key after passing the security verification; Obtaining the first key sent by the network side device; The method further comprises: Sending key application information to the network side device; wherein the key application information is used by the network side device to send a key acquisition link to the terminal device after the risk control analysis passes; Receiving the key acquisition link sent by the network side device; The sending of a key acquisition request to a network side device includes: The key acquisition request is sent to the network side device through the key acquisition link.

14. The method according to claim 13, characterized in that The key application information includes at least one of the following: First identification information of a first object; wherein the first object is an object that submits the key application information through the terminal device; identification information of the first device; a first login account of the first device; a start time of controlling the first device; The duration of controlling the first device.

15. The method according to claim 13, characterized in that The key acquisition link is attached with an encryption identifier, and the sending of the key acquisition request to the network side device includes: Performing a hash calculation based on the encryption identifier to obtain a first hash value; Sign the first hash value based on a preset public key to obtain a digital signature; The encryption identifier and / or the digital signature is sent to the network side device as the key acquisition request.

16. The method according to claim 13, characterized in that The obtaining the first key sent by the network side device includes: Obtain the first key sent by the network side device through the must-reach message; wherein, the first key is a key encrypted based on the national secret algorithm.

17. The method according to claim 13, characterized in that The method further comprises: Decrypting the first key based on the national secret algorithm; Providing a display interface; wherein the display interface is used to display the first decrypted key; In response to the decrypted first key being known, the decrypted first key is deleted.

18. A key management method, characterized in that: The method is applied to a first device, and the method includes: In response to a login operation on the first device, sending a second login account corresponding to the login operation to the network side device; wherein the second login account is used by the network side device to determine whether the first key has been used to log in to the first device after the login key of the first device is updated to the first key; The network side device is further used for: Obtain key application information sent by the terminal device; Perform risk control analysis based on the key application information to obtain risk control analysis results; In response to the risk control analysis result being normal, generating a key acquisition link; Sending the key acquisition link to the terminal device; Acquire a key acquisition request sent by the terminal device through the key acquisition link.

19. A key management device, characterized in that: The device is applied to a network side device, and the device includes: An acquisition module, used to acquire a key acquisition request sent by a terminal device; A verification module, used to perform security verification on the key acquisition request; a processing module, configured to update the login key of the first device to the first key in response to the key acquisition request passing the security verification; A sending module, used for sending the first key to the terminal device; The device is also used for: Obtaining key application information sent by the terminal device; Perform risk control analysis based on the key application information to obtain risk control analysis results; In response to the risk control analysis result being normal, generating a key acquisition link; Sending the key acquisition link to the terminal device; The step of obtaining a key acquisition request sent by a terminal device includes: Acquire a key acquisition request sent by the terminal device through the key acquisition link.

20. A key management device, characterized in that: The device is applied to a terminal device, and the device includes: A second sending module is used to send key application information to the network side device; wherein the key application information is used by the network side device to send a key acquisition link to the terminal device after the risk control analysis passes; A second receiving module, used to receive the key acquisition link sent by the network side device; A sending module, used to send a key acquisition request to the network side device through a key acquisition link; wherein the key acquisition request is used by the network side device to update the login key of the first device to the first key after passing the security verification; The acquisition module is used to receive the first key sent by the network side device.

21. A key management device, characterized in that: The device is applied to a first device, and includes: a processing module, configured to, in response to a login operation on the first device, send a second login account corresponding to the login operation to the network side device; wherein the second login account is used by the network side device to determine whether the first key has been used to log in to the first device after the login key of the first device is updated to the first key; The network side device is further used for: Obtain key application information sent by the terminal device; Perform risk control analysis based on the key application information to obtain risk control analysis results; In response to the risk control analysis result being normal, generating a key acquisition link; Sending the key acquisition link to the terminal device; Acquire a key acquisition request sent by the terminal device through the key acquisition link.

22. A key management system, characterized in that: include: A network-side device, configured to execute the method according to any one of claims 1 to 12; A terminal device, configured to execute the method according to any one of claims 13 to 17; The first-side device is configured to execute the method according to claim 18.

23. An electronic device, characterized in that: include: at least one processor; and a memory communicatively coupled to the at least one processor; In which, the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the key management method described in any one of claims 1 to 12; or, enable the at least one processor to execute the key management method described in any one of claims 13 to 17; or, enable the at least one processor to execute the key management method described in claim 18.

24. A computer-readable storage medium for storing instructions, characterized in that: When the instructions are executed, the method according to any one of claims 1 to 12 is implemented; or, the method according to any one of claims 13 to 17 is implemented; or, the method according to claim 18 is implemented.