Key retrieval method, server and identification card
By dividing the functions of business servers and security servers in the Metaverse, and using the encryption and decryption operations of identification cards, the problem of operators maliciously obtaining users' private keys is solved, the security of the key retrieval process is improved, and user assets are protected .
Patent Information
- Application Number
- CN202211064599.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-01
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-09-01
AI Technical Summary
In the Metaverse, after the user's private key is lost, due to the operator's absolute control over the private key, it is easy for criminals to maliciously obtain the user's private key, resulting in greater risks to the user's assets and the inability to effectively protect the user's interests.
By dividing the functions between the business server and the security server, and using the random information and key parameters provided by the identification card to perform encryption and decryption operations, the security of the key retrieval process is ensured and the risk of operators maliciously obtaining the key is reduced.
By physically isolating different servers, the security of the key retrieval process is improved, user information and assets are protected, and the risk of criminals obtaining user keys is reduced.
Smart Images

Figure CN115442805B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a key retrieval method, a server and an identification card. Background Art
[0002] The Metaverse is a virtual world that is linked and created by technological means, mapped and interacted with the real world, and has a digital living space with a new social system. User information and assets in the Metaverse exist in digital form, and the identification of user identity depends on the user's private key. If the private key is lost, it may lead to the collapse of the user's personal universe.
[0003] In the related technology, after a user loses his private key, he can retrieve it through the operator. However, since the operator has relatively absolute control over the private key, it is easy for criminals to maliciously obtain the user's private key through the operator, thereby posing a greater risk to the user's assets in the metaverse and failing to effectively protect the user's interests. Summary of the invention
[0004] To this end, the present application provides a key retrieval method, a server and an identification card to solve the problem that criminals maliciously obtain user keys through operators, resulting in loss of user information and assets.
[0005] In order to achieve the above-mentioned object, the first aspect of the present application provides a key retrieval method, which is applied to a security server, and the method comprises:
[0006] When the random information provided by the first identification card is obtained through the service server and the first key parameter is obtained through the terminal, the random information is encrypting using the first key parameter to obtain a first encryption result, where the first key parameter is a parameter built into the first identification card;
[0007] sending the first encryption result to the first identification card;
[0008] upon receiving a second key sent by the first identification card, decrypting the second key using the first key parameter to obtain a first key, wherein the second key is a key generated by encrypting the first key using the built-in first key parameter by the first identification card, and the first key is a key built into the first identification card;
[0009] In the case of acquiring the second key parameter provided by the terminal, a second identification card is configured according to the first key and the second key parameter, so that the terminal can log in to the preset client through the second identification card.
[0010] Further, the decrypting the second key using the first key parameter to obtain the first key includes:
[0011] The second key is decrypted using the first key parameter according to an algorithm pre-agreed with the first identification card to obtain the first key.
[0012] In order to achieve the above-mentioned purpose, the second aspect of the present application provides a key retrieval method, which is applied to a service server, and the method comprises:
[0013] In response to a key retrieval request initiated by a terminal, authenticating the terminal;
[0014] When the terminal passes the identity authentication, sending a key retrieval instruction to a first identification card, so that the first identification card provides random information to a security server, wherein the first identification card has a first key and a first key parameter built therein;
[0015] An information acquisition indication is sent to the terminal, so that the terminal provides a first key parameter to the security server according to the information acquisition indication, so that the security server encrypts the random information using the first key parameter to obtain a first encryption result, and sends the first encryption result to the first identification card, and when receiving the second key sent by the first identification card, decrypts the second key using the first key parameter to obtain the first key, and when obtaining the second key parameter provided by the terminal, configures the second identification card according to the first key and the second key parameter, so that the terminal can log in to the preset client through the second identification card.
[0016] Furthermore, when the terminal passes the identity authentication, sending a key retrieval instruction to the first identification card so that the first identification card provides random information to the security server includes:
[0017] When the terminal passes the identity authentication, sending the key retrieval instruction to the first identification card through a signaling channel;
[0018] receiving the random information returned by the first identification card through the signaling channel;
[0019] The random information is forwarded to the security server.
[0020] In order to achieve the above-mentioned object, the third aspect of the present application provides a key retrieval method, which is applied to a first identification card, wherein the first identification card has a built-in first key and a first key parameter for logging into a preset client, and the method comprises:
[0021] In response to a key retrieval instruction sent by a service server, generating random information;
[0022] Providing the random information to a security server;
[0023] Encrypt the random information using the first key parameter to obtain a second encryption result;
[0024] Upon receiving a first encryption result sent by the security server, and when the first encryption result is consistent with the second encryption result, encrypting the first key using the first key parameter to obtain a second key, wherein the first encryption result is a result obtained by the security server using the first key parameter obtained from the terminal to encrypt the random information obtained through the service server;
[0025] The second key is sent to the security server so that the security server uses the first key parameter to decrypt the second key to obtain the first key, and configures the second identification card according to the first key and the second key parameter provided by the terminal, so that the terminal logs in to the preset client through the second identification card.
[0026] Furthermore, before generating random information in response to the key retrieval instruction sent by the service server, the method further includes:
[0027] Determining the number of key retrieval instructions received within a preset time period;
[0028] When the number of times is less than a preset threshold, it is determined to respond to the key retrieval instruction.
[0029] Further, after determining the number of times the key retrieval instruction is received within a preset time period, the method further includes:
[0030] When the number of times is greater than or equal to the preset threshold, responding to the key retrieval instruction is delayed, or responding to the key retrieval instruction is refused.
[0031] In order to achieve the above-mentioned object, the fourth aspect of the present application provides a security server, which includes:
[0032] a first encryption module, configured to, when obtaining random information provided by the first identification card through the service server and obtaining a first key parameter through the terminal, encrypt the random information using the first key parameter to obtain a first encryption result, wherein the first key parameter is a parameter built into the first identification card;
[0033] A result sending module, used for sending the first encryption result to the first identification card;
[0034] a decryption module, configured to, upon receiving a second key sent by the first identification card, decrypt the second key using the first key parameter to obtain a first key, wherein the second key is a key generated by encrypting the first key by the first identification card using the built-in first key parameter, and the first key is a key built into the first identification card;
[0035] The configuration module is used to configure the second identification card according to the first key and the second key parameter when the second key parameter provided by the terminal is obtained, so that the terminal can log in to the preset client through the second identification card.
[0036] In order to achieve the above-mentioned purpose, the fifth aspect of the present application provides a service server, which includes:
[0037] A verification module, configured to perform identity authentication on the terminal in response to a key retrieval request initiated by the terminal;
[0038] An instruction sending module, used for sending a key retrieval instruction to a first identification card when the terminal passes identity authentication, so that the first identification card provides random information to a security server, wherein the first identification card has a first key and a first key parameter built therein;
[0039] An indication sending module is used to send an information acquisition indication to the terminal, so that the terminal provides a first key parameter to the security server according to the information acquisition indication, so that the security server uses the first key parameter to encrypt the random information to obtain a first encryption result, and sends the first encryption result to the first identification card. When receiving the second key sent by the first identification card, the second key is decrypted using the first key parameter to obtain the first key, and when the second key parameter provided by the terminal is obtained, the second identification card is configured according to the first key and the second key parameter, so that the terminal can log in to the preset client through the second identification card.
[0040] In order to achieve the above-mentioned object, the sixth aspect of the present application provides an identification card, which is applied to a first identification card, wherein the first identification card has a first key and a first key parameter for logging in to a preset client, and the first identification card includes:
[0041] A generating module, used to generate random information in response to a key retrieval instruction sent by a service server;
[0042] A providing module, configured to provide the random information to a security server;
[0043] A second encryption module, used to encrypt the random information using the first key parameter to obtain a second encryption result;
[0044] a third encryption module, configured to, upon receiving a first encryption result sent by the security server and the first encryption result is consistent with the second encryption result, encrypt the first key using the first key parameter to obtain a second key, wherein the first encryption result is a result obtained by the security server using the first key parameter obtained from the terminal to encrypt the random information obtained through the business server;
[0045] A key sending module is used to send the second key to the security server so that the security server uses the first key parameter to decrypt the second key to obtain the first key, and configure the second identification card according to the first key and the second key parameter provided by the terminal, so that the terminal logs in to the preset client through the second identification card.
[0046] This application has the following advantages:
[0047] The key retrieval method, server and identification card provided in the present application, when random information provided by the first identification card is obtained through the business server and the first key parameter is obtained through the terminal, the random information is encrypted using the first key parameter to obtain a first encryption result; the first encryption result is sent to the first identification card; when a second key sent by the first identification card is received, the second key is decrypted using the first key parameter to obtain the first key; when the second key parameter provided by the terminal is obtained, the second identification card is configured according to the first key and the second key parameter, so that the terminal can log in to the preset client through the second identification card. The method divides the operator's server into a business server and a security server. Different servers perform different functions. The security of the key retrieval process is improved through physical isolation, thereby reducing the risk of criminals maliciously obtaining user keys through the operator and protecting the user's information security and asset security. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The accompanying drawings are used to provide further understanding of the present application and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present application, but do not constitute a limitation to the present application.
[0049] Figure 1 is a flow chart of a key retrieval method provided in an embodiment of the present application;
[0050] Figure 2 is a flow chart of a key retrieval method provided in an embodiment of the present application;
[0051] Figure 3 is a flow chart of a key retrieval method provided in an embodiment of the present application;
[0052] Figure 4 is a block diagram of a security server provided in an embodiment of the present application;
[0053] Figure 5 is a block diagram of a service server provided in an embodiment of the present application;
[0054] Figure 6 is a block diagram of an identification card provided in an embodiment of the present application;
[0055] Figure 7 is a schematic diagram of a key retrieval system provided in an embodiment of the present application;
[0056] Figure 8 This is a schematic diagram of the working process of a key retrieval method provided in an embodiment of the present application;
[0057] Fig. 9 It is a block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] The specific implementation of the present application is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present application, and is not used to limit the present application.
[0059] As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.
[0060] The terms used in this application are only used to describe specific embodiments and are not intended to limit the present application.As used in this application, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
[0061] When the terms “comprising” and / or “made of…” are used in this application, it specifies the existence of the stated features, integers, steps, operations, elements and / or components, but does not exclude the existence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0062] Unless otherwise defined, all terms (including technical and scientific terms) used in this application have the same meaning as those commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this application, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined in this application.
[0063] Metaverse is a virtual world that is linked and created by scientific and technological means, mapped and interacted with the real world, and has a digital living space with a new social system. User information and assets in the Metaverse exist in digital form, and the identification of user identities depends on the user's private key (i.e., key). Users can log in to their Metaverse client through their identification card to view relevant information or conduct transactions. Similarly, users can log in to clients based on blockchain and other technologies through identification cards.
[0064] If the key is lost, it may lead to the collapse of the user's personal universe / blockchain. In related technologies, after losing the key, the user can retrieve the key through the operator. However, since the operator has a relatively absolute control over the key, it is easy for criminals to maliciously obtain the user's private key through the operator, thereby posing a greater risk to the user's assets in the metaverse and failing to effectively protect the user's interests.
[0065] In view of this, in the embodiment of the present application, when retrieving the user key, the business server first authenticates the terminal. After the terminal passes the identity authentication, the business server prompts the terminal and the identification card to provide relevant information to the security server, and the security server with a higher security level completes the key retrieval and configuration of the new identification card. Since the operation process and operation results of the security server are not displayed to the outside (including but not limited to the business server), the security of information such as keys can be effectively guaranteed.
[0066] In a first aspect, an embodiment of the present application provides a key retrieval method.
[0067] Figure 1 1 is a flowchart of a key retrieval method provided in an embodiment of the present application, and the key retrieval method can be applied to a security server. Figure 1 As shown, the key retrieval method includes the following steps:
[0068] Step S101: When random information provided by a first identification card is obtained through a service server and a first key parameter is obtained through a terminal, the random information is encrypted using the first key parameter to obtain a first encryption result.
[0069] In some possible implementations, the server on the operator side includes at least a security server and a business server, wherein the security server is used to carry out data processing with a higher security level, and the business server is used to carry out regular business processing operations, thereby realizing the functional partitioning of the operator from a physical level and further ensuring the security of information.
[0070] It should be noted that the types of services carried by the security server and the types of services carried by the service server can be configured and modified according to actual needs, experience, etc., and the embodiments of the present application do not limit this.
[0071] In some possible implementations, the first identification card may be a Subscriber Identity Model Card (SIM card), and the user pre-embeds the first key and the first key parameter in the first identification card, so that the user can log in to the preset client based on the first key. The preset client may be a metaverse client, a blockchain client, etc., and the first key parameter is a parameter used to retrieve the first key, which may be a password, a verification code, etc. When the user loses the first identification card, the user initiates a key retrieval request to the service server through the terminal, and the service server sends a key retrieval instruction to the first identification card. In response to the key retrieval instruction, the first identification card provides random information to the security server.
[0072] For example, the first identification card responds to the key retrieval instruction and returns random information to the service server, and the service server sends the random information to the security server. For another example, the first identification card responds to the key retrieval instruction and directly sends random information to the security server.
[0073] In addition to obtaining random information, the security server also obtains the first key parameter through the terminal. For example, the terminal inputs the first key parameter to the security server through a preset security keyboard; the terminal inputs the first key parameter to the service server through a preset security keyboard, and the service server forwards the first key parameter to the security server.
[0074] It should be noted that the security server may obtain the random information and the first key parameter simultaneously or successively, and this application does not impose any restrictions on this.
[0075] In some possible implementations, when obtaining random information and a first key parameter, the security server encrypts the random information using the first key parameter to obtain a first encryption result. The random information may be any information with a random property (e.g., a random number, a random string, etc.), which is not limited in the embodiments of the present application.
[0076] In one example, encrypting the random information using the first key parameter to obtain a first encryption result includes: encrypting the random information using the first key parameter according to an algorithm pre-agreed with the first identification card to obtain a first encryption result. It should be understood that encryption using a pre-agreed algorithm can ensure that the first identification card can successfully decrypt.
[0077] Step S102: sending the first encryption result to the first identification card.
[0078] In some possible implementations, a secure channel is pre-established between the security server and the first identification card. The first encryption result is transmitted through the secure channel, which can ensure secure transmission of the first encryption result and avoid information leakage.
[0079] For example, if the security channel is a signaling channel, the security server sends the first encryption result to the first identification card through the signaling channel.
[0080] Step S103: upon receiving the second key sent by the first identification card, decrypt the second key using the first key parameter to obtain the first key.
[0081] The second key is a key sent by the first identification card to the security server when the first encryption result and the second encryption result are determined to be consistent. The second key is a key obtained by the first identification card encrypting the first key using the first key parameter.
[0082] In some possible implementations, decrypting the second key using the first key parameter to obtain the first key includes: decrypting the second key using the first key parameter according to an algorithm pre-agreed with the first identification card to obtain the first key.
[0083] Step S104: when the second key parameter provided by the terminal is obtained, a second identification card is configured according to the first key and the second key parameter, so that the terminal can log in to the preset client through the second identification card.
[0084] In some possible implementations, the second key parameter is a key parameter reset by the user. The user can provide the second key parameter to the security server through a terminal, or input the second key parameter to the security server through a preset security keyboard. The embodiment of the present application does not limit the way in which the security server obtains the second key parameter.
[0085] After the security server obtains the second key parameter, it can use the first key and the second key parameter to configure a new identification card, thereby obtaining the second identification card. For the terminal, it can log in to the preset client through the second identification card, thereby realizing operations such as viewing and modifying various information in the preset client.
[0086] For example, the security server embeds the first key and the second key parameters into the second identification card, the user installs the second identification card into the terminal, and the terminal re-downloads and logs in to the preset client based on the second identification card.
[0087] Figure 2 1 is a flowchart of a key retrieval method provided in an embodiment of the present application, and the key retrieval method can be applied to a business server. Figure 2 As shown, the key retrieval method includes the following steps:
[0088] Step S201: In response to a key retrieval request initiated by a terminal, identity verification is performed on the terminal.
[0089] The key retrieval request is a request sent by the terminal when the first identification card is lost. The first identification card has a built-in first key and a first key parameter for logging into a preset client.
[0090] In some possible implementations, the first identification card may be a SIM card of a user, and the user pre-installs a first key and a first key parameter in the first identification card, so that the user can log in to a preset client based on the first key. The preset client may be a Metaverse client, and the first key parameter is a parameter used to retrieve the first key, which may be a password, a verification code, etc.
[0091] In some possible implementations, after the user loses the first identification card, the user initiates a key retrieval request to the service server online or offline. The service server receives the key retrieval request from the terminal and authenticates the terminal to ensure that the key retrieval request is initiated by a legitimate terminal, thereby reducing the occurrence of situations where the key retrieval request is initiated by an illegal terminal to maliciously obtain key information. Among them, identity authentication can be implemented based on any one or more methods such as the identity information reserved by the user on the operator side, the security answers corresponding to the preset security questions, and the dynamic verification code verification. This application does not limit the implementation method of identity authentication.
[0092] It should be emphasized that the current execution subject is the business server. Generally speaking, the business server is mainly used to execute the operator's regular business, and its security level is lower than that of the security server. It is impossible to obtain or view the operation process and results of the security server, thereby ensuring the security of relevant information.
[0093] Step S202: When the terminal passes the identity authentication, a key retrieval instruction is sent to the first identification card, so that the first identification card provides random information to the security server.
[0094] Among them, if the terminal passes the identity authentication, it means that the terminal is a real and authentic terminal, and the business server continues to perform subsequent operations; on the contrary, if the terminal fails the identity authentication, it means that the terminal is not a real and authentic terminal, and the business server refuses to perform the subsequent key retrieval process.
[0095] In some possible implementations, when the terminal passes the identity authentication, a key retrieval instruction is sent to the first identification card so that the first identification card can provide random information to the security server, including: when the terminal passes the identity authentication, a key retrieval instruction is sent to the first identification card through a signaling channel; receiving the random information returned by the first identification card through the signaling channel; and forwarding the random information to the security server.
[0096] In other words, when the terminal passes the identity authentication, the service server sends a key retrieval instruction to the first identification card through the signaling channel, and the key retrieval instruction can be received as long as the terminal where the first identification card is located is in the power-on state. When the first identification card receives the key retrieval instruction, it generates random information and provides the random information to the security server. The random information can be any information with random properties (for example, a random number, a random string, etc.), which is not limited in the embodiments of the present application.
[0097] For example, the first identification card returns random information to the business server in response to the key retrieval instruction, and the business server sends the random information to the security server. A one-way transmission channel with a high security level can be preset between the business server and the security server, so that the business server can send the random information to the security server through the one-way transmission channel. At the same time, due to the one-way transmission feature, the risk of the security server leaking information to the business server can be reduced.
[0098] For another example, the first identification card directly sends random information to the security server in response to the key retrieval instruction.
[0099] Step S203: Send an information acquisition instruction to the terminal.
[0100] The information acquisition indication is used to instruct the terminal to provide the first key parameter to the security server. For the implementation of the terminal providing the first key parameter to the security server, please refer to the relevant description in step S101, which will not be repeated here.
[0101] In some possible implementations, the business server sends an information acquisition indication to the terminal, and the terminal provides a first key parameter to the security server according to the information acquisition indication; the security server encrypts the random information using the first key parameter to obtain a first encryption result, and sends the first encryption result to the first identification card, and upon receiving the second key sent by the first identification card, uses the first key parameter to decrypt the second key to obtain the first key, and upon obtaining the second key parameter provided by the terminal, configures the second identification card according to the first key and the second key parameters; the terminal can log in to the preset client through the second identification card.
[0102] Figure 3is a flow chart of a key retrieval method provided in an embodiment of the present application, and the key retrieval method can be applied to the first identification card. Figure 3 As shown, the key retrieval method includes the following steps:
[0103] Step S301: Generate random information in response to a key retrieval instruction sent by a service server.
[0104] The random information may be any information with a random nature (eg, a random number, a random character string, etc.), and the embodiments of the present application do not impose any limitation on this.
[0105] In some possible implementations, when determining that the terminal has passed identity authentication, the service server sends a key retrieval instruction to the first identification card through a signaling channel; the first identification card generates random information according to a preset algorithm in response to the key retrieval instruction.
[0106] Step S302: providing random information to a security server.
[0107] In some possible implementations, the first identification card may provide the random information to the security server directly, or may provide the random information to the security server through the service server, which is not limited in the embodiments of the present application.
[0108] For example, the first identification card returns random information to the business server in response to the key retrieval instruction, and the business server sends the random information to the security server. A one-way transmission channel with a high security level can be preset between the business server and the security server, so that the business server can send the random information to the security server through the one-way transmission channel. At the same time, due to the one-way transmission feature, the risk of the security server leaking information to the business server can be reduced.
[0109] For another example, the first identification card directly sends random information to the security server through a preset signaling channel in response to the key retrieval instruction.
[0110] Step S303: Use the first key parameter to encrypt the random information to obtain a second encryption result.
[0111] Step S304: upon receiving the first encryption result sent by the security server and the first encryption result is consistent with the second encryption result, encrypt the first key using the first key parameter to obtain the second key.
[0112] The first encryption result is a result obtained by the security server encrypting the random information obtained through the service server using the first key parameter obtained from the terminal.
[0113] In one example, the random information generated by the first identification card is a string of random numbers RAND, and the first key parameter is a preset password PWD. Based on this, the first identification card encrypts the RAND using PWD through a preset encryption method to obtain a second encryption result Res'=E PWD (RAND), where E() represents the encryption algorithm. On the security server side, it uses the PWD provided by the terminal to encrypt the RAND provided by the first identification card through a preset encryption method to obtain a first encryption result Res=E PWD (RAND) When Res'=Res, the first identification card determines that the security server is a real and secure server. Based on this, the first identification card uses PWD to encrypt the first key SK to obtain the second key SK', so as to provide the second key SK' to the security server.
[0114] Step S305: Send the second key to the security server.
[0115] In some possible implementations, after the first identification card sends the second key to the security server, the security server uses the first key parameters to decrypt the second key, obtains the first key, and configures the second identification card based on the first key and the second key parameters provided by the terminal, so that the terminal can log in to the preset client through the second identification card.
[0116] In some possible implementations, in step S301, before generating random information in response to the key retrieval instruction sent by the service server, the following is further included:
[0117] Determine the number of key retrieval instructions received within a preset time period; if the number is less than a preset threshold, determine to respond to the key retrieval instruction. The preset threshold can be set based on experience, statistical data, actual needs, etc., and the embodiment of the present application does not limit this.
[0118] In other words, the number of times is less than the preset threshold, indicating that the service server does not frequently initiate key retrieval to the first identification card, and therefore, it is determined that the key retrieval instruction is a relatively safe and authentic instruction.
[0119] In some possible implementations, after determining the number of key retrieval instructions received within a preset time period, the method further includes:
[0120] When the number of times is greater than or equal to the preset threshold, the key retrieval instruction is delayed to respond, or the key retrieval instruction is rejected to respond. In other words, when the number of times is large (by comparing with the preset threshold), the first identification card determines that the service server initiates key retrieval more frequently, which is not in line with the normal situation. Therefore, the first identification card can avoid leaking the key by delaying the response or rejecting the response mechanism.
[0121] In summary, by setting a preset threshold and determining the execution content of the key retrieval instruction based on the preset threshold, it is possible to effectively deal with hackers who attempt to illegally obtain keys through massive data, thereby improving the security of key retrieval.
[0122] The step division of the above methods is only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.
[0123] In a second aspect, an embodiment of the present application provides a security server, a business server and an identification card.
[0124] Figure 4 is a block diagram of a security server provided in an embodiment of the present application. Figure 4 As shown, the security server includes the following modules:
[0125] The first encryption module 401 is used to encrypt the random information provided by the first identification card by using the first key parameter to obtain a first encryption result when the random information is obtained by the service server and the first key parameter is obtained by the terminal.
[0126] The result sending module 402 is used to send the first encryption result to the first identification card.
[0127] The decryption module 403 is configured to, upon receiving the second key sent by the first identification card, decrypt the second key using the first key parameter to obtain the first key.
[0128] In some possible implementations, the decryption module 403 is used to: decrypt the second key using the first key parameter according to an algorithm pre-agreed with the first identification card to obtain the first key.
[0129] The configuration module 404 is used to configure the second identification card according to the first key and the second key parameters when the second key parameters provided by the terminal are obtained, so that the terminal can log in to the preset client through the second identification card.
[0130] Figure 5 is a block diagram of a service server provided in an embodiment of the present application. Figure 5 As shown, the business server includes the following modules:
[0131] The verification module 501 is used to perform identity verification on the terminal in response to a key retrieval request initiated by the terminal.
[0132] The instruction sending module 502 is used to send a key retrieval instruction to the first identification card when the terminal passes the identity authentication, so that the first identification card provides random information to the security server.
[0133] In some possible implementations, the instruction sending module 502 includes a first sending unit, a receiving unit, and a second sending unit. The first sending unit is used to send a key retrieval instruction to the first identification card through a signaling channel when the terminal passes the identity authentication; the receiving unit is used to receive the random information returned by the first identification card through the signaling channel; and the second sending unit is used to forward the random information to the security server.
[0134] The indication sending module 503 is used to send an information acquisition indication to the terminal, so that the terminal provides a first key parameter to the security server according to the information acquisition indication, so that the security server uses the first key parameter to encrypt the random information, obtains a first encryption result, and sends the first encryption result to the first identification card. When receiving the second key sent by the first identification card, the second key is decrypted using the first key parameter to obtain the first key, and when the second key parameter provided by the terminal is obtained, the second identification card is configured according to the first key and the second key parameters, so that the terminal can log in to the preset client through the second identification card.
[0135] Figure 6 is a block diagram of an identification card provided in an embodiment of the present application. Figure 6 As shown, the identification card includes the following modules:
[0136] The generating module 601 is used to generate random information in response to a key retrieval instruction sent by the service server.
[0137] A module 602 is provided for providing random information to a security server.
[0138] The second encryption module 603 is used to encrypt the random information using the first key parameter to obtain a second encryption result.
[0139] The third encryption module 604 is used to encrypt the first key using the first key parameter to obtain the second key when the first encryption result sent by the security server is received and the first encryption result is consistent with the second encryption result.
[0140] The first encryption result is a result obtained by the security server encrypting the random information obtained through the service server using the first key parameter obtained from the terminal.
[0141] The key sending module 605 is used to send the second key to the security server so that the security server can use the first key parameter to decrypt the second key to obtain the first key, and configure the second identification card according to the first key and the second key parameter provided by the terminal, so that the terminal can log in to the preset client through the second identification card.
[0142] In some possible implementations, the identification card also includes a number determination module and a response determination module, wherein the number determination module is used to determine the number of key retrieval instructions received within a preset time period; the response determination module is used to determine a response to the key retrieval instruction when the number is less than a preset threshold.
[0143] In some possible implementations, the identification card also includes a delayed response module and a rejection response module. The delayed response module is used to delay the response to the key retrieval instruction when the number of times is greater than or equal to a preset threshold, and the rejection response module is used to reject the response to the key retrieval instruction when the number of times is greater than or equal to the preset threshold.
[0144] In a third aspect, an embodiment of the present application provides a key retrieval system.
[0145] Figure 7 Schematic diagram of a key retrieval system provided in an embodiment of the present application. Figure 7 As shown, the key retrieval system includes: a terminal 701 , a security server 702 , a business server 703 , a first identification card 704 and a second identification card 705 .
[0146] Reference Figure 7After losing the first identification card 7054, the terminal 701 sends a key retrieval request to the service server 703. The service server 703 initiates identity authentication for the terminal 701, and after the terminal 701 passes the identity authentication, sends a key retrieval instruction to the first identification card 705 based on the signaling channel. In response to the key retrieval instruction, the first identification card 705 generates random information and provides the random information to the security server 702. The security server 702 obtains a first encryption result based on the random information and the first key parameter obtained through the terminal 701, and sends the first encryption result to the first identification card 704. The first identification card 704 receives the first encryption result, encrypts the random information using its built-in first key parameter, obtains a second encryption result, and compares the first encryption result with the second encryption result. When the two are consistent, the first key parameter is used to encrypt the first key to obtain the second key, and the second key is provided to the security server 702. The security server 702 uses the first key parameter to decrypt the second key to obtain the first key, and when the second key parameter provided by the terminal is obtained, the new identification card is configured according to the first key and the second key parameter to obtain the second identification card 705. The terminal 701 can log in to the preset client through the second identification card 705.
[0147] It should be noted that the key retrieval system may also include other devices or modules, which is not limited in the embodiments of the present application.
[0148] Figure 8 Schematic diagram of the working process of a key retrieval method provided in an embodiment of the present application. Figure 8 As shown, the working process of the key retrieval method includes:
[0149] Step S801: The terminal sends a key retrieval request to the service server.
[0150] Step S802: The service server performs identity authentication on the terminal in response to the key retrieval request.
[0151] Step S803: When the terminal passes the identity authentication, the service server sends a key retrieval instruction to the first identification card.
[0152] Step S804: the first identification card receives the key retrieval instruction, generates random information, and provides the random information to the security server.
[0153] Step S805: The security server obtains a first key parameter from the terminal.
[0154] Step S806: The security server encrypts the random information using the first key parameter to obtain a first encryption result, and sends the first encryption result to the first identification card.
[0155] Step S807: The first identification card encrypts the random information generated by it using the built-in first key parameter to obtain a second encryption result.
[0156] Step S808: The first identification card compares the first encryption result and the second result, and when the two are consistent, encrypts the first key using the first key parameter to obtain the second key, and sends the second key to the security server.
[0157] Step S809: The security server decrypts the second key using the first key parameter to obtain the first key.
[0158] Step S810: The terminal provides a second key parameter to the security server.
[0159] Step S811: The security server configures a second identification card according to the first key and the second key parameters, so that the terminal can log in to the preset client through the second identification card.
[0160] The functions or modules included in the device provided in the embodiments of the present application can be used to execute the method described in the first aspect method embodiment above. Its specific implementation and technical effects can refer to the description of the above method embodiment. For the sake of brevity, they will not be repeated here.
[0161] It should be noted that all modules involved in this embodiment are logic modules. In practical applications, a logic unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of this application, this embodiment does not introduce units that are not closely related to solving the technical problems proposed by this application, but this does not mean that there are no other units in this embodiment.
[0162] Reference Fig. 9 , an embodiment of the present application provides an electronic device, comprising:
[0163] One or more processors 901;
[0164] A memory 902 having one or more programs stored thereon, which, when executed by one or more processors, enables the one or more processors to implement any one of the above-mentioned key retrieval methods;
[0165] One or more I / O interfaces 903 are connected between the processor and the memory and are configured to implement information exchange between the processor and the memory.
[0166] Among them, the processor 901 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 902 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I / O interface (read-write interface) 903 is connected between the processor 901 and the memory 902, and can realize information interaction between the processor 901 and the memory 902, including but not limited to a data bus (Bus), etc.
[0167] In some embodiments, the processor 901 , the memory 902 , and the I / O interface 903 are connected to each other through a bus, and further connected to other components of the computing device.
[0168] This embodiment further provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the key retrieval method provided in this embodiment is implemented. To avoid repeated description, the specific steps of the key retrieval method are not repeated here.
[0169] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the invented method described above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0170] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0171] Those skilled in the art will understand that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features from different embodiments is meant to be within the scope of the present embodiment and to form different embodiments.
[0172] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present application, but the present application is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and substance of the present application, and these modifications and improvements are also considered to be within the scope of protection of the present application.
Claims
1. A key retrieval method, characterized in that: Applied to a security server, the method comprises: When the random information provided by the first identification card is obtained through the service server and the first key parameter is obtained through the terminal, the random information is encrypting using the first key parameter to obtain a first encryption result; The random information is forwarded to the security server by the service server after receiving the random information returned by the first identification card in response to the key retrieval instruction sent by the service server; or, the random information is sent to the security server by the first identification card in response to the key retrieval instruction; the key retrieval instruction is sent to the first identification card when the service server performs identity authentication on the terminal in response to the key retrieval request initiated by the terminal; The obtaining of the first key parameter through the terminal includes: obtaining the first key parameter provided by the terminal after receiving the information obtaining instruction sent by the business server; the obtained first key parameter is a key parameter input by the terminal to the security server through a preset security keyboard; or, after the terminal inputs the key parameter to the business server through a preset security keyboard, the key parameter is forwarded to the security server by the business server; sending the first encryption result to the first identification card; upon receiving a second key sent by the first identification card, decrypting the second key using the first key parameter to obtain a first key, wherein the second key is a key generated by encrypting the first key using the built-in first key parameter by the first identification card, and the first key is a key built into the first identification card; When the second key parameter provided by the terminal is obtained, configuring a second identification card according to the first key and the second key parameter, so that the terminal can log in to a preset client through the second identification card; The first encryption result is sent to the first identification card, so that the first identification card compares the first encryption result with the second decryption result, and when it is determined that the first encryption result and the second encryption result are consistent, the second key is sent to the security server, wherein the second encryption result is obtained by the first identification card encrypting the random information using the built-in first key parameters.
2. The key retrieval method according to claim 1, characterized in that: The decrypting the second key using the first key parameter to obtain the first key includes: The second key is decrypted using the first key parameter according to an algorithm pre-agreed with the first identification card to obtain the first key.
3. A key retrieval method, characterized in that: Applied to a business server, the method comprises: In response to a key retrieval request initiated by a terminal, authenticating the terminal; When the terminal passes the identity authentication, sending a key retrieval instruction to a first identification card, so that the first identification card provides random information to a security server, wherein the first identification card has a first key and a first key parameter built therein; The random information is forwarded to the security server by the service server after receiving the random information returned by the first identification card in response to the key retrieval instruction; or, the random information is sent to the security server by the first identification card in response to the key retrieval instruction; sending an information acquisition instruction to the terminal, so that the terminal provides a first key parameter to the security server according to the information acquisition instruction, so that the security server encrypts the random information using the first key parameter to obtain a first encryption result, and sends the first encryption result to the first identification card, and when receiving a second key sent by the first identification card, decrypts the second key using the first key parameter to obtain a first key, and when obtaining the second key parameter provided by the terminal, configures the second identification card according to the first key and the second key parameter, so that the terminal logs in to the preset client through the second identification card; The first encryption result is sent to the first identification card, so that the first identification card compares the first encryption result with the second decryption result, and when it is determined that the first encryption result and the second encryption result are consistent, the second key is sent to the security server, wherein the second encryption result is obtained by the first identification card encrypting the random information using the built-in first key parameters.
4. The key retrieval method according to claim 3, characterized in that: The step of sending a key retrieval instruction to the first identification card when the terminal passes the identity authentication, so that the first identification card provides random information to the security server, includes: When the terminal passes the identity authentication, sending the key retrieval instruction to the first identification card through a signaling channel; receiving the random information returned by the first identification card through the signaling channel; The random information is forwarded to the security server.
5. A key retrieval method, characterized in that: Applied to a first identification card, the first identification card having a first key and a first key parameter for logging into a preset client, the method includes: In response to a key retrieval instruction sent by a service server, generating random information; Providing the random information to a security server; The random information is forwarded to the security server by the service server after receiving the random information returned by the first identification card in response to the key retrieval instruction; or, the random information is sent to the security server by the first identification card in response to the key retrieval instruction; Encrypt the random information using the first key parameter to obtain a second encryption result; Upon receiving a first encryption result sent by the security server, and when the first encryption result is consistent with the second encryption result, encrypting the first key using the first key parameter to obtain a second key, wherein the first encryption result is a result obtained by the security server using the first key parameter obtained from the terminal to encrypt the random information obtained through the service server; The first key parameter obtained from the terminal is a key parameter input by the terminal to the security server through a preset security keyboard; or, after the terminal inputs the key parameter to the service server through a preset security keyboard, the key parameter is forwarded to the security server by the service server; The second key is sent to the security server so that the security server uses the first key parameter to decrypt the second key to obtain the first key, and configures the second identification card according to the first key and the second key parameter provided by the terminal, so that the terminal logs in to the preset client through the second identification card.
6. The key retrieval method according to claim 5, characterized in that: The method further comprises, before generating random information in response to the key retrieval instruction sent by the service server: Determining the number of key retrieval instructions received within a preset time period; When the number of times is less than a preset threshold, it is determined to respond to the key retrieval instruction.
7. The key retrieval method according to claim 6, characterized in that: After determining the number of times the key retrieval instruction is received within a preset time period, the method further includes: When the number of times is greater than or equal to the preset threshold, responding to the key retrieval instruction is delayed, or responding to the key retrieval instruction is refused.
8. A security server, characterized in that: include: A first encryption module is used to encrypt the random information provided by the first identification card by using the first key parameter to obtain a first encryption result when the random information is obtained by the service server and the first key parameter is obtained by the terminal; The random information is forwarded to the security server by the service server after receiving the random information returned by the first identification card in response to the key retrieval instruction sent by the service server; or, the random information is sent to the security server by the first identification card in response to the key retrieval instruction; the key retrieval instruction is sent to the first identification card when the service server performs identity authentication on the terminal in response to the key retrieval request initiated by the terminal; The obtaining of the first key parameter through the terminal includes: obtaining the first key parameter provided by the terminal after receiving the information obtaining instruction sent by the business server; the obtained first key parameter is a key parameter input by the terminal to the security server through a preset security keyboard; or, after the terminal inputs the key parameter to the business server through a preset security keyboard, the key parameter is forwarded to the security server by the business server; A result sending module, used for sending the first encryption result to the first identification card; a decryption module, configured to, upon receiving a second key sent by the first identification card, decrypt the second key using the first key parameter to obtain a first key, wherein the second key is a key generated by encrypting the first key by the first identification card using the built-in first key parameter, and the first key is a key built into the first identification card; a configuration module, configured to configure a second identification card according to the first key and the second key parameters when a second key parameter provided by the terminal is obtained, so that the terminal can log in to a preset client through the second identification card; The first encryption result is sent to the first identification card, so that the first identification card compares the first encryption result with the second decryption result, and when it is determined that the first encryption result and the second encryption result are consistent, the second key is sent to the security server, wherein the second encryption result is obtained by the first identification card encrypting the random information using the built-in first key parameters.
9. A business server, characterized in that: include: A verification module, configured to perform identity authentication on the terminal in response to a key retrieval request initiated by the terminal; An instruction sending module, used for sending a key retrieval instruction to a first identification card when the terminal passes identity authentication, so that the first identification card provides random information to a security server, wherein the first identification card has a first key and a first key parameter built therein; The random information is forwarded to the security server by the service server after receiving the random information returned by the first identification card in response to the key retrieval instruction; or the random information is sent to the security server by the first identification card in response to the key retrieval instruction; an indication sending module, used for sending an information acquisition indication to the terminal, so that the terminal provides a first key parameter to the security server according to the information acquisition indication, so that the security server encrypts the random information using the first key parameter to obtain a first encryption result, and sends the first encryption result to the first identification card, and when receiving a second key sent by the first identification card, decrypts the second key using the first key parameter to obtain a first key, and when obtaining the second key parameter provided by the terminal, configures the second identification card according to the first key and the second key parameter, so that the terminal logs in to the preset client through the second identification card; The first encryption result is sent to the first identification card, so that the first identification card compares the first encryption result with the second decryption result, and when it is determined that the first encryption result and the second encryption result are consistent, the second key is sent to the security server, wherein the second encryption result is obtained by the first identification card encrypting the random information using the built-in first key parameters.
10. An identification card, characterized in that: Applied to a first identification card, the first identification card has a first key and a first key parameter for logging into a preset client built in, the first identification card comprising: A generating module, used to generate random information in response to a key retrieval instruction sent by a service server; A providing module, configured to provide the random information to a security server; The random information is forwarded to the security server by the service server after receiving the random information returned by the first identification card in response to the key retrieval instruction; or the random information is sent to the security server by the first identification card in response to the key retrieval instruction; A second encryption module, used to encrypt the random information using the first key parameter to obtain a second encryption result; a third encryption module, configured to, upon receiving a first encryption result sent by the security server and the first encryption result is consistent with the second encryption result, encrypt the first key using the first key parameter to obtain a second key, wherein the first encryption result is a result obtained by the security server using the first key parameter obtained from the terminal to encrypt the random information obtained through the business server; The first key parameter obtained from the terminal is a key parameter input by the terminal to the security server through a preset security keyboard; or, after the terminal inputs the key parameter to the service server through a preset security keyboard, the key parameter is forwarded to the security server by the service server; A key sending module is used to send the second key to the security server so that the security server uses the first key parameter to decrypt the second key to obtain the first key, and configure the second identification card according to the first key and the second key parameter provided by the terminal, so that the terminal logs in to the preset client through the second identification card.
