Authentication method and device for WiFi login, equipment and storage medium

By using randomly assigned authentication codes and hash values ​​for authentication in WiFi authentication, decoupling AD and WiFi passwords solves the problem of low WiFi authentication security, achieving efficient security authentication and improving user experience.

CN118714564APending Publication Date: 2024-09-27BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411053479.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing WiFi authentication has low security in enterprise office scenarios and can easily lead to the leakage of users' plaintext usernames and passwords. The expiration of AD accounts also requires the WiFi account password to be changed, affecting user experience and security protection.

Method used

The first authentication code is generated by introducing an Active Directory AD account and a randomly assigned first WiFi password between the client device and the server. The AD password is not used directly during the authentication process. The server stores the third WiFi password and synchronizes it with the client device. , compare the first authentication code and the second authentication code to determine the authentication result, realize the decoupling of AD login and WiFi login, and improve authentication accuracy and security.

Benefits of technology

Effectively prevent AD password leakage, avoid illegal WiFi login, improve WiFi login security and user experience, reduce user input operations, and improve account security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118714564A
    Figure CN118714564A
Patent Text Reader

Abstract

The invention provides a WiFi login authentication method and device, equipment and a storage medium, and relates to the field of computers, in particular to the field of account security. The method comprises the steps that client equipment obtains an AD account and a first authentication code according to a received WiFi login instruction, the first authentication code is obtained based on the AD account and a first WiFi password associated with the AD account, and the first WiFi password is randomly distributed after the AD account is registered; sending the AD account and the first authentication code to a server, so that the server authenticates the first authentication code according to the AD account to obtain an authentication result, and sending the authentication result to the client device; and receiving the authentication result. A random WiFi password is allocated, and the WiFi password is authenticated, so that AD and WiFi decoupling is realized, and authentication safety is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of account security in the computer field, and in particular to an authentication method, device, equipment and storage medium for WiFi login. Background Art

[0002] In the office scenario of an enterprise, the business system needs to be authenticated and logged in for WiFi (Wireless Fidelity) before the business system can be used. WiFi authentication poses a great challenge to the security protection of the enterprise.

[0003] At present, when attacking WiFi authentication, it is easy to obtain the user's plain text username and password in the business system, resulting in information leakage, and the security of WiFi authentication is relatively low. How to authenticate WiFi login safely and effectively is a problem that needs to be solved urgently. Summary of the invention

[0004] The present invention provides a WiFi login authentication method, device, equipment and storage medium.

[0005] According to a first aspect of the present disclosure, a WiFi login authentication method is provided, which is applied to a client device, and the method includes:

[0006] According to the received wireless fidelity WiFi login instruction, an active directory AD account and a first authentication code are obtained based on the AD account and a first WiFi password associated with the AD account, and the first WiFi password is a password randomly assigned after the AD account is registered;

[0007] Sending the AD account and the first authentication code to a server, so that the server authenticates the first authentication code according to the AD account, obtains an authentication result, and sends the authentication result to the client device;

[0008] The authentication result is received.

[0009] According to a second aspect of the present disclosure, a WiFi login authentication method is provided, which is applied to a server, and the method includes:

[0010] Receive an AD account and a first authentication code sent by a client device; the first authentication code is obtained by the client device based on the AD account and a first WiFi password associated with the AD account, and the first WiFi password is a password randomly assigned after the AD account is registered;

[0011] Authenticate the first authentication code according to the AD account to obtain an authentication result;

[0012] The authentication result is sent to the client device.

[0013] According to a third aspect of the present disclosure, there is provided a WiFi login authentication device, which is applied to a client device, and the device includes:

[0014] an information determination unit, configured to obtain an active directory AD account and a first authentication code according to the received wireless fidelity WiFi login instruction, wherein the first authentication code is obtained based on the AD account and a first WiFi password associated with the AD account, and the first WiFi password is a password randomly assigned after the AD account is registered;

[0015] An information sending unit, used for sending the AD account and the first authentication code to a server, so that the server authenticates the first authentication code according to the AD account, obtains an authentication result, and sends the authentication result to the client device;

[0016] The result receiving unit is used to receive the authentication result.

[0017] According to a fourth aspect of the present disclosure, there is provided a WiFi login authentication device, which is applied to a server, and the device includes:

[0018] An information receiving unit, configured to receive an AD account and a first authentication code sent by a client device; the first authentication code is obtained by the client device based on the AD account and a first WiFi password associated with the AD account, and the first WiFi password is a password randomly assigned after the AD account is registered;

[0019] An information authentication unit, used to authenticate the first authentication code according to the AD account to obtain an authentication result;

[0020] An information feedback unit is used to send the authentication result to the client device.

[0021] According to a fifth aspect of the present disclosure, there is provided an electronic device, including:

[0022] at least one processor; and

[0023] a memory communicatively coupled to the at least one processor;

[0024] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the first aspect and the method described in the first aspect of the present disclosure.

[0025] According to a sixth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method according to the first aspect and the second aspect of the present disclosure.

[0026] According to a seventh aspect of the present disclosure, a computer program product is provided, comprising a computer program, which implements the steps of the method described in the first aspect and the second aspect of the present disclosure when executed by a processor.

[0027] According to the technology disclosed in the present invention, the security of authentication during WiFi login is improved.

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

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

[0030] Figure 1 It is a flowchart of a WiFi login authentication method provided according to an embodiment of the present disclosure;

[0031] Figure 2 It is a flowchart of a WiFi login authentication method provided according to an embodiment of the present disclosure;

[0032] Figure 3 is a schematic diagram of a WiFi authentication process provided according to an embodiment of the present disclosure;

[0033] Figure 4 It is a flowchart of a WiFi login authentication method provided according to an embodiment of the present disclosure;

[0034] Figure 5 It is a flowchart of a WiFi login authentication method provided according to an embodiment of the present disclosure;

[0035] Figure 6 It is a structural block diagram of a WiFi login authentication device provided according to an embodiment of the present disclosure;

[0036] Figure 7 It is a structural block diagram of a WiFi login authentication device provided according to an embodiment of the present disclosure;

[0037] Figure 8 It is a structural block diagram of a WiFi login authentication device provided according to an embodiment of the present disclosure;

[0038] Fig. 9It is a structural block diagram of a WiFi login authentication device provided according to an embodiment of the present disclosure;

[0039] Fig.10 is a block diagram of an electronic device for implementing the authentication method for WiFi login in an embodiment of the present disclosure;

[0040] Fig.11 It is a block diagram of an electronic device used to implement the authentication method for WiFi login in an embodiment of the present disclosure. DETAILED DESCRIPTION

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

[0042] WiFi password management involves many issues, such as password initialization, cracking risk, database collision attack, leakage risk, phishing threat, password strength, validity period setting, lock policy, forgetting processing, reset process and modification operation. In the scenario of corporate office, AD (Active Directory) account password is often used for WiFi authentication. That is, the AD account password is consistent with the WiFi account password. If an attack is launched on WiFi authentication, it is easy to obtain the AD account password, resulting in the leakage of corporate information. In other words, the leakage of WiFi passwords will lead to the security risk of business systems using AD accounts being penetrated.

[0043] AD accounts have a validity period. If an AD account expires, you need to reapply, which means that the WiFi account password also needs to be changed. This not only poor user experience but also poses a huge challenge to the company's security protection.

[0044] The present invention discloses a WiFi login authentication method, device, equipment and storage medium, which are applied to the account security field in the computer field to improve the security of WiFi authentication.

[0045] It should be noted that the data in this embodiment is not targeted at a specific user and cannot reflect the personal information of a specific user. It should be noted that the data in this embodiment comes from a public data set.

[0046] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0047] In order to enable readers to more deeply understand the implementation principle of the present disclosure, the following Figure 1-Figure 11 The embodiment is further refined.

[0048] Figure 1 This is a flow chart of a WiFi login authentication method provided according to an embodiment of the present disclosure. The method is applied to a client device and can be executed by a WiFi login authentication device.

[0049] like Figure 1 As shown, the method comprises the following steps:

[0050] S101. According to the received wireless fidelity WiFi login instruction, obtain an active directory AD account and a first authentication code, where the first authentication code is obtained based on the AD account and a first WiFi password associated with the AD account, and the first WiFi password is a password randomly assigned after the AD account is registered.

[0051] For example, when a user uses an AD account to work in a business system, the client device needs to log in to WiFi first. The user issues a WiFi login instruction through the client device, and the WiFi login instruction is used to instruct the client device to log in to WiFi. The WiFi login instruction may include an AD account, that is, an account registered by the user when using the AD system for the first time. For example, the user can enter his or her AD account, and then click the "Login" control to issue a WiFi login instruction.

[0052] The client device may store a first WiFi password, which is a password randomly assigned to the AD account automatically after the user registers the AD account as the WiFi password. That is, the WiFi password is not the AD password corresponding to the AD account set by the user. The WiFi password stored in the client is determined as the first WiFi password. After responding to the user's WiFi login instruction, the first WiFi password corresponding to the AD account can be found from the client device. The user can also manually enter the WiFi password corresponding to the AD account, that is, the first WiFi password, when issuing the WiFi login instruction.

[0053] The first authentication code can be determined based on the AD account and the first WiFi password. The AD account and the first WiFi password can be spliced ​​into the first authentication code, or the AD account and the first WiFi password can be formatted to obtain the first authentication code. For example, a hash algorithm can be preset to first splice the AD account and the first WiFi password, and then perform a hash calculation on the spliced ​​data, and determine the calculation result as the first authentication code. In this embodiment, the calculation process of the first authentication code is not specifically limited.

[0054] S102: Send the AD account and the first authentication code to the server, so that the server authenticates the first authentication code according to the AD account, obtains an authentication result, and sends the authentication result to the client device.

[0055] Exemplarily, the client device can interact with the preset server for data, for example, the client device can be connected to the backend server through the FreeRadius plug-in, which is a preset command line tool. After obtaining the AD account and the first authentication code, the client device can send the AD account and the first authentication code to the server.

[0056] The server receives the AD account and the first authentication code, authenticates the first authentication code according to the AD account, and obtains an authentication result. The authentication result can indicate whether the server has successfully authenticated the first authentication code. For example, the authentication method can be to determine whether the format of the first authentication code is a preset format. If so, the authentication result is determined to be a successful authentication; if not, the authentication result is determined to be a failed authentication. In this embodiment, the authentication method of the first authentication code is not specifically limited. The server can send the authentication result to the client device in real time.

[0057] In this embodiment, the server can determine the third WiFi password based on the AD account; determine the second authentication code based on the AD account and the third WiFi password; compare the first authentication code and the second authentication code, and determine the authentication result based on the comparison result; wherein the third WiFi password is the WiFi password corresponding to the AD account pre-stored by the server, and the second authentication code is obtained from the AD account and the third WiFi password.

[0058] Specifically, after the user registers an AD account, a WiFi password can be randomly assigned to the user through the client device or through the server. The client device communicates with the server, and the two can synchronously store the user's WiFi password. That is, if the client device assigns a WiFi password, the client device can send the WiFi password to the server; if the server assigns a WiFi password, the server can send the WiFi password to the client device. Both the client device and the server can store the WiFi password and the AD account in association. The WiFi password stored in the client device is the first WiFi password, and the WiFi password stored in the server is the third WiFi password.

[0059] After receiving the AD account, the server can search for the pre-stored third WiFi password corresponding to the AD account. According to the AD account and the third WiFi password, the second authentication code is determined. The calculation method of the first authentication code can be the same as the calculation method of the second authentication code, that is, if the first WiFi password and the third WiFi password are consistent, the first authentication code should be consistent with the second authentication code. Compare the first authentication code and the second authentication code to obtain a comparison result, and the comparison result can indicate whether the first authentication code is consistent with the second authentication code. The authentication result can be determined based on the comparison result. For example, if the first authentication code is consistent with the second authentication code, the authentication result can be determined as authentication passed; if the first authentication code is inconsistent with the second authentication code, the authentication result can be determined as authentication failed.

[0060] The beneficial effect of this setting is that the WiFi password is also stored in the server. By recalculating an authentication code, it can be determined whether there is a problem with the information received at the client, and the AD password does not need to be used during the authentication process, thereby decoupling the two processes of AD login and WiFi login, preventing AD password leakage, avoiding illegal WiFi login, improving authentication accuracy, and thus improving the security of WiFi login.

[0061] S103: Receive authentication result.

[0062] Exemplarily, the client device can receive the authentication result sent by the server in real time, and determine whether the user can log in to the WiFi according to the authentication result. For example, if the authentication result is authentication passed, the client device allows the user to log in to the WiFi; if the authentication result is authentication failed, the client device does not allow the user to log in to the WiFi.

[0063] In this embodiment, a third WiFi password associated with an AD account is pre-stored in the server, and the authentication result includes a hash value of the third WiFi password; the method also includes: in response to determining that the authentication result includes a hash value of the third WiFi password, determining a hash value of the first WiFi password based on the first WiFi password; in response to determining that the hash value of the first WiFi password is consistent with the hash value of the third WiFi password, configuring network access rights.

[0064] Specifically, if the server determines that the first authentication code and the second authentication code are consistent, the server can perform a hash calculation on the third WiFi password to obtain a hash value in a preset format as the hash value of the third WiFi password. The hash value of the third WiFi password is placed in the authentication result and sent to the client device. That is, if the authentication result contains a hash value in a preset format, it means that the server has passed the authentication of the authentication information.

[0065] After receiving the authentication result, the client device determines whether the authentication result includes a hash value in a preset format, that is, whether it includes the hash value of the third WiFi password. If not, it can be considered that the server has failed to authenticate the authentication information, and the client device does not allow the user to log in to WiFi. If it is included, it is determined that the server authentication is successful, and the client device can perform hash calculation on the first WiFi password to obtain the hash value of the first WiFi password. The way the client device performs hash calculation on the first WiFi password can be the same as the way the server performs hash calculation on the third WiFi password.

[0066] The hash value of the first WiFi password is compared with the hash value of the third WiFi password. If the hash value of the first WiFi password is consistent with the hash value of the third WiFi password, the network access permission can be configured to determine whether the user is allowed to log in to the WiFi; if they are inconsistent, it is determined that the user is not allowed to log in to the WiFi.

[0067] The beneficial effect of this setting is that if the server authenticates that the two authentication codes are consistent, it can generate a KEY value, which is the hash value of the third WiFi password, for the client device. The client device then performs authentication to ensure that the WiFi password is correct, thereby improving the security of WiFi login.

[0068] In this embodiment, the method further includes: in response to determining that the first authentication code authentication fails according to the authentication result, outputting a prompt message indicating that the login failed.

[0069] Specifically, the authentication result generated by the server can indicate whether the first authentication code and the second authentication code are consistent or inconsistent. If they are consistent, a hash value of the third WiFi password is generated for the client device. If they are inconsistent, the authentication result indicating that the first authentication code and the second authentication code are inconsistent, that is, the authentication result of failed authentication is directly sent to the client device.

[0070] The client device receives the authentication result. If it is determined according to the authentication result that the first authentication code and the second authentication code are inconsistent, the user is not allowed to log in to the WiFi, and a prompt message indicating a login failure may be output to prompt the user to log in again.

[0071] The beneficial effect of such a setting is that if the server determines that the two authentication codes are inconsistent, it will inform the client that login is not allowed, thereby avoiding illegal login to the WiFi.

[0072] In the disclosed embodiment, after the user registers an AD account, a random WiFi password is automatically assigned to the AD account, so that the AD password is decoupled from the WiFi password, and the leakage of the WiFi password will not cause the business system to be hacked. When the client device logs in to WiFi, the user does not need to manually enter the password, and the client device generates a first authentication code, and the server authenticates the first authentication code password. The AD password is not involved in the authentication process, and the WiFi password will not be leaked, which realizes the security authentication of WiFi login, improves account security, reduces the user's input operations, and improves the user's login experience.

[0073] Figure 2 A flowchart of a WiFi login authentication method provided in an embodiment of the present disclosure.

[0074] In this embodiment, according to the received wireless fidelity WiFi login instruction, an active directory AD account and a first authentication code are obtained, including: obtaining the AD account according to the WiFi login instruction; determining a pre-stored first WiFi password corresponding to the AD account; and determining the first authentication code according to the AD account and the first WiFi password.

[0075] like Figure 2 As shown, the method comprises the following steps:

[0076] S201. Obtain an AD account according to a WiFi login instruction.

[0077] Exemplarily, the user inputs an AD account through a client device and issues a WiFi login instruction. In response to the WiFi login instruction, the AD account is obtained from the WiFi login instruction. For example, the AD account input by the user is obtained.

[0078] S202: Determine a pre-stored first WiFi password corresponding to the AD account.

[0079] Exemplarily, after the AD account is registered, it corresponds to a WiFi password. The WiFi passwords of various AD accounts are pre-stored in the client device as the first WiFi password. After obtaining the AD account, the first WiFi password corresponding to the AD account can be searched. That is, according to the preset association relationship between the AD account and the WiFi password, the WiFi password corresponding to the AD account of the AD account can be searched, that is, the first WiFi password corresponding to the AD account can be obtained.

[0080] In this embodiment, the method further includes: in response to not storing the first WiFi password, outputting a prompt message indicating a login failure.

[0081] Specifically, after obtaining the AD account, the client device searches whether the first WiFi password corresponding to the AD account is stored. If so, the first WiFi password is obtained, and the first authentication code is determined based on the AD account and the first WiFi password.

[0082] If it is determined that the first WiFi password corresponding to the AD account does not exist in the client device, it means that the AD account entered by the user does not have the corresponding first WiFi password, and there is a problem with the AD account, for example, the AD account has not been registered. The client device cannot allow the user to log in to WiFi with the AD account. The client device can output a prompt message to prompt the user that the login failed this time and the user can log in again.

[0083] The beneficial effect of such a setting is that the client device can first check the legitimacy of the AD account. If the client device does not have the corresponding first WiFi password, it is directly determined that the login has failed, thereby improving the efficiency of WiFi authentication.

[0084] A Radius Server can be pre-set, and the Radius Server can be used specifically to authenticate the legitimacy of the account. For example, after obtaining the AD account, the client device can send the AD account to the Radius Server, and all registered AD accounts can be stored in the Radius Server. The Radius Server receives the AD account sent by the client device and determines whether the AD account is a registered AD account. If so, it sends information that the account is correct to the client device. The client device can continue to determine the first WiFi password corresponding to the AD account, and determine the first authentication code based on the AD account and the first WiFi password; if not, it sends information that there is a problem with the account to the client device, and the client device does not allow the user to log in to WiFi.

[0085] S203: Determine a first authentication code according to the AD account and the first WiFi password.

[0086] Exemplarily, after obtaining the first WiFi password, the first authentication code can be determined according to the AD account and the first WiFi password. For example, some characters can be intercepted from the AD account and the first WiFi password for splicing to obtain the first authentication code.

[0087] In this embodiment, after the WiFi password is assigned, it can be stored in the client device, which is convenient for subsequent direct acquisition of the first WiFi password and calculation of the first authentication code, reducing the user's input operations, preventing the password from being stolen during the input process, and improving the security of WiFi login and the user's login experience.

[0088] In this embodiment, the WiFi login instruction includes the AD password set when registering the AD account; the method also includes: in response to determining that the first WiFi password is not stored, and the AD password corresponding to the AD account found in the preset account database is consistent with the AD password in the WiFi login instruction, performing a WiFi login operation; wherein the preset account database is used to store the association relationship between the AD account and the AD password; randomly assigning a second WiFi password to the AD account; and storing the AD account and the second WiFi password in association.

[0089] Specifically, when registering an AD account, the user needs to set an AD password. When performing WiFi authentication, the user can only enter the AD account and authenticate according to the pre-assigned WiFi password, or enter the AD account and the corresponding AD password and authenticate directly through the AD account and AD password. That is, the WiFi login instruction can include the AD account entered by the user, and can also include the AD password entered by the user.

[0090] When responding to the WiFi login instruction, it can also be determined whether the first WiFi password corresponding to the AD account can be found. If it is determined that the first WiFi password corresponding to the AD account does not exist in the client device, it can be determined whether the AD password exists in the WiFi login instruction. If the AD password does not exist in the WiFi login instruction, the user is not allowed to log in to the WiFi.

[0091] An account database may be provided in the client device, and all registered AD accounts and corresponding AD passwords may be stored in the account database. If there is an AD password in the WiFi login instruction, the AD password corresponding to the AD account may be searched from the preset account database. It is determined whether the AD password found is consistent with the AD password in the WiFi login instruction. If they are inconsistent, the user is not allowed to log in to the WiFi; if they are consistent, the user is allowed to log in to the WiFi. The client device may also send the AD account and AD password to a preset AD system, and the AD system determines whether the user is allowed to log in to the WiFi based on a preset authentication policy, and returns the judgment result to the client device. In this embodiment, the authentication policy of the AD system is not specifically limited.

[0092] If the client device determines that there is no problem with the AD account, but there is no randomly assigned WiFi password, a WiFi password can be randomly assigned to the AD account, determined as the second WiFi password of the AD account, and the second WiFi password is used as the first WiFi password of the AD account, and stored in the client device in association with the AD account. The second WiFi password can also be sent to the server, and the server stores the second WiFi password as the third WiFi password.

[0093] The beneficial effect of this setting is that users can use AD account and AD password for login authentication, realizing two login authentication methods, and after determining that there is no corresponding first WiFi password, directly assign a second WiFi password to facilitate subsequent login using the second WiFi password, so that users no longer need to enter the AD password, realizing the decoupling of AD and WiFi, reducing user operations, and improving user experience.

[0094] S204: Send the AD account and the first authentication code to the server, so that the server can authenticate the first authentication code according to the AD account, obtain an authentication result, and send the authentication result to the client device.

[0095] Exemplarily, this step may refer to the above-mentioned step S102 and will not be described in detail.

[0096] S205: Receive authentication result.

[0097] Exemplarily, this step may refer to the above-mentioned step S103 and will not be described in detail.

[0098] Figure 3 Schematic diagram of the WiFi authentication process. Figure 3 In the process, the client device receives the WiFi login instruction and sends the user's AD account to the Radius Server. After the Radius Server confirms that the AD account is correct, it provides feedback to the client device. After receiving the feedback from the Radius Server, the client device calculates the first authentication code based on the AD account and the first WiFi password, and sends the AD account and the first authentication code to the server. The server authenticates the first authentication code based on the third WiFi password stored in itself, generates an authentication result, and sends the authentication result to the client device. The client device confirms whether to allow the user to log in to WiFi based on the authentication result sent by the server.

[0099] In the disclosed embodiment, after the user registers an AD account, a random WiFi password is automatically assigned to the AD account, so that the AD password is decoupled from the WiFi password, and the leakage of the WiFi password will not cause the business system to be hacked. When the client device logs in to WiFi, the user does not need to manually enter the password, and the client device generates a first authentication code, and the server authenticates the first authentication code password. The AD password is not involved in the authentication process, and the WiFi password will not be leaked, which realizes the security authentication of WiFi login, improves account security, reduces the user's input operations, and improves the user's login experience.

[0100] Figure 4FIG. 1 is a flow chart of a WiFi login authentication method provided according to an embodiment of the present disclosure. The method is applied to a server and can be executed by a WiFi login authentication device. Figure 4 As shown, the method comprises the following steps:

[0101] S401. Receive an AD account and a first authentication code sent by a client device; the first authentication code is obtained by the client device based on the AD account and a first WiFi password associated with the AD account, and the first WiFi password is a password randomly assigned after the AD account is registered.

[0102] Exemplarily, the client device responds to the user's WiFi login instruction and determines the user's AD account and first authentication code. The user can enter the AD account through the client device and issue a WiFi login instruction. After obtaining the AD account, the client device can find out the first WiFi password corresponding to the AD account, and determine the first authentication code based on the first WiFi password and the AD account, that is, the first authentication code is obtained from the AD account and the first WiFi password.

[0103] Specifically, when the client device responds to the user's WiFi login instruction, it can obtain the AD account entered by the user from the WiFi login instruction. Determine the first WiFi password corresponding to the pre-stored AD account, and determine the first authentication code based on the AD account and the first WiFi password. If the client device determines that there is no first WiFi password corresponding to the AD account, the user is not allowed to log in to the WiFi, and a prompt message indicating a login failure is output, which can be used to remind the user to log in again.

[0104] The client device sends the AD account and the first authentication code to the server, for example, the AD account and the first authentication code can be sent to the server through a preset FreeRadius plug-in. The server receives the AD account and the first authentication code sent by the client device in real time.

[0105] S402: Authenticate the first authentication code according to the AD account and obtain an authentication result.

[0106] Exemplarily, after obtaining the AD account and the first authentication code, the server authenticates the first authentication code according to the AD account to obtain an authentication result, which can indicate whether the server has successfully authenticated the first authentication code. For example, the server can perform a hash calculation on the AD account to obtain a hash value of the AD account, and determine whether the hash value of the AD account exists in the first authentication code. If so, it is determined that the first authentication code has been authenticated; if not, it is determined that the first authentication code has not been authenticated. In this embodiment, the authentication method of the first authentication code is not specifically limited.

[0107] In this embodiment, the first authentication code is authenticated according to the AD account to obtain an authentication result, including: determining a third WiFi password according to the AD account; wherein the third WiFi password is a password pre-stored by the server and randomly assigned after the AD account is registered; determining a second authentication code according to the AD account and the third WiFi password; and authenticating the first authentication code according to the second authentication code to obtain an authentication result.

[0108] Specifically, the server may pre-store WiFi passwords corresponding to various AD accounts, and the WiFi passwords stored in the server are referred to as the third WiFi passwords. According to the AD account, the third WiFi password corresponding to the AD account is queried. According to the AD account and the third WiFi password, the second authentication code is determined. For example, the AD account and the third WiFi password may be concatenated into the second authentication code, or concatenated first and then hashed, and the calculated hash value is determined as the second authentication code. The way the server calculates the second authentication code may be the same as the way the client device calculates the first authentication code.

[0109] According to the second authentication code, the first authentication code is authenticated to obtain an authentication result. For example, the number of characters in the second authentication code and the number of characters in the first authentication code can be determined. If the number of characters in the two is consistent, the authentication is determined to be passed; if not, the authentication is failed. If the first authentication code and the second authentication code are calculated in the same way, when the first WiFi password and the third WiFi password are consistent, the first authentication code and the second authentication code should also be consistent. When performing authentication, the first authentication code and the second authentication code can be compared to see if they are consistent. If they are consistent, the authentication result is determined to be passed; if they are inconsistent, the authentication result is determined to be failed.

[0110] The beneficial effect of such a setting is that the server can find the corresponding third WiFi password and calculate the second authentication code, thereby authenticating the information on the client device and improving the security of WiFi login.

[0111] In this embodiment, the method further includes: in response to determining that the third WiFi password is not stored, sending an authentication result indicating that the first authentication code authentication fails to the client device, so that the client device outputs a prompt message indicating a login failure.

[0112] Specifically, after obtaining the AD account, the server can determine whether the third WiFi password corresponding to the AD account is stored. If so, it will continue to determine the second authentication code based on the AD account and the third WiFi password. If not, it is considered that there is a problem with the AD account. For example, the AD account may be an account written by the user at random.

[0113] After determining that there is a problem with the AD account, the server can generate an authentication failure message, for example, an authentication result indicating authentication failure. The authentication failure message is sent to the client device. After receiving the authentication failure message, the client device determines that the user is not allowed to log in to the WiFi, and can output a login failure prompt message to remind the user to log in again.

[0114] The beneficial effect of such a setting is that the server may not have the third WiFi password, so the client device account can be directly informed that there is a problem, thereby improving the efficiency of WiFi authentication.

[0115] In this embodiment, authenticating the first authentication code according to the second authentication code to obtain the authentication result includes: comparing the first authentication code and the second authentication code, and determining the authentication result according to the comparison result.

[0116] Specifically, when authenticating the authentication code, the server may compare the first authentication code with the second authentication code to obtain a comparison result. According to the comparison result, the authentication result may be obtained. For example, when the first authentication code and the second authentication code are completely consistent, the authentication result may indicate that the authentication is passed; when the first authentication code and the second authentication code are inconsistent, the authentication result may indicate that the authentication is not passed.

[0117] The beneficial effect of such a setting is that by determining whether the two authentication codes are consistent, authentication can be performed quickly, reducing the amount of calculation on the server and improving the authentication efficiency of WiFi login.

[0118] In this embodiment, the authentication result is determined according to the comparison result, including: if the first authentication code and the second authentication code are consistent, determining the hash value of the third WiFi password based on a preset hash algorithm; and determining the hash value of the third WiFi password as the authentication result.

[0119] Specifically, if the first authentication code and the second authentication code are inconsistent, an authentication result indicating the inconsistency between the two can be directly generated and sent to the client device. If it is determined that the first authentication code and the second authentication code are consistent, a hash calculation can be performed on the third WiFi password based on a preset hash algorithm to obtain a hash value of the third WiFi password. In this embodiment, the preset hash algorithm is not specifically limited.

[0120] The authentication result is determined based on the hash value of the third WiFi password. For example, the hash value of the third WiFi password can be placed in the authentication result and sent to the client device. In other words, if the authentication result contains the hash value of the third WiFi password, it means that the server has authenticated that the first authentication code is consistent with the second authentication code.

[0121] The beneficial effect of such a setting is that if the first authentication code and the second authentication code are consistent, the server can calculate another KEY value and feed it back to the client device, so that the client device can authenticate again and improve the authentication accuracy.

[0122] S403: Send the authentication result to the client device.

[0123] Exemplarily, the server sends the authentication result to the client device, for example, the authentication result can be sent to the client device through a preset FreeRadius plug-in. The client device receives the authentication result and determines whether to allow the user to log in to WiFi based on the authentication result. For example, if the authentication result is 1, WiFi login is allowed; if the authentication result is 0, WiFi login is not allowed.

[0124] In this embodiment, the client device can obtain the hash value of the third WiFi password from the authentication result; determine the hash value of the first WiFi password based on the first WiFi password; in response to the hash value of the first WiFi password and the hash value of the third WiFi password being consistent, determine to allow the user to log in to WiFi.

[0125] Specifically, after receiving the authentication result, the client device can determine whether there is a hash value in a preset format in the authentication result, that is, whether there is a hash value of the third WiFi password. If not, it means that the first authentication code and the second authentication code are inconsistent, and the user is not allowed to log in to WiFi; if it exists, the first WiFi password is hashed according to the preset hash algorithm to obtain the hash value of the first WiFi password. In this embodiment, the hash algorithm for hashing the first WiFi password can be the same as the hash algorithm for hashing the third WiFi password.

[0126] It is determined whether the hash value of the first WiFi password is consistent with the hash value of the third WiFi password. If so, it is determined that the user is allowed to log in to the WiFi; if not, it is determined that the user is not allowed to log in to the WiFi, and a prompt message can be sent to the user.

[0127] The beneficial effect of this setting is that the client device can authenticate again to ensure that the WiFi authentication process is correct and improve the security of WiFi login.

[0128] In the disclosed embodiment, after the user registers an AD account, a random WiFi password is automatically assigned to the AD account, so that the AD password is decoupled from the WiFi password, and the leakage of the WiFi password will not cause the business system to be hacked. When the client device logs in to WiFi, the user does not need to manually enter the password, and the client device generates a first authentication code, and the server authenticates the first authentication code password. The AD password is not involved in the authentication process, and the WiFi password will not be leaked, which realizes the security authentication of WiFi login, improves account security, reduces the user's input operations, and improves the user's login experience.

[0129] Figure 5 FIG. 1 is a flow chart of a WiFi login authentication method provided according to an embodiment of the present disclosure. Figure 5 As shown, the method comprises the following steps:

[0130] S501, the client device responds to the user's WiFi login instruction and determines the information input by the user. If the input information includes an AD account but no AD password, execute S502; if the input information includes an AD account and an AD password, execute S508.

[0131] S502: Determine a first WiFi password according to the AD account, generate a first authentication code according to the AD account and the first WiFi password, and upload the AD account and the first authentication code to the server.

[0132] S503. The server determines the third WiFi password according to the AD account, and determines the second authentication code according to the AD account and the third WiFi password.

[0133] S504, determine whether the first authentication code and the second authentication code are consistent, if so, execute S505; if not, execute S511.

[0134] S505: Determine a hash value of the third WiFi password, and send the hash value of the third WiFi password to the client device.

[0135] S506: The client device determines a hash value of the first WiFi password.

[0136] S507, determining whether the hash value of the first WiFi password is consistent with the hash value of the third WiFi password, if so, executing S510; if not, executing S511.

[0137] S508: Send the AD account and AD password to the preset AD system.

[0138] S509 . The AD system determines whether there is a problem with the AD account and the AD password based on a preset authentication policy. If not, execute S510 ; if yes, execute S511 .

[0139] S510: Allow the user to log in to WiFi.

[0140] S511. The user is not allowed to log in to WiFi.

[0141] Figure 6 This is a structural block diagram of a WiFi login authentication device provided by an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. The device is applied to a client device. Figure 6 The authentication device 600 for WiFi login includes: an information determining unit 601, an information sending unit 602 and a result receiving unit 603.

[0142] An information determination unit 601 is configured to obtain an active directory AD account and a first authentication code according to a received wireless fidelity WiFi login instruction, wherein the first authentication code is obtained based on the AD account and a first WiFi password associated with the AD account, and the first WiFi password is a password randomly assigned after the AD account is registered;

[0143] An information sending unit 602 is used to send the AD account and the first authentication code to a server, so that the server authenticates the first authentication code according to the AD account, obtains an authentication result, and sends the authentication result to the client device;

[0144] The result receiving unit 603 is used to receive the authentication result.

[0145] Figure 7 A structural block diagram of a WiFi login authentication device provided by an embodiment of the present disclosure, such as Figure 7 As shown, the authentication device 700 for WiFi login includes an information determination unit 701 , an information sending unit 702 and a result receiving unit 703 , wherein the information determination unit 701 includes an information acquisition module 7011 , a first determination module 7012 and a second determination module 7013 .

[0146] The information acquisition module 7011 is used to obtain the AD account according to the WiFi login instruction;

[0147] A first determining module 7012, configured to determine the first WiFi password corresponding to the AD account stored in advance;

[0148] The second determination module 7013 is used to determine the first authentication code according to the AD account and the first WiFi password.

[0149] In one example, it also includes:

[0150] A login failure unit is used to output a login failure prompt message in response to determining that the first WiFi password is not stored.

[0151] In one example, the AD password set when the WiFi login instruction registers the AD account;

[0152] The device also includes:

[0153] A password search unit, configured to perform a WiFi login operation in response to determining that the first WiFi password is not stored and the AD password corresponding to the AD account found in the preset account database is consistent with the AD password in the WiFi login instruction; wherein the preset account database is used to store the association relationship between the AD account and the AD password;

[0154] A password assigning unit, used to randomly assign a second WiFi password to the AD account;

[0155] A password storage unit is used to associate and store the AD account and the second WiFi password.

[0156] In one example, a third WiFi password associated with the AD account is pre-stored in the server, and the authentication result includes a hash value of the third WiFi password;

[0157] The device also includes:

[0158] a hash determination unit, configured to determine the hash value of the first WiFi password according to the first WiFi password in response to determining that the authentication result includes the hash value of the third WiFi password;

[0159] A hash comparison unit is used to configure network access rights in response to determining that the hash value of the first WiFi password is consistent with the hash value of the third WiFi password.

[0160] In one example, the device further includes:

[0161] A login prompt unit is used to output a prompt message of login failure in response to determining that the first authentication code authentication fails according to the authentication result.

[0162] Figure 8 This is a structural block diagram of a WiFi login authentication device provided by an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. The device is applied to a server. Figure 8 The authentication device 800 for WiFi login includes: an information receiving unit 801, an information authentication unit 802 and an information feedback unit 803.

[0163] The information receiving unit 801 is used to receive an AD account and a first authentication code sent by a client device; the first authentication code is obtained by the client device based on the AD account and a first WiFi password associated with the AD account, and the first WiFi password is a password randomly assigned after the AD account is registered;

[0164] The information authentication unit 802 is used to authenticate the first authentication code according to the AD account to obtain an authentication result;

[0165] The information feedback unit 803 is used to send the authentication result to the client device.

[0166] Fig. 9 A structural block diagram of a WiFi login authentication device provided by an embodiment of the present disclosure, such as Fig. 9 As shown, the authentication device 900 for WiFi login includes an information receiving unit 901 , an information authentication unit 902 and an information feedback unit 903 , wherein the information authentication unit 902 includes a third determination module 9021 , a fourth determination module 9022 and an information authentication module 9023 .

[0167] The third determination module 9021 is used to determine a third WiFi password according to the AD account; wherein the third WiFi password is a password pre-stored by the server and randomly assigned after the AD account is registered;

[0168] The fourth determination module 9022 is used to determine a second authentication code according to the AD account and the third WiFi password;

[0169] The information authentication module 9023 is used to authenticate the first authentication code according to the second authentication code to obtain the authentication result.

[0170] In one example, it also includes:

[0171] The authentication failure unit is used to send an authentication result indicating that the first authentication code authentication fails to the client device in response to determining that the third WiFi password is not stored, so that the client device can output a prompt message of login failure.

[0172] In one example, the information authentication module 9023 includes:

[0173] The authentication code comparison submodule is used to compare the first authentication code with the second authentication code, and determine the authentication result according to the comparison result.

[0174] In one example, the authentication code comparison submodule is specifically used to:

[0175] In response to the first authentication code and the second authentication code being consistent, determining a hash value of the third WiFi password based on a preset hash algorithm;

[0176] The hash value of the third WiFi password is determined as the authentication result.

[0177] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device.

[0178] Fig.10 A structural block diagram of an electronic device provided in an embodiment of the present disclosure, such as Fig.10 As shown, the electronic device 1000 includes: at least one processor 1002; and a memory 1001 communicatively connected to the at least one processor 1002; wherein the memory stores instructions executable by the at least one processor 1002, and the instructions are executed by the at least one processor 1002 so that the at least one processor 1002 can execute the WiFi login authentication method disclosed in the present invention.

[0179] The electronic device 1000 further includes a receiver 1003 and a transmitter 1004. The receiver 1003 is used to receive instructions and data sent by other devices, and the transmitter 1004 is used to send instructions and data to external devices.

[0180] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0181] According to an embodiment of the present disclosure, the present disclosure also provides a computer program product, which includes: a computer program, the computer program is stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.

[0182] Fig.11 A schematic block diagram of an example electronic device 1100 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0183] like Fig.11As shown, the device 1100 includes a computing unit 1101, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1102 or a computer program loaded from a storage unit 1108 into a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the device 1100 can also be stored. The computing unit 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

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

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

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

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

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

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

[0190] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

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

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

[0193] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A WiFi login authentication method, applied to a client device, comprising: According to the received wireless fidelity WiFi login instruction, an active directory AD account and a first authentication code are obtained based on the AD account and a first WiFi password associated with the AD account, and the first WiFi password is a password randomly assigned after the AD account is registered; Sending the AD account and the first authentication code to a server, so that the server authenticates the first authentication code according to the AD account, obtains an authentication result, and sends the authentication result to the client device; The authentication result is received.

2. The method according to claim 1, wherein: The step of obtaining an Active Directory AD account and a first authentication code according to the received wireless fidelity WiFi login instruction includes: According to the WiFi login instruction, obtain the AD account; Determine the first WiFi password that is pre-stored and corresponds to the AD account; The first authentication code is determined according to the AD account and the first WiFi password.

3. The method according to claim 2, further comprising: In response to determining that the first WiFi password is not stored, a prompt message indicating a login failure is output.

4. According to the method of claim 3, the WiFi login instruction includes the AD password set when registering the AD account; The method further comprises: In response to determining that the first WiFi password is not stored, and the AD password corresponding to the AD account found in the preset account database is consistent with the AD password in the WiFi login instruction, performing a WiFi login operation; wherein the preset account database is used to store the association relationship between the AD account and the AD password; Randomly assign a second WiFi password to the AD account; The AD account and the second WiFi password are stored in association.

5. The method according to claim 4, wherein: The server pre-stores a third WiFi password associated with the AD account, and the authentication result includes a hash value of the third WiFi password; The method further comprises: In response to determining that the authentication result includes a hash value of the third WiFi password, determining a hash value of the first WiFi password according to the first WiFi password; In response to determining that the hash value of the first WiFi password and the hash value of the third WiFi password are consistent, network access rights are configured.

6. The method according to any one of claims 1 to 5, further comprising: In response to determining that the first authentication code authentication fails according to the authentication result, a prompt message indicating login failure is output.

7. A WiFi login authentication method, applied to a server, comprising: Receive the AD account and the first authentication code sent by the client device; The first authentication code is obtained by the client device based on the AD account and a first WiFi password associated with the AD account, where the first WiFi password is a password randomly assigned after the AD account is registered; Authenticate the first authentication code according to the AD account to obtain an authentication result; The authentication result is sent to the client device.

8. The method according to claim 7, wherein: The step of authenticating the first authentication code according to the AD account to obtain an authentication result includes: Determine a third WiFi password according to the AD account; wherein the third WiFi password is a password pre-stored by the server and randomly assigned after the AD account is registered; Determine a second authentication code according to the AD account and the third WiFi password; The first authentication code is authenticated according to the second authentication code to obtain the authentication result.

9. The method according to claim 8, further comprising: In response to determining that the third WiFi password is not stored, an authentication result indicating that the first authentication code authentication fails is sent to the client device, so that the client device outputs a prompt message of login failure.

10. The method according to claim 8 or 9, wherein: The authenticating the first authentication code according to the second authentication code to obtain the authentication result includes: The first authentication code and the second authentication code are compared, and the authentication result is determined according to the comparison result.

11. The method according to claim 10, wherein: Determining the authentication result according to the comparison result includes: In response to the first authentication code and the second authentication code being consistent, determining a hash value of the third WiFi password based on a preset hash algorithm; The hash value of the third WiFi password is determined as the authentication result.

12. A WiFi login authentication device, applied to a client device, comprising: an information determination unit, configured to obtain an active directory AD account and a first authentication code according to the received wireless fidelity WiFi login instruction, wherein the first authentication code is obtained based on the AD account and a first WiFi password associated with the AD account, and the first WiFi password is a password randomly assigned after the AD account is registered; An information sending unit, used for sending the AD account and the first authentication code to a server, so that the server authenticates the first authentication code according to the AD account, obtains an authentication result, and sends the authentication result to the client device; The result receiving unit is used to receive the authentication result.

13. The device according to claim 12, wherein: The information determining unit comprises: An information acquisition module, used to obtain the AD account according to the WiFi login instruction; A first determining module, used to determine the first WiFi password corresponding to the AD account stored in advance; The second determination module is used to determine the first authentication code according to the AD account and the first WiFi password.

14. The apparatus according to claim 13, further comprising: A login failure unit is used to output a login failure prompt message in response to determining that the first WiFi password is not stored.

15. The device according to claim 14, wherein the AD password set when the WiFi login instruction registers the AD account; The device also includes: A password search unit, configured to perform a WiFi login operation in response to determining that the first WiFi password is not stored and the AD password corresponding to the AD account found in the preset account database is consistent with the AD password in the WiFi login instruction; wherein the preset account database is used to store the association relationship between the AD account and the AD password; A password assigning unit, used to randomly assign a second WiFi password to the AD account; A password storage unit is used to associate and store the AD account and the second WiFi password.

16. The device according to claim 15, wherein: The server pre-stores a third WiFi password associated with the AD account, and the authentication result includes a hash value of the third WiFi password; The device also includes: a hash determination unit, configured to determine the hash value of the first WiFi password according to the first WiFi password in response to determining that the authentication result includes the hash value of the third WiFi password; A hash comparison unit is used to configure network access rights in response to determining that the hash value of the first WiFi password is consistent with the hash value of the third WiFi password.

17. The device according to any one of claims 12 to 16, further comprising: A login prompt unit is used to output a prompt message of login failure in response to determining that the first authentication code authentication fails according to the authentication result.

18. A WiFi login authentication device, applied to a server, comprising: An information receiving unit, used to receive an AD account and a first authentication code sent by a client device; The first authentication code is obtained by the client device based on the AD account and a first WiFi password associated with the AD account, where the first WiFi password is a password randomly assigned after the AD account is registered; An information authentication unit, used to authenticate the first authentication code according to the AD account to obtain an authentication result; An information feedback unit is used to send the authentication result to the client device.

19. The device according to claim 18, wherein: The information authentication unit comprises: A third determination module is used to determine a third WiFi password according to the AD account; wherein the third WiFi password is a password pre-stored by the server and randomly assigned after the AD account is registered; A fourth determination module, used to determine a second authentication code according to the AD account and the third WiFi password; The information authentication module is used to authenticate the first authentication code according to the second authentication code to obtain the authentication result.

20. The apparatus according to claim 19, further comprising: The authentication failure unit is used to send an authentication result indicating that the first authentication code authentication fails to the client device in response to determining that the third WiFi password is not stored, so that the client device can output a prompt message of login failure.

21. The device according to claim 19 or 20, wherein: The information authentication module comprises: The authentication code comparison submodule is used to compare the first authentication code with the second authentication code, and determine the authentication result according to the comparison result.

22. The device according to claim 21, wherein The authentication code comparison submodule is specifically used for: In response to the first authentication code and the second authentication code being consistent, determining a hash value of the third WiFi password based on a preset hash algorithm; The hash value of the third WiFi password is determined as the authentication result.

23. A WiFi login authentication system, wherein: The system comprises a client device for executing the method according to any one of claims 1 to 6, and a server for executing the method according to any one of claims 7 to 11.

24. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6 or 7-11.

25. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6 or 7-11.

26. A computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 6 or 7 to 11.