An identity authentication method, client, relay device and server
By including the encrypted verification code in the wireless network name, the client decrypts it to complete the authentication, which solves the authentication problem when the wireless communication network is unstable, improves convenience and application scenarios, and saves data traffic.
Patent Information
- Application Number
- CN201910122054.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2014-07-31
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2034-07-31
AI Technical Summary
The existing technology cannot complete identity verification when the wireless communication network of the user's telecom operator is unstable or has no coverage, resulting in identity verification failure.
The server generates an encrypted verification code and includes it in the wireless network name. The client scans and decrypts it to complete the authentication, and uses the wireless LAN for information exchange to ensure the completion of the authentication.
When the wireless communication network is unstable, identity verification is performed through the wireless local area network, which improves the application scenarios and convenience of identity verification and saves users' data communication traffic.
Smart Images

Figure CN110062382B
Abstract
Description
[0001] This application is a divisional application of the invention patent application with application number 201410373794.6, application date July 31, 2014, and invention name “An identity authentication method, client, relay device and server”. Technical Field
[0002] The present application belongs to the field of information communication, and in particular, relates to an identity authentication method, a client, a relay device and a server in the field of instant messaging / e-commerce. Background Art
[0003] With the rapid development of the Internet, people's lives are becoming more and more closely connected with the Internet. In real life, some self-service services have emerged, such as offline self-service credit card repayment, self-service bus card recharge, and offline payment through online third-party payment systems such as Alipay.
[0004] Usually when users use these self-services, the server providing the self-service or the public device connected to the server needs to authenticate the user. If the user enters the verification password directly on the public device or server, the user password may be leaked by illegal means such as peeping, Trojans, pinhole electronic eyes, etc. With the development of smart mobile terminals, a method for completing identity authentication through online information exchange between the mobile terminal and the server or public settings has emerged in the prior art. In this method, the mobile terminal can obtain relevant information about the self-service by scanning the QR code information on the server or public device, or the server or public device can obtain the user's account information by scanning the user's QR code information on the client, and then the mobile terminal and the server or public device further exchange information online through the acquired information to complete identity authentication.
[0005] At present, the information exchange process for identity authentication between the client and the server or public equipment is usually implemented through the wireless communication network of the telecom operator where the client is located. For example, a Unicom user can communicate with the server based on the GSM network or WCDMA network of the Unicom operator to complete the identity authentication. However, if the wireless communication network of the telecom operator where the user is located is unstable or has no coverage, or the wireless communication network cannot be used normally due to the user's traffic restrictions, etc., this method will not be able to complete the identity authentication of the user. Summary of the invention
[0006] The purpose of this application is to provide an identity authentication method, client, public equipment, server and system, which can complete the identity authentication of a user when the wireless communication network of the telecommunications operator where the user is located cannot be used normally.
[0007] One authentication method provided by this application is implemented as follows:
[0008] The server obtains the user's account information, and queries the encryption algorithm corresponding to the obtained account information based on the stored user information;
[0009] The server encrypts the first verification code of the server using the queried encryption algorithm to form an encrypted first verification code;
[0010] The server establishes a wireless network, and sets a network name in a predetermined format for the established wireless network; the network name includes the encrypted first verification code;
[0011] The client scans the network name of the wireless network; the client extracts the encrypted first verification code from the scanned network name that conforms to the agreed format;
[0012] The client uses a stored decryption algorithm to decrypt the encrypted first verification code; the client performs identity authentication according to the decryption result of the encrypted first verification code.
[0013] An identity authentication method, the method comprising:
[0014] The server obtains the user's account information, and queries the encryption algorithm corresponding to the obtained account information based on the stored user information;
[0015] The server encrypts the first verification code of the server using the queried encryption algorithm to form an encrypted first verification code;
[0016] The server establishes a wireless network, and sets a network name in a predetermined format for the established wireless network; the network name includes the encrypted first verification code;
[0017] The client scans the network name of the wireless network; the client extracts the encrypted first verification code from the scanned network name that conforms to the agreed format;
[0018] The client uses the stored decryption algorithm to decrypt the encrypted first verification code, and the client sends the decryption result of the encrypted first verification code to the server through the wireless network;
[0019] The server receives the decryption result and performs identity authentication according to the decryption result.
[0020] An identity authentication method, the method comprising:
[0021] The server obtains the user's account information, and queries the encryption algorithm corresponding to the obtained account information based on the stored user information;
[0022] The server encrypts the first verification code of the server using the queried encryption algorithm to form an encrypted first verification code;
[0023] The server establishes a wireless network, and sets a network name in a predetermined format for the established wireless network; the network name includes the encrypted first verification code;
[0024] The client scans the network name of the wireless network; the client extracts the encrypted first verification code from the scanned network name that conforms to the agreed format;
[0025] The client uses the stored decryption algorithm to decrypt the extracted encrypted first verification code; when the decryption is successful, the client uses the stored decryption algorithm to encrypt the client's third verification code to form an encrypted third verification code, and sends the encrypted third verification code to the server via the wireless network;
[0026] The server receives the encrypted third verification code, and decrypts the encrypted third verification code using an encryption algorithm corresponding to the acquired user account information; the server performs identity authentication based on the decryption result of the encrypted third verification code.
[0027] An identity authentication method, the method comprising:
[0028] The relay device obtains the input account information and sends the obtained account information to the server;
[0029] The server receives the account information and queries the encryption algorithm corresponding to the acquired user account information based on the stored user information; the server sends the encryption algorithm to the relay device;
[0030] The relay device receives the encryption algorithm, and uses the received encryption algorithm to encrypt the first verification code of the relay device to form an encrypted first verification code; the relay device establishes a wireless network, and sets a network name in a predetermined format for the established wireless network; the network name includes the encrypted first verification code;
[0031] The client scans the network name of the wireless network; the client extracts the encrypted first verification code from the scanned network name that conforms to the agreed format, and decrypts the encrypted first verification code using the stored decryption algorithm; the client performs identity authentication based on the decryption result of the encrypted first verification code.
[0032] An identity verification method, the method comprising:
[0033] The relay device obtains the input account information and sends the obtained account information to the server;
[0034] The server receives the account information and queries the encryption algorithm corresponding to the acquired user account information based on the stored user information; the server sends the encryption algorithm to the relay device;
[0035] The relay device receives the encryption algorithm, and uses the received encryption algorithm to encrypt the first verification code of the relay device to form an encrypted first verification code; the relay device establishes a wireless network, and sets a network name in a predetermined format for the established wireless network; the network name includes the encrypted first verification code;
[0036] The client scans the network name of the wireless network; the client extracts the encrypted first verification code from the scanned network name that conforms to the agreed format; the client decrypts the extracted encrypted first verification code using a stored decryption algorithm, and sends the decryption result of the extracted encrypted first verification code to the relay device through the wireless network;
[0037] The relay device receives the decryption result sent by the client and sends the decryption result to the server;
[0038] The server receives the decryption result sent by the relay device, and performs identity authentication according to the decryption result.
[0039] An identity authentication method, the method comprising:
[0040] The relay device obtains the input account information and sends the obtained account information to the server;
[0041] The server receives the account information and queries the encryption algorithm corresponding to the acquired user account information based on the stored user information; the server sends the encryption algorithm to the relay device;
[0042] The relay device receives the encryption algorithm, and uses the received encryption algorithm to encrypt the first verification code of the relay device to form an encrypted first verification code; the relay device establishes a wireless network, and sets a network name in a predetermined format for the established wireless network; the network name includes the encrypted first verification code;
[0043] The client scans the network name of the wireless network; the client extracts the encrypted first verification code from the scanned network name that conforms to the agreed format; the client decrypts the extracted encrypted first verification code using a stored decryption algorithm; when the decryption is successful, the message receiving end can encrypt the client's third verification code using the stored decryption algorithm to form an encrypted third verification code; the client sends the encrypted third verification code to the relay device via the wireless network;
[0044] The relay device receives the encrypted third verification code and sends the encrypted third verification code to the server;
[0045] The server receives the encrypted third verification code, and decrypts the encrypted third verification code using an encryption algorithm corresponding to the acquired user account information; the server performs identity authentication based on the decryption result of the encrypted second verification code.
[0046] An identity authentication method, the method comprising:
[0047] The server obtains the user's account information, and queries the encryption algorithm corresponding to the obtained account information based on the stored user information;
[0048] The server encrypts the first verification code of the server using the queried encryption algorithm to form an encrypted first verification code;
[0049] The server establishes a wireless network and sets a network name in a predetermined format for the established wireless network; the network name includes the encrypted first verification code.
[0050] An identity authentication method, the method comprising:
[0051] The client scans the network name of the wireless network;
[0052] The client extracts the encrypted first verification code from the scanned network name that conforms to the agreed format;
[0053] The client uses the stored decryption algorithm to decrypt the extracted encrypted first verification code;
[0054] The client performs identity authentication according to the decryption result of the encrypted first verification code.
[0055] An identity authentication method, the method comprising:
[0056] The client scans the network name of the wireless network;
[0057] The client extracts the encrypted first verification code from the scanned network name that conforms to the agreed format;
[0058] The client uses the stored decryption algorithm to decrypt the extracted encrypted first verification code, and sends the decryption result of the extracted encrypted first verification code to the server or relay device by scanning the wireless network.
[0059] An identity authentication method, the method comprising:
[0060] The client scans the network name of the wireless network;
[0061] The client extracts the encrypted first verification code from the scanned network name that conforms to the agreed format;
[0062] The client uses the stored decryption algorithm to decrypt the extracted encrypted first verification code; when the decryption is successful, the client uses the stored decryption algorithm to encrypt the client's third verification code to form an encrypted third verification code;
[0063] The client sends the encrypted third verification code to the server or relay device through the wireless network.
[0064] An authentication server comprising:
[0065] An account acquisition unit, used to acquire the user's account information;
[0066] A user database is used to store user information; the user information may include user account information and user encryption algorithm;
[0067] A query unit, configured to query an encryption algorithm corresponding to the acquired account information based on the stored user information;
[0068] an encryption unit, which generates a first verification code and is used to encrypt the first verification code using the queried encryption algorithm to form an encrypted first verification code;
[0069] The wireless network unit is used to establish a wireless network and set a network name in a prescribed format for the established wireless network; the network name includes the encrypted first verification code.
[0070] An authentication client comprising:
[0071] A storage unit for storing the agreed format of the network name; and a decryption algorithm for storing the user's account information;
[0072] A network scanning unit, configured to scan a network name of a wireless network that complies with the agreed format based on the stored agreed format of the network name;
[0073] An extraction unit, used to extract the encrypted first verification code from the scanned network name that conforms to the agreed format;
[0074] The first decryption unit is used to decrypt the extracted encrypted first verification code based on a stored decryption algorithm.
[0075] An identity authentication relay device, comprising:
[0076] An information acquisition unit, used to acquire user account information;
[0077] An information receiving unit, used for receiving the encryption algorithm sent by the server;
[0078] An information encryption unit, used to generate or receive a first verification code from a server, and encrypt the first verification code using the received encryption algorithm to form an encrypted first verification code;
[0079] The wireless network broadcast unit is used to establish a wireless network and set a network name in a predetermined format for the established wireless network; the network name includes the encrypted first verification code.
[0080] In an identity authentication method provided by the present application, a server or a public device can establish a wireless network, and encrypt a randomly generated verification code using a public key and broadcast it through the network name of the wireless network. The client can scan the wireless network established by the server according to a predetermined rule through a wireless device carried by itself, and can extract the encrypted verification code in the network name according to a predetermined network name format. The client uses its own stored private key to decrypt the encrypted verification code. If the decryption is successful, the identity authentication can be passed. The identity authentication method of the present application can be used to complete identity authentication by exchanging information with the client through a wireless network established by a server or a public device when the wireless communication network of the user's telecommunications operator cannot be used normally. Most existing mobile devices are equipped with wireless access devices, such as WIFI access devices, etc. The method described in the present application can also greatly improve the application scenarios of identity authentication, improve the convenience of identity authentication, and save the data communication traffic of the user's telecommunications operator. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0082] Figure 1 This is a method flow chart of an embodiment of an identity authentication method of the present application;
[0083] Figure 2 is a schematic diagram of a predetermined format of a network name in an identity authentication method of the present application;
[0084] Figure 3 is a method flow chart of another embodiment of an identity authentication method of the present application;
[0085] Figure 4 is a method flow chart of another embodiment of an identity authentication method of the present application;
[0086] Figure 5 This is a schematic diagram of the module structure of a server for identity authentication in this application;
[0087] Figure 6 It is a schematic diagram of the module structure of another embodiment of an identity authentication server of the present application;
[0088] Figure 7 It is a schematic diagram of the module structure of a first identity authentication unit of an identity authentication server of the present application;
[0089] Figure 8 It is a schematic diagram of the module structure of another embodiment of an identity authentication server of the present application;
[0090] Fig. 9 It is a schematic diagram of the module structure of a second identity authentication unit of an identity authentication server of the present application;
[0091] Fig.10 This is a schematic diagram of the module structure of a client for identity authentication in this application;
[0092] Fig.11 It is a schematic diagram of the module structure of another embodiment of an identity authentication client of the present application;
[0093] Fig.12 It is a schematic diagram of the module structure of another embodiment of an identity authentication client of the present application;
[0094] Fig.13 It is a schematic diagram of the module structure of another embodiment of an identity authentication client of the present application;
[0095] Fig.14 It is a schematic diagram of the module structure of an embodiment of a relay device for identity authentication of the present application;
[0096] Fig.15 It is a schematic diagram of the module structure of another embodiment of an identity authentication relay device of the present application. DETAILED DESCRIPTION
[0097] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0098] Before using self-service offline, users usually register user information on the server of the self-service provider for subsequent identity confirmation. The user information may include the user's account information, password and other information. The server may obtain and store the user information, and specifically may store the user information in a user database. The user database may be a database stored in the server, or may be a database stored on other devices. After obtaining the user information of the user, the server may generate a pair of encryption algorithms and decryption algorithms corresponding to the user's account information. The server may store user information including the user's account information, password and other information, and may also store encryption algorithms and / or decryption algorithms corresponding to the user's account information, and specifically may store them in the user database. The user's encryption algorithm may uniquely correspond to the user's account information, and the server may query the encryption algorithm corresponding to the user based on the user's account information. The server may send the decryption algorithm corresponding to the user's account information to the user's client, which may be stored by the user's client. The user's client may pre-install the corresponding application, and the client may communicate with the server through the corresponding application installed on the client. When the user logs in to the installed application for the first time to confirm the account or other verification with the server, the user may obtain the decryption algorithm corresponding to the user sent by the server through the application on the client. The client may store the obtained decryption algorithm. For the purpose of unified expression, the above-mentioned client-side applications may be collectively referred to as clients. The encryption algorithm and decryption algorithm described in the present application may include a method for processing plaintext information. The encryption algorithm may include an information processing method for encrypting plaintext information, and accordingly, the decryption algorithm may decrypt information encrypted by the encryption algorithm to obtain correct plaintext information. The encryption algorithm and decryption algorithm are methods for processing information. In a specific application example, the encryption algorithm may be used to encrypt plaintext information, and the decryption algorithm corresponding to the encryption algorithm may be used to decrypt the information to obtain the plaintext information. Of course, depending on the selected encryption algorithm and decryption algorithm, in some application scenarios, the decryption algorithm may also be used to encrypt plaintext information and the encryption algorithm may be used to decrypt it.
[0099] When performing identity authentication, the client can exchange information with the server, and identity authentication can be performed by verifying whether the client's decryption algorithm can decrypt the information encrypted by the server with the encryption algorithm. When performing identity authentication, the server and the client can exchange information through a wireless local area network to complete the identity authentication. The following is an embodiment of an identity authentication method of the present application, Figure 1 is a method flow chart of an embodiment of the identity authentication method. Figure 1As shown, the method includes:
[0100] S1: The server may obtain the user's account information, and query the encryption algorithm corresponding to the obtained account information based on the stored user information.
[0101] The user can input the user's account information on the server, and the server can obtain the account information input by the user. Specifically, the server can obtain the account information input by the user through an account input interface set on the server. The account information input by the user can also be obtained by other dedicated devices such as POS card readers, scanners and other relay devices, and then the obtained user account information is sent to the server.
[0102] After the server obtains the user's account information, it can query the encryption algorithm corresponding to the account information. The encryption algorithm corresponding to the account information can have a decryption algorithm corresponding to the encryption algorithm. In the above, the server can store user information including the user's account information, password, etc., and can also store the encryption algorithm corresponding to the user's account information. The server can query the encryption information corresponding to the acquired account information based on the stored user information. In this embodiment, the server can set up a user database, which can be used to store the user information, encryption algorithm or decryption algorithm and other information of the user. The user database can be set up on the server or on other dedicated servers. The server can query whether there is an encryption algorithm corresponding to the acquired account information in the user database. Generally, if the user A has registered the user information on the server before identity authentication, the server can store the account information, encryption information and other information of the user A. After the server obtains the account information of the user A, it can query the encryption algorithm corresponding to the user A.
[0103] The encryption algorithm and decryption algorithm described in this embodiment can be specifically a public key and a private key in an asymmetric key cryptographic system in a cryptographic system. The public key and the private key in the asymmetric key cryptographic system can encrypt and decrypt each other. The public key and the private key can be a public key algorithm and a private key algorithm for encrypting or decrypting plain text information. When the asymmetric key cryptographic system is used to encrypt plain text information, only a pair of public keys / private keys that match each other can be used to complete the decryption process of the plain text information. Usually, the public key can be public, does not need to be kept confidential, and can be stored by the server; the private key can be private and can be stored by the user side corresponding to the pair of public keys and private keys. For example, the private key can be stored in an application of the user client.
[0104] Of course, after obtaining the account information input by the user, the server can verify whether the account information input by the user is legal, for example, it can verify whether the format of the account information input by the user conforms to the preset format, or verify whether the account information input by the user has been registered on the server, etc. When the server verifies that the account information input by the user is not legal, the server can use a preset processing method to process it.
[0105] The server may obtain the account information input by the user, and may query the encryption algorithm corresponding to the account information input by the user in the user information stored in the user database.
[0106] S2: The server encrypts the first verification code of the server using the queried encryption algorithm to form an encrypted first verification code.
[0107] After the server inquires about the encryption algorithm corresponding to the user input account, the first verification code of the server can be encrypted. The first verification code A can include one or more verification codes generated by the server according to a predetermined algorithm based on the user's account information or encryption algorithm, or it can be one or more verification codes randomly generated according to certain rules. Of course, the first verification code can also include verification codes sent by other servers or special devices received by the server. When the server can store the first verification code. The first verification code A can specifically include the form of a string, for example, the first verification code A can be a set of 16-bit random strings. After generating the first verification code A, the server can use the encryption algorithm of the queried user, that is, the public key in this embodiment to encrypt the first verification code A. The public key can be an encryption / decryption public key algorithm, and the server can use the queried public key to encrypt the first verification code A to form the encrypted first verification code, and A' can be used here to represent the encrypted first verification code.
[0108] The server may generate or receive a first verification code A, and the server may encrypt the first verification code A using the queried encryption algorithm to form an encrypted first verification code A'.
[0109] S3: The server establishes a wireless network, and sets a network name in a predetermined format for the established wireless network; the network name may include the encrypted first verification code.
[0110] The server described in this embodiment can establish a wireless network, and specifically, a wireless network can be established by a wireless network device set up on the server. The server described in this embodiment can be set in the same group of devices as the wireless network device, or it can be separated from the wireless network device and set in different places, and communication can be carried out between them through the set transmission link. The server can broadcast the encrypted first verification code A' through the network name of the wireless network. It should be noted that the wireless network described in this application may include communication connections in short-range wireless communication methods, such as Bluetooth, infrared (IrDA), wireless local area network (WI-FI or WLAN, mostly using 802.11 series protocols), WIFI direct connection (Wi-Fi Direct), ultra-wideband communication (Ultra Wide Band), Zigbee (Zigbee), near field communication (Near Field Communication, NFC), WImax and other communication technologies. This application introduces a specific implementation scheme in combination with the above-mentioned communication method, and does not exclude other communication methods from being applied to the specific scheme described below in this application.
[0111] Specifically, in this embodiment, the wireless network established by the server can be a WIFI network. Wireless Fidelity (WIFI) technology generally refers to a wireless local area network access technology based on the 802.11 protocol, which is a short-range wireless communication technology used in offices or homes. A WIFI network can generally be composed of a WIFI access point (AP) and a terminal. The access point AP can establish a wireless network through devices such as a wireless network card, and connect the terminal device to another network. The other network can be a wireless network or a wired network. In this embodiment, the access point AP can communicate directly with the server through ADSL or other lines, and communicate with the server through corresponding relay devices. The access point AP is equivalent to a bridge between different networks, and its working principle is equivalent to a hub (HUB) or a router with a built-in wireless transmitter. A client with a WIFI access function can exchange information with the server through the WIFI network established by the AP.
[0112] The server can broadcast the encrypted first verification code A' through the network name of the wireless network. When the server establishes a wireless network, a network name in a predetermined format can be set for the wireless network. In this embodiment, when the server establishes a WIFI network, a WIFI network name or identifier can be set for the WIFI network, and the network name or identifier is usually called SSID (Service Set Identifier, SSID). The SSID can usually have up to 32 characters. The SSID can include the encrypted first verification code A'. In this embodiment, the server can set the SSID in an agreed format, and the SSID in the agreed format can include the encrypted verification code A'. For example, the encrypted first verification code A' can be used as the SSID and then broadcast through the WIFI network. Or the encrypted first verification code A' can be located in a field of the SSID in the agreed format according to the pre-set agreed format of the SSID. For example, the format of the SSID can be a combination of the encrypted first verification code A' and a preset name or account information, such as: AUTH+A', or it can be: account name+A'. In Figure 2 is a schematic diagram of the structure of an SSID in a predetermined format described in this embodiment, such as Figure 2 As shown, the SSID network name, and the agreed format of the SSID of the WFII can include: AUTH (preset name) + 0000 (separator character) + encrypted verification code A' (16 bits). Using the agreed format of the SSID described in this embodiment, the SSID of the WIFI broadcast by the server can be expressed as: AUTH0000A'.
[0113] Of course, in the present application, the agreed format of the network name can be other pre-set network name composition formats, and the present application does not limit this. Accordingly, the server can send the agreed format of the network name to the client, and specifically can send it to a specific application preset by the client. The client can learn the agreed format of the network name and can obtain information of different fields of the network name according to the predetermined format.
[0114] The server may establish a WIFI network and set an SSID of a predetermined format for the established WIFI network. The SSID of the predetermined format established by the server may include the encrypted first verification code A'. The server may broadcast the WIFI network established by the server.
[0115] S4: The client may scan the network name of the WIFI network, and extract the encrypted first verification code from the scanned network name that conforms to the agreed format.
[0116] The client described in this application may generally include terminal devices such as laptops, netbooks, mobile phones, personal digital assistants (PDAs), and mobile Internet devices (MIDs) with wireless access devices (such as wireless network cards). The client can scan the surrounding wireless networks, and when a WIFI network with a network name that conforms to the agreed format is scanned, the network name of the wireless network is obtained, and the encrypted first verification code can be extracted from the obtained network name.
[0117] In the above, the server can send the agreed format of the network name to the client, so the client can obtain the agreed format of the network name, and can scan the network names of the surrounding wireless networks that conform to the agreed format according to the agreed format of the network name. For example, the agreed format of the network name received by the client may include: AUTH (preset name) + 0000 (separator character) + encrypted verification code A' (16 bits). The client can scan the surrounding wireless networks and obtain the scanned wireless network names. The client can determine whether the network names of the scanned surrounding wireless networks conform to the agreed format. The client can scan the network name that conforms to the agreed format according to the agreed format: AUTH0000A'. After the server scans the network name that conforms to the agreed format, it can obtain the network name of the WIFI network and extract the encrypted first verification code A' in the network name.
[0118] S501: The client uses a stored decryption algorithm to decrypt the extracted encrypted first verification code; the client performs identity authentication according to the decryption result of the encrypted first verification code.
[0119] The client can use the user's decryption algorithm stored in itself to decrypt the extracted encrypted first verification code A'. In this embodiment, the decryption algorithm may include a private key stored on the client. The client can use the stored private key to decrypt the first verification code A' encrypted by the public key. As mentioned above, when using the asymmetric key cryptographic system to encrypt plain text information, only a pair of public key / private key that matches each other can be used to complete the decryption process of the plain text information. In this embodiment, the first verification code A encrypted by the public key can only be decrypted by a private key that matches the public key. If the client can decrypt the encrypted first verification code A' using the stored private key, it means that the private key stored by the client and the public key used by the server to encrypt the first verification code A are a pair of mutually matching keys, and the decryption result is successful. Correspondingly, if the client cannot decrypt the encrypted first verification code A' using the private key stored in itself, the decryption result is failed.
[0120] The client can perform identity authentication based on the decryption result of the encrypted first verification code. For example, if the decryption result is successful, the client can pass the identity authentication. At this time, the client can obtain the pre-set data access rights when the identity authentication is passed. The application on the specific client can set the user's access rights to specific application functions only after passing the identity authentication. If the decryption result is unsuccessful, the client cannot pass the identity authentication. In the WIFI network established by the server, the server can set the client's access authentication method, including unencrypted authentication and encrypted authentication. In this embodiment, the server can set the client's access authentication method to unencrypted authentication. The client can connect to the corresponding WIFI network without password verification and establish communication with the server. The WIFI network established by the server belongs to a wireless local area network for short-range communication. The client can exchange information with the server and perform identity authentication by accessing the WIFI network.
[0121] In a specific application scenario, the server can provide a mobile phone self-service recharge service. The server can establish a WIFI network corresponding to the account information input by the user, and only the application on the mobile terminal that has passed the identity authentication can access the application of the mobile phone self-service recharge service set by the server. The application on the mobile terminal can also be set to have the authority to send a request to access the application of the mobile phone self-service recharge service of the server only when the identity authentication is passed. Specifically, the server can obtain the account information of user C: user123 through the port scanning QR code information on the client or through the account information entered by user C on the server. The server can query the public key corresponding to the account information user123 in the user database as K_PUB. The public key can be expressed as a public key encryption algorithm corresponding to the user user123. After querying the public key information corresponding to the user yongh123, the server can randomly generate a 16-digit first verification code MK3D90HB8H2JT4VZ. The server can use the public key K_PUB corresponding to the user user123 to encrypt the first verification code MK3D90HB8H2JT4VZ randomly generated by the server to form an encrypted first verification code PYKJH89LOEN7F56G. The server can establish a WIFI network through a WIFI device, and can set the SSID of the WIFI network according to the agreed format of the SSID. The agreed format of the SSID can be sent to the application downloaded to the client by the user before this identity authentication. The agreed format of the SSID can be: AUTH (preset name) + 0000 (separator character) + encrypted verification code A' (16 bits). The server can set the SSID of the WIFI network established by the server corresponding to the user account user123 according to the agreed format of the above SSID, which can be: AUTH0000PYKJH89LOEN7F56G. After the server establishes the WIFI network, the SSID including the encrypted first verification code can be broadcast to the surrounding space. The client can scan the surrounding WIFI networks that conform to the SSID of the agreed format through the application installed on the mobile terminal. When the client scans a WIFI network with an SSID that conforms to the agreed format, the client can obtain the SSID of the WIFI network as AUTH0000PYKJH89LOEN7F56G, and extract the encrypted first verification code PYKJH89LOEN7F56G according to the agreed format of the SSID. The client can use the private key K_PRI stored in itself to decrypt the extracted encrypted first verification code PYKJH89LOEN7F56G.The client can decrypt the encrypted first verification code PYKJH89LOEN7F56G using the private key K_PRI. If the decryption result is successful, the application on the client can pass the identity authentication. The specific application on the client can connect to the WIFI network with SSID AUTH0000PYKJH89LOEN7F56G according to the pre-set rules, and has the authority to access the application of the mobile phone self-service recharge service set by the server, or has the authority to send a request to the server to access the mobile phone self-service recharge service. The server and the client can exchange information through the WIFI network with SSID AUTH0000PYKJH89LOEN7F56G established by the server to complete the mobile phone self-service recharge service of the client.
[0122] An identity authentication method described in this embodiment can use the network name of the WIFI network for identity authentication, which solves the problem that identity authentication cannot be completed when the wireless communication network of the operator where the client is located cannot be used normally. At present, most terminal devices have WIFI access functions. The identity authentication method described in this embodiment can greatly provide application scenarios for identity authentication, provide convenience for identity authentication, and also save data communication traffic of the telecommunications operator where the user is located.
[0123] Of course, the WIFI network established by the server described in this application can be connected to the wireless communication network or computer Internet of the operator where the client is located through the corresponding gateway or device, and can provide more services for the client.
[0124] In the above embodiment, the client can perform identity authentication. The present application also provides another embodiment of the identity authentication method, in which the client can feed back the decryption result to the server, and the server performs identity authentication according to the decryption result. Figure 3 FIG. 1 is a flow chart of another embodiment of an identity authentication method described in the present application. Figure 3 As shown, the identity authentication method described in this embodiment may include:
[0125] S1: The server may obtain the user's account information, and may query the encryption algorithm corresponding to the obtained account information based on the stored user information;
[0126] S2: The server may use the queried encryption algorithm to encrypt the first verification code of the server to form an encrypted first verification code;
[0127] S3: The server may establish a wireless network, and set a network name in a predetermined format for the established wireless network; the network name may include the encrypted first verification code;
[0128] S4: The client may scan a wireless network; the client may extract the encrypted first verification code from the scanned network name that conforms to the agreed format;
[0129] S502: The client may decrypt the encrypted first verification code by using a stored decryption algorithm, and the client may send the decryption result of the encrypted first verification code to the server via the wireless network;
[0130] S601: The server may receive the decryption result and perform identity authentication according to the decryption result.
[0131] In this embodiment, the client can send the decryption result of the extracted encrypted first verification code to the server via the wireless network. The decryption result of the encrypted first verification code sent by the client to the server may include:
[0132] The client successfully or unsuccessfully decrypts the extracted encrypted first verification code.
[0133] The server may receive the decryption result returned by the client, and the server may perform authentication based on the decryption result. For example, if the decryption result returned by the client is successful, the server may pass the identity authentication of the client, the client may obtain the corresponding authority of the server, and may perform further data access. If the decryption result returned by the client is a failure, the server may not pass the identity authentication of the client.
[0134] In a preferred implementation, the client can send the decrypted first verification code obtained by decrypting the encrypted first verification code to the server, and the server performs identity authentication based on the decrypted first verification code. Therefore, in this embodiment, the decryption result of the encrypted first verification code sent by the client to the server may include:
[0135] The client decrypts the encrypted first verification code to obtain a decrypted second verification code.
[0136] Correspondingly, the server receives the decryption result and performs identity authentication based on the decryption result, including: the server receives the decryption result and extracts the decrypted second verification code from the decryption result; the server compares whether the second verification code is the same as the first verification code, and passes the identity authentication when the comparison results are the same.
[0137] The client can use the stored decryption algorithm to decrypt the extracted encrypted first verification code, and can obtain the decrypted second verification code when the extracted encrypted first verification code is successfully decrypted. The message receiving end can send the decryption result including the decrypted first verification code to the server through the wireless network. The server can receive the decryption result and extract the decrypted second verification code therefrom, and can compare whether the extracted decrypted second verification code is the same as the first verification code of the server; the server can perform identity authentication based on the comparison result of the received decrypted second verification code and the first verification code. If the comparison result is the same, the identity authentication can be passed; if the comparison result is not the same, the identity authentication can be failed.
[0138] For example, the client uses the stored private key to decrypt the encrypted first verification code A', and when the decryption is successful, the decrypted second verification code that can be obtained is B. The client can send the decrypted second verification code B to the server through the wireless network established by the server. The server can store the generated first verification code, so after the server receives the decrypted second verification code B, it compares whether the second verification code B is the same as the first verification code A generated by the server. If the comparison result of the second verification code B and the generated first verification code A is the same, the server can pass the identity authentication; if the comparison result of the second verification code B and the generated first verification code A is not the same, the server may not pass the identity authentication, and the server can process it according to the preset processing method. Using the method described in this embodiment to perform identity authentication can further improve the security of identity authentication.
[0139] The present application also provides another preferred embodiment of the identity authentication. Figure 4 FIG. 1 is a method flow chart of another embodiment of the identity authentication method described in the present application. Figure 4 As shown, the method includes:
[0140] S1: The server can obtain the user's account information and can query the encryption algorithm corresponding to the user's account information based on the stored user information;
[0141] S2: The server may use the queried encryption algorithm to encrypt the first verification code of the server to form an encrypted first verification code;
[0142] S3: The server may establish a wireless network, and may set a network name in a predetermined format for the established wireless network; the network name includes the encrypted first verification code;
[0143] S4: The client may scan a wireless network; the client may extract the encrypted first verification code from the scanned network name that conforms to the agreed format;
[0144] S503: The client may decrypt the extracted encrypted first verification code using the stored decryption algorithm; when the decryption is successful, the message receiving end may encrypt the third verification code of the client using the stored decryption algorithm to form an encrypted third verification code; the client may send the encrypted third verification code to the server via the wireless network;
[0145] S602: The server may receive the encrypted third verification code, and may decrypt the encrypted third verification code using an encryption algorithm corresponding to the acquired user account information; the server may authenticate the identity of the decrypted result of the encrypted third verification code according to the encryption algorithm.
[0146] It should be noted that the encryption algorithm or decryption algorithm described in the present application may include a calculation method for performing a certain rule transformation on information, which may include application scenarios of using an encryption algorithm for decryption and using a decryption algorithm for encryption. For example, the encryption algorithm and decryption algorithm described in this embodiment may include a public key and a private key, wherein the public key pair may be used for encryption and decryption using a private key, or the private key may be used to encrypt information and decrypt it using a public key. In this embodiment, the client may decrypt the encrypted first verification code sent by the server using a stored decryption algorithm, and may verify that the client is the identity of the message recipient of the message sent by the receiving server. Further, the client may encrypt the third verification code on the client using a stored decryption algorithm to form an encrypted third verification code. The client may send the encrypted third verification code to the server via the wireless network. The server may decrypt the encrypted third verification code using an encryption algorithm corresponding to the user's account information. If decryption is possible, the identity of the message sender of the client sending the message to the server may be verified. Specifically, for example, the client may encrypt the third verification code using a stored private key. The third verification code may include verification code information generated by the client according to a certain rule or randomly. The client can send the third verification code encrypted with the private key to the server via the wireless network. The server can decrypt the encrypted third verification code using the public key corresponding to the user account information. If the decryption is successful, the server can pass the identity authentication; if the decryption fails, the server can fail the identity authentication.
[0147] In the above embodiment, the server performing identity authentication on the decryption result of the encrypted third verification code according to the encryption algorithm may include:
[0148] When the server successfully decrypts the encrypted third verification code, it obtains the decrypted fourth verification code; the server can compare whether the fourth verification code is the same as the preset verification code of the server, and perform identity authentication when the comparison results are the same.
[0149] In this embodiment, the server can decrypt the encrypted third verification code to obtain the decrypted fourth verification code. The server can compare whether the fourth verification code is the same as the preset verification code of the server. The third verification code encrypted by the client and the preset verification code of the server can generally include information preset by the server and the client for further identity authentication. In a specific embodiment, the third verification code of the client can include the second verification code obtained by the client decrypting the extracted encrypted first verification code, and the preset verification code of the server can include the first verification code of the server. Accordingly, the server compares whether the fourth verification code is the same as the preset verification code of the server, including: the server compares whether the second verification code is the same as the first verification code of the server. For example, when the server authenticates the user whose account information is user123, the first verification code A can be generated, and the server can store the generated first verification code A and use the generated first verification code A as the preset verification code of the server. The server can encrypt the encrypted first verification code A' by an encryption algorithm (such as the user's public key). The server broadcasts the encrypted first verification code A' through the network name of the established WIFI. The client scans the wireless network and uses its own private key to decrypt the encrypted first verification code A' contained in the network name in the wireless network, and can obtain the decrypted second verification code B. In this embodiment, the client can encrypt the second verification code B as the third verification code of the client, and can use the private key of the client to encrypt the third verification code B to obtain the encrypted third verification code B', and can send it to the server through the wireless network. The server can use the public key corresponding to the account information user123 to decrypt the encrypted third verification code B', and can obtain the decrypted fourth verification code C. Further, the server can compare whether the decrypted fourth verification code C is the same as the first verification code A of the user whose account information is user123 stored in the server. If the comparison result of the fourth verification code C after the public key decryption is the same as the first verification code A of the server, the server can pass the identity authentication; if the comparison result of the fourth verification code C after the public key decryption is different from the first verification code A of the server, the server can fail the identity authentication.
[0150] In another embodiment of an identity authentication described in the present application, the third verification code of the client may include the account information of the user of the client, and the preset verification code of the server may include the user information stored by the server. Accordingly, the server compares whether the decrypted fourth verification code is the same as the preset verification code of the server, including: the server compares whether the decrypted user account information is the same as the user account information stored by the server. In this embodiment, the client can obtain the account information of its own user and use the account information of the user of the client as the third verification code of the client. After decrypting the encrypted first verification code, the client can use the stored private key to encrypt the account information of the user on the client. For example, the client's private key K_PRI can be used to encrypt the user account information user123 of the client to form the encrypted user account information SFTFDK40AA9KANCM, which can be sent to the server through the wireless network. The server receives the encrypted user account information SFTFDK40AA9KANCM and can use the public key K_PUB corresponding to the account information user123 to decrypt the encrypted user account information. The server compares the decrypted user account information with the account information of the user stored on the server. If they are the same, the identity authentication can be passed; if they are different, the identity authentication can be rejected. For example, if the account information decrypted by the server is user123, which is the same as the user account information 123 stored on the server, the identity authentication can be passed. If the account information decrypted by the server is user456, which is different from the user account information user123 stored on the server, the identity authentication can be rejected.
[0151] In the identity authentication method described in any of the above embodiments, the network name in the agreed format set by the server for the established wireless network may also include APPID information of different applications, and the client may extract the APPID information of the different applications according to the agreed format of the network name, and distinguish different applications on the client according to the extracted APPID information. The APPID information may include an identifier for distinguishing different applications of the client. The server may pre-set APPID information for different applications, for example, the APPID corresponding to the Alipay wallet application may be set to: "PAY_PACK", the APPID corresponding to the QQ application may be set to: "IM_QQ", or the APPD corresponding to the Aliwangwang application may be set to: "IM_WW", etc. Correspondingly, the agreed format of the SSID may include the APPID information, and the client may extract the APPID information according to the agreed format of the SSID after obtaining the agreed format SSID, and may distinguish different applications on the client according to the extracted APPID information. Of course, the APPID information may also be included in the message sent by the client to the server, and the server may distinguish different applications on the client through the APPID. Through this embodiment, the server or the client can complete the identity authentication of different applications on the client through the established wireless network.
[0152] In another specific application scenario, the network name may include SessionID information, and the SessionID information may include an identifier established by the server for identifying a session generated by the server and the client for identity authentication. The agreed format of the network name may include: session identifier + encrypted verification code, such as: SessionID + A'. The SessionID can distinguish the sessions between the server and different clients, and distinguish the sessions between the server and the same client at different times. In a specific application scenario, the server can establish multiple different WIFI networks to generate sessions with multiple clients to interact with information, and the server can establish different SessionIDs for each session. The agreed format of the SSID may include the SessionID, and the client may extract the SessionID according to the agreed format of the SSID after obtaining the SSID, and the client may distinguish and judge whether the information interacting with the server belongs to the same session according to the extracted SessionID. Of course, the message sent by the client to the server may also include the SessionID information, and the server may judge whether the information interacting with the client belongs to the same session according to the SessionID.
[0153] In another implementation of the present application, the client may not directly interact with the server. The client may communicate with the server as a relay device such as a POS machine or a public service device to complete identity authentication. Therefore, the present application provides another embodiment of an identity authentication method, which may include:
[0154] S201: The relay device obtains input account information and sends the obtained account information to the server;
[0155] S202: The server receives the account information, and queries the encryption algorithm corresponding to the acquired user account information based on the stored user information; the server sends the encryption algorithm to the relay device;
[0156] S203: The relay device receives the encryption algorithm, and uses the received encryption algorithm to encrypt the first verification code of the relay device to form an encrypted first verification code;
[0157] S204: The relay device establishes a wireless network, and sets a network name in a predetermined format for the established wireless network; the network name includes the encrypted first verification code;
[0158] S205: The client scans the network name of the wireless network; the client extracts the encrypted first verification code from the scanned network name that conforms to the agreed format;
[0159] S2061: The client uses a stored decryption algorithm to decrypt the extracted encrypted first verification code; the client performs identity authentication according to the decryption result of the encrypted first verification code.
[0160] The first verification code of the relay device mentioned above may include a first verification code generated by the relay device, or a first verification code sent from a receiving server.
[0161] In another implementation of the above identity authentication method, after completing S204, the following may be included:
[0162] S2062: The client uses the stored decryption algorithm to decrypt the extracted encrypted first verification code, and can send the decryption result of the extracted encrypted first verification code to the relay device through the wireless network;
[0163] S2071: The relay device may receive the decryption result sent by the client and send the decryption result to the server;
[0164] S2081: The server may receive the decryption result sent by the relay device, and perform identity authentication according to the decryption result.
[0165] In the above-mentioned identity authentication method, the decryption result of the decrypted first verification code sent by the client includes: the client successfully or failed to decrypt the extracted encrypted first verification code. The decryption result of the decrypted first verification code sent by the client includes: the client successfully or failed to decrypt the extracted encrypted first verification code. If the decryption result is successful, the identity authentication can be passed; if the decryption result is failed, the identity authentication can be rejected.
[0166] Of course, the decryption result of the decrypted first verification code sent by the client may include:
[0167] The client decrypts the encrypted first verification code to obtain a decrypted second verification code;
[0168] Correspondingly, the server receives the decryption result sent by the relay device and performs identity authentication based on the decryption result, including: the server receives the decryption result and extracts a second verification code from the decryption result; the server compares whether the second verification code is the same as the first verification code of the server, and verifies through the ID card when the comparison results are the same.
[0169] In another identity authentication method of the present application, the method may include:
[0170] S201: The relay device obtains input account information and sends the obtained account information to the server;
[0171] S202: The server receives the account information, and queries the encryption algorithm corresponding to the acquired user account information based on the stored user information; the server sends the encryption algorithm to the relay device;
[0172] S203: The relay device receives the encryption algorithm, and uses the received encryption algorithm to encrypt the first verification code of the relay device to form an encrypted first verification code;
[0173] S204: The relay device establishes a wireless network, and sets a network name in a predetermined format for the established wireless network; the network name includes the encrypted first verification code;
[0174] S205: The client scans the network name of the wireless network; the client extracts the encrypted first verification code from the scanned network name that conforms to the agreed format;
[0175] S2063: The client uses the stored decryption algorithm to decrypt the extracted encrypted first verification code; when the decryption is successful, the message receiving end may use the stored decryption algorithm to encrypt the third verification code of the client to form an encrypted third verification code; the client may send the encrypted third verification code to the relay device via the wireless network;
[0176] S3072: The relay device may receive the encrypted third verification code and send the encrypted verification code to the server;
[0177] S3082: The server can receive the encrypted three verification codes, and can decrypt the encrypted third verification code using an encryption algorithm corresponding to the acquired user account information; the server authenticates the decrypted result of the encrypted third verification code according to the encryption algorithm.
[0178] The third verification code of the client described above may include: verification code information generated by the client according to a certain rule or randomly. In the above embodiment, the client can encrypt the third verification code of the client using its own private key and send it to the server through the relay device. If the server can decrypt the encrypted third verification code using the corresponding private key, the identity authentication can be passed.
[0179] In a preferred embodiment, the server performing identity authentication on the decryption result of the encrypted third verification code according to the encryption algorithm may include:
[0180] When the server successfully decrypts the encrypted third verification code, it obtains the decrypted fourth verification code; the server compares whether the fourth verification code is the same as the server preset verification code, and passes the identity authentication when the comparison results are the same.
[0181] Referring to other embodiments of the present application, the third verification code of the client includes a decrypted second verification code obtained by the client decrypting the encrypted first verification code, and the preset verification code of the server may include the first verification code of the server;
[0182] Correspondingly, the server comparing whether the fourth verification code is the same as a preset verification code of the server includes: the server comparing whether the second verification code is the same as a first verification code of the server;
[0183] or,
[0184] The third verification code of the client includes the account information of the user of the client, and the preset verification code of the server includes the account information of the user stored in the server;
[0185] Correspondingly, the server comparing whether the fourth verification code is the same as a preset verification code of the server includes: the server comparing whether the decrypted user account information is the same as the user account information stored in the server.
[0186] Of course, the network name in the agreed format of the wireless network setting established by the relay device can also include APPID information of different applications. The client can extract the APPID information of the different applications according to the agreed format of the network name, and distinguish different applications on the client according to the extracted APPID information.
[0187] Based on the identity authentication method described in this application, this application provides an identity authentication server. Figure 5 This is a schematic diagram of the module structure of the identity authentication server described in this application. Figure 5 As shown, the server may include:
[0188] The account acquisition unit 101 can be used to obtain the user's account information;
[0189] The user database 102 may be used to store user information; the user information may include user account information and user encryption algorithm;
[0190] A query unit 103, which can be used to query the encryption algorithm corresponding to the acquired account information based on the stored user information;
[0191] The encryption unit 104 may generate a first verification code, and is used to encrypt the first verification code using the queried encryption algorithm to form an encrypted first verification code;
[0192] The wireless network unit 105 can be used to establish a wireless network and set a network name in a predetermined format for the established wireless network; the network name includes the encrypted first verification code.
[0193] Figure 6 is a schematic diagram of the module structure of another embodiment of an identity authentication server described in the present application, such as Figure 6 As shown, the server may also include:
[0194] The first receiving unit 106 may be used to obtain a decryption result of the encrypted first verification code sent by the client or the relay device;
[0195] The first identity authentication unit 107 may be used to perform identity authentication according to the decryption result of the receiving unit 106 .
[0196] Figure 7 The module structure diagram of the first identity verification unit 107 is as follows: Figure 7 As shown, the first identity verification unit 107 may include:
[0197] A first extraction unit 1071 may be used to extract a decrypted first verification code from the decryption result;
[0198] A first comparison unit 1072, which can be used to compare whether the extracted decrypted first verification code is the same as the first verification code generated by the encryption unit 104;
[0199] The first verification unit 1073 may be used to perform identity authentication according to a comparison result between the extracted decrypted first verification code and the first verification code generated by the encryption unit 104 .
[0200] Figure 8 is a schematic diagram of the module structure of another embodiment of an identity authentication server described in the present application, such as Figure 8 As shown, the server may also include:
[0201] The second receiving unit 108 may be used to receive the encrypted third verification code sent by the client or the relay device;
[0202] The decryption unit 109 may be used to decrypt the encrypted third verification code using an encryption algorithm corresponding to the acquired user account in the user database 102;
[0203] The second identity authentication unit 1010 may be configured to perform identity authentication according to a decryption result of the encrypted third authentication code.
[0204] Fig. 9 The module structure diagram of the first identity verification unit 1010 is as follows: Fig. 9 As shown, the second identity authentication unit 1010 may include:
[0205] The second extraction unit 1011 may be used to extract the fourth verification code obtained by the decryption unit 109 decrypting the encrypted third verification code;
[0206] The second comparison unit 1012 may be used to compare whether the decrypted fourth verification code is the same as the stored preset verification code;
[0207] The second verification unit 1013 may be configured to perform identity verification according to a comparison result between the fourth verification code and a stored preset verification code.
[0208] The preset verification code stored in the second comparison unit 1012 may include the first verification code generated by the encryption unit 104, or user account information stored in the user database.
[0209] This application also provides an authentication client. Fig.10 FIG. 1 is a schematic diagram of the module structure of the client of the identity authentication. Fig.10 As shown, the client may include:
[0210] Storage unit 201 can be used to store the agreed format of the network name; it can also be used to store the decryption algorithm of the user's account information;
[0211] The network scanning unit 202 may be used to scan the network name of the wireless network that complies with the agreed format based on the stored agreed format of the network name;
[0212] The extraction unit 203 may be used to extract the encrypted first verification code from the scanned network name that conforms to the agreed format;
[0213] The first decryption unit 204 may be configured to decrypt the extracted encrypted first verification code based on a stored decryption algorithm.
[0214] Fig.11 FIG. 1 is a schematic diagram of a module structure of another embodiment of the above-mentioned identity authentication client. Fig.11 As shown, the client may also include:
[0215] The identity authentication unit 205 may be configured to perform identity authentication based on the decryption result of the first decryption unit 204 .
[0216] Fig.12 FIG. 1 is a schematic diagram of a module structure of another embodiment of the above-mentioned identity authentication client. Fig.12 As shown, the client may also include:
[0217] The first sending unit 206 may be configured to send the decryption result of the extracted encrypted first verification code to a server or a relay device via the wireless network.
[0218] The decryption result of the encrypted first verification code sent by the client to the server or the relay device includes:
[0219] The client successfully or unsuccessfully decrypts the extracted encrypted first verification code;
[0220] or,
[0221] The client decrypts the encrypted first verification code to obtain a decrypted second verification code.
[0222] Fig.13 FIG. 1 is a schematic diagram of a module structure of another embodiment of the above-mentioned identity authentication client. Fig.13 As shown, the client may also include:
[0223] The first encryption unit 207 may be used to encrypt the third verification code of the client using the stored decryption algorithm to form an encrypted third verification code when the extracted encrypted first verification code is successfully decrypted;
[0224] The second sending unit 208 can send the encrypted third verification code to a server or a relay device through the wireless network.
[0225] The third verification code of the client mentioned above includes: a decrypted second verification code obtained by the client decrypting the encrypted first verification code; or account information of the user of the client.
[0226] The present application also provides a relay device, Fig.14 is a schematic diagram of the module structure of the relay device. Fig.14 As shown, the relay device may include:
[0227] The information acquisition unit 301 can be used to obtain the user's account information;
[0228] The information receiving unit 302 may be used to receive the encryption algorithm sent by the server;
[0229] The information encryption unit 303 may be used to generate or receive a first verification code from a server, and encrypt the first verification code using the received encryption algorithm to form an encrypted first verification code;
[0230] The wireless network broadcast unit 304 can be used to establish a wireless network and set a network name in a predetermined format for the established wireless network; the network name includes the encrypted first verification code.
[0231] Fig.15 is a schematic diagram of a module structure of another embodiment of the above-mentioned relay device, such as Fig.15 As shown, the relay device may further include:
[0232] The feedback receiving unit 305 may be used to receive the feedback result sent by the client;
[0233] The feedback sending unit 306 may be used to send the received client feedback result to the server. The feedback result sent by the client and received by the relay device includes:
[0234] The client successfully or unsuccessfully decrypts the encrypted first verification code;
[0235] or,
[0236] The client decrypts the encrypted first verification code to obtain a decrypted second verification code;
[0237] or,
[0238] The client encrypts the third verification code of the client by using the stored decryption algorithm to obtain an encrypted third verification code.
[0239] The encryption algorithm and decryption algorithm described in the above-mentioned client, server, and relay device may include the public key and private key in the asymmetric encryption algorithm. Of course, other algorithms that conform to the identity authentication algorithm of this application may also be included. The wireless network established in the specific product application may include a WIFI network.
[0240] The present application also provides a system for identity authentication, which may include:
[0241] The client can be used to scan the network name of the wireless network; the client extracts the encrypted first verification code from the scanned network name that conforms to the agreed format; it can also be used to decrypt the extracted encrypted first verification code using a stored decryption algorithm; it can also be used to send the decryption result of the extracted encrypted first verification code to the server via the wireless network;
[0242] The server can be used to obtain user account information and query the encryption algorithm corresponding to the obtained account information based on the stored user information; it can also be used to encrypt the first verification code of the server using the queried encryption algorithm to form an encrypted first verification code; it can also establish a wireless network and set a network name in an agreed format for the established wireless network; the network name includes the encrypted first verification code; it can also receive the decryption result and perform identity authentication based on the decryption result.
[0243] By using the identity authentication method, client, server and relay device described in the present application, the client can communicate with the server by using the wireless network established by the relay device or the server to perform identity authentication. During this identity authentication process, the network name of the established wireless network can be used to transmit the identity authentication information. By using the various embodiments of the present application, the problem of being unable to perform identity authentication when the wireless communication network of the operator to which the user belongs is unavailable can be solved. Moreover, by using the present application, the application occasions of identity authentication can be greatly increased, and the convenience of identity authentication can be improved.
[0244] Although the above content mentions descriptions of protocols including 802.11, the present application is not limited to the case where the protocols including 802.11 must be fully compliant with the specifications. A slightly modified transmission mechanism based on certain protocols can also implement the schemes of the above embodiments of the present application. Of course, even if the above IP / TCP / UDP protocols are not adopted, but a private protocol is adopted, as long as the information interaction and information judgment feedback methods of the above embodiments of the present application are met, the same application can still be implemented, and no further description is given here.
[0245] Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code, the controller can be made to implement the same function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered as a hardware component, and the devices for implementing various functions included therein can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules for implementing the method and structures within the hardware component.
[0246] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions.
[0247] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0248] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.
[0249] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0250] The present application can be used in many general or special computer system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.
[0251] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0252] Although the present application has been described through embodiments, persons skilled in the art will appreciate that there are many modifications and variations of the present application without departing from the spirit of the present application. It is intended that the appended claims include these modifications and variations without departing from the spirit of the present application.
Claims
1. An identity verification method, include: The server establishes a near-field wireless communication network corresponding to the account information according to the account information input by the user, and sets a network name in a predetermined format for the established near-field wireless communication network, wherein the network name in the predetermined format includes an encrypted first verification code and session identifier information of the current session between the server and the client, and the first verification code includes one or more verification codes generated according to the account information in accordance with a predetermined algorithm; The server broadcasts the network name through the near-field wireless communication network, so that the client extracts the encrypted first verification code and session identifier information based on the scanned network name that conforms to the agreed format, determines whether the encrypted first verification code belongs to the current session according to the session identifier information, decrypts the extracted encrypted first verification code, uses the account information as the third verification code of the client and encrypts the third verification code of the client under the condition that the decryption is successful, and sends the encrypted third verification code and session identifier information to the server through the near-field wireless communication network; The server determines whether the encrypted third verification code belongs to this session based on the session identifier information, decrypts the encrypted third verification code, and compares the decryption result with the account information. If they are the same, it is determined that the account information has passed the identity authentication; if they are not the same, it is determined that the account information has not passed the identity authentication.
2. The method according to claim 1, wherein the network name in the agreed format further includes at least one of account information and application identifier information. in, The application identifier information is used to distinguish the client application, and the session identifier information is used to distinguish the sessions between the server and different clients, or to distinguish the sessions between the server and the same client generated at different times.
3. The method according to claim 1, in, The server establishes a plurality of different near-field wireless communication networks to generate sessions with a plurality of clients.
4. An identity verification method, the method comprising: include: The client scans the network name of the wireless network established by the server in a prescribed format, wherein the wireless network is established by the server according to the account information input by the user, and the network name of the prescribed format includes the encrypted first verification code and the session identifier information of the current session between the server and the client, and the first verification code includes one or more verification codes generated according to the account information according to a predetermined algorithm; The client extracts the encrypted first verification code and session identifier information based on the scanned network name that conforms to the agreed format, determines whether the encrypted first verification code belongs to the current session according to the session identifier information, and decrypts the extracted encrypted first verification code; Under the condition that the decryption is successful, the client uses the account information as the third verification code of the client and encrypts the third verification code of the client, and sends the encrypted third verification code and session identifier information to the server through the wireless network, so that the server determines whether the encrypted third verification code belongs to this session according to the session identifier information, decrypts the encrypted third verification code, and compares the decryption result with the account information. If they are the same, it is determined that the account information has passed the identity authentication; if they are not the same, it is determined that the account information has not passed the identity authentication.
5. The method according to claim 4, wherein the network name in the agreed format further includes at least one of account information and application identifier information. in, The application identifier information is used to distinguish the client application, and the session identifier information is used to distinguish the sessions between the server and different clients, or to distinguish the sessions between the server and the same client generated at different times.
6. The method of claim 4, wherein the application on the client sets the user's access rights to specific application functions after passing identity authentication.
7. An identity verification method, include: The server establishes a near-field wireless communication network corresponding to the account information according to the account information input by the user, and sets a network name in a predetermined format for the established near-field wireless communication network; the network name in the predetermined format includes a first verification code encrypted by using the queried public key to form an encrypted first verification code and session identifier information of the current session between the server and the client, wherein the first verification code includes one or more verification codes generated according to the account information according to a predetermined algorithm; The server broadcasts the network name through the near-field wireless communication network, so that the client extracts the encrypted first verification code and session identifier information based on the scanned network name that conforms to the agreed format, determines whether the encrypted first verification code belongs to the current session according to the session identifier information, decrypts the extracted encrypted first verification code using the private key, uses the account information as the third verification code of the client and encrypts the third verification code of the client under the condition that the decryption is successful, and sends the encrypted third verification code and session identifier information to the server through the near-field wireless communication network; The server determines whether the encrypted third verification code belongs to this session based on the session identifier information, decrypts the encrypted third verification code, and compares the decryption result with the account information. If they are the same, it is determined that the account information has passed the identity authentication; if they are not the same, it is determined that the account information has not passed the identity authentication.
8. The method according to claim 7, wherein the network name in the agreed format further includes at least one of account information and application identifier information. in, The application identifier information is used to distinguish the client application, and the session identifier information is used to distinguish the sessions between the server and different clients, or to distinguish the sessions between the server and the same client generated at different times.
9. The method according to claim 7, in, The server establishes a plurality of different near-field wireless communication networks to generate sessions with a plurality of clients.
10. An identity verification method, include: The relay device queries the server for the public key corresponding to the account information based on the user's account information; The relay device establishes a near-field wireless communication network based on the queried public key, and sets a network name in a predetermined format for the established near-field wireless communication network, wherein the network name in the predetermined format includes an encrypted first verification code, and the first verification code includes one or more verification codes generated according to the account information in accordance with a predetermined algorithm; The relay device broadcasts the network name through the near-field wireless communication network, so that the client extracts the encrypted first verification code based on the scanned network name that conforms to the agreed format, decrypts the extracted encrypted first verification code, uses the account information as the third verification code of the client and encrypts the third verification code of the client if the decryption is successful, and sends the encrypted third verification code to the relay device through the near-field wireless communication network; The relay device sends the encrypted third verification code to the server, so that the server decrypts the encrypted third verification code and compares the decryption result with the account information. If they are the same, it is determined that the account information has passed the identity authentication; if they are not the same, it is determined that the account information has not passed the identity authentication.
11. The method according to claim 10, wherein the network name in the agreed format further comprises at least one of account information, application identifier information, and session identifier information. in, The application identifier information is used to distinguish the client application, and the session identifier information is used to distinguish the sessions between the server and different clients, or to distinguish the sessions between the server and the same client generated at different times.
12. The method according to claim 10, in, The relay device establishes a plurality of different near-field wireless communication networks to generate sessions with a plurality of clients.
13. An authentication server, include: A wireless network unit, used to establish a near-field wireless communication network corresponding to the account information according to the account information input by the user, and set a network name in a predetermined format for the established near-field wireless communication network, wherein the network name in the predetermined format includes an encrypted first verification code and session identifier information of the current session between the server and the client, and the first verification code includes one or more verification codes generated according to a predetermined algorithm based on the account information; and is also used to broadcast the network name through the near-field wireless communication network, so that the client can extract the encrypted first verification code and session identifier information based on the scanned network name that conforms to the predetermined format, determine whether the encrypted first verification code belongs to the current session according to the session identifier information, decrypt the extracted encrypted first verification code, perform identity authentication according to the decryption result of the encrypted first verification code, use the account information as the third verification code of the client and encrypt the third verification code under the condition that the decryption is successful, and send the encrypted third verification code and session identifier information to the server through the near-field wireless communication network; The identity authentication unit is used to determine whether the encrypted third verification code belongs to this session based on the session identifier information, decrypt the encrypted third verification code, and compare the decryption result with the account information. If they are the same, it is determined that the account information has passed the identity authentication; if they are not the same, it is determined that the account information has not passed the identity authentication.
14. The server according to claim 13, wherein the network name in the agreed format further includes at least one of account information and application identifier information. in, The application identifier information is used to distinguish the client application, and the session identifier information is used to distinguish the sessions between the server and different clients, or to distinguish the sessions between the server and the same client generated at different times.
15. The server according to claim 13, in, The server establishes a plurality of different near-field wireless communication networks to generate sessions with a plurality of clients.
16. An identity verification relay device, include: An information acquisition unit, used to acquire user account information; An information receiving unit, configured to receive a public key sent by a server, wherein the public key includes a public key corresponding to the acquired account information and queried by the server based on stored user information; An information encryption unit, used to generate or receive a first verification code from a server, and encrypt the first verification code using the received encryption algorithm to form an encrypted first verification code, wherein the first verification code includes one or more verification codes generated according to the account information in accordance with a predetermined algorithm; A wireless network broadcast unit, used to establish a near-field wireless communication network broadcast, and set a network name in a specified format for the established wireless network; the network name includes the encrypted first verification code; and further used to broadcast the network name through the near-field wireless communication network, so that the client can extract the encrypted first verification code based on the scanned network name that conforms to the specified format, decrypt the extracted encrypted first verification code, use the account information as the third verification code of the client and encrypt the third verification code of the client under the condition that the decryption is successful, and send the encrypted third verification code to the relay device through the near-field wireless communication network; The information sending unit is used to send the encrypted third verification code to the server so that the server decrypts the encrypted third verification code and compares the decryption result with the account information. If they are the same, it is determined that the account information has passed the identity authentication; if they are not the same, it is determined that the account information has not passed the identity authentication.
17. The relay device according to claim 16, wherein the network name in the agreed format further comprises at least one of account information, application identifier information, and session identifier information. in, The application identifier information is used to distinguish the client application, and the session identifier information is used to distinguish the sessions between the server and different clients, or to distinguish the sessions between the server and the same client generated at different times.
18. The relay device according to claim 16, in, The relay device establishes a plurality of different near-field wireless communication networks to generate sessions with a plurality of clients.
19. A client that requests authentication, include: A storage unit, used to store the agreed format of the network name, wherein the agreed format of the network name is used for identity authentication; and also used to store a decryption algorithm for the user's account information; A network scanning unit, configured to scan a network name of a near-field wireless communication network that conforms to the agreed format based on the stored agreed format of the network name; the network name includes a network name of a wireless network established by a server or a relay device and set in an agreed format; the network name in the agreed format includes an encrypted first verification code, the first verification code includes a one-digit or multi-digit verification code generated according to the account information according to a predetermined algorithm; and further configured to extract the encrypted first verification code based on the scanned network name that conforms to the agreed format, and decrypt the extracted encrypted first verification code; The sending unit is used to use the account information as the third verification code of the client and encrypt the third verification code of the client under the condition that the decryption is successful, and send the encrypted third verification code to the server through the near-field wireless communication network so that the server decrypts the encrypted third verification code and compares the decryption result with the account information. If they are the same, it is determined that the account information has passed the identity authentication; if they are not the same, it is determined that the account information has not passed the identity authentication.
20. A client that requests authentication, include: A storage unit for storing a conventional format of a network name; It is also used to store the private key of the user's account information; A network scanning unit, configured to scan a network name of a near-field wireless communication network that conforms to the agreed format based on the stored agreed format of the network name; the network name includes a network name of a wireless network established by a server or a relay device and set in an agreed format, the network name includes an encrypted first verification code formed by encrypting a first verification code by the server or the relay device according to a public key corresponding to the account information queried, the first verification code including one or more verification codes generated according to the account information according to a predetermined algorithm; An extraction unit, used to extract the encrypted first verification code from the scanned network name that conforms to the agreed format; A first decryption unit, used to decrypt the extracted encrypted first verification code based on the stored private key; The sending unit uses the account information as the third verification code of the client and encrypts the third verification code of the client under the condition that the decryption is successful, and sends the encrypted third verification code to the server through the near-field wireless communication network, so that the server decrypts the encrypted third verification code, and compares the decryption result with the account information. If they are the same, it is determined that the account information has passed the identity authentication; if they are not the same, it is determined that the account information has not passed the identity authentication.
21. An identity verification system, include: The server obtains user information registered by the user, the user information includes the user's account information, generates a pair of public key and private key corresponding to the account information, and sends the private key corresponding to the account information to the user's client, which is stored by the user's client; A relay device, used to receive a public key and a first verification code sent by a server, and encrypt the first verification code using the public key to form an encrypted first verification code, wherein the first verification code includes one or more verification codes generated according to the account information in accordance with a predetermined algorithm; and is also used to establish a wireless network, and set a network name in a predetermined format for the established wireless network; the network name includes the encrypted first verification code; A client, configured to scan a network name of a wireless network; the client extracts an encrypted first verification code from the scanned network name that conforms to an agreed format; and is further configured to decrypt the extracted encrypted first verification code based on a stored private key, and if the decryption is successful, use the account information as a third verification code of the client and encrypt the third verification code of the client, and send the encrypted third verification code to a relay device via the wireless network; The relay device is also used to send the encrypted third verification code to the server; The server is further used to decrypt the encrypted third verification code and compare the decryption result with the account information. If they are the same, it is determined that the account information has passed the identity authentication; if they are not the same, it is determined that the account information has not passed the identity authentication.
