Verification method, system, application platform, and terminal

A one-time verification code is generated through mutual authentication between the terminal and the core network key distribution function entity, which solves the problem of SMS verification code delay and hijacking, improves the security and response speed of verification, simplifies user operations, and improves User experience.

CN114449515BActive Publication Date: 2024-10-29CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011126283.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-20
Publication Date
2024-10-29
Estimated Expiration
2040-10-20

AI Technical Summary

Technical Problem

There is a delay in the SMS verification code verification method, and the verification code may be hijacked, leading to user information leakage, account risks, and poor user experience.

Method used

Using a one-time verification code and key identification, after mutual authentication between the terminal and the core network key distribution functional entity, a one-time verification code is generated and compared between the application platform and the terminal to reduce interaction and avoid verification codes SMS messages are intercepted, improving security and response speed.

Benefits of technology

It improves the verification security and response speed of the application platform to users, reduces the complexity of user operations, avoids the risk of interception of verification code text messages, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114449515B_ABST
    Figure CN114449515B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a verification method, system, application platform, and terminal, and relates to the field of communication technology. The method of the present disclosure includes: the application platform sends a verification request to the terminal in response to the service request of the terminal; the application platform receives the verification information sent by the terminal, wherein the verification information includes a one-time verification code and a key identifier, the one-time verification code is generated by using the session key between the terminal and the application platform as a parameter through a one-time password algorithm, and the session key and the key identifier are obtained after the terminal and the core network key distribution function entity perform mutual authentication; the application platform obtains the session key between the terminal and the application platform from the core network key distribution function entity according to the key identifier; the application platform generates a one-time verification code according to the pre-configured one-time password algorithm corresponding to the terminal and the obtained session key, and compares it with the one-time verification code sent by the terminal to determine the verification result; the application platform returns the verification result to the terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a verification method, system, application platform, and terminal. Background Art

[0002] With the development of Internet technology, various Internet applications have emerged to provide services for people and enrich their lives.

[0003] In order to ensure the security of user data, users need to verify their identities when logging into various application platforms. Currently, a commonly used verification method is that the application platform sends a text message verification code, and the user enters the verification code for verification. Summary of the invention

[0004] The inventors have discovered that the SMS verification code verification method is not very convenient to use because sometimes the SMS delay is long or the user may not receive the verification code. The SMS verification code may be hijacked, resulting in the leakage of user information and the risk of user account.

[0005] A technical problem to be solved by the present disclosure is to improve the security of user authentication by the application platform, and to enhance the response speed and user experience.

[0006] According to some embodiments of the present disclosure, a verification method is provided, comprising: an application platform sends a verification request to a terminal in response to a service request of the terminal; the application platform receives verification information sent by the terminal, wherein the verification information includes a one-time verification code and a key identifier, the one-time verification code is generated by a one-time password algorithm using a session key between the terminal and the application platform as a parameter, and the session key and the key identifier are obtained after the terminal and a core network key distribution function entity perform mutual authentication; the application platform obtains the session key between the terminal and the application platform from the core network key distribution function entity according to the key identifier; the application platform generates a one-time verification code according to a pre-configured one-time password algorithm corresponding to the terminal and the obtained session key, and compares the one-time verification code with the one-time verification code sent by the terminal to determine the verification result; the application platform returns the verification result to the terminal.

[0007] In some embodiments, the application platform obtains the session key between the terminal and the application platform from the core network key distribution function entity according to the key identifier, including: the application platform locally searches for the corresponding session key and the validity period of the session key according to the key identifier; when the application platform fails to find the session key between the terminal and the application platform or the validity period of the session key has expired, the application platform sends a key acquisition request to the core network key distribution function entity, wherein the key acquisition request includes: the key identifier, and receives the session key between the terminal and the application platform returned by the core network key distribution function entity; when the application platform finds the session key between the terminal and the application platform and the validity period of the session key has not expired, the application platform uses the found session key as the session key between the terminal and the application platform.

[0008] In some embodiments, the one-time verification code in the verification information is encrypted using the session key between the terminal and the application platform; after the application platform obtains the session key between the terminal and the application platform from the core network key distribution function entity according to the key identifier, it also includes: the application platform uses the obtained session key to decrypt the encrypted one-time verification code to obtain the one-time verification code.

[0009] In some embodiments, the verification information also includes a random number, or the application platform generates a random number, adds it to the verification request and sends it to the terminal; the application platform generates a one-time verification code based on a pre-configured one-time password algorithm corresponding to the terminal and a session key between the terminal and the application platform, including: the application platform obtains multiple timestamps within a preset time range at the current time point; for each timestamp, the application platform uses the timestamp, random number and session key as parameters, and uses a hash algorithm to generate a one-time verification code.

[0010] In some embodiments, comparing with the one-time verification code sent by the terminal to determine the verification result includes: the application platform compares each one-time verification code generated with the one-time verification code sent by the terminal, and when one of the one-time verification codes generated by the application platform is consistent with the one-time verification code sent by the terminal, it is determined that the verification is successful.

[0011] In some embodiments, mutual authentication between the terminal and the core network key distribution function entity is achieved through a general bootstrapping architecture GBA authentication process, or an application authentication and key management AKMA authentication process.

[0012] According to some other embodiments of the present disclosure, a verification method is provided, comprising: a terminal receives a verification request sent by an application platform, wherein the verification request is sent by the service platform in response to a service request of the terminal; the terminal obtains a session key between the terminal and the application platform; the terminal uses the session key as a parameter to generate a one-time verification code through a pre-configured one-time password algorithm corresponding to the application platform; the terminal sends verification information to the application platform, wherein the verification information includes the one-time verification code and a key identifier, and the session key and the key identifier are obtained after the terminal and a core network key distribution function entity perform mutual authentication; the terminal receives a verification result sent by the application platform, wherein the verification result is a result of the application platform generating a one-time verification code according to a pre-configured one-time password algorithm corresponding to the terminal and a session key between the terminal and the application platform obtained from the core network key distribution function entity according to the key identifier, and comparing the one-time verification code with the one-time verification code sent by the terminal.

[0013] In some embodiments, the terminal obtains the session key between the terminal and the application platform, including: the terminal searches for the session key between the terminal and the application platform and the corresponding validity period in the user card; when the validity period of the session key has not expired, the terminal uses the found session key between the terminal and the application platform as the session key between the terminal and the application platform; when the validity period of the session key has expired, the terminal re-authenticates with the core network key distribution function entity and generates a new session key as the session key between the terminal and the application platform.

[0014] In some embodiments, the terminal sending verification information to the application platform includes: the terminal encrypting the generated one-time verification code using a session key, adding the encrypted one-time verification code and the key identifier to the verification information, and sending the verification information to the application platform.

[0015] In some embodiments, the terminal uses the session key as a parameter and generates a one-time verification code through a pre-configured one-time password algorithm corresponding to the application platform, including: the terminal generates a random number or receives a random number sent by the application platform; the terminal uses the timestamp, random number and session key of the current time point as parameters and uses a hash algorithm to generate a one-time verification code.

[0016] According to some other embodiments of the present disclosure, an application platform is provided, comprising: a first sending module, used to send a verification request to a terminal in response to a service request of the terminal; a receiving module, used to receive verification information sent by the terminal, wherein the verification information includes a one-time verification code and a key identifier, and the one-time verification code is generated by a one-time password algorithm using a session key between the terminal and the application platform as a parameter, and the session key and the key identifier are obtained after the terminal and a core network key distribution function entity perform mutual authentication; an acquisition module, used to obtain the session key between the terminal and the application platform from the core network key distribution function entity according to the key identifier; a determination module, used to generate a one-time verification code according to a pre-configured one-time password algorithm corresponding to the terminal and the acquired session key, and compare the one-time verification code with the one-time verification code sent by the terminal to determine the verification result; and a second sending module, used to return the verification result to the terminal.

[0017] According to some further embodiments of the present disclosure, a terminal is provided, comprising: a first receiving module, used to receive a verification request sent by an application platform, wherein the verification request is sent by a service platform in response to a service request of the terminal; an obtaining module, used to obtain a session key between the terminal and the application platform; a generating module, used to generate a one-time verification code by using a one-time password algorithm pre-configured corresponding to the application platform, taking the session key as a parameter; a sending module, used to send verification information to the application platform, wherein the verification information includes a one-time verification code and a key identifier, and the session key and the key identifier are obtained after mutual authentication between the terminal and a core network key distribution function entity; a second receiving module, used to receive a verification result sent by the application platform, wherein the verification result is a result of the application platform generating a one-time verification code according to a pre-configured one-time password algorithm corresponding to the terminal and the session key between the terminal and the application platform obtained from the core network key distribution function entity according to the key identifier, and comparing the one-time verification code with the one-time verification code sent by the terminal.

[0018] According to some further embodiments of the present disclosure, a verification system is provided, comprising: the application platform of any of the aforementioned embodiments and the terminal of any of the aforementioned embodiments.

[0019] In some embodiments, the system further includes: a core network key distribution function entity, configured to send a session key between the terminal and the application platform to the application platform.

[0020] In some embodiments, the core network key distribution functional entity is used to perform mutual authentication with the terminal, generate a key identifier, and send it to the terminal; receive a key acquisition request sent by the application platform, generate a session key between the terminal and the application platform, and send it to the application platform.

[0021] According to some further embodiments of the present disclosure, an electronic device is provided, including: a processor; and a memory coupled to the processor, for storing instructions, which, when executed by the processor, causes the processor to execute a verification method as described in any of the aforementioned embodiments.

[0022] According to some further embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, on which a computer program is stored, wherein the program, when executed by a processor, implements the verification method of any of the aforementioned embodiments.

[0023] In the present disclosure, the terminal uses the session key between the terminal and the application platform as a parameter to generate a one-time verification code through a one-time password algorithm, and sends it to the application platform together with the key identifier. The session key and key identifier are obtained after the terminal and the core network key distribution function entity perform mutual authentication. The application platform obtains the session key between the terminal and the application platform from the core network key distribution function entity through the key identifier, and then uses the one-time password algorithm corresponding to the terminal and the obtained session key to generate a one-time verification code, which is compared with the one-time verification code sent by the terminal to verify the terminal. The application platform does not need to send a verification code to the terminal through SMS or other means, but generates a local verification code based on the session key generated by mutual authentication between the terminal and the core network key distribution function entity, which reduces the interaction between the application platform and the terminal, avoids the possibility of the verification code SMS being intercepted, responds quickly and improves security. In addition, the verification code is automatically generated by the terminal during the entire verification process, and the user does not need to enter the verification code, which reduces the user's operation complexity and improves the user experience.

[0024] Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0026] Figure 1 A flowchart illustrating a verification method according to some embodiments of the present disclosure is shown.

[0027] Figure 2 A schematic flowchart showing verification methods according to other embodiments of the present disclosure is shown.

[0028] Figure 3 A schematic diagram showing the structure of an application platform of some embodiments of the present disclosure.

[0029] Figure 4 A schematic diagram showing the structure of a terminal according to some embodiments of the present disclosure.

[0030] Figure 5 A schematic diagram showing the structure of a verification system according to some embodiments of the present disclosure.

[0031] Figure 6 A schematic diagram showing the structure of an electronic device according to some embodiments of the present disclosure.

[0032] Figure 7 A schematic diagram showing the structure of an electronic device according to some other embodiments of the present disclosure. DETAILED DESCRIPTION

[0033] The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present disclosure and its application or use. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0034] This disclosure proposes a verification method, which is combined with Figures 1-2 Give a description.

[0035] Figure 1 Flowcharts of some embodiments of the verification method disclosed herein. Figure 1 As shown, the method of this embodiment includes: steps S102 to S116.

[0036] In step S102, the terminal sends a service request to the application platform.

[0037] For example, a user operates an application (APP) on a terminal, triggering the terminal to send a service request to an application platform through the application. The service request may be a login request, etc.

[0038] In step S104, the application platform sends a verification request to the terminal in response to the service request of the terminal, and correspondingly, the terminal receives the verification request sent by the application platform.

[0039] The verification request may include information instructing the terminal to send a one-time verification code.

[0040] In step S106, the terminal obtains a session key between the terminal and the application platform.

[0041] The session key is obtained after the terminal and the core network key distribution function entity perform mutual authentication. For example, the mutual authentication between the terminal and the core network key distribution function entity is achieved through the GBA (Generic Bootstrapping Architecture) authentication process or the AKMA (Authentication and Key Management for Applications) authentication process. The core network key distribution function entity is, for example, a BSF (Bootstrapping Serve Function) network element or an AAnF (AKMA anchor function). The session key between the terminal and the application platform is, for example, Ks_NAF in the GBA process, or K in the AKMA process. AF The GBA and AKMA processes can refer to existing standards and can be implemented through the interaction between the terminal, user card and the core network key distribution function entity, which will not be described in detail here.

[0042] In step S108, the terminal uses the session key as a parameter and generates a one-time verification code through a pre-configured one-time password algorithm corresponding to the application platform.

[0043] The terminal can generate a one-time verification code through the OTP (One Time Password) algorithm. In some embodiments, the terminal generates a random number or receives a random number sent by the application platform; the timestamp, random number and session key of the current time point are used as parameters, and a hash algorithm is used to generate a one-time verification code. If the terminal generates a random number, the random number is added to the application platform sent in the verification information. If the application platform generates a random number, it can be sent to the terminal through a verification request. For example, the terminal uses the SHA1 algorithm to calculate SHA1{K, random, timestamp}, and the left 32 or 48 bits of the obtained value are formed into a 4-bit or 6-bit verification code, not limited to the examples given.

[0044] In step S110, the terminal sends verification information to the application platform, and correspondingly, the application platform receives the verification information sent by the terminal.

[0045] The verification information includes a one-time verification code and a key identifier. The key identifier is obtained after the terminal and the core network key distribution function entity perform mutual authentication, such as obtaining the key identifier through the GBA authentication process or the AKMA authentication process. For example, the key identifier is the B-TID (Bootstrapping Transaction Identifier) ​​in the GBA authentication process or the A-KID (AKMA Key Identifier) ​​in the AKMA authentication process. The key identifier uniquely corresponds to the session key between the terminal and the application platform.

[0046] In step S112, the application platform obtains the session key between the terminal and the application platform from the core network key distribution function entity according to the key identifier.

[0047] In some embodiments, the application platform sends a key acquisition request to the core network key distribution function entity, wherein the key acquisition request includes: a key identifier, and receives a session key between the terminal and the application platform returned by the core network key distribution function entity. The key acquisition request may also include an application platform identifier. For example, in the GBA authentication process or the AKMA authentication process, the core network key distribution function entity first generates a key identifier and a root key of the terminal, the root key is, for example, Ks in the GBA process, or K in the AKMA process. ASUF , the terminal also generates a root key. The terminal generates a session key between the terminal and the application platform based on the root key and the identification of the application platform. After receiving the key acquisition request, the application platform searches for the root key corresponding to the terminal stored locally based on the key identification, and generates a session key between the terminal and the application platform based on the root key found and the identification of the application platform.

[0048] In step S114, the application platform generates a one-time verification code according to a pre-configured one-time password algorithm corresponding to the terminal and the acquired session key, and compares it with the one-time verification code sent by the terminal to determine the verification result.

[0049] The application platform and the terminal pre-negotiate a one-time password algorithm, and pre-configure a one-time password algorithm corresponding to the terminal. In some embodiments, the verification information also includes a random number, or the application platform generates a random number and adds it to the verification request and sends it to the terminal. The application platform obtains multiple timestamps within a preset time range at the current time point; for each timestamp, the application platform uses the timestamp, random number and session key as parameters, and uses a hash algorithm to generate a one-time verification code. The application platform compares each generated one-time verification code with the one-time verification code sent by the terminal. If one of the one-time verification codes generated by the application platform is consistent with the one-time verification code sent by the terminal, it is determined that the verification is successful, otherwise, the verification fails. For example, the application platform uses the same algorithm as in the aforementioned embodiment, using the SHA1 algorithm, calculates SHA1{K, random, timestamp}, and forms a 4-bit or 6-bit verification code with the left 32 or 48 bits of the obtained value.

[0050] In step S116, the application platform returns the verification result to the terminal, and correspondingly, the terminal receives the verification result sent by the application platform.

[0051] If the terminal verification is passed, the user can log in to the application to perform business operations.

[0052] In the above embodiment, the terminal uses the session key between the terminal and the application platform as a parameter to generate a one-time verification code through a one-time password algorithm, and sends it to the application platform together with the key identifier. The session key and key identifier are obtained after the terminal and the core network key distribution function entity perform mutual authentication. The application platform obtains the session key between the terminal and the application platform from the core network key distribution function entity through the key identifier, and then uses the one-time password algorithm corresponding to the terminal and the obtained session key to generate a one-time verification code, which is compared with the one-time verification code sent by the terminal to verify the terminal. The application platform does not need to send a verification code to the terminal through SMS or other means, but generates a local verification code based on the session key generated by mutual authentication between the terminal and the core network key distribution function entity, which reduces the interaction between the application platform and the terminal, avoids the possibility of the verification code SMS being intercepted, responds quickly and improves security. In addition, the verification code is automatically generated by the terminal during the entire verification process, and the user does not need to enter the verification code, which reduces the user's operation complexity and improves the user experience.

[0053] Combine the following Figure 2 Other embodiments of the authentication method disclosed herein are described.

[0054] Figure 2 Flowcharts of other embodiments of the verification method disclosed in the present invention. Figure 2 As shown, the method of this embodiment includes: steps S202 to S226.

[0055] In step S202, the terminal sends a service request to the application platform.

[0056] In step S204, the application platform sends a verification request to the terminal, requiring the terminal to send a verification code.

[0057] In step S206, the terminal searches the user card for the session key between the terminal and the application platform and the corresponding validity period. If the validity period of the session key has not expired, step S208 is executed; otherwise, step S210 is executed.

[0058] The process of calculating the one-time verification code by the terminal can be triggered by a verification request sent by the application platform or by software. The validity period corresponding to the session key between the terminal and the application platform is generated during the mutual authentication process between the terminal and the core network key distribution function entity. For example, when the core network key distribution function entity generates the root key, it generates the validity period of the session key and sends it to the terminal.

[0059] In step S208, when the validity period of the session key has not expired, the terminal uses the found session key between the terminal and the application platform as the session key between the terminal and the application platform.

[0060] In step S210, when the validity period of the session key has expired, the terminal re-authenticates with the core network key distribution function entity and generates a new session key as the session key between the terminal and the application platform.

[0061] The process of the terminal and the core network key distribution function entity re-authenticating each other and generating a new session key can refer to the GBA authentication process or the AKMA authentication process.

[0062] In step S212, the terminal uses the session key as a parameter and generates a one-time verification code through a pre-configured one-time password algorithm corresponding to the application platform.

[0063] In step S214, the terminal encrypts the one-time verification code using the session key between the terminal and the application platform, adds the encrypted one-time verification code and the key identifier to the verification information, and sends the verification information to the application platform.

[0064] In step S216, the application platform searches for the corresponding session key and the validity period of the session key locally according to the key identifier. If the session key between the terminal and the application platform is not found or the validity period of the session key has expired, step S218 is executed; otherwise, step S220 is executed.

[0065] The application platform can also search for the corresponding session key and the validity period of the session key locally according to the terminal identifier. After the application platform obtains the session key and the corresponding validity period corresponding to the terminal from the core network key distribution function entity for the first time, it can store them in correspondence with the key identifier and / or the terminal identifier.

[0066] In step S218, if the application platform fails to find the session key between the terminal and the application platform or the validity period of the session key has expired, the application platform sends a key acquisition request to the core network key distribution function entity, and receives the session key between the terminal and the application platform returned by the core network key distribution function entity.

[0067] In step S220, when the application platform finds the session key between the terminal and the application platform and the validity period of the session key has not expired, the application platform uses the found session key as the session key between the terminal and the application platform.

[0068] The application platform can monitor the validity period of the session key, and the terminal will also monitor the validity period of the session key. If the terminal finds that the validity period of the session key has expired, it will re-authenticate with the core network key distribution function entity and generate a new session key. If the application platform finds that the validity period of the session key has expired, it will wait for the terminal to obtain the new session key and send the corresponding key identifier, and then obtain the session key from the core network key distribution function entity based on the key identifier.

[0069] In step S222, the application platform generates a one-time verification code according to a pre-configured one-time password algorithm corresponding to the terminal and the acquired session key.

[0070] In step S224, the application platform decrypts the encrypted one-time verification code in the verification information using the session key between the terminal and the application platform, and compares the decrypted one-time verification code with the generated one-time verification code to determine the verification result.

[0071] In step S226, the application platform sends the verification result to the terminal.

[0072] If the verification is successful, the business is allowed to proceed.

[0073] In the above embodiments, the session key between the terminal and the application platform is used to generate and encrypt the one-time verification code. In other embodiments, the terminal and the application platform use the same pre-configured dispersion algorithm to disperse multiple dispersion keys based on the session key between the terminal and the application platform. The terminal selects a dispersion key to generate the one-time verification code and selects another dispersion key to encrypt the one-time verification code. The process of generating the one-time verification code refers to the above embodiments.

[0074] Furthermore, the verification information sent by the terminal to the application platform includes the encrypted one-time verification code, the identifier of the decentralized key for generating the one-time verification code, and the identifier of the decentralized key used for encryption. After the application platform obtains the session key between the terminal and the application platform from the core network key distribution function entity according to the key identifier, it generates a first decentralized key and a second decentralized key corresponding to the decentralized key for generating the one-time verification code and the decentralized key used for encryption based on the session key, the identifier of the decentralized key for generating the one-time verification code, and the identifier of the decentralized key used for encryption. The application platform generates a one-time verification code according to the pre-configured one-time password algorithm corresponding to the terminal and the first decentralized key, decrypts the encrypted one-time verification code using the second decentralized key, and compares the generated one-time verification code with the one-time verification code obtained by decryption to determine the verification result.

[0075] The above-mentioned Figure 1 and 2 The session keys in the corresponding embodiments can be replaced by any distributed key of the terminal and the application platform, which will not be described in detail here.

[0076] The present disclosure proposes a method for generating an OTP verification code based on a key distribution system in an operator's LTE / NG network. The verification code will not be transmitted through the network, but will be generated locally, without a large amount of delay or hijacking by the network. The solution may involve user cards (e.g., USIM cards), terminals (SDK can be used to generate one-time verification codes), 4G / 5G core network key distribution function entities (BSF / AUSF), application platforms, etc. When the terminal sends a service request to the application platform, the application platform may request verification. After receiving the verification request, the terminal checks the session key in the user card (e.g., Ks_NAF or K AF ) is expired. If it is expired, after GBA or AKMA authentication, obtain a new Ks_NAF or K AF ; If it has not expired, use the existing Ks_NAF or K AF The required OTP verification code is obtained by making corresponding changes. The verification code can be displayed on the screen (retaining the original user experience of the SMS verification code) or not, and then sent to the application platform together with the key identifier (for example, BTID in the GBA process or A-KID in the AKMA process), and the OTP verification code can be encrypted; the application platform obtains a new Ks_NAF or K AF Or find Ks_NAF or K in the lifetime on your platform AF , perform the same algorithm calculation, obtain the OTP verification code, and compare it with the application side. This method can also be used in the scenario where a personal computer (PC) displays a QR code, a terminal scans the QR code to log in, and uses a verification code.

[0077] Compared with the existing SMS verification code method, the disclosed solution has a faster and more reliable response speed and higher security. After the terminal generates the verification code locally, it can use the key in the GBA or AKMA architecture to encrypt it when sending it to the application platform, thereby enhancing the confidentiality of the return transmission.

[0078] The present disclosure also provides an application platform. Figure 3 Give a description.

[0079] Figure 3 Figure 1 is a structural diagram of some embodiments of the application platform disclosed herein. Figure 3 As shown, the application platform 30 of this embodiment includes: a first sending module 310 , a receiving module 320 , an acquisition module 330 , a determination module 340 , and a second sending module 350 .

[0080] The first sending module 310 is configured to send a verification request to the terminal in response to a service request of the terminal.

[0081] The receiving module 320 is used to receive the verification information sent by the terminal, wherein the verification information includes a one-time verification code and a key identifier. The one-time verification code is generated by a one-time password algorithm using the session key between the terminal and the application platform as a parameter. The session key and the key identifier are obtained after the terminal and the core network key distribution function entity perform mutual authentication.

[0082] In some embodiments, mutual authentication between the terminal and the core network key distribution function entity is achieved through a general bootstrapping architecture GBA authentication process, or an application authentication and key management AKMA authentication process.

[0083] The acquisition module 330 is used to obtain the session key between the terminal and the application platform from the core network key distribution function entity according to the key identifier.

[0084] In some embodiments, the acquisition module 330 is used to locally search for the corresponding session key and the validity period of the session key according to the key identifier, and when the session key between the terminal and the application platform is not found or the validity period of the session key has expired, send a key acquisition request to the core network key distribution function entity, wherein the key acquisition request includes: the key identifier, and receives the session key between the terminal and the application platform returned by the core network key distribution function entity; when the session key between the terminal and the application platform is found and the validity period of the session key has not expired, the found session key is used as the session key between the terminal and the application platform.

[0085] The determination module 340 is used to generate a one-time verification code according to a pre-configured one-time password algorithm corresponding to the terminal and the acquired session key, and compare it with the one-time verification code sent by the terminal to determine the verification result.

[0086] In some embodiments, the one-time verification code in the verification information is encrypted using a session key between the terminal and the application platform; the determination module 340 is further configured to decrypt the encrypted one-time verification code using the acquired session key to obtain the one-time verification code.

[0087] In some embodiments, the verification information also includes a random number, or the first sending module 310 is also used to generate a random number and add it to the verification request and send it to the terminal; the determination module 340 is used to obtain multiple timestamps within a preset time range at the current time point; for each timestamp, the timestamp, random number and session key are used as parameters, and a hash algorithm is used to generate a one-time verification code.

[0088] In some embodiments, the determination module 340 is used to compare each one-time verification code generated with the one-time verification code sent by the terminal, and determine that the verification is successful when one of the one-time verification codes generated by the application platform is consistent with the one-time verification code sent by the terminal.

[0089] The second sending module 350 is used to return the verification result to the terminal.

[0090] The present disclosure also provides a terminal, Figure 4 Give a description.

[0091] Figure 4 FIG. 1 is a structural diagram of some embodiments of the terminal disclosed in the present invention. Figure 4 As shown, the terminal 40 of this embodiment includes: a first receiving module 410 , an acquiring module 420 , a generating module 430 , a sending module 440 , and a second receiving module 450 .

[0092] The first receiving module 410 is used to receive a verification request sent by the application platform, wherein the verification request is sent by the business platform in response to the business request of the terminal.

[0093] The acquisition module 420 is used to acquire the session key between the terminal and the application platform.

[0094] In some embodiments, the acquisition module 420 is used to search for the session key between the terminal and the application platform and the corresponding validity period in the user card. When the validity period of the session key has not expired, the found session key between the terminal and the application platform is used as the session key between the terminal and the application platform; when the validity period of the session key has expired, mutual authentication is re-performed with the core network key distribution function entity and a new session key is generated as the session key between the terminal and the application platform.

[0095] The generating module 430 is used to generate a one-time verification by taking the session key as a parameter and using a one-time password algorithm pre-configured corresponding to the application platform.

[0096] In some embodiments, the generation module 430 is used to generate a random number or receive a random number sent by an application platform; the timestamp of the current time point, the random number and the session key are used as parameters, and a hash algorithm is used to generate a one-time verification code.

[0097] The sending module 440 is used to send verification information to the application platform, wherein the verification information includes a one-time verification code and a key identifier, and the session key and the key identifier are obtained after the terminal and the core network key distribution function entity perform mutual authentication.

[0098] In some embodiments, the sending module 440 is used to encrypt the generated one-time verification code using a session key, add the encrypted one-time verification code and the key identifier to the verification information, and send it to the application platform.

[0099] The second receiving module 450 is used to receive the verification result sent by the application platform, wherein the verification result is a result obtained by the application platform generating a one-time verification code according to a pre-configured one-time password algorithm corresponding to the terminal and a session key between the terminal and the application platform obtained from the core network key distribution function entity according to the key identifier, and comparing the one-time verification code sent by the terminal.

[0100] The present disclosure also provides a verification system, Figure 5 Give a description.

[0101] Figure 5 FIG. 1 is a structural diagram of some embodiments of the verification system disclosed in the present invention. Figure 5 As shown, the verification system 5 of this embodiment includes: the application platform 30 of any of the aforementioned embodiments and the terminal 40 of any of the aforementioned embodiments.

[0102] In some embodiments, the system 5 further includes: a core network key distribution function entity 52 , configured to send a session key between the terminal 40 and the application platform 30 to the application platform 30 .

[0103] In some embodiments, the core network key distribution functional entity 52 is used to perform mutual authentication with the terminal 40, generate a key identifier, and send it to the terminal; receive a key acquisition request sent by the application platform 30, generate a session key between the terminal 40 and the application platform 30, and send it to the application platform 30.

[0104] In some embodiments, the terminal 40 also includes a user card for storing a session key with the application platform 30 and performing mutual authentication with the core network key distribution function entity 52. ​​The terminal 40 also includes an application, corresponding to the application platform, and the information interacted between the terminal and the application platform can be sent through the application, which will not be described in detail.

[0105] The electronic devices in the embodiments of the present disclosure, such as application platforms, terminals, core network key distribution function entities, etc., can be implemented by various computing devices or computer systems. Figure 6 as well as Figure 7 Give a description.

[0106] Figure 6 FIG. 1 is a structural diagram of some embodiments of the electronic device disclosed in the present invention. Figure 6 As shown, the electronic device 60 of this embodiment includes: a memory 610 and a processor 620 coupled to the memory 610 , and the processor 620 is configured to execute the verification method in any of some embodiments of the present disclosure based on the instructions stored in the memory 610 .

[0107] The memory 610 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, a database, and other programs.

[0108] Figure 7 FIG. 2 is a structural diagram of some other embodiments of the electronic device disclosed in the present invention. Figure 7 As shown, the electronic device 70 of this embodiment includes: a memory 710 and a processor 720, which are similar to the memory 610 and the processor 620 respectively. It can also include an input and output interface 730, a network interface 740, a storage interface 750, etc. These interfaces 730, 740, 750 and the memory 710 and the processor 720 can be connected, for example, via a bus 760. Among them, the input and output interface 730 provides a connection interface for input and output devices such as a display, a mouse, a keyboard, and a touch screen. The network interface 740 provides a connection interface for various networked devices, for example, it can be connected to a database server or a cloud storage server. The storage interface 750 provides a connection interface for external storage devices such as SD cards and USB flash drives.

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

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

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

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

[0113] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure should be included in the protection scope of the present disclosure.

Claims

1. A verification method, comprising: The application platform sends a verification request to the terminal in response to the service request of the terminal; The application platform receives verification information sent by the terminal, wherein the verification information includes a one-time verification code and a key identifier, the one-time verification code is generated by a one-time password algorithm using a session key between the terminal and the application platform as a parameter, and the session key and the key identifier are obtained after the terminal and a core network key distribution function entity perform mutual authentication; The application platform obtains the session key between the terminal and the application platform from a core network key distribution function entity according to the key identifier; The application platform generates a one-time verification code according to a pre-configured one-time password algorithm corresponding to the terminal and the acquired session key, and compares the one-time verification code with the one-time verification code sent by the terminal to determine a verification result; The application platform returns a verification result to the terminal.

2. The verification method according to claim 1, wherein: The application platform obtaining the session key between the terminal and the application platform from the core network key distribution function entity according to the key identifier includes: The application platform searches locally for the corresponding session key and the validity period of the session key according to the key identifier; When the session key between the terminal and the application platform is not found or the validity period of the session key has expired, the application platform sends a key acquisition request to the core network key distribution function entity, wherein the key acquisition request includes: the key identifier, and receives the session key between the terminal and the application platform returned by the core network key distribution function entity; When the application platform finds the session key between the terminal and the application platform and the validity period of the session key has not expired, the application platform uses the found session key as the session key between the terminal and the application platform.

3. The verification method according to claim 1, wherein: The one-time verification code in the verification information is encrypted using a session key between the terminal and the application platform; After the application platform obtains the session key between the terminal and the application platform from the core network key distribution function entity according to the key identifier, the method further includes: The application platform decrypts the encrypted one-time verification code using the acquired session key to obtain the one-time verification code.

4. The verification method according to claim 1, wherein: The verification information also includes a random number, or the application platform generates a random number and adds it to the verification request and sends it to the terminal; The application platform generates a one-time verification code according to a pre-configured one-time password algorithm corresponding to the terminal and a session key between the terminal and the application platform, including: The application platform obtains multiple timestamps within a preset time range of the current time point; For each timestamp, the application platform uses the timestamp, the random number and the session key as parameters and adopts a hash algorithm to generate a one-time verification code.

5. The verification method according to claim 4, wherein: The comparing with the one-time verification code sent by the terminal to determine the verification result includes: The application platform compares each one-time verification code generated with the one-time verification code sent by the terminal, and determines that the verification is successful when one of the one-time verification codes generated by the application platform is consistent with the one-time verification code sent by the terminal.

6. The verification method according to any one of claims 1 to 5, wherein: The mutual authentication between the terminal and the core network key distribution function entity is achieved through a general bootstrapping architecture GBA authentication process, or an application authentication and key management AKMA authentication process.

7. A verification method, comprising: The terminal receives a verification request sent by the application platform, wherein the verification request is sent by the application platform in response to a service request of the terminal; The terminal obtains a session key between the terminal and the application platform; The terminal uses the session key as a parameter to generate a one-time verification code through a pre-configured one-time password algorithm corresponding to the application platform; The terminal sends verification information to the application platform, wherein the verification information includes the one-time verification code and the key identifier, and the session key and the key identifier are obtained after the terminal and the core network key distribution function entity perform mutual authentication; The terminal receives a verification result sent by the application platform, wherein the verification result is a result obtained by the application platform generating a one-time verification code according to a one-time password algorithm pre-configured corresponding to the terminal and a session key between the terminal and the application platform obtained from a core network key distribution function entity according to the key identifier, and comparing the one-time verification code with the one-time verification code sent by the terminal.

8. The verification method according to claim 7, wherein: The terminal obtaining the session key between the terminal and the application platform includes: The terminal searches the user card for a session key between the terminal and the application platform, and a corresponding validity period; When the validity period of the session key has not expired, the terminal uses the found session key between the terminal and the application platform as the session key between the terminal and the application platform; When the validity period of the session key has expired, the terminal re-authenticates with the core network key distribution function entity and generates a new session key as the session key between the terminal and the application platform.

9. The verification method according to claim 7, wherein: The terminal sending verification information to the application platform includes: The terminal encrypts the generated one-time verification code using the session key, adds the encrypted one-time verification code and the key identifier to the verification information, and sends the encrypted one-time verification code to the application platform.

10. The verification method according to claim 7, wherein: The terminal uses the session key as a parameter and generates a one-time verification code through a pre-configured one-time password algorithm corresponding to the application platform, including: The terminal generates a random number or receives a random number sent by the application platform; The terminal uses the timestamp of the current time point, the random number and the session key as parameters and adopts a hash algorithm to generate a one-time verification code.

11. An application platform, comprising: A first sending module, configured to send a verification request to the terminal in response to a service request of the terminal; a receiving module, configured to receive verification information sent by the terminal, wherein the verification information includes a one-time verification code and a key identifier, the one-time verification code is generated by a one-time password algorithm using a session key between the terminal and the application platform as a parameter, and the session key and the key identifier are obtained after the terminal and a core network key distribution function entity perform mutual authentication; An acquisition module, configured to acquire a session key between the terminal and the application platform from a core network key distribution function entity according to the key identifier; A determination module, configured to generate a one-time verification code according to a pre-configured one-time password algorithm corresponding to the terminal and the acquired session key, and compare the one-time verification code with the one-time verification code sent by the terminal to determine a verification result; The second sending module is used to return the verification result to the terminal.

12. A terminal, comprising: A first receiving module, configured to receive a verification request sent by an application platform, wherein the verification request is sent by the application platform in response to a service request of the terminal; An acquisition module, used to acquire a session key between the terminal and the application platform; A generating module, configured to use the session key as a parameter and generate a one-time verification code through a pre-configured one-time password algorithm corresponding to the application platform; A sending module, configured to send verification information to the application platform, wherein the verification information includes the one-time verification code and the key identifier, and the session key and the key identifier are obtained after the terminal and the core network key distribution function entity perform mutual authentication; The second receiving module is used to receive the verification result sent by the application platform, wherein the verification result is a result obtained by the application platform generating a one-time verification code according to a one-time password algorithm pre-configured corresponding to the terminal and a session key between the terminal and the application platform obtained from a core network key distribution function entity according to the key identifier, and comparing the one-time verification code sent by the terminal.

13. A verification system comprising: The application platform as claimed in claim 11 and the terminal as claimed in claim 12.

14. The verification system according to claim 13, further comprising: The core network key distribution function entity is used to send the session key between the terminal and the application platform to the application platform.

15. The verification system according to claim 13, wherein: The core network key distribution function entity is used to perform mutual authentication with the terminal, generate a key identifier, and send it to the terminal; receive a key acquisition request sent by the application platform, generate a session key between the terminal and the application platform, and send it to the application platform.

16. An electronic device, comprising: processor; as well as A memory coupled to the processor, for storing instructions, wherein when the instructions are executed by the processor, the processor executes the verification method according to any one of claims 1 to 6, or the verification method according to any one of claims 7 to 10.

17. A non-transitory computer-readable storage medium having a computer program stored thereon, wherein: When the program is executed by a processor, the steps of the verification method described in any one of claims 1 to 6 or any one of claims 7 to 10 are implemented.

Citation Information

Patent Citations

  • Method, system and device for generating general bootstrapping architecture (GBA) secret key

    CN101990201A

  • Authentication method and authentication system

    CN108353279A