Identity verification method and related equipment

Through the double-layer verification mechanism of encrypted identity verification information, time parameters and data to be verified are used for identity verification, which solves the problems of low identity verification efficiency and high server burden in the existing technology, and realizes an efficient and safe identity verification process.

CN118659892APending Publication Date: 2024-09-17MASHANG CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410341235.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-22
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In the existing technology, the terminal needs to frequently interact with the server during multiple identity verifications, resulting in low efficiency, and the server needs to store user names and passwords, increasing the maintenance burden.

Method used

Encrypted identity verification information is used for identity verification. The identity verification is passed by extracting the information to be verified and meeting the preset conditions to avoid accessing the database every time. Use time parameters and data to be verified for double-layer verification.

Benefits of technology

It improves the efficiency of identity verification, reduces the storage and maintenance burden on the server, and ensures data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118659892A
    Figure CN118659892A
Patent Text Reader

Abstract

The invention provides an identity verification method and related equipment, and the identity verification method comprises the steps: receiving first identity verification information sent by a terminal, the first identity verification information comprising encrypted verification information, extracting to-be-verified information from the encrypted verification information, and if the to-be-verified information satisfies a preset condition, determining that identity verification is passed. According to the invention, the identity verification efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to data processing technology, and in particular to an identity authentication method and related equipment. Background Art

[0002] In order to protect the security of data, the terminal needs to authenticate when obtaining data from the server. If the authentication is successful, the terminal can obtain the data. Authentication is performed through the user name and password. The terminal sends the user name and password to the server. After obtaining the user name and password, the server can access the database to determine whether the user name and password sent by the terminal can be verified. Summary of the invention

[0003] The embodiments of the present application provide an identity authentication method and related equipment, which can improve the efficiency of identity authentication while ensuring data security.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The present invention provides an identity authentication method, which includes:

[0006] receiving first identity verification information, the first identity verification information comprising encrypted verification information;

[0007] Extracting the information to be verified from the encrypted verification information;

[0008] If the information to be verified meets the preset conditions, it is determined that the identity authentication is passed.

[0009] An embodiment of the present application provides an identity authentication device, which includes:

[0010] A receiving module, configured to receive first identity authentication information, wherein the first identity authentication information includes encrypted authentication information;

[0011] An extraction module, used to extract the information to be verified from the encrypted verification information;

[0012] The verification module is used to determine that the identity verification is successful if the information to be verified meets a preset condition.

[0013] An embodiment of the present application provides an electronic device, the electronic device comprising:

[0014] A memory for storing computer executable instructions;

[0015] The processor is used to implement the identity authentication method provided in the embodiment of the present application when executing the computer executable instructions stored in the memory.

[0016] An embodiment of the present application provides a computer-readable storage medium storing a computer program or computer-executable instructions for implementing the identity authentication method provided in the embodiment of the present application when executed by a processor.

[0017] An embodiment of the present application provides a computer program product, including a computer program or computer executable instructions. When the computer program or computer executable instructions are executed by a processor, the identity authentication method provided in the embodiment of the present application is implemented.

[0018] The embodiments of the present application have the following beneficial effects:

[0019] The identity authentication method provided in the embodiment of the present application can receive first identity authentication information including encrypted authentication information, and then can extract the information to be verified from the encrypted authentication information. If the information to be verified meets the preset conditions, it is determined that the identity authentication is successful. In other words, the identity authentication method provided in the embodiment of the present application has two layers of authentication methods. The first layer of authentication method is to extract the information to be verified from the encrypted authentication information, and the second layer of authentication method is that after the information to be verified is extracted, only if the information to be verified meets the preset conditions can it be determined that the identity authentication is successful. Compared with the method of using a user name and password for identity authentication, there is no need to access the database every time to determine whether the identity authentication is successful, which can improve the efficiency of identity authentication while ensuring data security. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a schematic diagram of the structure of the identity authentication system provided in the embodiment of the present application;

[0021] Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0022] Figure 3A This is a schematic diagram of a first process of the identity authentication method provided in an embodiment of the present application;

[0023] Figure 3B It is a second flow diagram of the identity authentication method provided in an embodiment of the present application;

[0024] Figure 3C It is a third flow chart of the identity authentication method provided in the embodiment of the present application;

[0025] Figure 4A It is a fourth flow chart of the identity authentication method provided in the embodiment of the present application;

[0026] Figure 4B It is a fifth flow chart of the identity authentication method provided in the embodiment of the present application;

[0027] Figure 5This is the sixth flow chart of the identity authentication method provided in the embodiment of the present application.

[0028] It should be pointed out that the above-mentioned "first" and "second" are only used to distinguish different solutions, and do not represent the degree of superiority or inferiority of the solutions or the priority in the implementation process. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0030] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0031] The terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0032] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0033] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meanings as those commonly understood by those skilled in the art. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

[0034] The related technologies have the following technical problems:

[0035] Technical Issue 1: In the related art, for the scenario where a user performs identity authentication multiple times within a period of time, each time the identity authentication is performed, the user needs to perform identity authentication through a user name and password. The terminal sends the user name and password to the server. After obtaining the user name and password, the server accesses the database to determine whether the user name and password sent by the terminal matches the user name and password stored in the database, thereby determining whether the identity authentication is successful. In other words, in the related art, each time the identity authentication is performed, the server needs to access the database, resulting in low efficiency of identity authentication. Among them, the server and the database can be located in the same electronic device, or the server and the database can be located in different electronic devices, which can be determined in combination with actual conditions.

[0036] Technical Problem 2: In the related art, in the case where the server and the database are located in different electronic devices, in order to avoid the server from frequently accessing the database, for the same user name, when the user name is verified for the first time, the server accesses the database after obtaining the user name and password, and when it is determined that the user name and password sent by the terminal match the user name and password stored in the database, the user name and password are stored in the server. When the identity authentication is performed again for the user name and password, it can be determined whether the user name and password sent by the terminal matches the user name and password stored in the server, thereby determining whether the identity authentication is successful. However, this method requires the server to store the user name and password, which will occupy the server's memory, and the server needs to maintain the user name and password, which will increase the maintenance burden of the server for identity authentication.

[0037] The embodiments of the present application provide an identity authentication method, device, electronic device, computer-readable storage medium and computer program product, which can use the information to be verified to perform identity authentication, thereby improving the efficiency of identity authentication while ensuring data security.

[0038] In some embodiments, the terminal and the server may be arranged in the same electronic device. In some embodiments, the terminal and the server may also be arranged in different electronic devices. Figure 1 A method in which a terminal and a server are located in different electronic devices is introduced.

[0039] See also Figure 1 , Figure 1 It is a schematic diagram of the architecture of the identity authentication system 100 provided in an embodiment of the present application. To implement an exemplary application supporting an identity authentication, a terminal (terminal 400-1 and terminal 400-2 are shown as examples) is connected to a server 200 via a network 300. The network 300 may be a wide area network or a local area network, or a combination of the two.

[0040] In some embodiments, the terminal 400 - 1 is used to display a request to send page on the graphical interface 410 - 1 , and in response to a sending instruction for the request to send page, the terminal 400 - 1 may send the first identity authentication information to the server 200 .

[0041] The server 200 is used to receive the first identity authentication information sent by the terminal 400-1. The first identity authentication information includes encrypted authentication information. The server 200 can extract the information to be authenticated from the first identity authentication information. If the information to be authenticated meets a preset condition, it is determined that the identity authentication for the terminal 400-1 is passed.

[0042] In some embodiments, the terminal 400 - 1 is used to display a request to send page on the graphical interface 410 - 1 , and in response to a sending instruction for the request to send page, the terminal 400 - 1 may send the first identity authentication information to the terminal 400 - 2 .

[0043] Terminal 400-2 is used to receive the first identity authentication information sent by terminal 400-1, and the first identity authentication information includes encrypted verification information. Terminal 400-2 can extract the information to be verified from the first identity authentication information. If the information to be verified meets the preset conditions, it is determined that the identity authentication for terminal 400-1 is passed, and then the identity authentication can be displayed on the graphical interface 410-1 and the graphical interface 410-2.

[0044] The following describes an exemplary application of the electronic device provided in the embodiment of the present application. The electronic device provided in the embodiment of the present application may be a terminal, a server, or a combination of the two. The terminal may be a laptop, a tablet computer, a desktop computer, a set-top box, a mobile device (e.g., a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, a portable gaming device), a smart phone, a smart speaker, a smart watch, a smart TV, a vehicle-mounted terminal, and other types of user terminals.

[0045] The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), as well as big data and artificial intelligence platforms.

[0046] See also Figure 2 , Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Figure 2The electronic device shown includes: at least one processor 210, a memory 250, at least one network interface 220 and a user interface 230. The various components in the electronic device are coupled together via a bus system 240. It is understood that the bus system 240 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 240 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 240 is not described in detail. Figure 2 Various buses are labeled as bus system 240 .

[0047] The processor 210 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0048] The user interface 230 includes one or more output devices 231 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 230 also includes one or more input devices 232, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0049] The memory 250 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 250 may optionally include one or more storage devices that are physically remote from the processor 210.

[0050] The memory 250 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 250 described in the embodiment of the present application is intended to include any suitable type of memory.

[0051] In some embodiments, memory 250 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.

[0052] Operating system 251, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0053] A network communication module 252, used to reach other electronic devices via one or more (wired or wireless) network interfaces 220, exemplary network interfaces 220 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB), etc.;

[0054] a presentation module 253 for enabling presentation of information via one or more output devices 231 (e.g., display screen, speaker, etc.) associated with the user interface 230 (e.g., a user interface for operating peripherals and displaying content and information);

[0055] The input processing module 254 is used to detect one or more user inputs or interactions from one of the one or more input devices 232 and translate the detected inputs or interactions.

[0056] In some embodiments, the identity authentication device provided in the embodiments of the present application can be implemented in software. Figure 2 The identity verification device 255 stored in the memory 250 is shown, which can be software in the form of a program and a plug-in, etc., and includes the following software modules: a receiving module 2551, an extraction module 2552 and a verification module 2553. These modules are logical, so they can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be explained below.

[0057] In actual implementation, the identity authentication provided by the embodiment of the present application can be implemented by the terminal or the server alone, or by the terminal and the server in collaboration. The following takes the server as an example to illustrate the identity authentication method provided by the embodiment of the present application.

[0058] Next, we will combine Figure 3A The identity verification method provided in the embodiment of the present application is described in detail. Figure 3A , Figure 3A is a first flow chart of the identity authentication method provided in the embodiment of the present application. Figure 3A The execution subject is a server to illustrate the identity authentication method provided in the embodiment of the present application.

[0059] In step 101, first identity verification information is received.

[0060] The following describes a scenario of receiving the first identity authentication information. In some embodiments, the terminal may send a data request to the server, and the data request may be applicable to various client-server architecture scenarios, in which the terminal requests data from the server through the data request, and the server provides services to the terminal based on the data requested by the terminal, such as financial consulting and instant messaging.

[0061] In order to protect the security of data, the server can authenticate the terminal. In some embodiments, the server can respond to the identity authentication request and can send an identity authentication method to the terminal. The embodiment of the present application provides two identity authentication methods for selection, and the identity authentication methods include a first identity authentication method and a second identity authentication method. That is, the server responds to the identity authentication request and can send the first identity authentication method and the second identity authentication method to the terminal.

[0062] The first identity authentication method is used to authenticate the user based on the first identity authentication information, which includes a time parameter and data to be authenticated. That is, the first identity authentication method is used to authenticate the user based on the time parameter and data to be authenticated. The second identity authentication method is used to authenticate the user based on the second identity authentication information, which includes a user name and a password. That is, the second identity authentication method is used to authenticate the user based on the user name and password of the terminal. The user can choose the authentication method from the first identity authentication method and the second identity authentication method according to actual usage requirements, which can improve the user's usage experience.

[0063] The time parameter is used to represent the generation time of the data to be verified. The data to be verified may include multiple characters. The user name is information that can uniquely identify the user's identity. The user name may be composed of different characters. There is a corresponding relationship between the password and the user name.

[0064] When the user selects the first identity authentication method, the terminal can respond to the first identity authentication method and send a method selection request carrying the identifier of the first identity authentication method to the server. The first identity authentication method is used to perform identity authentication based on a time parameter and data to be authenticated.

[0065] When the server determines that the terminal has passed the second identity authentication, that is, when the server determines that the terminal has performed identity authentication based on the user name and password and the identity authentication has passed, the server can send the interface corresponding to the first identity authentication method to the terminal, and the terminal can display the interface corresponding to the first identity authentication method, and the user can know that the first identity authentication method can be used for identity authentication.

[0066] In some embodiments, the terminal may generate the first identity authentication information in response to an input instruction based on an interface corresponding to the first identity authentication method. In some embodiments, the terminal may also generate the first identity authentication information based on a pre-stored time parameter and data to be verified. After the terminal generates the first identity authentication information, the first identity authentication information may be sent to the server. The first identity authentication information includes encrypted verification information.

[0067] If the terminal and the server are set in different electronic devices, the server can receive the first identity authentication information sent by the terminal. If the terminal and the server are set in the same electronic device, the electronic device can receive the first identity authentication information, that is, the server can receive the first identity authentication information.

[0068] If the server determines that there is no result of verification according to the second identity authentication method, that is, if the server determines that the terminal has not performed identity authentication according to the username and password, or the terminal has failed identity authentication according to the username and password, it can refuse to authenticate the terminal according to the first identity authentication information.

[0069] In some embodiments, when the server refuses to authenticate the terminal according to the first identity authentication information, the server may send a username and password page (a page corresponding to the second identity authentication method) to the terminal, and the terminal may receive and display the username and password page. Alternatively, the server may send a prompt message that the first identity authentication information is unavailable to the terminal, and the terminal may load a pre-stored username and password page.

[0070] In response to the input operation on the user name and password page, the terminal can obtain the user name and password and send the user name and password to the server. That is, in the case where the server refuses to authenticate the terminal based on the first identity authentication information, the server can receive the second identity authentication information and authenticate the terminal based on the second identity authentication information. The second identity authentication method is used to authenticate the terminal based on the user name and password of the terminal, and the second identity authentication information may include an encrypted user name and password.

[0071] After receiving the second identity authentication information sent by the terminal, the server can decrypt the second identity authentication information to obtain the user name and password. After obtaining the user name and password, the server can access the database, which stores the correspondence between candidate user names and candidate passwords, and the server can determine whether there is a corresponding candidate user name for the user name.

[0072] If there is no corresponding candidate user name, it means that the identity authentication fails. Therefore, the server can return the identity authentication failure information to the terminal so that the user can know the identity authentication failure information. The server can also send the second identity authentication method to the terminal again, that is, send the username and password page to the terminal again so that the user can enter the correct username and password.

[0073] If there is a corresponding candidate user name, it can be determined whether the candidate password corresponding to the candidate user name is consistent with the password. If the candidate password is inconsistent with the password, it means that the identity authentication has not passed. Therefore, the server can return the identity authentication failure information to the terminal so that the user can know the identity authentication failure information. The server can also send the second identity authentication method to the terminal again, that is, send the username and password page to the terminal again, so that the user can enter the correct username and password.

[0074] If the candidate password is consistent with the password, it means that the identity authentication is successful, so the server can return the identity authentication success information to the terminal so that the user can know the identity authentication success information. In addition, the server can also obtain response data and send the response data to the terminal, wherein the response data is used to respond to the data request.

[0075] When the server has authenticated the terminal at least once based on the username and password and the authentication has passed, if the terminal sends a data request to the server again within the valid period, in order to ensure the security of the data, the server can authenticate the terminal again. In order to improve the efficiency of authentication, the first authentication method can be used for authentication.

[0076] Among them, compared with the method of using a username and password for identity authentication, the first identity authentication method does not need to access the database, that is, the embodiment of the present application can simplify the method of identity authentication, thereby improving the efficiency of identity authentication. In particular, for scenarios where users need to frequently make data requests in a short period of time, the efficiency of identity authentication can be improved while ensuring security.

[0077] In some embodiments, the terminal may include a first terminal and a second terminal. For the above-mentioned process of the server authenticating the terminal, the server may be replaced with the first terminal, and the terminal may be replaced with the second terminal, so that the first terminal can authenticate the second terminal. For details, please refer to the process of the server authenticating the terminal, which will not be repeated here.

[0078] In step 102, the information to be verified is extracted from the encrypted verification information.

[0079] In some embodiments, step 102 may be implemented in the following manner: extracting the time parameter and the data to be verified from the encrypted verification information, that is, the information to be verified includes the time parameter and the data to be verified.

[0080] In some embodiments, Figure 3A The "extracting the information to be verified from the encrypted verification information" in step 102 can be implemented through the following steps 1021 to 1022, which are described in detail below.

[0081] In step 1021, the encrypted verification information is decrypted to obtain decrypted information.

[0082] In some embodiments, the first identity verification information includes encrypted verification information. After obtaining the first identity verification information, the server may decrypt the encrypted verification information, thereby extracting the information to be verified from the encrypted verification information.

[0083] The encryption method for verification information can be symmetric encryption or asymmetric encryption. Symmetric encryption uses the same key to encrypt and decrypt messages. Asymmetric encryption uses a public key for encryption and a private key for decryption. The public key and private key correspond to each other. The specific settings can be made according to the actual needs of the user.

[0084] In some embodiments, when the encryption method for the verification information is symmetric encryption, the encrypted verification information can be decrypted using a pre-stored key to obtain decrypted information, and then the information to be verified can be extracted from the decrypted information. When the encryption method for the verification information is asymmetric encryption, the encrypted verification information can be decrypted using a pre-stored private key to obtain decrypted information, and then the information to be verified can be extracted from the decrypted information, wherein the information to be verified includes a time parameter and data to be verified.

[0085] In step 1022, the time parameter and the data to be verified are extracted from the decrypted information.

[0086] In some embodiments, step 1022 may be implemented in the following manner: after obtaining decrypted information obtained by decrypting the encrypted verification information, the time parameter and the data to be verified may be extracted from the decrypted information.

[0087] The number of characters included in the decrypted information is greater than N+2, where N can be an integer greater than or equal to 2, and N is determined by a time parameter. The time parameter can include at least two of a number corresponding to a year, a number corresponding to a month, a number corresponding to a day, a number corresponding to an hour, a number corresponding to a minute, a number corresponding to a second, and a separator corresponding to a time according to actual use requirements.

[0088] The separator corresponding to the time may be a symbol for separating the number corresponding to the year, the number corresponding to the month, and the number corresponding to the day, for example, the separator corresponding to the time may be "\", " / ", "-", etc. The separator corresponding to the time may also be a separator for separating the number corresponding to the day and the number corresponding to the hour, for example, the separator corresponding to the time may be "+", ".", "~", etc.

[0089] The separator corresponding to the time can also be a symbol used to separate the numbers corresponding to the hour, the numbers corresponding to the minute, and the numbers corresponding to the second. For example, the separator corresponding to the time can be ":", "'", """, etc. It can be set according to actual usage requirements and is not specifically limited here.

[0090] The following describes a method for extracting a time parameter from decrypted information using a first preset extraction method. In some embodiments, the first N characters are extracted from the characters arranged in a preset order included in the decrypted information, and the extracted first N characters are used as the time parameter. The time parameter is used to represent the generation time of the data to be verified.

[0091] For example, if the decrypted information is "20230901=?akm#@<", the first 8 characters of the decrypted information "20230901" can be extracted and used as the time parameter. Among them, "20230901" is used to represent the generation time of the data to be verified. In this way, the accurate time parameter can be extracted from the decrypted information.

[0092] The following introduces a method of extracting the data to be verified from the decrypted information using the first preset extraction method: extract characters except the first N digits from the characters arranged in a preset order included in the decrypted information, and use the extracted characters except the first N digits as the data to be verified.

[0093] For example, if the decrypted information is "20230901=?akm#@<", the characters other than the first 8 digits of the decrypted information can be extracted, that is, the characters "=?akm#@<" of the last 8 digits of the decrypted information can be extracted, and "=?akm#@<" is used as the data to be verified. Through step 1012, accurate data to be verified can be extracted from the decrypted information.

[0094] That is to say, the first preset decryption method is to extract the first N characters from the characters arranged in a preset order included in the decryption information, and use the extracted first N characters as time parameters, and extract characters other than the first N characters from the characters arranged in a preset order included in the decryption information, and use the extracted characters other than the first N characters as data to be verified.

[0095] In some embodiments, the decrypted information includes a plurality of characters. In the decrypted information, starting from the first character, there is a second preset number of data to be verified every first preset number of time parameters. The first preset number and the second preset number can be set according to actual use requirements. For example, the first preset number can be a positive integer such as 1, 2, 3, etc. The first preset number can also be a positive integer such as 1, 2, 3, etc.

[0096] The following is an introduction to a method of extracting the data to be verified from the decrypted information using the second preset extraction method: starting from the first character of the decrypted information, extract a first preset number of characters in sequence according to the order of arrangement of the characters in the decrypted information, with an interval of a second preset number of characters, and then extract the first preset number of characters in sequence according to the order of arrangement of the characters in the decrypted information, and repeat "interval with the second preset number of characters, and then extract the first preset number of characters in sequence according to the order of arrangement of the characters in the decrypted information", until the total number of the first preset number of characters extracted reaches N, and N characters are used as the time parameter.

[0097] Taking the first character of the decrypted information as the starting point, according to the arrangement order of the characters in the decrypted information, the first preset number of characters are separated, and the second preset number of characters are sequentially extracted. According to the arrangement order of the characters in the decrypted information, the first preset number of characters are separated, and the second preset number of characters are sequentially extracted again. Repeat the "according to the arrangement order of the characters in the decrypted information, the first preset number of characters are separated, and the second preset number of characters are sequentially extracted", until the total number of the extracted second preset number of characters reaches the number of characters in the decrypted information minus N, and the number of characters in the decrypted information minus N characters is used as the data to be verified. In other words, the characters other than the time parameter can be extracted from the decrypted information as the data to be verified.

[0098] For example, both the first preset number and the second preset number can be 1, that is, the time parameter and the data to be verified are arranged alternately in the decrypted information, that is, the characters adjacent to the time parameter are the characters corresponding to the data to be verified, and correspondingly, the characters adjacent to the data to be verified are the characters corresponding to the time parameter. In the case where the time parameter is located in an odd-numbered position in the decrypted information, the data to be verified is located in an even-numbered position in the decrypted information, therefore, N characters can be sequentially extracted from the odd-numbered positions to obtain the time parameter, and multiple characters can be sequentially extracted from the even-numbered positions to obtain the data to be verified, wherein the number of characters in the data to be verified is the number of characters in the decrypted information minus N.

[0099] In some embodiments, the decryption information can be "2=0?2a3k0m9#0@1<", 8 characters can be extracted from the odd bits in sequence to obtain the time parameter "20230901", and 8 characters can be extracted from the even bits in sequence to obtain the data to be verified "=?akm#@<".

[0100] In some embodiments, in the decrypted information, starting from the first character, there are a first preset number of time parameters for every second preset number of data to be verified. The extraction method is similar to the case of "starting from the first character, there are a second preset number of data to be verified for every first preset number of time parameters", and can be equivalently replaced, which is not repeated here. In this way, accurate time parameters and data to be verified can be obtained.

[0101] That is to say, the second preset extraction method is to take the first character of the decrypted information as the starting point, and repeatedly execute "according to the arrangement order of the characters in the decrypted information, extract the first preset number of characters in sequence, with an interval of the second preset number of characters, and according to the arrangement order of the characters in the decrypted information, extract the first preset number of characters in sequence again", until a time parameter with the number of characters N is obtained, and the number of data to be verified is obtained, which is the number of characters in the decrypted information minus N.

[0102] In some embodiments, the encrypted verification information may be composed of a time parameter and encrypted data to be verified. For such a situation, a pre-set extraction method may be first used to extract the time parameter that does not need to be decrypted from the encrypted verification information, and the remaining characters after extracting the time parameter may be used as the encrypted data to be verified. The encrypted data to be verified may then be decrypted to obtain the data to be verified.

[0103] In some embodiments, the encrypted verification information may also be composed of an encrypted time parameter and data to be verified. For such a situation, a pre-set extraction method may be first used to extract the data to be verified that does not need to be decrypted from the encrypted verification information, and the remaining characters after extracting the data to be verified are used as the encrypted time parameter, and then the encrypted time parameter may be decrypted to obtain the time parameter.

[0104] Among them, the pre-set extraction method can be the above-mentioned first preset extraction method or the above-mentioned second preset extraction method. For details, please refer to the above-mentioned description of the above-mentioned first preset extraction method or the above-mentioned second preset extraction method, and replace the decryption information with the encrypted verification information, which will not be repeated here.

[0105] In step 103, if the information to be verified meets the preset conditions, it is determined that the identity verification is successful.

[0106] In some embodiments, the information to be verified includes a time parameter and data to be verified. The above step 103 can be implemented in the following manner, which can determine whether the time parameter is valid and whether the data to be verified meets the preset data condition.

[0107] If it is determined that the time parameter is invalid and / or it is determined that the data to be verified does not meet the preset data conditions, it can be determined that the identity authentication has failed. If it is determined that the time parameter is valid and it is determined that the data to be verified meets the preset data conditions, it can be determined that the identity authentication has passed.

[0108] The following describes a method for determining whether a time parameter is valid. After obtaining the time parameter, the valid period of the time parameter may be determined based on the time parameter. In some embodiments, each number in the time parameter decreases according to the size of the corresponding unit.

[0109] For example, if the time parameter is "20230901", the unit of "2023" is year, the unit of "09" is month, and the unit of "01" is day. The unit of the effective period can correspond to the smallest unit in the time parameter. For example, if the smallest unit in the time parameter is day, the unit of the effective period can be day.

[0110] In some embodiments, the effective period can also be set according to the actual use needs of the user. The duration corresponding to the effective period can be in years, months, days, hours, minutes, and seconds. For example, the effective period can be 1 day, 5 hours, 3 minutes, etc., which is not specifically limited here.

[0111] In some embodiments, the unit corresponding to the duration corresponding to the valid period is larger than the smallest unit in the time parameter. For example, the smallest unit corresponding to the character in the time parameter is seconds, and the unit corresponding to the duration corresponding to the valid period can also be minutes, hours, days, etc.

[0112] In some embodiments, the user may pre-set the correspondence between the candidate time parameters and the candidate available durations, and the candidate available durations may include at least one. After the time parameter is acquired, the available duration corresponding to the time parameter may be determined from the correspondence between the candidate time parameters and the candidate available durations according to the time parameter, and the time corresponding to the time parameter is used as the starting point of the effective period, and the time corresponding to the time parameter is extended back to the time corresponding to the available duration as the end point of the effective period, wherein the duration corresponding to the effective period is consistent with the available duration.

[0113] After determining the effective period of the time parameter, the reception time of the first identity authentication information corresponding to the time parameter can be determined. In some implementations, the reception time of the first identity authentication information can include multiple times. For example, the reception time of the first identity authentication information can be the first time when the server receives the first identity authentication information sent by the terminal. The reception time of the first identity authentication information can also be the second time when the time parameter and the data to be verified are extracted from the first identity authentication information. The first identity authentication information can also carry a third time. The reception time of the first identity authentication information can be the third time carried by the first identity authentication information. The third time is the time when the terminal sends the first identity authentication information.

[0114] In some embodiments, time weights may be set for different reception times of the first identity verification information, that is, the time weight of the first time is greater than the time weight of the second time, and the time weight of the second time is greater than the time weight of the third time.

[0115] Accordingly, the reception time of the first identity authentication information can be determined according to the time weight. In some embodiments, the time with the highest time weight can be determined as the reception time of the first identity authentication information, and the reception time of the first identity authentication information can also be determined based on the time when the time weight is greater than the weight threshold.

[0116] In the case where there are multiple times when the time weight is greater than the weight threshold, the times when the time weights are greater than the weight threshold can be compared. If the differences of the times when the time weights are greater than the weight threshold are all less than the difference threshold, any time when the time weight is greater than the weight threshold can be selected as the time when the first identity verification information is received. In the case where there are times when the difference of the times when the time weights are greater than the weight threshold is greater than or equal to the difference threshold, the time with the highest time weight can be determined as the time when the first identity verification information is received.

[0117] After determining the reception time of the first identity authentication information corresponding to the time parameter, it can be determined whether the reception time is within the valid period. If the reception time is not within the valid period, the time parameter is determined to be invalid, and accordingly, the first identity authentication information is invalid, so it can be determined that the identity authentication has failed.

[0118] For example, the time parameter is "20230901" and the valid period is 24 hours corresponding to September 1, 2023. When the terminal sends the first identity authentication information including "20230901" to the server on September 2, 2023, it can be determined that the time parameter "20230901" is invalid, that is, the first identity authentication information is determined to be invalid.

[0119] In the case where the identity authentication of the terminal fails, the server may send an identity authentication failure message to the terminal. The server may also send the first identity authentication method and the second identity authentication method again so that the terminal can choose the identity authentication method. In some embodiments, in the case where the identity authentication corresponding to the first identity authentication method fails, only the first identity authentication method may be sent to the terminal to avoid the situation where the user enters the wrong time parameter and the data to be verified, so that the identity authentication can be performed again through the time parameter and the data to be verified, thereby improving the efficiency of re-verification.

[0120] If the receiving time of the first identity verification information is within the valid period, the time parameter can be determined to be valid. For example, if the time parameter is "20230901" and the valid period is 24 hours corresponding to September 1, 2023, when the terminal sends the first identity verification information including "20230901" to the server on September 1, 2023, the time parameter can be determined to be valid.

[0121] In some embodiments, when it is determined that the time parameter is valid, it can be further determined whether the data to be verified meets the preset data condition. If the data to be verified does not meet the preset data condition, it can be determined that the identity authentication has not passed. If the data to be verified meets the preset data condition, it can be determined that the identity authentication has passed.

[0122] In some embodiments, the preset data condition includes at least one of the following: the multiple characters included in the data to be verified all belong to a preset data set corresponding to their order. The order of the multiple characters included in the data to be verified complies with a preset sorting rule. The total number of the multiple characters included in the data to be verified is equal to the total number of preset characters.

[0123] In some embodiments, the preset data condition is that the multiple characters included in the data to be verified belong to a preset data set corresponding to their order, wherein the multiple characters included in the data to be verified have an arrangement order, and different orders in the arrangement order correspond to different preset data sets, that is, the preset data condition is that each character included in the data to be verified belongs to the preset data set corresponding to its order.

[0124] For each character included in the data to be verified, it can be determined whether each character belongs to the preset data set corresponding to its sequence. In the case where there is a character that does not belong to the preset character data set corresponding to its sequence, it can be determined that the data to be verified does not meet the preset data condition.

[0125] Among them, the preset data set can be at least one of a special character set, a punctuation mark set, a digital sequence set, a mathematical unit set, an English character set, and a character set commonly used by users of different levels, and can be set according to actual usage requirements.

[0126] The special character set may be a pre-set symbol that is difficult to input directly. For example, the special character set may include a symbol corresponding to a five-pointed star, a symbol corresponding to a check mark, a symbol corresponding to a square, etc. No specific limitation is made here.

[0127] Different levels of user commonly used character sets can be determined based on the frequency of user use of characters. In some embodiments, multiple frequency thresholds can be set according to the user's actual usage, and then different levels of user commonly used character sets can be determined based on the frequency thresholds and the frequency of user use of characters.

[0128] For example, when the frequency of user use of a character is greater than or equal to a first frequency threshold and less than a second frequency threshold, the character can be classified into a first-level set of commonly used user characters; when the frequency of user use of a character is greater than or equal to a second frequency threshold and less than a third frequency threshold, the character can be classified into a second-level set of commonly used user characters.

[0129] The first frequency threshold is smaller than the second frequency threshold, and the second frequency threshold is smaller than the third frequency threshold. The first frequency threshold, the second frequency threshold, and the third frequency threshold can be set according to actual usage of the user.

[0130] In the case where each character belongs to a preset data set corresponding to its sequence, it can be determined that the data to be verified meets the preset data condition. As an example, the 9th to 16th bits in the first identity verification information are the data to be verified. If the 9th to 10th bits are special characters in [-=+! ? ], the 11th to 13th bits are English characters in [abfhks lm t], and the 14th to 16th bits are special characters in [@#$%<], it can be determined that the data to be verified meets the preset data condition.

[0131] In some embodiments, the preset data condition is that the order of the multiple characters included in the data to be verified complies with the preset sorting rule. For each character included in the data to be verified, it can be determined whether the order of the multiple characters complies with the preset sorting rule. If the order of the multiple characters complies with the preset sorting rule, it can be determined that the data to be verified meets the preset data condition. If the order of the multiple characters does not comply with the preset sorting rule, it can be determined that the data to be verified does not meet the preset data condition.

[0132] In some embodiments, the multiple characters included in the data to be verified may be numbers, and the preset sorting rule may be that the later the characters are arranged, the larger the corresponding numbers are. For example, the data to be verified may be "369", and since the later the characters are arranged, the larger the numbers are, the data to be verified complies with the preset sorting rule, that is, the data to be verified meets the preset data condition.

[0133] In some embodiments, when multiple characters may belong to any one of a special character set, a punctuation mark set, a digital sequence set, a mathematical unit set, an English character set, and a character set commonly used by users of different levels, and are arranged according to a preset character order in the character set, it can be determined that the data to be verified complies with a preset sorting rule.

[0134] For example, the data to be verified may be "mln", and the preset character sequence in the English character set is "a, b, c, d, ..., x, y, z". Since the characters included in the data to be verified belong to the English character set and are arranged in the preset character sequence, the data to be verified complies with the preset sorting rule, that is, the data to be verified meets the preset data condition.

[0135] In some embodiments, when multiple characters may belong to at least two of a special character set, a punctuation mark set, a digital sequence number set, a mathematical unit set, an English character set, and character sets commonly used by users of different levels, and when arranged in a preset character order in the character set, it can be determined that the data to be verified conforms to a preset data sorting rule.

[0136] For example, the data to be verified may be "mln,.?", the preset character sequence in the English character set is "a, b, c, d, ..., x, y, z", and the preset character sequence in the punctuation mark set is ",.,?, ..., &, @, #". Since the characters in the data to be verified belong to the English character set and the punctuation mark set, and are arranged in the preset character sequence, the data to be verified complies with the preset sorting rule, that is, the data to be verified meets the preset data condition.

[0137] In some embodiments, the data to be verified is generated based on a time parameter and a preset arrangement order. Accordingly, it can be determined whether the current character after the data to be verified is adjusted in the reverse direction of the preset arrangement order is consistent with the time parameter. If they are consistent, it can be determined that the data to be verified complies with the preset sorting rule, that is, the data to be verified meets the preset data condition. If they are inconsistent, it can be determined that the data to be verified does not comply with the preset sorting rule, that is, the data to be verified does not meet the preset data condition.

[0138] In some embodiments, the preset data condition is that the total number of the multiple characters included in the data to be verified is equal to the preset total number of characters. It can be determined whether the total number of the multiple characters included in the data to be verified is equal to the preset total number of characters. If it is equal, it can be determined that the data to be verified meets the preset data condition. If it is not equal, it can be determined that the data to be verified does not meet the preset data condition. Among them, the preset total number of characters can be set according to actual use requirements. For example, the preset total number of characters can be 8, 10, 16, etc., which are all reasonable and are not specifically limited here.

[0139] In some embodiments, the terminal also sends a data request to the server, and the data request may be sent before the server authenticates the terminal for the first time, or may be sent after the server authenticates the terminal for the first time and passes. When it is determined that the terminal identity authentication is passed, the server may obtain response data, which is used to respond to the data request, and send the response data to the terminal, so that the terminal can obtain the response data.

[0140] The identity authentication method provided in the embodiment of the present application can use time parameters and data to be verified for identity authentication. Only when it is determined that the time parameters are valid and the data to be verified meets the preset data conditions, the terminal identity authentication is determined to be passed. That is to say, the identity authentication method provided in the embodiment of the present application performs two different levels of verification. The first level of verification is to determine whether the time parameters are valid, and the second level of verification is to determine whether the data to be verified meets the preset data conditions. Compared with the method of using a user name and password for identity authentication, there is no need to access the database every time to determine whether the identity authentication is passed, which can improve the efficiency of identity authentication while ensuring security. Moreover, for the server, the server and the database do not need to store the time parameters and the data to be verified, which can save storage resources and reduce maintenance costs.

[0141] The following is an introduction to the first method of generating the first identity verification information. Figure 3B , Figure 3B A second flow chart of the identity authentication method provided in an embodiment of the present application, Figure 3B It includes steps 104-106, which are described in detail below.

[0142] In step 104, a preset number of data are extracted from a preset data set to obtain data to be verified.

[0143] In some embodiments, the preset data set includes a first preset data set and a second preset data set, wherein the number of the first preset data set and the number of the second preset data set is at least 1. The characters in the first preset data set and the characters in the second preset data set belong to different character types. That is, the data in the first preset data set and the data in the second preset data set belong to different types.

[0144] The first preset data set and the second preset data set can be one or more of a special character set, a punctuation mark set, a digital sequence number set, a mathematical unit set, an English character set, and character sets commonly used by users of different levels, and can be set according to actual usage requirements.

[0145] In some embodiments, a first number of data may be extracted from a first preset data set and combined to obtain first sub-data. A second number of data may be extracted from a second preset data set and combined to obtain second sub-data. The first sub-data and the second sub-data are concatenated in a preset order to obtain data to be verified, and the sum of the first number and the second number is a preset number. The preset number is greater than or equal to 2.

[0146] In some embodiments, any character (i.e., data) in the first preset data set can be used as a starting point to extract a first number of characters from the first preset data set for combination to obtain the first sub-data, and any character in the second preset character (i.e., data) set can be used as a starting point to extract a second number of characters from the second preset data set for combination to obtain the second sub-data. After obtaining the first sub-data and the second sub-data, the first sub-data can be spliced ​​before the second sub-data to obtain the data to be verified. The second sub-data can also be spliced ​​before the first sub-data to obtain the data to be verified. The specific settings can be made according to the actual needs of the user.

[0147] For example, the first preset data set is a preset English character set, i.e., [abfhkslmt], and the second preset data set is a character set with the user frequency in the top 5, i.e., [,. ! 1 5]. The first character of the first preset data set can be used as a starting point, and 3 characters can be sequentially extracted from the first preset data set for combination to obtain the first sub-data, i.e., (abf). The first character of the second preset data set can be used as a starting point, and 2 characters can be extracted from the second preset data set at a time for combination to obtain the second sub-data, i.e., (,.). After obtaining the first sub-data (abf) and the second sub-data (,.), the first sub-data (abf) can be spliced ​​before the second sub-data (,.) to obtain the data to be verified (abf,.). In this way, accurate data to be verified can be obtained.

[0148] Accordingly, when determining whether the data to be verified meets the preset data conditions, it can be determined whether each character belongs to the preset data set corresponding to its sequence. If there are characters that do not belong to the preset data set corresponding to their sequence, it can be determined that the identity authentication has failed.

[0149] In the case where each character belongs to the preset data set corresponding to its sequence, it is further determined whether the sequence of the multiple characters conforms to the preset sorting rule. In the case where the sequence of the multiple characters does not conform to the preset sorting rule, it can be determined that the identity authentication has not passed. In the case where the sequence of the multiple characters conforms to the preset sorting rule, it can be determined that the identity authentication has passed.

[0150] In some embodiments, characters of a preset total number of characters may be extracted from a plurality of different character sets, and the characters of the preset total number of characters may be combined as the data to be verified. Accordingly, it may be determined first whether the total number of the plurality of characters included in the data to be verified is equal to the preset total number of characters, and if the total number of the plurality of characters included in the data to be verified is not equal to the preset total number of characters, it may be determined that the identity authentication has not passed.

[0151] When the total number of characters included in the data to be verified is equal to the total number of preset characters, it can be determined whether each character belongs to the preset data set corresponding to its sequence, and when there are characters that do not belong to the preset data set corresponding to its sequence, it can be determined that the identity authentication has not passed. When each character belongs to the preset data set corresponding to its sequence, it can be determined that the identity authentication has passed.

[0152] In some embodiments, multiple different numbers can be obtained and the numbers can be arranged in order from small to large to obtain the data to be verified. The later the character in the order of arrangement in the data to be verified, the larger the number corresponding to it.

[0153] In some embodiments, there is a preset character order for a special character set, a punctuation mark set, a digital number set, a mathematical unit set, and an English character set. Multiple characters can be extracted from any of the special character sets, punctuation mark sets, digital number sets, mathematical unit sets, English character sets, and character sets commonly used by users of different levels, and the characters can be arranged in the preset character order to obtain data to be verified.

[0154] In some embodiments, multiple characters can be extracted from at least two of a special character set, a punctuation mark set, a digital sequence set, a mathematical unit set, an English character set, and a character set commonly used by users of different levels, and for multiple characters corresponding to each set, the multiple characters are arranged in a preset character order to obtain data to be verified. In some embodiments, characters of a preset total number of characters can be randomly generated as data to be verified.

[0155] In step 105, the generation time of the data to be verified is obtained, and a time parameter is determined based on the generation time.

[0156] After obtaining the data to be verified, the generation time of the data to be verified can be obtained, and the time parameter can be determined based on the generation time, that is, the numbers corresponding to the generation time are combined into the time parameter in the order of time units from large to small. In some embodiments, the generation time can be accurate to the number corresponding to the year, the number corresponding to the month, the number corresponding to the day, the number corresponding to the hour, the number corresponding to the minute, or the number corresponding to the second.

[0157] In some embodiments, the numbers included in the time parameter decrease in size according to the corresponding unit, that is, the characters in the time parameter are arranged in chronological order, and the chronological order is that the numbers decrease in size according to the corresponding unit, and the time interval symbols are located between the corresponding numbers.

[0158] In step 106, first identity verification information is generated based on the data to be verified and the time parameter.

[0159] The following describes a method for generating first identity authentication information based on a time parameter and data to be verified. In some embodiments, the time parameter and the data to be verified are concatenated to obtain a character sequence, which is encrypted to obtain reference identity authentication information.

[0160] In some embodiments, the time parameter includes N characters. The time parameter can be used as the first N bits of the character sequence, and the data to be verified can be arranged after the time parameter, so that the information to be encrypted can be obtained. The information to be encrypted is the character sequence composed of the time parameter and the data to be verified.

[0161] In some embodiments, the time parameter is divided into multiple time sub-parameters based on a first preset number, and each time sub-parameter includes a first preset number of characters. For example, if the time parameter includes 8 characters and the first preset number is 1, the time parameter can be divided into 8 time sub-parameters, and each time sub-parameter includes 1 character.

[0162] The data to be verified is divided into a plurality of sub-data to be verified based on a second preset number, each sub-data to be verified includes a second preset number of characters. For example, if the data to be verified includes 8 characters and the second preset number is 1, the data to be verified can be divided into 8 sub-data to be verified, each sub-data to be verified includes 1 character. After the time sub-parameter and the sub-data to be verified are obtained, the time sub-parameter and the sub-data to be verified can be alternately arranged to obtain information to be encrypted, for example, one time sub-parameter and one sub-data to be verified are alternately arranged to obtain information to be encrypted.

[0163] After obtaining the information to be encrypted, the information to be encrypted can be encrypted to obtain the first identity verification information. In this way, both the time parameter and the data to be verified can be encrypted, thereby ensuring the security of the time parameter and the data to be verified.

[0164] In some embodiments, after obtaining the time parameter, the time parameter can be encrypted, and then the encrypted time parameter can be spliced ​​with the data to be verified to obtain the first identity authentication information. In some embodiments, only the data to be verified can be encrypted, and then the encrypted data to be verified can be spliced ​​with the time parameter to obtain the first identity authentication information. The present application can encrypt only the time parameter or the data to be verified, which can reduce the amount of encryption calculations while ensuring security.

[0165] After obtaining the first identity authentication information, the first identity authentication information may be sent to the terminal. In some embodiments, the terminal may decrypt the first identity authentication information to obtain the time parameter and the data to be verified, and then display the time parameter and the data to be verified for the user to know.

[0166] The user can then enter the time parameter and the data to be verified on the interface corresponding to the first identity verification method for subsequent execution. Figure 3A Steps 101-103 are shown. In this way, the terminal does not need to store time parameters and data to be verified, which can save storage space of the terminal.

[0167] In some embodiments, the terminal may store the first identity authentication information without decrypting the first identity authentication information, obtain the first identity authentication information in response to a selection operation for the first identity authentication method, and send the first identity authentication information to the server.

[0168] Accordingly, when decrypting the encrypted first identity verification information, the first identity verification information may be decrypted, or the first identity verification information may be divided into two parts, and then decrypted for different parts, so as to obtain the time parameter and the data to be verified.

[0169] The embodiment of the present application sets up multiple encryption types, that is, the present application can encrypt the encrypted information, that is, encrypt both the time parameter and the data to be verified, and can also encrypt only the time parameter or only the data to be verified. Different encryption types can be set according to different dates. Accordingly, when decrypting the encrypted first identity authentication information, the corresponding decryption type can be used for decryption according to the date. In this way, the security of identity authentication can be further improved.

[0170] The following is an introduction to the second method of generating the first identity verification information. Figure 3C , Figure 3C A third flow chart of the identity authentication method provided in the embodiment of the present application is shown in FIG. Figure 3C It includes steps 107-109, which are described in detail below.

[0171] In step 107, the current time is obtained, and the data to be verified is generated according to the current time and a preset arrangement order.

[0172] In some embodiments, the current time can be obtained, and then the data to be verified can be generated based on the current time and a preset arrangement order. The preset arrangement order is an order set by the user according to actual usage requirements. For example, the current time is "20240218" and the preset arrangement order is "21637548", where the numbers included in the current time represent the time, and the numbers included in the preset arrangement order represent the number of digits corresponding to the current parameters.

[0173] The data to be verified is generated according to the current time and the preset arrangement order, and the second digit in "20240218" is used as the first digit of the data to be verified, the first digit in "20240218" is used as the second digit of the data to be verified, the sixth digit in "20240218" is used as the third digit of the data to be verified, the third digit in "20240218" is used as the fourth digit of the data to be verified, the seventh digit in "20240218" is used as the fifth digit of the data to be verified, the fourth digit in "20240218" is used as the sixth digit of the data to be verified, and the eighth digit in "20240218" is used as the eighth digit of the data to be verified, and the data to be verified is "02221048".

[0174] In step 108, a time parameter is determined based on the current time.

[0175] Among them, after the data to be verified is generated according to the current time and the preset arrangement order, since the time to generate the data to be verified based on the current time is faster and the duration can be ignored, the current time is close to the generation time of the time parameter.

[0176] In some embodiments, when the difference between the current time and the generation time of the data to be verified is less than or equal to the verification time threshold, it means that the current time is close to the generation time of the data to be verified. Therefore, the current time can be approximated as the generation time of the data to be verified, and then the numbers corresponding to the current time can be combined into time parameters in descending order of time units. The time parameters are used to characterize the generation time of the data to be verified.

[0177] The current time can be accurate to the number corresponding to the year, the number corresponding to the month, the number corresponding to the day, the number corresponding to the hour, the number corresponding to the minute or the number corresponding to the second. In some embodiments, the numbers included in the time parameter decrease in size according to the corresponding unit, that is, the characters in the time parameter are arranged in a chronological order, and the chronological order is that the numbers decrease in size according to the corresponding unit, and the time interval symbol is located between the corresponding numbers.

[0178] In some embodiments, when the difference between the current time and the generation time of the data to be verified is greater than the verification time threshold, the time parameter can be determined based on the generation time, that is, the numbers corresponding to the generation time are combined into time parameters in order from large to small time units, wherein the time parameter is used to characterize the generation time of the data to be verified.

[0179] In step 109, first identity verification information is generated based on the data to be verified and the time parameter.

[0180] Step 109 is consistent with step 106. For details, please refer to the corresponding description of step 106, which will not be repeated here.

[0181] In some embodiments, the time parameter and the data to be verified have a validity period. When the terminal identity is authenticated based on the user name and password, if the server determines that the time parameter or the data to be verified has expired, steps 104-105 can be used to generate the time parameter and the data to be verified, and steps 107-108 can also be used to generate the time parameter and the data to be verified.

[0182] After obtaining the time parameters and the data to be verified, the time parameters and the data to be verified can be sent to the terminal so that the terminal can execute Figure 3A In this way, the time parameters and the data to be verified can be updated in time so that Figure 3A In the case of steps 101-103 shown, the efficiency of identity authentication can be improved.

[0183] In some embodiments, when the server sends the time parameter and the data to be verified to the terminal, the server may send the validity period to the terminal, and the terminal may record the time of receiving the time parameter and the data to be verified, and then judge whether the time parameter and the data to be verified are expired by the validity period. Among them, the validity period corresponding to the time parameter and the data to be verified may be consistent or inconsistent, and may be set according to actual usage.

[0184] When the terminal determines that the time parameter and the data to be verified are not expired, in response to the selection operation for the first identity authentication method, the terminal can send the first identity authentication information to the server. Figure 3A Steps 101-103 shown can improve the efficiency of identity authentication.

[0185] When the terminal determines that at least one of the time parameter and the data to be verified has expired, a prompt message may be displayed, indicating that the user can currently only authenticate the user through a username and password. In response to an input operation on the username and password page, the terminal may obtain the username and password and send the username and password to the server.

[0186] When the server authenticates the terminal based on the user name and password, the server can generate the time parameter and the data to be verified by using steps 104-105, and can also generate the time parameter and the data to be verified by using steps 107-108, so as to send the time parameter and the data to be verified to the terminal so that the terminal can execute Figure 3A In this way, the time parameters and the data to be verified can be updated in time so that Figure 3A In the case of steps 101-103 shown, the efficiency of identity authentication can be improved.

[0187] See also Figure 4A , Figure 4A The fourth flow chart of the identity authentication method provided in the embodiment of the present application is a flow chart of an interaction between a terminal and a server, which is described in detail below.

[0188] In step 401 , terminal 400 - 1 and server 200 establish a communication connection.

[0189] In step 402 , the terminal 400 - 1 sends a data request to the server 200 .

[0190] When the server authenticates the terminal for the first time, or when the server determines that any one of the time parameter and the data to be authenticated has expired, step 403 is executed.

[0191] In step 403, the server 200 sends the second identity authentication method to the terminal 400-1.

[0192] In step 404 , the terminal 400 - 1 sends the user name and password to the server 200 .

[0193] In step 405, the server 200 performs identity authentication based on the user name and password.

[0194] After obtaining the user name and password, the server 200 can access the database to determine whether the user name and password sent by the terminal are consistent with the user name and password pre-registered and stored in the database. If they are consistent, it means that the identity authentication is passed. If they are inconsistent, it means that the identity authentication is not passed. If the identity authentication is passed based on the user name and password, step 406-step 407 is executed. If the identity authentication is not passed based on the user name and password, step 403 is executed.

[0195] In step 406, the server 200 obtains response data.

[0196] In step 407, the server 200 sends response data to the terminal 400-1.

[0197] See also Figure 4B , Figure 4B The fifth flow chart of the identity authentication method provided in the embodiment of the present application is another flow chart of interaction between the terminal and the server, which is described in detail below.

[0198] Following step 402, the server performs at least one identity authentication on the terminal based on the user name and password and if the authentication is successful, step 408 is executed (in Figure 4B not shown).

[0199] In step 408, the server 200 sends the first identity authentication method and the second identity authentication method to the terminal 400-1.

[0200] When the terminal selects the second identity authentication method for identity authentication, step 404 (in Figure 4B In the case where the terminal selects the first identity authentication mode for identity authentication, step 409 may be executed.

[0201] In step 409 , the terminal 400 - 1 sends the first identity authentication information to the server 200 .

[0202] In step 410, the server 200 extracts the time parameter and the data to be verified from the first identity verification information.

[0203] When it is determined that the time parameter is valid and the data to be verified meets the preset data conditions, steps 406-407 can be executed. When it is determined that the time parameter is invalid and / or the data to be verified does not meet the preset data conditions, any one of steps 408, 403 and 411 can be executed.

[0204] (exist Figure 4B Not all are shown)

[0205] In step 411, the server 200 sends a first identity authentication method to the terminal 400-1.

[0206] See also Figure 5 , Figure 5 The sixth flow chart of the identity authentication method provided in the embodiment of the present application.

[0207] In step 501, a terminal and a server establish a communication connection.

[0208] In step 502, the terminal sends a data request to the server.

[0209] For example, the data request may be a request by the terminal for web page data corresponding to a certain website.

[0210] In step 503, the terminal sends an identity authentication request to the server;

[0211] In step 504, the server responds to the identity authentication request and sends the first identity authentication method and the second identity authentication method to the terminal.

[0212] This is equivalent to the server prompting the terminal to perform identity authentication. The first identity authentication method is to perform identity authentication based on the time parameter and the data to be verified, and the second identity authentication method is to perform identity authentication based on the user name and password of the terminal.

[0213] In step 505, the terminal sends a method selection request carrying an identifier of the first identity authentication method to the server.

[0214] In step 506, the server determines whether there is a result of passing the verification according to the second identity verification method.

[0215] If it is determined that the verification result according to the second identity authentication method is passed, steps 507 to 510 can be executed. If it is determined that the verification result according to the second identity authentication method is not passed, step 511 can be executed. If it is determined that the verification result according to the second identity authentication method is not passed and the terminal sends the second identity authentication information to the server, step 512 can also be executed.

[0216] In some embodiments, after step 506, if the server determines that the second identity authentication method has been verified, the page corresponding to the first identity authentication method can be sent to the terminal, and the terminal can send the first identity authentication information to the server. Figure 5 (not shown)

[0217] In some embodiments, the page corresponding to the first identity authentication method and the page corresponding to the second identity authentication method may also be pre-stored in the terminal. If the server determines that there is a result of verification according to the second identity authentication method, it may return a prompt message that the first identity authentication information is available to the terminal. The terminal may load the pre-stored page corresponding to the first identity authentication method, and then send the first identity authentication information to the server. Figure 5 (not shown)

[0218] In some embodiments, after step 506, if the server determines that the second identity authentication method has not been verified, the page corresponding to the second identity authentication method can be sent to the terminal, and the terminal can send the second identity authentication information to the server. Figure 5 (not shown)

[0219] In some embodiments, the page corresponding to the first identity authentication method and the page corresponding to the second identity authentication method may also be pre-stored in the terminal. If the server determines that the result of the verification according to the second identity authentication method has not been passed, it may return a prompt message that the first identity authentication information is unavailable to the terminal. The terminal may load the pre-stored page corresponding to the second identity authentication method, and then send the second identity authentication information to the server. Figure 5 (not shown)

[0220] In step 507, the server receives first identity authentication information sent by the terminal.

[0221] In step 508, the server extracts the time parameter and the data to be verified from the first identity verification information.

[0222] That is, the time parameter and the data to be verified are extracted from the encrypted verification information.

[0223] In step 509, the server determines whether the time parameter is valid, and determines whether the data to be verified meets a preset data condition.

[0224] When it is determined that the time parameter is valid and the data to be verified meets the preset data condition, step 510 is executed. When it is determined that the time parameter is invalid and / or the data to be verified does not meet the preset data condition, step 504 is executed.

[0225] In step 510, the server determines that the identity authentication for the terminal is passed, obtains response data corresponding to the data request, and sends the response data to the terminal.

[0226] In step 511, the server refuses to perform identity authentication according to the first identity authentication information.

[0227] Among them, the server may not send the page of the first identity authentication method to the terminal. After step 511, the server may send the page corresponding to the second identity authentication method to the terminal, or the server may send a prompt message to the terminal that the first identity authentication information is unavailable, and load the pre-stored page corresponding to the second identity authentication method. Based on the page corresponding to the second identity authentication method, the terminal may send the second identity authentication information to the server so that steps 512 to 514 can be executed. Figure 5 (not shown)

[0228] In step 512, the server receives second identity verification information.

[0229] The second identity authentication information is an encrypted user name and password.

[0230] In step 513, when the identity authentication of the terminal is passed based on the second identity authentication information, if the time parameter and the data to be authenticated have not been sent to the terminal, the data to be authenticated and the time parameter are generated.

[0231] In step 514, response data corresponding to the data request is obtained, and the response data is sent to the terminal.

[0232] The above steps 511 to 514 mean that if the identity authentication method received by the server is the first identity authentication method and there is no result of verification according to the second identity authentication method, the server refuses to authenticate according to the first identity authentication information, or receives the second identity authentication information and authenticates according to the second identity authentication information.

[0233] In some embodiments, after step 505, it may also be determined whether the time parameter and the data to be verified have not expired. If the user selects the first identity authentication method, and the time parameter and the data to be verified have not expired, steps 507 to 510 may be performed. If the user does not select the first identity authentication method, that is, selects the second identity authentication method (corresponding to the case where the terminal sends the second identity authentication information to the server), and / or if the time parameter and the data to be verified have expired, steps 512 to 514 may be performed.

[0234] In some embodiments, the method for generating the data to be verified and the time parameters can use steps 104-105 to generate the time parameters and the data to be verified, and can also use steps 107-108 to generate the time parameters and the data to be verified, which will not be repeated here.

[0235] The following is a description of an exemplary structure of the identity verification device 255 provided in the embodiment of the present application implemented as a software module. In some embodiments, for example, Figure 2 As shown, the software modules stored in the identity verification device 255 of the memory 240 may include:

[0236] The receiving module 2551 is used to receive first identity authentication information, where the first identity authentication information includes encrypted authentication information;

[0237] An extraction module 2552, used to extract the information to be verified from the encrypted verification information;

[0238] The verification module 2553 is further configured to determine that the identity verification is successful if the information to be verified meets a preset condition.

[0239] In some embodiments, the information to be verified includes a time parameter and data to be verified. The extraction module 2552 is further configured to extract the time parameter and the data to be verified from the encrypted verification information.

[0240] The verification module 2553 is further configured to determine that the identity verification is successful if the time parameter is valid and the data to be verified meets a preset data condition.

[0241] In some embodiments, the software modules stored in the identity verification device 255 of the memory 240 may also include:

[0242] The sending module is used to respond to the identity authentication request and send the identity authentication method; if the received identity authentication method is the first identity authentication method and there is a result of verification according to the second identity authentication method, the first identity authentication information is received.

[0243] In some embodiments, the receiving module 2551 is also used to refuse to authenticate based on the first identity authentication information, or to receive the second identity authentication information and authenticate based on the second identity authentication information if the received identity authentication method is the first identity authentication method and there is no verification result according to the second identity authentication method.

[0244] In some embodiments, the receiving module 2551 is further used to receive second identity authentication information if the received identity authentication method is a second identity authentication method, the second identity authentication information including a user name and a password, and perform identity authentication according to the second identity authentication information.

[0245] In some embodiments, the verification module 2553 is also used to determine the valid period based on the time parameter; if the reception time of the first identity authentication information is within the valid period, and the data to be verified belongs to the preset data set corresponding to its order, it is determined that the identity authentication is passed.

[0246] In some embodiments, the verification module 2553 is also used to determine the valid period based on the time parameter; if the reception time of the first identity authentication information is within the valid period, and the time parameter is obtained after the data to be verified is adjusted in reverse according to the preset arrangement order, it is determined that the identity authentication is passed.

[0247] In some embodiments, the software module stored in the identity authentication device 255 of the memory 240 may also include: a generation module, which is used to extract a preset number of data from a preset data set to obtain data to be verified before receiving the first identity authentication information; obtain the generation time of the data to be verified, and determine the time parameter based on the generation time; generate the first identity authentication information based on the data to be verified and the time parameter.

[0248] In some embodiments, the preset data set includes a first preset data set and a second preset data set, and the data in the first preset data set and the data in the second preset data set are of different types.

[0249] The generation module is also used to extract a first number of data from the first preset data set and combine them to obtain first sub-data; extract a second number of data from the second preset data set and combine them to obtain second sub-data; splice the first sub-data and the second sub-data in sequence to obtain data to be verified, and the sum of the first number and the second number is the preset number.

[0250] In some embodiments, the generation module is further used to obtain the current time before receiving the first identity authentication information, generate the data to be verified according to the current time and a preset arrangement order; determine the time parameter based on the current time; and generate the first identity authentication information based on the data to be verified and the time parameter.

[0251] In some embodiments, the generating module is further used to concatenate the time parameter and the data to be verified to obtain the information to be encrypted; and encrypt the information to be encrypted to obtain the first identity verification information.

[0252] The embodiment of the present application provides a computer program product, which includes a computer program or a computer executable instruction, and the computer program or the computer executable instruction is stored in a computer-readable storage medium. The processor of the electronic device reads the computer executable instruction from the computer-readable storage medium, and the processor executes the computer executable instruction, so that the electronic device performs the above-mentioned identity authentication method of the embodiment of the present application.

[0253] The embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions or computer programs are stored. When the computer-executable instructions or computer programs are executed by a processor, the processor will be caused to execute the identity authentication method provided in the embodiment of the present application, for example, Figure 3A Authentication method shown.

[0254] In some embodiments, the computer-readable storage medium may be a memory such as RAM, ROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.

[0255] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0256] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0257] As an example, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.

[0258] In summary, the identity authentication method provided in the embodiment of the present application can use time parameters and data to be verified for identity authentication. Only when it is determined that the time parameters are valid and the data to be verified meets the preset data conditions, the terminal identity authentication is determined to be passed. That is to say, the identity authentication method provided in the embodiment of the present application performs two different levels of verification. The first level of verification is to determine whether the time parameters are valid, and the second level of verification is to determine whether the data to be verified meets the preset data conditions. Compared with the method of using a user name and password for identity authentication, there is no need to access the database every time to determine whether the identity authentication is passed, which can improve the efficiency of identity authentication while ensuring security. Moreover, for the server, the server and the database do not need to store time parameters and data to be verified, which can save storage resources and reduce maintenance costs.

[0259] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. An identity authentication method, characterized in that: The method comprises: receiving first identity verification information, the first identity verification information comprising encrypted verification information; Extracting the information to be verified from the encrypted verification information; If the information to be verified meets the preset conditions, it is determined that the identity authentication is passed.

2. The method according to claim 1, characterized in that: The information to be verified includes a time parameter and data to be verified, and extracting the information to be verified from the encrypted verification information includes: Extracting the time parameter and the data to be verified from the encrypted verification information; If the information to be verified meets the preset conditions, determining that the identity authentication is passed includes: If the time parameter is valid and the data to be verified meets the preset data condition, it is determined that the identity authentication is passed.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: Respond to the authentication request and send the authentication method; If the received identity authentication method is the first identity authentication method and there is a result of verification according to the second identity authentication method, the first identity authentication information is received.

4. The method according to claim 3, characterized in that The method further comprises: If the received identity authentication method is the first identity authentication method and there is no result of passing the verification according to the second identity authentication method, then the identity authentication according to the first identity authentication information is rejected, or the second identity authentication information is received and the identity authentication is performed according to the second identity authentication information.

5. The method according to claim 3, characterized in that: The method further comprises: If the received identity authentication method is the second identity authentication method, second identity authentication information is received, the second identity authentication information includes a user name and a password, and identity authentication is performed according to the second identity authentication information.

6. The method according to claim 2, characterized in that If the time parameter is valid and the data to be verified meets the preset data condition, determining that the identity verification is passed includes: Determine a valid period according to the time parameter; If the receiving time of the first identity authentication information is within the valid period, and the data to be verified belongs to a preset data set corresponding to its sequence, it is determined that the identity authentication is successful.

7. The method according to claim 2, characterized in that If the time parameter is valid and the data to be verified meets the preset data condition, determining that the identity verification is passed includes: Determine a valid period according to the time parameter; If the receiving time of the first identity authentication information is within the valid period, and the time parameter is obtained after the data to be authenticated is adjusted in reverse according to the preset arrangement order, it is determined that the identity authentication is passed.

8. The method according to claim 1, characterized in that Before receiving the first identity verification information, the method further includes: Extracting a preset number of data from a preset data set to obtain data to be verified; Obtaining the generation time of the data to be verified, and determining a time parameter based on the generation time; The first identity verification information is generated based on the data to be verified and the time parameter.

9. The method according to claim 8, characterized in that The preset data set includes a first preset data set and a second preset data set, and the data in the first preset data set and the data in the second preset data set are of different types; The step of extracting a preset number of data from a preset data set to obtain data to be verified includes: Extracting a first number of data from the first preset data set and combining them to obtain first sub-data; Extracting a second number of data from the second preset data set and combining them to obtain second sub-data; The first sub-data and the second sub-data are sequentially concatenated to obtain data to be verified, and the sum of the first number and the second number is the preset number.

10. The method according to claim 1, characterized in that Before receiving the first identity verification information, the method further includes: Obtain the current time, and generate the data to be verified according to the current time and a preset arrangement order; determining a time parameter based on the current time; The first identity verification information is generated based on the data to be verified and the time parameter.

11. The method according to any one of claims 8 to 10, characterized in that: The generating the first identity verification information based on the data to be verified and the time parameter includes: Concatenate the time parameter and the data to be verified to obtain information to be encrypted; The information to be encrypted is encrypted to obtain the first identity authentication information.

12. An identity verification device, characterized in that: The device comprises: A receiving module, configured to receive first identity verification information, wherein the first identity verification information includes encrypted verification information; An extraction module, used to extract the information to be verified from the encrypted verification information; The verification module is used to determine that the identity verification is successful if the information to be verified meets a preset condition.

13. An electronic device, characterized in that: The electronic device comprises: A memory for storing computer executable instructions; A processor, configured to implement the identity authentication method according to any one of claims 1 to 11 when executing the computer executable instructions stored in the memory.

14. A computer-readable storage medium storing computer-executable instructions or a computer program, characterized in that: When the computer executable instructions or computer program are executed by a processor, the identity authentication method according to any one of claims 1 to 11 is implemented.

15. A computer program product comprising computer executable instructions or a computer program, characterized in that When the computer executable instructions or computer program are executed by a processor, the identity authentication method according to any one of claims 1 to 11 is implemented.