User access authentication method and device, equipment and medium
Generating and using website links containing multiple key information through the ciphertext manager solves the problem of low user access authentication security in the existing technology and achieves higher security and information protection.
Patent Information
- Application Number
- CN202410722495.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-05
AI Technical Summary
The security of user access authentication methods in the existing technology is low and cannot effectively protect user information. In particular, the hash value of the user name and password carried in the URL has the risk of leakage and theft.
By configuring the ciphertext manager, it generates website links containing multiple key information, responds to user authentication requests, and extracts the information to be verified corresponding to the user during access, and conducts authentication based on the matching relationship with the pre-stored key information to ensure access security. .
It improves the security of access authentication, prevents unauthorized access, protects user information, and ensures that only legitimate users can access protected resources.
Smart Images

Figure CN118568706A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of identity authentication, and in particular to a method, device, equipment and medium for user access authentication. Background Art
[0002] In modern Web-based systems, user access authentication is a key link to ensure data security and privacy. As users' demand for convenience continues to increase, the method of automatically logging in and directly entering the system by clicking a URL (Uniform Resource Locator) has gradually become popular. However, most of the current methods of logging in by carrying the hash value of the username and password in the URL have some defects.
[0003] First, carrying the username directly in the URL will lead to the leakage of the user's username information, which may bring security risks to the user. Secondly, passing passwords or password hashes in the URL also has security risks, because this information may be intercepted or stolen maliciously. In addition, the URL may be recorded in the browser history, proxy server logs or other locations, making user credentials easily accessible to unauthorized personnel, further increasing security risks.
[0004] In summary, the user access authentication method in the prior art has the problem that the security of access authentication is low and the user's information security cannot be guaranteed. Summary of the invention
[0005] The present invention provides a user access authentication method, device, equipment and medium, which can solve the problem that the user access authentication method in the prior art has low access authentication security and cannot guarantee the user's information security.
[0006] In a first aspect, an embodiment of the present invention provides a method for user access authentication, which is performed by a ciphertext manager configured with a memory, and the method includes:
[0007] In response to the authentication registration request sent by the first user, interact with the first user at least once according to the first user name, the first password and the first website to be authenticated of the first user, generate a first website link, and feed back the first website link to the first user;
[0008] The first website link includes multiple first key information corresponding to the first user, and the multiple first key information is pre-stored in the ciphertext manager, and the first website link is used by the first user to securely access the first website;
[0009] In response to a request for accessing a second website triggered by a second user inputting a second website link, extracting a plurality of pieces of information to be verified corresponding to the second user from the second website link;
[0010] The second user's access to the second website is authenticated according to the matching relationship between the multiple pieces of information to be verified and the pre-stored multiple pieces of second key information corresponding to the second user.
[0011] In a second aspect, an embodiment of the present invention provides a user access authentication device, which is executed by a ciphertext manager configured with a memory, and the device includes:
[0012] A link feedback module, configured to respond to an authentication registration request sent by a first user, interact with the first user at least once according to a first user name, a first password and a first website to be authenticated of the first user, generate a first website link, and feedback the first website link to the first user;
[0013] The first website link includes multiple first key information corresponding to the first user, and the multiple first key information is pre-stored in the ciphertext manager, and the first website link is used by the first user to securely access the first website;
[0014] an information extraction module, configured to extract a plurality of pieces of to-be-verified information corresponding to the second user from the second website link in response to a request for accessing the second website triggered by the second user inputting the second website link;
[0015] The access authentication module is used to authenticate the second user's access to the second website according to the matching relationship between the multiple pieces of information to be verified and the multiple pieces of second key information pre-stored and corresponding to the second user.
[0016] In a third aspect, an embodiment of the present invention provides an electronic device, the electronic device comprising:
[0017] at least one processor; and
[0018] a memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a user access authentication method described in any embodiment of the present invention.
[0020] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a user access authentication method described in any embodiment of the present invention when executed.
[0021] The technical solution of the embodiment of the present invention, by responding to the authentication registration request sent by the first user, interacting with the first user at least once according to the first user name, the first password and the first website to be authenticated, generating a first website link, and feeding back the first website link to the first user, and then responding to the access request to the second website triggered by the second user entering the second website link, extracting multiple pieces of information to be verified corresponding to the second user from the second website link, and finally authenticating the second user's access to the second website according to the matching relationship between the multiple pieces of information to be verified and the multiple pieces of second key information corresponding to the second user stored in advance, thereby solving the problem that the user access authentication method in the prior art has low security and cannot guarantee the user's information security, and can realize user access authentication, thereby improving the security of access authentication and ensuring the user's information security.
[0022] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 is a flow chart of a user access authentication method provided according to Embodiment 1 of the present invention;
[0025] Figure 2 is a flow chart of a user access authentication method provided according to Embodiment 2 of the present invention;
[0026] Figure 3 is a schematic diagram of the structure of a user access authentication device provided according to Embodiment 3 of the present invention;
[0027] Figure 4 It is a structural diagram of an electronic device for implementing a user access authentication method according to an embodiment of the present invention; DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, any variation of the terms "including" and "having" is intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0031] Embodiment 1
[0032] Figure 1 A flowchart of a user access authentication method provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation where access authentication is performed on a user's access operation. The method can be executed by an access authentication device for the user. The access authentication device for the user can be implemented in the form of hardware and / or software. The access authentication device for the user can be configured in a ciphertext manager configured with a memory.
[0033] like Figure 1 As shown, the method includes:
[0034] S110: In response to the authentication registration request sent by the first user, interact with the first user at least once according to the first user name, the first password and the first website to be authenticated, generate a first website link, and feed back the first website link to the first user.
[0035] The first website link includes multiple first key information corresponding to the first user, and the multiple first key information are pre-stored in the ciphertext manager. The first website link is used for the first user to securely access the first website.
[0036] The authentication registration request may be a network request generated when the first user performs user registration or authentication on the first website to be authenticated.
[0037] In this embodiment, the first website to be authenticated may be the URL (Uniform Resource Locator) of the target website; further, the URL is a standard format for identifying and locating resources on the Internet. Through the URL, the user can enter the corresponding address in the browser to access a specific resource. The browser will communicate with the server using the corresponding protocol according to the information in the URL and obtain the specified resource.
[0038] S120: In response to a request for accessing a second website triggered by a second user inputting a second website link, extract multiple pieces of information to be verified corresponding to the second user from the second website link.
[0039] Among them, in response to the access request to the second website triggered by the second user entering the second website link, multiple pieces of information to be verified corresponding to the second user are extracted from the second website link, including: parsing the second website link to obtain the website to be authenticated, the target signature to be verified, the user name ciphertext to be verified, the user name token to be verified, the password ciphertext to be verified and the password token to be verified corresponding to the second user.
[0040] In a specific implementation of this embodiment, when the second user inputs the second website link into the web browser and initiates an access verification request, the system extracts the website to be authenticated, the target signature to be verified, the user name ciphertext to be verified, the user name token to be verified, the password ciphertext to be verified and the password token to be verified from the second website link.
[0041] S130: Authenticate the second user's access to the second website according to a matching relationship between the plurality of pieces of information to be verified and the plurality of pre-stored second key information corresponding to the second user.
[0042] In this embodiment, the process of authenticating access to the second website is the access authentication operation of the user of this application; further, the access authentication is a process of verifying the identity of the user, which is used to determine whether the user has the right to access a specific resource or system. The purpose of access authentication is to protect the security of resources and systems and prevent unauthorized users from accessing sensitive information or performing unauthorized operations. It can be applied to various scenarios, such as network access, computer system login, mobile application access, etc. By implementing access authentication, the security of the system can be improved, the risk of unauthorized access can be reduced, and it can be ensured that only legitimate users can access protected resources.
[0043] The technical solution of the embodiment of the present invention, by responding to the authentication registration request sent by the first user, interacting with the first user at least once according to the first user name, the first password and the first website to be authenticated, generating a first website link, and feeding back the first website link to the first user, and then responding to the access request to the second website triggered by the second user entering the second website link, extracting multiple pieces of information to be verified corresponding to the second user from the second website link, and finally authenticating the second user's access to the second website according to the matching relationship between the multiple pieces of information to be verified and the multiple pieces of second key information corresponding to the second user stored in advance, so as to realize user access authentication, improve the security of access authentication and ensure the user's information security.
[0044] Embodiment 2
[0045] Figure 2 A flowchart of a user access authentication method provided in Embodiment 2 of the present invention. This embodiment is refined based on the above-mentioned embodiment. In this embodiment, specifically, in response to an authentication registration request sent by a first user, the method of generating a first website link by interacting with the first user at least once according to the first user name, first password and first website to be authenticated of the first user is refined.
[0046] like Figure 2 As shown, the method includes:
[0047] S210: In response to an authentication registration request sent by a first user, extract a first user name and a first password from the authentication registration request.
[0048] The authentication registration request carries a user name and a first password entered by the user.
[0049] S220. Generate multiple pieces of first key information according to the first user name and the first password, and store the multiple pieces of first key information in a ciphertext manager according to a preset storage rule.
[0050] Specifically, based on the first user name and the first password, multiple first key information are generated, and the multiple first key information are stored in the ciphertext manager according to the preset storage rules, including: obtaining the first user name and the first password, and processing the first user name and the first password respectively through the preset identifier library to obtain a first user name key, a first user name token, a first password key and a first password token; using the first user name key to process the first user name to obtain a first user name ciphertext; storing the first association relationship between the first user name key and the first user name token in the ciphertext manager; using the first password key to process the first password to obtain a first password ciphertext; storing the second association management between the first password key and the first password token in the ciphertext manager.
[0051] In a specific implementation scenario of the present embodiment, after obtaining the first username and the first password, the first username and the first password can be processed respectively through the preset UUID (Universally Unique Identifier) library to obtain a first username key, a first username token, a first password key and a first password token; further, the UUID library is a software library or tool set for generating and managing UUIDs, and is a software construction standard for ensuring that all identifiers are unique in a distributed system. In many systems, UUID has been used to generate a unique object ID. In this embodiment, the UUID library is used to generate a first username key and a first username token that uniquely match the first username, and to generate a first password key and a first password token that uniquely match the first password.
[0052] Among them, using the first username key to process the first username to obtain the first username ciphertext includes: using the first username key to process the first username to obtain a first-level user ciphertext matching the first username; encoding the first-level user ciphertext through a preset encoding method to obtain a first username ciphertext matching the first username; and using the first password key to process the first password to obtain a first password ciphertext, including: using the first password key to process the first password to obtain a first-level password ciphertext matching the first password; encoding the first-level password ciphertext through a preset encoding method to obtain a first password ciphertext matching the first password.
[0053] Optionally, the first user name is processed using the first user name key to obtain a first-level user ciphertext matching the first user name, including: performing SM4 encryption processing on the first user name based on the first user name key to obtain a first-level user ciphertext; further, the SM4 encryption is a symmetric encryption algorithm, and the SM4 encryption uses a 128-bit key to encrypt and decrypt data. It has the following characteristics: 1) High strength: SM4 encryption has high security and can provide reliable encryption protection; 2) High efficiency: The encryption and decryption process is relatively fast and suitable for real-time data processing; 3) Flexibility: It can be applied to a variety of scenarios, such as network communication, file encryption, etc. The working principle of SM4 encryption is to divide the plaintext data into groups of fixed length, and then use the key to encrypt each group to obtain the ciphertext. The decryption process is to decrypt the ciphertext using the same key to restore the original plaintext. In practical applications, SM4 encryption is usually used in combination with other security mechanisms, such as identity authentication, digital signatures, etc., to provide more comprehensive security protection.
[0054] In this embodiment, the preset encoding method may be base64 encoding, wherein the Base64 encoding is an encoding method for converting binary data into printable characters, which uses 64 printable characters (including uppercase and lowercase letters, numbers, and some special characters) to represent binary data. The main purpose of Base64 encoding is to convert binary data into text format for transmission or storage in a text environment.
[0055] Furthermore, after storing the first association relationship between the first username key and the first username token and the second association management between the first password key and the first password token in the cipher manager, it also includes: marking the storage status of the first username key and the first password key stored in the cipher manager as unused.
[0056] S230: Organize the multiple pieces of first key information to obtain a target ciphertext, and feed the target ciphertext back to the first user.
[0057] Among them, organizing the multiple first key information to obtain a target ciphertext, and feeding back the target ciphertext to the first user, includes: obtaining a first username ciphertext and a first password ciphertext, splicing the first username ciphertext and the first password ciphertext according to a preset splicing rule, and processing the splicing result using a hash signature method to obtain a first target signature; splicing the first target signature, the first username ciphertext, the first username token, the first password ciphertext and the first password token according to a preset splicing rule to obtain the target ciphertext and feeding it back to the first user.
[0058] The preset concatenation rule may be to connect the first username ciphertext and the first password ciphertext end to end, that is, to connect the last digit of the first username ciphertext and the first digit of the first password ciphertext to obtain a concatenation result.
[0059] Furthermore, the hash signature method is specifically an MD5 (Message Digest Algorithm 5) hash signature operation; specifically, an MD5 hash signature is a method of obtaining a hash signature by performing a hash operation on data to generate a digest value of a fixed length and using it as a signature. The MD5 algorithm converts the input data into a 128-bit hash value, which is usually expressed as a 32-bit hexadecimal string. The main purpose of the hash signature is to verify the integrity and consistency of the data.
[0060] S240: Generate a first website link based on the target ciphertext sent again by the first user and the first website to be authenticated, and feed it back to the first user.
[0061] Specifically, generating a first website link according to the target ciphertext sent again by the first user and the first website to be authenticated includes: splicing the target ciphertext and the first website to be authenticated according to a preset splicing rule to obtain the first website link.
[0062] In a specific implementation scenario of the present embodiment, the target ciphertext and the first website to be authenticated are spliced according to a preset splicing rule to obtain the first website link, which can be: if the current splicing rule is to splice the first target signature, the first username ciphertext, the first username token, the first password ciphertext, the first password token in the target ciphertext with the first website to be authenticated in the order of "first website to be authenticated + first username ciphertext + first username token + first password ciphertext + first password token + first target signature", and each item is separated by a slash, the final first website link is: http: / / ip:port / first website to be authenticated / first username ciphertext / first username token / first password ciphertext / first password token / first target signature.
[0063] S250: In response to a request for accessing a second website triggered by a second user inputting a second website link, extract multiple pieces of information to be verified corresponding to the second user from the second website link.
[0064] S260: Authenticate the second user's access to the second website according to a matching relationship between the plurality of pieces of information to be verified and the plurality of pre-stored second key information corresponding to the second user.
[0065] On the basis of the above steps, according to the matching relationship between the multiple pieces of information to be verified and the multiple pieces of second key information corresponding to the second user stored in advance, the second user's access to the second website is authenticated, including: performing an integrity verification operation on the target signature to be verified based on the hash verification method; after the integrity verification operation of the target signature to be verified is passed, obtaining the user name token to be verified and the password token to be verified, and searching whether there is a second user name token and a second password token consistent with the user name token to be verified and the password token to be verified in the ciphertext manager; after retrieving the existence of the second user name token and the second password token consistent with the user name token to be verified and the password token to be verified, extracting the second user name key stored in association with the second user name token and the second password key stored in association with the second password token in the ciphertext manager; after verifying that the storage status of the second user name key and the second password key is unused, performing a decryption operation on the user name ciphertext to be verified and the password ciphertext to be verified based on the second user name key and the second password key to obtain the second user name and the second user password, and modifying the storage status of the second user name key and the second password key to used; using the second user name and the second user password to perform an access authentication operation on the second website to be authenticated.
[0066] In a specific implementation scenario of the present embodiment, when the second user inputs the second website link into the web browser and initiates an access request, the system extracts the target signature to be verified, the username token to be verified, the password token to be verified, the username ciphertext to be verified and the password ciphertext to be verified corresponding to the second user from the second website link; then, the system will first verify the target signature to be verified through MD5 hash and perform an integrity check. If it passes, the next step will be performed, otherwise the authentication fails; after the integrity check passes, the system will send the username token to be verified and the password token to be verified to the key search interface of the ciphertext manager module respectively, extract the second username key stored in association with the second username token and the second password key stored in association with the second password token in the ciphertext manager, and then the system will decrypt the username ciphertext to be verified and the password ciphertext to be verified according to the second username key and the second password key to obtain the real username and password, and finally the real username and password can be used to perform authentication operations on the second website to be authenticated.
[0067] The technical solution of the embodiment of the present invention is to extract a first user name and a first password from the authentication registration request in response to the authentication registration request sent by the first user, then generate multiple first key information according to the first user name and the first password, and store the multiple first key information in a ciphertext manager according to a preset storage rule, then organize the multiple first key information to obtain a target ciphertext, and feed the target ciphertext back to the first user, then generate a first website link according to the target ciphertext sent again by the first user and the first website to be authenticated, and feed the first website link back to the first user, then respond to the second user by inputting a second website link to trigger an access request to the second website, extract multiple pieces of information to be verified corresponding to the second user from the second website link, and finally authenticate the second user's access to the second website according to the matching relationship between the multiple pieces of information to be verified and the multiple pieces of second key information corresponding to the second user stored in advance, so as to realize user access authentication, improve the security of access authentication and ensure the user's information security.
[0068] Embodiment 3
[0069] Figure 3 A schematic diagram of the structure of a user access authentication device provided in Embodiment 3 of the present invention.
[0070] like Figure 3 As shown, the device comprises:
[0071] The link feedback module 310 is used to respond to the authentication registration request sent by the first user, interact with the first user at least once according to the first user name, the first password and the first website to be authenticated of the first user, generate a first website link, and feedback the first website link to the first user;
[0072] The first website link includes multiple first key information corresponding to the first user, and the multiple first key information is pre-stored in the ciphertext manager, and the first website link is used by the first user to securely access the first website;
[0073] The information extraction module 320 is used to extract multiple pieces of to-be-verified information corresponding to the second user from the second website link in response to a request for accessing the second website triggered by the second user inputting the second website link;
[0074] The access authentication module 330 is used to authenticate the second user's access to the second website according to the matching relationship between the multiple pieces of information to be verified and the multiple pieces of pre-stored second key information corresponding to the second user.
[0075] The technical solution of the embodiment of the present invention, by responding to the authentication registration request sent by the first user, interacting with the first user at least once according to the first user name, the first password and the first website to be authenticated, generating a first website link, and feeding back the first website link to the first user, and then responding to the access request to the second website triggered by the second user entering the second website link, extracting multiple pieces of information to be verified corresponding to the second user from the second website link, and finally authenticating the second user's access to the second website according to the matching relationship between the multiple pieces of information to be verified and the multiple pieces of second key information corresponding to the second user stored in advance, so as to realize user access authentication, improve the security of access authentication and ensure the user's information security.
[0076] Based on the above embodiment, the link feedback module 310 includes:
[0077] A data extraction unit, configured to extract a first user name and a first password from the authentication registration request in response to the authentication registration request sent by the first user;
[0078] A first key information generating unit, configured to generate multiple pieces of first key information according to the first user name and the first password, and store the multiple pieces of first key information in the ciphertext manager according to a preset storage rule;
[0079] a target ciphertext feedback unit, configured to organize the plurality of first key information into a target ciphertext, and feed back the target ciphertext to the first user;
[0080] The first website link generating unit is used to generate a first website link according to the target ciphertext sent again by the first user and the first website to be authenticated.
[0081] Based on the above embodiment, the first key information generating unit further includes:
[0082] A key information processing unit, used to obtain the first user name and the first password, and process the first user name and the first password respectively through a preset identifier library to obtain a first user name key, a first user name token, a first password key and a first password token;
[0083] A first user ciphertext generating unit, configured to process the first user name using a first user name key to obtain a first user name ciphertext;
[0084] A first association relationship storage unit, used to store a first association relationship between a first username key and a first username token in a ciphertext manager;
[0085] A first password ciphertext generating unit, configured to process the first password using a first cryptographic key to obtain a first password ciphertext;
[0086] The second association relationship storage unit is used to store the second association management between the first cryptographic key and the first cryptographic token in the ciphertext manager.
[0087] Based on the above embodiment, the target ciphertext feedback unit further includes:
[0088] A first target signature generating unit is used to obtain a first user name ciphertext and a first password ciphertext, concatenate the first user name ciphertext and the first password ciphertext according to a preset concatenation rule, and process the concatenation result using a hash signature method to obtain a first target signature;
[0089] a ciphertext concatenation unit, configured to concatenate the first target signature, the first user name ciphertext, the first user name token, the first password ciphertext and the first password token according to a preset concatenation rule, obtain a target ciphertext and feed it back to the first user;
[0090] On the basis of the above embodiment, the first website link generating unit is further used to: splice the target ciphertext with the first website to be authenticated according to a preset splicing rule to obtain the first website link.
[0091] Based on the above embodiment, the first user ciphertext generating unit further includes:
[0092] A primary user ciphertext generating unit, configured to process a first user name using a first user name key to obtain a primary user ciphertext matching the first user name;
[0093] A first encoding unit, configured to encode the primary user ciphertext by a preset encoding method to obtain a first user name ciphertext matching the first user name;
[0094] On the basis of the above embodiment, the first password ciphertext generating unit includes:
[0095] a first-level password ciphertext generating unit, configured to process a first password using a first cryptographic key to obtain a first-level password ciphertext matching the first password;
[0096] The second encoding unit is used to encode the first-level password ciphertext by a preset encoding method to obtain a first password ciphertext matching the first password.
[0097] Based on the above embodiment, the information extraction module 320 is also used to: parse the second website link to obtain the website to be authenticated, the target signature to be verified, the username ciphertext to be verified, the username token to be verified, the password ciphertext to be verified and the password token to be verified corresponding to the second user.
[0098] On the basis of the above embodiment, the first key information generating unit is further used to: after storing the first association relationship between the first username key and the first username token and the second association management between the first password key and the first password token in the ciphertext manager, mark the storage status of the first username key and the first password key stored in the ciphertext manager as unused;
[0099] Based on the above embodiment, the access authentication module 330 includes:
[0100] A verification unit, used for performing integrity verification operation on the target signature to be verified based on a hash verification method;
[0101] A search unit, configured to obtain the username token to be verified and the password token to be verified after the integrity verification operation of the target signature to be verified passes, and to search whether there is a second username token and a second password token in the ciphertext manager that are consistent with the username token to be verified and the password token to be verified;
[0102] a data extraction unit, configured to extract a second username key stored in association with the second username token and a second password key stored in association with the second password token in the ciphertext manager after retrieving a second username token and a second password token that are consistent with the username token to be verified and the password token to be verified;
[0103] a decryption unit, configured to, after verifying that the storage status of the second user name key and the second password key is unused, decrypt the ciphertext of the user name to be verified and the ciphertext of the password to be verified based on the second user name key and the second password key to obtain the second user name and the second user password, and modify the storage status of the second user name key and the second password key to used;
[0104] The authentication unit is used to use the second user name and the second user password to perform an access authentication operation on a second website to be authenticated.
[0105] A user access authentication device provided by an embodiment of the present invention can execute a user access authentication method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects of the execution method.
[0106] Embodiment 4
[0107] Figure 4A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention 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 (such as helmets, glasses, watches, etc.) 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 invention described and / or required herein.
[0108] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0109] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0110] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a user access authentication method.
[0111] Accordingly, the method comprises:
[0112] In response to the authentication registration request sent by the first user, interact with the first user at least once according to the first user name, the first password and the first website to be authenticated of the first user, generate a first website link, and feed back the first website link to the first user;
[0113] The first website link includes multiple first key information corresponding to the first user, and the multiple first key information is pre-stored in the ciphertext manager, and the first website link is used by the first user to securely access the first website;
[0114] In response to a request for accessing a second website triggered by a second user inputting a second website link, extracting a plurality of pieces of information to be verified corresponding to the second user from the second website link;
[0115] The second user's access to the second website is authenticated according to the matching relationship between the multiple pieces of information to be verified and the pre-stored multiple pieces of second key information corresponding to the second user.
[0116] In some embodiments, a method for user access authentication may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for user access authentication described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform a method for user access authentication by any other appropriate means (e.g., by means of firmware).
[0117] 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), load 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.
[0118] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program 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.
[0119] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. 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.
[0120] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device 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 a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0121] The systems and techniques described herein may be implemented in a computing system that includes backend 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 frontend 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 backend components, middleware components, or frontend 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), a blockchain network, and the Internet.
[0122] A computing 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 client and server relationship 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.
[0123] 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 described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
Claims
1. A user access authentication method, executed by a ciphertext manager configured with a memory, characterized in that: include: In response to the authentication registration request sent by the first user, interact with the first user at least once according to the first user name, the first password and the first website to be authenticated of the first user, generate a first website link, and feed back the first website link to the first user; The first website link includes multiple first key information corresponding to the first user, and the multiple first key information is pre-stored in the ciphertext manager, and the first website link is used by the first user to securely access the first website; In response to a request for accessing a second website triggered by a second user inputting a second website link, extracting a plurality of pieces of information to be verified corresponding to the second user from the second website link; The second user's access to the second website is authenticated according to the matching relationship between the plurality of pieces of information to be verified and the plurality of pre-stored second key information corresponding to the second user.
2. The method according to claim 1, characterized in that In response to an authentication registration request sent by a first user, interacting with the first user at least once according to a first user name, a first password and a first website to be authenticated by the first user, and generating a first website link, including: In response to an authentication registration request sent by a first user, extracting a first user name and a first password from the authentication registration request; Generate multiple first key information according to the first user name and the first password, and store the multiple first key information in the ciphertext manager according to a preset storage rule; Organizing the plurality of first key information to obtain a target ciphertext, and feeding the target ciphertext back to the first user; A first website link is generated according to the target ciphertext sent again by the first user and the first website to be authenticated.
3. The method according to claim 2, characterized in that Generate multiple first key information according to the first user name and the first password, and store the multiple first key information in the ciphertext manager according to a preset storage rule, including: Obtaining the first user name and the first password, and processing the first user name and the first password respectively through a preset identifier library to obtain a first user name key, a first user name token, a first password key, and a first password token; Using the first username key to process the first username to obtain the first username ciphertext; Storing a first association relationship between the first username key and the first username token in the ciphertext manager; Processing the first password using a first cryptographic key to obtain a first password ciphertext; A second association between the first cryptographic key and the first cryptographic token is managed and stored in the cryptographic manager.
4. The method according to claim 2, characterized in that: Organizing the plurality of first key information to obtain a target ciphertext, and feeding back the target ciphertext to the first user, includes: Obtaining a first user name ciphertext and a first password ciphertext, concatenating the first user name ciphertext and the first password ciphertext according to a preset concatenation rule, and processing the concatenation result using a hash signature method to obtain a first target signature; The first target signature, the first user name ciphertext, the first user name token, the first password ciphertext and the first password token are concatenated according to a preset concatenation rule to obtain a target ciphertext and feed it back to the first user; And, generating a first website link according to the target ciphertext sent again by the first user and the first website to be authenticated, including: The target ciphertext and the first website to be authenticated are spliced according to a preset splicing rule to obtain a first website link.
5. The method according to claim 3, characterized in that: The first user name is processed using the first user name key to obtain the first user name ciphertext, including: Using the first user name key to process the first user name, to obtain a primary user ciphertext matching the first user name; Encoding the primary user ciphertext by a preset encoding method to obtain a first user name ciphertext matching the first user name; And, using a first cryptographic key to process the first password to obtain a first password ciphertext, including: Processing the first password using the first cryptographic key to obtain a first-level password ciphertext matching the first password; The first-level password ciphertext is encoded by a preset encoding method to obtain a first password ciphertext matching the first password.
6. The method according to claim 1, characterized in that In response to a request for accessing the second website triggered by the second user inputting a second website link, extracting multiple pieces of information to be verified corresponding to the second user from the second website link, including: The second website link is parsed to obtain the website to be authenticated, the target signature to be verified, the ciphertext of the user name to be verified, the user name token to be verified, the ciphertext of the password to be verified and the password token to be verified corresponding to the second user.
7. The method according to claim 3, characterized in that After managing and storing the first association relationship between the first username key and the first username token and the second association relationship between the first cryptographic key and the first cryptographic token in the ciphertext manager, the method further includes: Marking the storage status of the first username key and the first password key stored in the ciphertext manager as unused; And, authenticating the second user's access to the second website according to the matching relationship between the plurality of pieces of information to be verified and the plurality of pre-stored second key information corresponding to the second user, including: Perform integrity verification operation on the target signature to be verified based on the hash verification method; After the integrity verification operation of the target signature to be verified is passed, the username token to be verified and the password token to be verified are obtained, and the ciphertext manager is searched for a second username token and a second password token that are consistent with the username token to be verified and the password token to be verified; After retrieving a second username token and a second password token that are consistent with the username token to be verified and the password token to be verified, extracting a second username key stored in association with the second username token and a second password key stored in association with the second password token in the ciphertext manager; After verifying that the storage status of the second user name key and the second password key is unused, decrypting the ciphertext of the user name to be verified and the ciphertext of the password to be verified based on the second user name key and the second password key to obtain the second user name and the second user password, and changing the storage status of the second user name key and the second password key to used; The second user name and the second user password are used to perform an access authentication operation on the second website to be authenticated.
8. A user access authentication device, executed by a ciphertext manager equipped with a memory, characterized in that: include: A link feedback module, configured to respond to an authentication registration request sent by a first user, interact with the first user at least once according to a first user name, a first password and a first website to be authenticated of the first user, generate a first website link, and feedback the first website link to the first user; The first website link includes multiple first key information corresponding to the first user, and the multiple first key information is pre-stored in the ciphertext manager, and the first website link is used by the first user to securely access the first website; an information extraction module, configured to extract a plurality of pieces of to-be-verified information corresponding to the second user from the second website link in response to a request for accessing the second website triggered by the second user inputting the second website link; The access authentication module is used to authenticate the second user's access to the second website according to the matching relationship between the multiple pieces of information to be verified and the multiple pieces of second key information pre-stored and corresponding to the second user.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a user access authentication method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a user access authentication method according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Security authentication method, client side, server side and system
CN107395654A
Data security processing method and device
CN111859435A
Login verification method and device, electronic equipment and storage medium
CN114157434A
Access control method and device based on zero-trust security and storage medium
CN114679293A
Third-party service platform access method and device, computer equipment and storage medium
CN116861490A
