Authentication login method and device, readable storage medium, terminal equipment and server
Generating an authentication login request through image encryption solves the problem of low authentication login security caused by text passwords in the existing technology, and achieves higher security.
Patent Information
- Application Number
- CN202410721562.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-10-15
AI Technical Summary
The authentication login method in the prior art uses text passwords, which results in low security and is easy to be copied and cracked.
An image is used instead of a text password, and the image to be verified is encrypted through a preset encryption algorithm to generate the first ciphertext, which is used to generate an authentication login request and authenticate the login to the server.
Authentication login through images improves the security of the login method. The complexity and uniqueness of the image make it difficult to be cracked, which significantly improves security.
Smart Images

Figure CN118784271A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of Internet technology, and in particular, relates to an authentication login method, device, computer-readable storage medium, terminal equipment and server. Background Art
[0002] When a user uses a browser or application, the server needs to authenticate the account to verify the user's identity and authorization authority. In the current solution, authentication is usually performed based on a text password set by the user. However, a text password is actually a combination of characters, and its selection and combination method has a certain degree of repeatability and susceptibility to cracking. It is easy to be copied and cracked during use, resulting in low security of existing authentication login methods. Summary of the invention
[0003] In view of this, the embodiments of the present application provide an authentication login method, apparatus, computer-readable storage medium, terminal device and server to solve the problem that the authentication login method in the prior art has low security due to the use of text passwords.
[0004] A first aspect of an embodiment of the present application provides an authentication login method applied to a terminal device, which may include:
[0005] Receiving an image to be verified;
[0006] Generate an authentication login request according to the image to be verified; wherein the authentication login request is used to request the server to authenticate the target account according to the first ciphertext, and the first ciphertext is obtained by encrypting the image to be verified;
[0007] The authentication login request is sent to the server.
[0008] In a specific implementation of the first aspect, generating an authentication login request according to the image to be verified includes:
[0009] Encrypting the image to be verified by using a preset encryption algorithm to obtain the first ciphertext;
[0010] The authentication login request is generated according to the target account and the first ciphertext.
[0011] In a specific implementation of the first aspect, encrypting the image to be verified by using a preset encryption algorithm to obtain the first ciphertext includes:
[0012] Encoding the image to be verified using a preset encoding method to obtain encoded data;
[0013] The coded data is encrypted using the encryption algorithm to obtain the first ciphertext.
[0014] A second aspect of an embodiment of the present application provides an authentication login method applied to a server, which may include:
[0015] Receiving an authentication login request, and parsing the authentication login request to obtain a target account and a first ciphertext;
[0016] The target account is authenticated according to the first ciphertext to obtain an authentication result.
[0017] In a specific implementation of the second aspect, authenticating the target account according to the first ciphertext to obtain an authentication result includes:
[0018] According to the target account, determining a second ciphertext corresponding to the target account in a preset database;
[0019] If the first ciphertext and the second ciphertext are the same, determining that the authentication result is successful authentication;
[0020] If the first ciphertext and the second ciphertext are different, the authentication result is determined to be an authentication failure.
[0021] A third aspect of the embodiments of the present application provides an authentication and login device applied to a terminal device, which may include:
[0022] The image receiving module to be verified is used to receive the image to be verified;
[0023] An authentication login request generation module, used to generate an authentication login request according to the image to be verified; wherein the authentication login request is used to request the server to authenticate the target account according to the first ciphertext, and the first ciphertext is obtained by encrypting the image to be verified;
[0024] The authentication login request sending module is used to send the authentication login request to the server.
[0025] In a specific implementation of the third aspect, the authentication login request generating module includes:
[0026] An image encryption submodule, used to encrypt the image to be verified using a preset encryption algorithm to obtain the first ciphertext;
[0027] The authentication login request generation submodule is used to generate the authentication login request according to the target account and the first ciphertext.
[0028] In a specific implementation of the third aspect, the image encryption submodule includes:
[0029] An image encoding unit, used to encode the image to be verified using a preset encoding method to obtain encoded data;
[0030] A data encryption unit is used to encrypt the encoded data using the encryption algorithm to obtain the first ciphertext.
[0031] A fourth aspect of the embodiments of the present application provides an authentication and login device applied to a server, which may include:
[0032] An authentication login request receiving module, used to receive an authentication login request, and parse the authentication login request to obtain a target account and a first ciphertext;
[0033] The target account authentication module is used to authenticate the target account according to the first ciphertext to obtain an authentication result.
[0034] In a specific implementation of the fourth aspect, the target account authentication module includes:
[0035] A ciphertext determination submodule, configured to determine, according to the target account, a second ciphertext corresponding to the target account in a preset database;
[0036] an authentication success determination submodule, configured to determine that the authentication result is an authentication success if the first ciphertext and the second ciphertext are the same;
[0037] The authentication failure determination submodule is used to determine that the authentication result is an authentication failure if the first ciphertext and the second ciphertext are different.
[0038] The fifth aspect of an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of any one of the above-mentioned authentication and login methods applied to a terminal device, or the steps of any one of the above-mentioned authentication and login methods applied to a server.
[0039] The sixth aspect of an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the processor implements any one of the steps of the above-mentioned authentication login method applied to the terminal device.
[0040] The seventh aspect of an embodiment of the present application provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the processor implements the steps of any one of the above-mentioned authentication login methods applied to the server.
[0041] The eighth aspect of the embodiments of the present application provides a computer program product, which, when the computer program product is running on a terminal device, enables the terminal device to execute the steps of any one of the above-mentioned authentication and login methods; when the computer program product is running on a server, enables the server to execute the steps of any one of the above-mentioned authentication and login methods applied to the server.
[0042] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the embodiments of the present application receive an image to be verified; based on the image to be verified, an authentication login request is generated; wherein the authentication login request is used to request the server to authenticate the target account based on a first ciphertext, wherein the first ciphertext is obtained by encrypting the image to be verified; the authentication login request is sent to the server; if the authentication result information returned by the server is received within a preset waiting time, the authentication login result is determined based on the authentication result information. Through the embodiments of the present application, images can be used for authentication login. Compared with text passwords, images have greater complexity and uniqueness, and are usually only held by users, so the security of the authentication login method can be greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0044] Figure 1 This is a schematic diagram of an application scenario in an embodiment of the present application;
[0045] Figure 2 This is a flow chart of an embodiment of an authentication login method applied to a terminal device in an embodiment of the present application;
[0046] Figure 3 A schematic diagram of the front-end interface for authentication and login;
[0047] Figure 4 A flowchart of an embodiment of an authentication login method applied to a server in an embodiment of the present application;
[0048] Figure 5 A schematic diagram of the authentication and login process;
[0049] Figure 6 This is a structural diagram of an embodiment of an authentication and login device applied to a terminal device in an embodiment of the present application;
[0050] Figure 7This is a structural diagram of an embodiment of an authentication and login device applied to a server in an embodiment of the present application;
[0051] Figure 8 This is a schematic block diagram of a terminal device in an embodiment of the present application;
[0052] Fig. 9 This is a schematic block diagram of a server in an embodiment of the present application. DETAILED DESCRIPTION
[0053] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0054] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0055] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0056] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0057] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0058] In addition, in the description of the present application, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0059] When a user uses a browser or application, the server needs to authenticate the account to verify the user's identity and authorization authority. In the current solution, authentication is usually performed based on a text password set by the user. However, a text password is actually a combination of characters, and its selection and combination method has a certain degree of repeatability and susceptibility to cracking. It is easy to be copied and cracked during use, resulting in low security of existing authentication login methods.
[0060] In view of this, the embodiments of the present application provide an authentication login method, apparatus, computer-readable storage medium, terminal device and server to solve the problem that the authentication login method in the prior art has low security due to the use of text passwords.
[0061] Figure 1 An application scenario of an embodiment of the present application is shown. Specifically, a user can upload an image for authentication login on a terminal device instead of a text password. After that, the terminal device can generate an authentication login request based on the image and send the authentication login request to a server. After receiving the authentication login request sent by the terminal device, the server can authenticate the user's account based on the image.
[0062] For ease of understanding, an authentication login method in an embodiment of the present application will first be described from the terminal device side.
[0063] See also Figure 2 In the embodiment of the present application, an authentication login method applied to a terminal device may include:
[0064] Step S201: receiving an image to be verified.
[0065] In an embodiment of the present application, when a user needs to log in to certain pages using a target account on a browser of a terminal device (such as a computer or mobile phone), or when a user needs to log in to a target account on a client of a terminal device, an image to be verified can be uploaded for authentication login, and the terminal device can receive the image to be verified uploaded by the user.
[0066] In a specific implementation of the embodiment of the present application, in order to facilitate users to upload images, a corresponding "upload image" button can be generated on the front end (browser interface or client interface) using HyperText Markup Language (HTML), such as Figure 3 As shown, when the user clicks the button, the user can select the image to be verified and upload it, and the terminal device can receive the image to be verified uploaded by the user.
[0067] In another specific implementation of the embodiment of the present application, if the user uploads an image, the image can be directly determined as the image to be verified; if the user uploads multiple images, the image with the earliest upload order among the multiple images can be determined as the image to be verified.
[0068] Accordingly, users can use the image to be verified instead of the traditional text password. Since the image has higher complexity and uniqueness and can be held only by the user, the security of the authentication login method can be greatly improved.
[0069] Step S202: Generate an authentication login request based on the image to be verified.
[0070] In the embodiment of the present application, the terminal device may use a preset encryption algorithm to encrypt the image to be verified to obtain a first ciphertext.
[0071] Specifically, the terminal device can encode the image to be verified using a preset encoding method to obtain the encoded data corresponding to the image to be verified; here, the encoding method can preferably be base64. Afterwards, the encoded data can be encrypted using an encryption algorithm to obtain the first ciphertext of the image to be verified; wherein the encryption algorithm can be a common asymmetric encryption algorithm in the prior art, specifically any secure hash algorithm (SHA), specifically including but not limited to SHA-224, SHA-256, SHA-384, SHA-512, SHA-512 / 224, SHA-512 / 256; preferably, the encryption algorithm in the embodiment of the present application can be set to SHA-256.
[0072] The secure hash algorithm can generate a summary of the data and reduce the amount of data. Different first passwords will be generated for different images to be verified, which can effectively prevent data confusion and errors. Moreover, the data encrypted by the secure hash algorithm is irreversible, that is, the image data to be verified cannot be restored from the first key, thereby effectively preventing data leakage.
[0073] Afterwards, the terminal device can generate a corresponding authentication login request based on the target account and the first ciphertext; wherein the authentication login request can be used to request the server to authenticate the target account based on the first ciphertext.
[0074] Specifically, the terminal device may combine the target account and the first password into a request body or login parameter to obtain a corresponding authentication login request.
[0075] Step S203: Send the authentication login request to the server.
[0076] In an embodiment of the present application, after generating an authentication login request, the terminal device can send the authentication login request to the server to request the server to perform authentication login on the target account.
[0077] In a specific implementation of the embodiment of the present application, in order to improve the security of ciphertext transmission, when sending the authentication login request including the first ciphertext, the first ciphertext can be transmitted using asynchronous JavaScript and XML (Asynchronous Javascript And XML, Ajax) technology. In addition, the POST method can be used instead of the GET method to transmit the ciphertext, further enhancing the security of the ciphertext transmission.
[0078] After receiving the authentication login request sent by the terminal device, the server can authenticate the target account according to the first ciphertext.
[0079] In a specific implementation of the embodiment of the present application, if the terminal device receives the authentication result information returned by the server within the preset waiting time, the authentication login result can be determined according to the authentication result information. Among them, the specific value of the waiting time can be set according to actual needs, and this application does not make specific restrictions on this. For example, it can be set to 1 minute, 3 minutes, etc. During the waiting time, if the terminal device receives the authentication success information returned by the server, it can be determined that the target account authentication is successful; if the terminal device receives the authentication failure information returned by the server, it can be determined that the target account authentication fails. If the terminal device does not receive the authentication result information returned by the server within the waiting time, it may be that there is an abnormality in the server or the network. At this time, it can be directly determined that the authentication of the target account has failed. In addition, if the authentication result information returned by the server is received, a preset prompt message can be displayed on the display interface of the terminal device to inform the user of the authentication result; for example, if the authentication success information returned by the server is received within the waiting time, a prompt message of "Login successful" can be displayed, or the corresponding page of successful authentication can be directly entered; if the authentication failure information returned by the server is received within the waiting time, a prompt message of "Image incorrect" can be displayed; for another example, if the authentication result information returned by the server is not received within the waiting time, a prompt message of "Server busy" can be displayed. Based on this, the user can know the result of the authentication login in time.
[0080] The following describes an authentication login method in an embodiment of the present application from the server side. Figure 4 In an embodiment of the present application, an authentication login method applied to a server may include:
[0081] Step S401: Receive an authentication login request, and parse the authentication login request to obtain a target account and a first ciphertext.
[0082] In an embodiment of the present application, after receiving the authentication login request sent by the terminal device, the server can parse the authentication login request to obtain the target account and the first ciphertext.
[0083] Specifically, the server can obtain the login parameters submitted by the terminal device from the authentication login request. For example, JSON or a form parsing library can be used to parse the authentication login request to obtain corresponding login parameters, which may include the target account and the first ciphertext.
[0084] In a specific implementation method of an embodiment of the present application, after parsing to obtain the target account and the first ciphertext, the data format can also be verified. If the target account and the first ciphertext both meet the expected format requirements, the target account can be authenticated according to the first ciphertext to obtain an authentication result.
[0085] Step S402: Authenticate the target account according to the first ciphertext to obtain an authentication result.
[0086] In the embodiment of the present application, the second ciphertext corresponding to the target account can be determined in a preset database based on the target account.
[0087] In a specific implementation of the embodiment of the present application, the database may include each account and the second ciphertext corresponding to each account, so the second ciphertext corresponding to the target account can be directly queried in the database.
[0088] In another specific implementation of the embodiment of the present application, the database may include each account and the password image corresponding to each account, so the password image corresponding to the target account can be queried in the database, and then the password image corresponding to the target account can be encrypted using a preset encryption algorithm to obtain the second ciphertext corresponding to the target account. The encryption algorithm here is the same encryption algorithm negotiated and determined in advance by the server and the terminal device (browser or application).
[0089] If the first ciphertext and the second ciphertext are the same, it can be considered that the image to be verified is an image previously authorized for logging into the target account, and the authentication result of the target account can be determined to be successful authentication; if the first ciphertext and the second ciphertext are different, it can be considered that the image to be verified is not an image previously authorized for logging into the target account, and the authentication result of the target account can be determined to be failed authentication.
[0090] Afterwards, the corresponding authentication result information can be returned to the terminal device according to the authentication result of the target account. If the authentication result is successful, the server can return the corresponding authentication success information to the terminal device; if the authentication result is failed, the server can return the corresponding authentication failure information to the terminal device so that the user can know the authentication result.
[0091] In a specific implementation of an embodiment of the present application, after the target account is successfully authenticated, the server can issue a Cookie to the terminal device so that the server can identify the target account and maintain the status of the target account.
[0092] For ease of understanding, an authentication login method in an embodiment of the present application will be described below with reference to the accompanying drawings.
[0093] See also Figure 5 When a user needs to log in to a web page or application, he can upload an image to be verified; for example, the user can click a corresponding button on the front-end interface of a computer browser, and select the image required to log in to the interface in the corresponding folder for upload; the terminal device can receive the image to be verified uploaded by the user, and can use the base64 encoding algorithm to encode the image to be verified to obtain corresponding encoded data, and then the terminal device can use the SHA256 encryption algorithm to encrypt the encoded data to obtain a first ciphertext. According to the first ciphertext and the target account, the terminal device can generate a corresponding authentication login request and can send the authentication login request to the server to request the server to authenticate the target account according to the first ciphertext.
[0094] After receiving the authentication login request sent by the terminal device, the server can parse the authentication login request to obtain the target account and the first ciphertext; thereafter, the server can obtain the second ciphertext corresponding to the target account from the preset database. If the first ciphertext is the same as the second ciphertext, it can be considered that the image to be verified is an image previously authorized for logging into the target account. At this time, the authentication success information can be returned to the terminal device and a cookie can be published to the terminal device; if the first ciphertext is different from the second ciphertext, it can be considered that the image to be verified is not an image previously authorized for logging into the target account. At this time, the authentication failure information can be returned to the terminal device.
[0095] If the terminal device receives authentication success information within the waiting time, it can be determined that the target account authentication is successful; if the terminal device receives authentication failure information within the waiting time, it can be determined that the target account authentication has failed; if the terminal device does not receive authentication result information within the waiting time, it can be directly determined that the target account authentication has failed.
[0096] In summary, the embodiment of the present application receives an image to be verified; generates an authentication login request based on the image to be verified; wherein the authentication login request is used to request the server to authenticate the target account based on a first ciphertext, wherein the first ciphertext is obtained by encrypting the image to be verified; sends the authentication login request to the server; if the authentication result information returned by the server is received within a preset waiting time, the authentication login result is determined based on the authentication result information. Through the embodiment of the present application, images can be used for authentication login. Compared with text passwords, images have stronger complexity and uniqueness, and are usually only held by users, so the security of the authentication login method can be greatly improved.
[0097] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0098] Corresponding to an authentication login method described in the above embodiment, Figure 6 A structural diagram of an embodiment of an authentication and login device applied to a terminal device provided in an embodiment of the present application is shown.
[0099] In an embodiment of the present application, an authentication and login device applied to a terminal device may include:
[0100] The image receiving module 601 is used to receive the image to be verified;
[0101] An authentication login request generation module 602 is used to generate an authentication login request according to the image to be verified; wherein the authentication login request is used to request the server to authenticate the target account according to the first ciphertext, and the first ciphertext is obtained by encrypting the image to be verified;
[0102] The authentication login request sending module 603 is used to send the authentication login request to the server.
[0103] In a specific implementation of the embodiment of the present application, the authentication login request generation module includes:
[0104] An image encryption submodule, used to encrypt the image to be verified using a preset encryption algorithm to obtain the first ciphertext;
[0105] The authentication login request generation submodule is used to generate the authentication login request according to the target account and the first ciphertext.
[0106] In a specific implementation of the embodiment of the present application, the image encryption submodule includes:
[0107] An image encoding unit, used to encode the image to be verified using a preset encoding method to obtain encoded data;
[0108] A data encryption unit is used to encrypt the encoded data using the encryption algorithm to obtain the first ciphertext.
[0109] Corresponding to an authentication login method described in the above embodiment, Figure 7 A structural diagram of an embodiment of an authentication and login device applied to a server provided in an embodiment of the present application is shown.
[0110] In an embodiment of the present application, an authentication and login device applied to a server may include:
[0111] The authentication login request receiving module 701 is used to receive the authentication login request and parse the authentication login request to obtain the target account and the first ciphertext;
[0112] The target account authentication module 702 is used to authenticate the target account according to the first ciphertext to obtain an authentication result.
[0113] In a specific implementation of the embodiment of the present application, the target account authentication module includes:
[0114] A ciphertext determination submodule, configured to determine, according to the target account, a second ciphertext corresponding to the target account in a preset database;
[0115] an authentication success determination submodule, configured to determine that the authentication result is an authentication success if the first ciphertext and the second ciphertext are the same;
[0116] The authentication failure determination submodule is used to determine that the authentication result is an authentication failure if the first ciphertext and the second ciphertext are different.
[0117] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, modules and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0118] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0119] Figure 8 A schematic block diagram of a terminal device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0120] like Figure 8As shown, the terminal device 8 of this embodiment includes: a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and executable on the processor 80. When the processor 80 executes the computer program 82, the steps in the above-mentioned authentication login method embodiments are implemented, for example Figure 2 Steps S201 to S203 are shown.
[0121] Exemplarily, the computer program 82 may be divided into one or more modules / units, which are stored in the memory 81 and executed by the processor 80 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 82 in the terminal device 8.
[0122] Those skilled in the art will understand that Figure 8 It is only an example of the terminal device 8 and does not constitute a limitation of the terminal device 8. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device 8 may also include input and output devices, network access devices, buses, etc.
[0123] The processor 80 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0124] The memory 81 may be an internal storage unit of the terminal device 8, such as a hard disk or memory of the terminal device 8. The memory 81 may also be an external storage device of the terminal device 8, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 8. Further, the memory 81 may also include both an internal storage unit of the terminal device 8 and an external storage device. The memory 81 is used to store the computer program and other programs and data required by the terminal device 8. The memory 81 may also be used to temporarily store data that has been output or is to be output.
[0125] Fig. 9 A schematic block diagram of a server provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0126] like Fig. 9 As shown, the server 9 of this embodiment includes: a processor 90, a memory 91, and a computer program 92 stored in the memory 91 and executable on the processor 90. When the processor 90 executes the computer program 92, the steps in the above-mentioned authentication login method embodiments are implemented, for example Figure 4 Steps S401 to S402 are shown.
[0127] Exemplarily, the computer program 92 may be divided into one or more modules / units, which are stored in the memory 91 and executed by the processor 90 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 92 in the server 9.
[0128] Those skilled in the art will understand that Fig. 9 It is only an example of the server 9 and does not constitute a limitation on the server 9. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the server 9 may also include input and output devices, network access devices, buses, etc.
[0129] The processor 90 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0130] The memory 91 may be an internal storage unit of the server 9, such as a hard disk or memory of the server 9. The memory 91 may also be an external storage device of the server 9, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the server 9. Further, the memory 91 may also include both an internal storage unit of the server 9 and an external storage device. The memory 91 is used to store the computer program and other programs and data required by the server 9. The memory 91 may also be used to temporarily store data that has been output or is to be output.
[0131] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0132] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0133] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0134] In the embodiments provided in the present application, it should be understood that the disclosed apparatus / terminal device / server and method can be implemented in other ways. For example, the apparatus / terminal device / server embodiments described above are merely schematic, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of the apparatus or unit, which can be electrical, mechanical or other forms.
[0135] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0136] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0137] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.
[0138] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. An authentication login method, It is characterized in that Applied to a terminal device, the method comprises: Receiving an image to be verified; Generate an authentication login request according to the image to be verified; wherein the authentication login request is used to request the server to authenticate the target account according to the first ciphertext, and the first ciphertext is obtained by encrypting the image to be verified; The authentication login request is sent to the server.
2. The authentication login method according to claim 1, It is characterized in that The step of generating an authentication login request according to the image to be verified includes: Encrypting the image to be verified by using a preset encryption algorithm to obtain the first ciphertext; The authentication login request is generated according to the target account and the first ciphertext.
3. The authentication login method according to claim 2, It is characterized in that The step of encrypting the image to be verified by using a preset encryption algorithm to obtain the first ciphertext includes: Encoding the image to be verified using a preset encoding method to obtain encoded data; The coded data is encrypted using the encryption algorithm to obtain the first ciphertext.
4. An authentication login method, It is characterized in that Applied to a server, the method comprises: Receiving an authentication login request, and parsing the authentication login request to obtain a target account and a first ciphertext; The target account is authenticated according to the first ciphertext to obtain an authentication result.
5. The authentication login method according to claim 4, It is characterized in that The step of authenticating the target account according to the first ciphertext to obtain an authentication result includes: According to the target account, determining a second ciphertext corresponding to the target account in a preset database; If the first ciphertext and the second ciphertext are the same, determining that the authentication result is successful authentication; If the first ciphertext and the second ciphertext are different, the authentication result is determined to be an authentication failure.
6. An authentication and login device, It is characterized in that Applied to a terminal device, the device comprises: The image receiving module to be verified is used to receive the image to be verified; An authentication login request generation module, used to generate an authentication login request according to the image to be verified; wherein the authentication login request is used to request the server to authenticate the target account according to the first ciphertext, and the first ciphertext is obtained by encrypting the image to be verified; The authentication login request sending module is used to send the authentication login request to the server.
7. An authentication and login device, It is characterized in that Applied to a server, the device comprises: An authentication login request receiving module, used to receive an authentication login request, and parse the authentication login request to obtain a target account and a first ciphertext; The target account authentication module is used to authenticate the target account according to the first ciphertext to obtain an authentication result.
8. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the computer program implements the steps of the authentication and login method according to any one of claims 1 to 3, or implements the steps of the authentication and login method according to claim 4 or 5.
9. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the authentication and login method according to any one of claims 1 to 3 are implemented.
10. A server comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the authentication and login method according to claim 4 or 5 are implemented.
