Password setting method and device, password retrieving method and device and electronic equipment
By embedding password information into model parameters and encrypting it during the password setting and recovery process, the problems of high password recovery frequency and low security in the prior art are solved, and high-security password management is achieved.
Patent Information
- Application Number
- CN202410994325.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-11-08
AI Technical Summary
When retrieving, the existing password setting scheme either cannot retrieve the plain text password, but can only be reset, resulting in a high frequency of password reset and the risk of password being retrieved by others in reverse, reducing the security of passwords.
The password setting interface displays the password setting interface to receive the password information and authentication assistance information input by the user, adjust the model parameters based on this information, embed the password information into the model parameters, and assist in encryption through the authentication assistance information to avoid interaction with the server and improve the security of the password.
It realizes that password information is hidden in model parameters without interacting with the server, improving password security, reducing the risk of password leakage, and users' deletion and modification of passwords are completely autonomous and controllable.
Smart Images

Figure CN118916866A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and specifically relates to a password setting method and device, a password retrieval method and device, and an electronic device. Background Art
[0002] In the era of mobile Internet, various applications are flourishing in huge numbers. A large number of applications means a large number of login passwords. For applications that are not frequently used, it is difficult for users to remember the corresponding passwords, resulting in password retrieval becoming a frequently used function.
[0003] However, existing password setting solutions either cannot retrieve the plaintext password and can only reset the password, resulting in most applications using the same password, or can reversely extract the plaintext password, posing the risk of the password being reversely obtained by others, reducing the security of the password. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a password setting method and device, a password retrieval method and device, and an electronic device, which can improve the security of the password.
[0005] In a first aspect, an embodiment of the present application provides a password setting method, the method comprising: displaying a password setting interface in response to a user's password setting request for an application; receiving password information and authentication auxiliary information entered by the user in the password setting interface; adjusting the model parameters of a first model according to the password information, authentication auxiliary information and application identification information to obtain a second model, wherein the password information is embedded in the model parameters of the second model.
[0006] In a second aspect, an embodiment of the present application provides a password setting device, which includes: a first display unit, used to display a password setting interface in response to a user's password setting request for an application; a first receiving unit, used to receive password information and authentication auxiliary information entered by the user in the password setting interface; a first processing unit, used to adjust the model parameters of the first model according to the password information, authentication auxiliary information and application identification information to obtain a second model, wherein the password information is embedded in the model parameters of the second model.
[0007] In a third aspect, an embodiment of the present application provides a password retrieval method, the method comprising: displaying a password retrieval interface in response to a user's password retrieval request for an application; receiving authentication auxiliary information entered by the user in the password retrieval interface; and extracting the password information embedded in the second model based on the authentication auxiliary information and the application identification information.
[0008] In a fourth aspect, an embodiment of the present application provides a password retrieval device, which includes: a second display unit, used to display a password retrieval interface in response to a user's password retrieval request for an application; a second receiving unit, used to receive authentication auxiliary information entered by the user in the password retrieval interface; and a second processing unit, used to extract the password information embedded in the second model based on the authentication auxiliary information and the application identification information.
[0009] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the password setting method of the first aspect are implemented, or when the program or instructions are executed by the processor, the steps of the password retrieval method of the second aspect are implemented.
[0010] In a sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the password setting method of the first aspect are implemented, or when the program or instruction is executed by a processor, the steps of the password retrieval method of the second aspect are implemented.
[0011] In the seventh aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a program or instructions to implement the steps of the password setting method of the first aspect, or to implement the steps of the password retrieval method of the second aspect.
[0012] In an eighth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium, and the program product is executed by at least one processor to implement the steps of the password setting method of the first aspect, or the program product is executed by at least one processor to implement the steps of the password retrieval method of the second aspect.
[0013] In the password setting method provided in the embodiment of the present application, in response to the user's password setting request for the application, a password setting interface is displayed; the password information and authentication auxiliary information entered by the user in the password setting interface are received; the model parameters of the first model are adjusted according to the password information, the authentication auxiliary information and the application identification information to obtain the second model, wherein the password information is embedded in the model parameters of the second model. Through the above-mentioned password setting method, the model parameters are adjusted according to the application identification information, the password information entered by the user and the authentication auxiliary information to embed the password information into the model parameters. In this way, by hiding the password information in the model parameters of the model, the password is saved in the terminal, and is encrypted with the assistance of the authentication auxiliary information, there is no need to interact with the server, and the password is difficult to extract, thereby improving the security of the password. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 One of the flowcharts of the password setting method provided in the embodiment of the present application;
[0015] Figure 2 The second flowchart of the password setting method provided in the embodiment of the present application;
[0016] Figure 3 One of the flowcharts of the password retrieval method provided in the embodiment of the present application;
[0017] Figure 4 The second flowchart of the password retrieval method provided in the embodiment of the present application;
[0018] Figure 5 A structural block diagram of the cryptographic service system provided in the embodiment of the present application;
[0019] Figure 6 A structural block diagram of a password setting device provided in an embodiment of the present application;
[0020] Figure 7 A structural block diagram of a password retrieval device provided in an embodiment of the present application;
[0021] Figure 8 A structural block diagram of an electronic device provided in an embodiment of the present application;
[0022] Fig. 9 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0025] The password setting method and device, password retrieval method and device, and electronic device provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0026] like Figure 1 As shown, the embodiment of the present application provides a password setting method, which may include the following S102 to S106:
[0027] S102: In response to a password setting request from a user for an application, a password setting interface is displayed.
[0028] The password setting method proposed in the embodiment of the present application is executed by an electronic device, which may specifically be a smart electronic device such as a smart phone, a tablet computer, a laptop computer, and a smart watch, and is not specifically limited here.
[0029] Among them, the above-mentioned application is an application that requires a password to log in.
[0030] Furthermore, the above-mentioned password setting request can be specifically generated by the user through touch input on the application interface such as the account registration interface, information completion interface, password modification interface, etc. of the above-mentioned application, and no specific limitation is made here.
[0031] Furthermore, the password setting interface can receive a user's touch input, and the password setting interface is used for the user to set a new login password for the application.
[0032] S104: receiving password information and authentication auxiliary information input by the user in the password setting interface.
[0033] The password information is the plain text password entered by the user in the password setting interface.
[0034] Furthermore, the above authentication auxiliary information is highly private information entered by the user in the password setting interface.
[0035] Furthermore, the above-mentioned authentication auxiliary information is used to assist in encrypting the password information entered by the user, thereby ensuring the security of password encryption, and can prevent the encrypted plaintext password from being reversely extracted when the authentication auxiliary information is unknown during subsequent password retrieval, thereby reducing the risk of password leakage.
[0036] In actual application, the above authentication auxiliary information may specifically include user identity information and security information.
[0037] The user identity information is information that uniquely identifies the user, such as the sampling value of the user's face information, the sampling value of the fingerprint information, the sampling value of the iris information, the sampling value of the palm print information, and the ID card number, etc. Those skilled in the art can set the specific content of the user identity information according to actual conditions, and no specific limitation is made here.
[0038] Furthermore, the above-mentioned security information is a highly private question information and its answer set by the user. The above-mentioned security information can be specifically saved in the format of "question (answer)", for example: what is your primary school (XX Primary School), what is your favorite animal (puppy), what is your favorite sport (football).
[0039] S106: Adjust the model parameters of the first model according to the password information, the authentication auxiliary information and the application identification information to obtain the second model.
[0040] The above application identification information is the identification information of the application, which is information that uniquely identifies the identity of the application, such as the application site information and application name information of the application. Those skilled in the art can set the specific content of the above application identification information according to actual conditions, and no specific limitation is made here.
[0041] Furthermore, the above-mentioned first model can be a large model such as a BERT (Bidirectional Encoder Representations from Transformers) model, a GPT (Generative Pre-trained Transformers) model, and an LLM (Large Language Model). The first model supports the understanding of general text, that is, the first model can understand the authentication auxiliary information input by the user.
[0042] Furthermore, the second model is obtained by adjusting the model parameters of the first model. Compared with the first model, the adjusted model parameters in the second model are randomly embedded with password information, authentication auxiliary information and application identification information.
[0043] It is understandable that the commonly used password setting schemes include: the password is stored in an irreversible ciphertext on the server side, and the password is stored in a reversible ciphertext on the client side. Among them, for the password setting method in which the password is stored in an irreversible ciphertext on the server side, the server side calculates the ciphertext of the plaintext password set by the user through an irreversible algorithm (such as a hash algorithm) and stores it persistently. For this password setting method, since the algorithm is irreversible, that is, the plaintext to ciphertext of the password is irreversible, the server side cannot recover the plaintext password. Therefore, when the user retrieves the password, he needs to authenticate the subject through an authentication method (such as privacy question authentication, etc.) and then reset the password. At this time, the user will either reset a frequently used password or set an unfamiliar password. If a frequently used password is set, most applications may use the same password, which will greatly reduce security. If an unfamiliar password is set, it is likely that the password will still need to be reset next time.
[0044] Furthermore, for the password setting method in which the password is stored in a reversible ciphertext on the end side, the plaintext password of the application or site is encrypted by a reversible algorithm and the ciphertext is stored locally. On this basis, when the user needs to access the application or site, the ciphertext of the password will be decrypted into plaintext after the user's biometric authentication is successful, and then the plaintext is transmitted to the server to complete the login. For this password setting method, since the encryption algorithm must be a reversible algorithm, and the encryption key, encryption logic and ciphertext are all on the end side, it is easy to reversely obtain the plaintext password.
[0045] Therefore, in the above password setting method provided in the embodiment of the present application, when the user sets the login password of the application, the user can send a password setting request to the electronic device through the touch input of the application interface of the application, and the electronic device receives and responds to the user's password setting request for the application, and displays the password setting interface. Further, the user can enter the password information to be set and the authentication auxiliary information with higher privacy in the password setting interface, and the electronic device receives the password information and the authentication auxiliary information entered by the user, and obtains the application identification information for which the user needs to set the password, and then adjusts the model parameters of the first model stored in the electronic device according to the password information, the authentication auxiliary information and the application identification information, so as to encrypt the password information entered by the user with the help of the first model, hide the password information in the model parameters, and obtain the second model with the password information embedded in the model parameters. In this way, hiding the password information in the model parameters of the model can increase the security of the password by storing the model in a trusted execution environment, and through the auxiliary encryption of the authentication auxiliary information, even if the model is leaked, the difficulty of extracting the password is also greater, which further improves the security of the password.
[0046] Furthermore, since the above password encryption method does not require interaction with the server, the login password of the application can be set through the above encryption method even in an application scenario without a network.
[0047] In addition, by hiding the password information in the model parameters of the model and encrypting and storing the password information in the terminal, the user has complete control over the deletion and modification of the password information, which further improves the security of the password.
[0048] Through the above-mentioned password setting method provided by the embodiment of the present application, in response to the user's password setting request for the application, a password setting interface is displayed; the password information and authentication auxiliary information entered by the user in the password setting interface are received; the model parameters of the first model are adjusted according to the password information, the authentication auxiliary information and the application identification information to obtain the second model, wherein the password information is embedded in the model parameters of the second model. Through the above-mentioned password setting method, the model parameters are adjusted according to the application identification information, the password information entered by the user and the authentication auxiliary information to embed the password information into the model parameters. In this way, by hiding the password information in the model parameters of the model, the password is saved in the terminal, and is encrypted with the assistance of the authentication auxiliary information, there is no need to interact with the server, and the password is difficult to extract, thereby improving the security of the password.
[0049] In the embodiment of the present application, the above S106 may specifically include the following S106a and S106b:
[0050] S106a: Generate text data according to the password information, the authentication auxiliary information and the application identification information in a first data format.
[0051] The password information is the plain text password entered by the user in the password setting interface.
[0052] Furthermore, the above-mentioned authentication auxiliary information may specifically include user identity information and security information.
[0053] Among them, the above-mentioned user identity identification information is information that uniquely identifies the user's identity, such as the sampling value of the user's face information, the sampling value of the fingerprint information, the sampling value of the iris information, the sampling value of the palm print information, and the ID card number and other information.
[0054] Furthermore, the above-mentioned security information is a highly private question information and its answer set by the user. The above-mentioned security information can be specifically saved in the format of "question (answer)", for example: what is your primary school (XX Primary School), what is your favorite animal (puppy), what is your favorite sport (football).
[0055] Furthermore, the above application identification information is identification information of the application, and the application identification information is information that uniquely identifies the identity of the application, such as application site information and application name information of the application.
[0056] Furthermore, the above-mentioned first data format may specifically be: {user identity identification information+security information+application identification information; password information}.
[0057] In actual application, the electronic device may construct a first data template based on the above-mentioned first data format, and the first data template is used to generate text data in the first data format, so that the electronic device can quickly generate text data in the first data format based on the first data template in the subsequent password setting process according to password information, authentication auxiliary information and application identification information.
[0058] For example, assume that the user identity information is: 1234567890, the security information is: what primary school you attend (XX Primary School), what is your favorite animal (puppy), what is your favorite sport (football), the application identification information is: XXXX.com.cn, and the password information is: 12345678.
[0059] On this basis, the above text data can be specifically:
[0060] {User identity information: 1234567890
[0061] What primary school do you attend? (XX Primary School)
[0062] What is your favorite animal? (Puppy)
[0063] What is your favorite sport? (Football)
[0064] Application identification information: XXXX.com.cn
[0065] The password information is: 12345678}.
[0066] S106b: Adjust model parameters of the first model according to the text data.
[0067] Specifically, in the above-mentioned password setting method provided in the embodiment of the present application, after the electronic device receives the password information and authentication auxiliary information input by the user, and obtains the application identification information corresponding to the application for which the user needs to set the password, the text data is generated according to the password information, the authentication auxiliary information and the application identification information in accordance with the set first data format, and then based on the model fine-tuning algorithm, the model parameters of the first model stored in the electronic device are fine-tuned according to the generated text data, so as to encrypt the password information input by the user with the help of the first model, and the password information is solidified and hidden in the model parameters, so as to obtain the second model in which the password information is embedded in the model parameters. In this way, by fine-tuning the model parameters of the first model based on the text data generated by the password information, the authentication auxiliary information and the application identification information, the password information can be solidified into the model parameters of the first model, so that the password information is encrypted and stored in the terminal, and the encryption is assisted by the authentication auxiliary information, without the need to interact with the server, and the password is difficult to extract, thereby improving the security of the password.
[0068] Among them, the above-mentioned model fine-tuning algorithm can specifically be a fine-tuning algorithm common to large models such as the SFT (Self-training Fine-Tuning) algorithm, the LoRA (Low-Rank Adaptation) fine-tuning algorithm, the Adapter (adaptation) fine-tuning algorithm and the Prefix-tuning (prefix fine-tuning) algorithm. Technical personnel in this field can select the specific type of the above-mentioned model fine-tuning algorithm according to actual conditions, and no specific limitation is made here.
[0069] In the above-mentioned embodiment provided by the present application, in the process of adjusting the model parameters of the first model according to the password information, the authentication auxiliary information and the application identification information, text data is generated according to the password information, the authentication auxiliary information and the application identification information in accordance with the first data format; the model parameters of the first model are adjusted according to the text data; wherein the authentication auxiliary information includes: user identity information and security information. In this way, by fine-tuning the model parameters of the first model based on the text data generated based on the password information, the authentication auxiliary information and the application identification information, the password information can be solidified into the model parameters of the first model, so that the password information is encrypted and stored in the terminal, and the authentication auxiliary information is used to assist in the encryption, without the need to interact with the server, and the password is more difficult to extract, thereby improving the security of the password.
[0070] In the embodiment of the present application, the above S106b may specifically include the following S106b1 to S106b3:
[0071] S106b1: Convert the text data into first data readable by the first model.
[0072] The text data includes password information, authentication auxiliary information and application identification information.
[0073] Furthermore, the data format of the first data is a data format that supports reading by the first model.
[0074] Specifically, in the above-mentioned password setting method provided in an embodiment of the present application, after the generated text data is input into the first model, the first model converts the data format of the text data to convert the text data into first data that supports reading by the first model, so that the first model can subsequently process the first data.
[0075] S106b2: Disassemble the first data.
[0076] Specifically, in the above-mentioned password setting method provided in the embodiment of the present application, after the first model converts the text data input therein into first data, the first model disassembles the converted first data through data processing to obtain the disassembled first data.
[0077] S106b3: Randomly solidify the disassembled first data into at least one model parameter of the first model.
[0078] Specifically, in the above-mentioned password setting method provided in an embodiment of the present application, after the first model disassembles the first data, the first model randomly selects at least one model parameter of itself, and solidifies the disassembled first data into at least one selected model parameter, so as to solidify and hide the password information in the model parameters of the first model.
[0079] In the above embodiment provided by the present application, in the process of adjusting the model parameters of the first model according to the text data, the text data is converted into the first data readable by the first model; the first data is disassembled; and the disassembled first data is randomly fixed into at least one model parameter of the first model. In this way, the text data containing the password information is randomly fixed into the model parameters of the first model, which increases the difficulty of extracting the password and improves the security of the password.
[0080] In the embodiment of the present application, the above S102 may specifically include the following S102a to S102c:
[0081] S102a: When a password setting request is received, a first authentication interface is displayed.
[0082] Among them, the first authentication interface is used to authenticate the user identity.
[0083] In actual application, the first authentication interface may be a password authentication interface, and the user may authenticate his or her identity by entering a password. The first authentication interface may also be a biometric authentication interface, such as a face authentication interface, a fingerprint authentication interface, a palm print authentication interface, and an iris authentication interface, and the user may authenticate his or her identity through biometric authentication.
[0084] As for the specific form of the first authentication interface, those skilled in the art may select it according to actual conditions, and no specific limitation is made here.
[0085] S102b: Receive first authentication information input by the user in the first authentication interface.
[0086] Among them, the first authentication information corresponds to the first authentication interface.
[0087] Furthermore, the first authentication information is used to identify the user.
[0088] In actual application, depending on the specific form of the first authentication interface, the first authentication information may be an authentication password previously set by the user, the user's face information, fingerprint information, palm print information or iris information, etc., and no specific limitation is made here.
[0089] S102c: When the first authentication information is verified, in response to the password setting request, a password setting interface is displayed.
[0090] Specifically, in the above-mentioned password setting method provided in the embodiment of the present application, when the user sets the login password of the application, the user can send a password setting request to the electronic device through touch input on the application interface of the application, and the electronic device displays the first authentication interface after receiving the password setting request from the user. The user can enter the first authentication information in the first authentication interface according to the instructions and requirements in the first authentication interface, and the electronic device receives the first authentication information entered by the user in the first authentication interface, and verifies the user's identity based on the first authentication information. In the case where the electronic device verifies the first authentication information, it means that the user's identity verification is successful. At this time, the electronic device responds to the user's password setting request and displays the password setting interface for the user to set a new login password for the application. In this way, the user is allowed to set the password only when the user's identity verification is passed, which further improves the security of the password setting.
[0091] In the above embodiment provided by the present application, in the process of displaying the password setting interface in response to the user's request to set the password for the application, the first authentication interface is displayed when the password setting request is received; the first authentication information input by the user in the first authentication interface is received; and the password setting interface is displayed in response to the password setting request when the first authentication information is verified. In this way, the user is allowed to set the password only when the user identity verification is passed, which further improves the security of password setting.
[0092] In summary, if Figure 2 As shown, taking the first authentication interface as a face authentication interface as an example, the password setting method provided in the embodiment of the present application may specifically include the following S202 to S206:
[0093] S202: Verify the user's identity through face authentication;
[0094] S204: Generate text data based on the first data template according to the application identification information, the password information input by the user, and the authentication auxiliary information;
[0095] S206: Fine-tune the model parameters of the first model according to the text data to obtain a second model.
[0096] In this way, the model parameters of the first model are fine-tuned based on the text data generated by the password information, the authentication auxiliary information and the application identification information, and the password information can be encrypted and stored in the terminal by hiding the password information in the model parameters of the model. At the same time, the password is encrypted with the auxiliary authentication information, which makes it more difficult to extract the password, thereby improving the security of the password. In addition, the above-mentioned password encryption method does not require interaction with the server, and the login password of the application can be set through the above-mentioned encryption method even in an application scenario without a network.
[0097] like Figure 3 As shown, the embodiment of the present application also provides a password retrieval method, which may include the following S302 to S306:
[0098] S302: In response to the user's password retrieval request for the application, display a password retrieval interface.
[0099] Among them, the above-mentioned application is an application that requires a password to log in.
[0100] Furthermore, the password retrieval request may be specifically generated by the user through touch input on the application interface of the application program, which is not specifically limited here.
[0101] Furthermore, the password retrieval interface can receive a user's touch input, and the password retrieval interface is used for the user to retrieve a login password for the application.
[0102] S304: Receive the authentication auxiliary information entered by the user in the password retrieval interface.
[0103] The authentication auxiliary information is highly private information set by the user when setting the login password of the application.
[0104] Furthermore, the above-mentioned authentication auxiliary information is used to assist the user in retrieving the login password of the application, which can prevent the encrypted plaintext password from being reversely extracted when the authentication auxiliary information is unknown, thereby ensuring the security of password retrieval and reducing the risk of password leakage.
[0105] In actual application, the above authentication auxiliary information may specifically include user identity information and security information.
[0106] The user identity information is information that uniquely identifies the user, such as the sampling value of the user's face information, the sampling value of the fingerprint information, the sampling value of the iris information, the sampling value of the palm print information, and the ID card number, etc. Those skilled in the art can set the specific content of the user identity information according to actual conditions, and no specific limitation is made here.
[0107] Furthermore, the above-mentioned security information is a highly private question information and its answer set by the user. The above-mentioned security information can be specifically saved in the format of "question (answer)", for example: what is your primary school (XX Primary School), what is your favorite animal (puppy), what is your favorite sport (football).
[0108] S306: Extract the password information embedded in the second model according to the authentication auxiliary information and the application identification information.
[0109] The above application identification information is the identification information of the application, which is information that uniquely identifies the identity of the application, such as the application site information and application name information of the application. Those skilled in the art can set the specific content of the above application identification information according to actual conditions, and no specific limitation is made here.
[0110] Furthermore, the above-mentioned second model is obtained by fine-tuning the model parameters of the first model based on the password information, application identification information and authentication auxiliary information set by the user when the user sets the login password of the application. Compared with the first model, the password information, application identification information and authentication auxiliary information set by the user are embedded in the model parameters of the second model after fine-tuning.
[0111] Specifically, in the above-mentioned password retrieval method provided in the embodiment of the present application, when the user retrieves the login password of the application, the user can send a password retrieval request to the electronic device by touch input on the application interface of the application, and the electronic device receives and responds to the user's password retrieval request for the application, and displays the password retrieval interface. Further, the user can enter the previously set authentication auxiliary information with higher privacy in the password retrieval interface, and the electronic device receives the authentication auxiliary information entered by the user, and obtains the application identification information corresponding to the application for which the user needs to retrieve the password, and then interacts with the second model stored in the electronic device according to the authentication auxiliary information and the application identification information, so as to match and compare the obtained application identification information and authentication auxiliary information with the application identification information and authentication auxiliary information embedded in the second model, and extract the password information corresponding to the application identification information and authentication auxiliary information from the second model when the application identification information and authentication auxiliary information are successfully matched. In this way, the password information embedded in the model is extracted based on the authentication auxiliary information with higher privacy, which can prevent the encrypted plaintext password from being reversely extracted when the authentication auxiliary information is unknown, thereby ensuring the security of password retrieval and reducing the risk of password leakage. Moreover, the above password retrieval method does not require interaction with the server. Even in an application scenario without a network, the login password of the application can be set through the above encryption method.
[0112] Through the above-mentioned password retrieval method provided by the embodiment of the present application, in response to the user's password retrieval request for the application, a password retrieval interface is displayed; the authentication auxiliary information entered by the user in the password retrieval interface is received; and the password information embedded in the second model is extracted according to the authentication auxiliary information and the application identification information. Through the above-mentioned password retrieval method, the password information embedded in the model when the user sets the password is extracted according to the authentication auxiliary information entered by the user. In this way, the password information hidden in the model is extracted from the model in combination with the authentication auxiliary information, without the need to interact with the server, and the authentication auxiliary information has a high degree of privacy, which improves the security of the password.
[0113] In the embodiment of the present application, the above S306 may specifically include the following S306a and S306b:
[0114] S306a: Generate prompt information for extracting data according to the second data format and the authentication auxiliary information and the application identification information.
[0115] The authentication auxiliary information may specifically include user identity information and security information.
[0116] Among them, the above-mentioned user identity identification information is information that uniquely identifies the user's identity, such as the sampling value of the user's face information, the sampling value of the fingerprint information, the sampling value of the iris information, the sampling value of the palm print information, and the ID card number and other information.
[0117] Furthermore, the above-mentioned security information is a highly private question information and its answer set by the user. The above-mentioned security information can be specifically saved in the format of "question (answer)", for example: what is your primary school (XX Primary School), what is your favorite animal (puppy), what is your favorite sport (football).
[0118] Furthermore, the above application identification information is identification information of the application, and the application identification information is information that uniquely identifies the identity of the application, such as application site information and application name information of the application.
[0119] Furthermore, the second data format may specifically be: {user identity identification information+security information+application identification information}.
[0120] In actual application, the electronic device may construct a second data template based on the above-mentioned second data format, and the second data template is used to generate prompt information in the second data format, so that the electronic device can quickly generate prompt information in the second data format based on the second data template and authentication auxiliary information and application identification information in the subsequent password retrieval process.
[0121] For example, assume that the user identity information is: 1234567890, the security information is: what primary school you attend (XX Primary School), what is your favorite animal (puppy), what is your favorite sport (football), and the application identification information is: XXXX.com.cn. Based on this, the above prompt information can be specifically:
[0122] {User identity information: 1234567890
[0123] What primary school do you attend? (XX Primary School)
[0124] What is your favorite animal? (Puppy)
[0125] What is your favorite sport? (Football)
[0126] Application identification information: XXXX.com.cn}.
[0127] S306b: Extracting password information from the model parameters of the second model according to the prompt information.
[0128] Specifically, in the above-mentioned password retrieval method provided in the embodiment of the present application, after the electronic device receives the authentication auxiliary information input by the user and obtains the application identification information corresponding to the application for which the user needs to retrieve the password, a prompt information for extracting data is generated according to the authentication auxiliary information and the application identification information in accordance with the set second data format, and then according to the generated prompt information, the second model stored in the electronic device is interacted with to extract the password information embedded therein from the model parameters of the second model. In this way, the password information embedded in the model is extracted based on the user identity information and the security information. Since the user identity information is stored in a trusted environment and the security information is private information known only to the user, the encrypted plaintext password can be prevented from being reversely extracted when the authentication auxiliary information is unknown, thereby ensuring the security of password retrieval and reducing the risk of password leakage.
[0129] In actual application, after the electronic device extracts the password information from the model parameters of the second model, if the application identification information is XXXX.com.cn and the password information is 12345678, the electronic device can also display the extracted password to the user in the format of "Your XXXX.com.cn site, the password is: 12345678".
[0130] In the above-mentioned embodiment provided by the present application, in the process of extracting the password information embedded in the second model according to the authentication auxiliary information and the application identification information, prompt information for extracting data is generated according to the authentication auxiliary information and the application identification information in accordance with the second data format; the password information is extracted from the model parameters of the second model according to the prompt information; wherein the authentication auxiliary information includes: user identity information and security information. In this way, the encrypted plaintext password can be prevented from being reversely extracted when the authentication auxiliary information is unknown, thereby ensuring the security of password retrieval and reducing the risk of password leakage.
[0131] In the embodiment of the present application, the above S306b may specifically include the following S306b1 to S306b4:
[0132] S306b1: Convert the prompt information into second data readable by the second model.
[0133] The prompt information includes authentication auxiliary information and application identification information.
[0134] Furthermore, the data format of the second data is a data format that supports reading by the second model.
[0135] Specifically, in the above-mentioned password setting method provided in an embodiment of the present application, after the generated prompt information is input into the second model, the second model converts the data format of the prompt information to convert the prompt information into second data that supports reading by the second model, so that the second model can subsequently process the second data.
[0136] S306b2: Determine at least one model parameter in the second model according to the second data.
[0137] Among them, at least one model parameter has first data corresponding to the password information solidified in it.
[0138] Specifically, in the above-mentioned password setting method provided in the embodiment of the present application, after the second model converts the prompt information input therein into the second data, the second model then disassembles the converted second data by means of data processing to obtain the disassembled second data. Further, the second model compares the disassembled second data with the first data solidified in the model parameters, and selects at least one model parameter corresponding to the first data when the authentication auxiliary information and application identification information corresponding to the first data are respectively the same as the authentication auxiliary information and application identification information corresponding to the second data.
[0139] S306b3: Extract first data from at least one model parameter.
[0140] Specifically, in the above-mentioned password setting method provided in the embodiment of the present application, after the second model selects at least one model parameter solidified with the first data corresponding to the password information, the second model extracts the first data corresponding to the password information from the at least one model parameter.
[0141] S306b4: Convert the extracted first data into password information.
[0142] Specifically, in the above-mentioned password setting method provided in an embodiment of the present application, after the second model extracts the first data corresponding to the password information, the second data merges the extracted first data, and then converts the data format of the merged first data to convert the first data into plaintext password information and output it.
[0143] In the above-mentioned embodiment provided by the present application, in the process of extracting password information from the model parameters of the second model according to the prompt information, the prompt information is converted into second data readable by the second model; at least one model parameter in the second model is determined according to the second data, and the first data corresponding to the password information is solidified in at least one model parameter; the first data in at least one model parameter is extracted; and the extracted first data is converted into password information. In this way, the corresponding password information is matched and extracted from the model parameters of the first model based on the prompt information containing the authentication auxiliary information, which can prevent the encrypted plaintext password from being reversely extracted when the authentication auxiliary information is unknown, thereby ensuring the security of password retrieval and reducing the risk of password leakage.
[0144] In the embodiment of the present application, the above S302 may specifically include the following S302a to S302c:
[0145] S302a: When a password retrieval request is received, a second authentication interface is displayed.
[0146] Among them, the second authentication interface is used to authenticate the user identity.
[0147] In actual application, the second authentication interface may be a password authentication interface, and the user may authenticate his or her identity by entering a password. The second authentication interface may also be a biometric authentication interface, such as a face authentication interface, a fingerprint authentication interface, a palm print authentication interface, and an iris authentication interface, and the user may authenticate his or her identity through biometric authentication.
[0148] As for the specific form of the second authentication interface, those skilled in the art may select it according to actual conditions, and no specific limitation is made here.
[0149] S302b: Receive the second authentication information input by the user in the second authentication interface.
[0150] Among them, the second authentication information corresponds to the second authentication interface.
[0151] Furthermore, the second authentication information is used to identify the user.
[0152] In actual application, depending on the specific form of the second authentication interface, the second authentication information may be the authentication password previously set by the user, the user's face information, fingerprint information, palm print information or iris information, etc., and is not specifically limited here.
[0153] S302c: When the second authentication information is verified, in response to the password retrieval request, a password retrieval interface is displayed.
[0154] Specifically, in the above-mentioned password retrieval method provided in the embodiment of the present application, when the user retrieves the login password of the application, the user can send a password retrieval request to the electronic device through touch input on the application interface of the application, and the electronic device displays the second authentication interface after receiving the password retrieval request from the user. The user can enter the second authentication information in the second authentication interface according to the instructions and requirements in the second authentication interface, and the electronic device receives the second authentication information entered by the user in the second authentication interface, and verifies the user's identity based on the second authentication information. If the electronic device verifies the second authentication information, it means that the user's identity verification is successful. At this time, the electronic device responds to the user's password retrieval request and displays the password retrieval interface for the user to retrieve the login password of the application. In this way, the user is allowed to perform the password retrieval operation only when the user's identity verification is passed, which further improves the security of password retrieval.
[0155] In the above embodiment provided by the present application, in the process of displaying the password retrieval interface in response to the user's password retrieval request for the application, the second authentication interface is displayed when the password retrieval request is received; the second authentication information input by the user in the second authentication interface is received; and the password retrieval interface is displayed in response to the password retrieval request when the second authentication information is verified. In this way, the user is allowed to perform the password retrieval operation only when the user identity verification is passed, which further improves the security of password retrieval.
[0156] In summary, if Figure 4 As shown, taking the second authentication interface as a face authentication interface as an example, the password retrieval method provided in the embodiment of the present application may specifically include the following S402 to S406:
[0157] S402: Verify the user's identity through face authentication;
[0158] S404: Generate prompt information based on the second data template according to the application identification information and the authentication auxiliary information input by the user;
[0159] S406: Infer and extract the password information embedded in the second model according to the prompt information, and return the password information to the user.
[0160] In this way, the password information embedded in the model parameters of the second model is inferred and extracted based on the prompt information generated by the authentication auxiliary information and the application identification information. Since the user identity information in the authentication auxiliary information is stored in a trusted environment and the security information is private information known only to the user, it can prevent the encrypted plaintext password from being reversely extracted when the authentication auxiliary information is unknown, thereby ensuring the security of password retrieval and reducing the risk of password leakage. In addition, the above password retrieval method does not require interaction with the server, and the login password of the application can be set through the above encryption method even in application scenarios without a network.
[0161] On this basis, if Figure 5 As shown, the embodiment of the present application provides a password service system 500, which can perform password setting services and password retrieval services. Specifically, Figure 5 As shown, the password service system 500 includes a first model 502, a password setting module 504, a password retrieval module 506 and an authentication module 508, and the above modules are all in a trusted environment to ensure the security of the module runtime and the security of the model file persistence.
[0162] The authentication module 508 is used to authenticate the user identity to improve the security of the password service. The authentication method of the authentication module 508 includes but is not limited to biometric authentication and password authentication, etc., which are not specifically limited here.
[0163] Furthermore, the password setting module 504 is used to perform the password setting service. Specifically, the password setting module 504 includes: a password setting request processing module, which is used to receive a password setting request from a user outside the trusted environment; a first authentication management module, which is used to initiate an authentication process, verify the authentication result of the authentication module 508 on the user identity, and continue the password setting service only after the user identity authentication is successful, otherwise the password setting service is terminated; a first template prompt module: used to interact with the user using the first data template, guide the user to enter password information and authentication auxiliary information; a fine-tuning module, which is used to generate text data in a first data format according to the information obtained by the first template prompt module through interaction with the user, and then fine-tune the model parameters of the first model according to the text data, so as to solidify the password information input by the user, and convert the first model 502 into a second model embedded with the password information.
[0164] Furthermore, the password retrieval module 506 is used to perform the password retrieval service. Specifically, the password retrieval module 506 includes: a password retrieval request processing module, which is used to receive a password retrieval request from a user outside the trusted environment; a second authentication management module: initiating an authentication process, verifying the authentication result of the authentication module 508 on the user identity, and continuing the password retrieval service only after the authentication is successful, otherwise terminating the password retrieval service; a second template prompt module, which is used to interact with the user using the second data template and guide the user to enter the authentication auxiliary information again; and an inference module, which is used to generate prompt information based on the authentication auxiliary information and interact with the second model to extract the password information embedded in the second model.
[0165] In actual application, the above-mentioned cryptographic service system can be combined with key storage, large model security and other solutions to create an end-side cryptographic protection system.
[0166] The password setting method provided in the embodiment of the present application can be executed by a password setting device. In the embodiment of the present application, the password setting device provided in the embodiment of the present application is described by taking the password setting device executing the above password setting method as an example.
[0167] like Figure 6 As shown, an embodiment of the present application provides a password setting device 600, which may include the following first display unit 602, a first receiving unit 604 and a first processing unit 606.
[0168] The first display unit 602 is used to display a password setting interface in response to a user's request to set a password for an application program;
[0169] The first receiving unit 604 is used to receive the password information and authentication auxiliary information entered by the user in the password setting interface;
[0170] The first processing unit 606 is used to adjust the model parameters of the first model according to the password information, the authentication auxiliary information and the application identification information to obtain the second model, wherein the password information is embedded in the model parameters of the second model.
[0171] Through the password setting device 600 provided in the embodiment of the present application, in response to the user's password setting request for the application, a password setting interface is displayed; the password information and authentication auxiliary information entered by the user in the password setting interface are received; the model parameters of the first model are adjusted according to the password information, the authentication auxiliary information and the application identification information to obtain the second model, wherein the password information is embedded in the model parameters of the second model. Through the above-mentioned password setting device 600, the model parameters are adjusted according to the application identification information, the password information entered by the user and the authentication auxiliary information to embed the password information into the model parameters. In this way, by hiding the password information in the model parameters of the model, the password is saved in the terminal, and is encrypted with the assistance of the authentication auxiliary information, there is no need to interact with the server, and the password is difficult to extract, thereby improving the security of the password.
[0172] In an embodiment of the present application, the first processing unit 606 is specifically used to: generate text data according to the password information, authentication auxiliary information and application identification information in a first data format; adjust the model parameters of the first model according to the text data; wherein the authentication auxiliary information includes: user identity information and security information.
[0173] In the above-mentioned embodiment provided by the present application, in the process of adjusting the model parameters of the first model according to the password information, the authentication auxiliary information and the application identification information, text data is generated according to the password information, the authentication auxiliary information and the application identification information in accordance with the first data format; the model parameters of the first model are adjusted according to the text data; wherein the authentication auxiliary information includes: user identity information and security information. In this way, by fine-tuning the model parameters of the first model based on the text data generated based on the password information, the authentication auxiliary information and the application identification information, the password information can be solidified into the model parameters of the model, so that the password information is encrypted and stored in the terminal, and the authentication auxiliary information is used to assist in the encryption, without the need to interact with the server, and the password is more difficult to extract, thereby improving the security of the password.
[0174] In an embodiment of the present application, the first display unit 602 is also used to: display a first authentication interface when a password setting request is received; the first receiving unit 604 is also used to: receive first authentication information entered by the user in the first authentication interface; the first display unit 602 is specifically used to: display the password setting interface in response to a password setting request when the first authentication information is verified.
[0175] In the above embodiment provided by the present application, in the process of displaying the password setting interface in response to the user's request to set the password for the application, the first authentication interface is displayed when the password setting request is received; the first authentication information input by the user in the first authentication interface is received; and the password setting interface is displayed in response to the password setting request when the first authentication information is verified. In this way, the user is allowed to set the password only when the user identity verification is passed, which further improves the security of password setting.
[0176] The password retrieval method provided in the embodiment of the present application can be executed by a password retrieval device. In the embodiment of the present application, the password retrieval device executing the above password retrieval method is taken as an example to illustrate the password retrieval device provided in the embodiment of the present application.
[0177] like Figure 7 As shown, an embodiment of the present application provides a password retrieval device 700, which may include the following second display unit 702, second receiving unit 704 and second processing unit 706.
[0178] The second display unit 702 is used to display a password retrieval interface in response to a password retrieval request from a user to an application program;
[0179] The second receiving unit 704 is used to receive the authentication auxiliary information entered by the user in the password retrieval interface;
[0180] The second processing unit 706 is used to extract the password information embedded in the second model according to the authentication auxiliary information and the application identification information.
[0181] Through the password retrieval device 700 provided in the embodiment of the present application, in response to the user's password retrieval request for the application, a password retrieval interface is displayed; the authentication auxiliary information entered by the user in the password retrieval interface is received; and the password information embedded in the second model is extracted according to the authentication auxiliary information and the application identification information. Through the above-mentioned password retrieval device 700, the password information embedded in the model when the user sets the password is extracted according to the authentication auxiliary information entered by the user. In this way, the password information hidden in the model of the terminal is extracted in combination with the authentication auxiliary information, without the need to interact with the server, and the privacy of the authentication auxiliary information is relatively high, which improves the security of the password.
[0182] In an embodiment of the present application, the second processing unit 706 is specifically used to: generate prompt information for extracting data according to the second data format, based on the authentication auxiliary information and the application identification information; extract password information from the model parameters of the second model according to the prompt information; wherein the authentication auxiliary information includes: user identity information and security information.
[0183] In the above-mentioned embodiment provided by the present application, in the process of extracting the password information embedded in the second model according to the authentication auxiliary information and the application identification information, prompt information for extracting data is generated according to the authentication auxiliary information and the application identification information in accordance with the second data format; the password information is extracted from the model parameters of the second model according to the prompt information; wherein the authentication auxiliary information includes: user identity information and security information. In this way, the encrypted plaintext password can be prevented from being reversely extracted when the authentication auxiliary information is unknown, thereby ensuring the security of password retrieval and reducing the risk of password leakage.
[0184] In an embodiment of the present application, the second display unit 702 is also used to: display a second authentication interface when a password retrieval request is received; the second receiving unit 704 is also used to: receive second authentication information entered by the user in the second authentication interface; the second display unit 702 is specifically used to: display the password retrieval interface in response to a password retrieval request when the second authentication information is verified.
[0185] In the above embodiment provided by the present application, in the process of displaying the password retrieval interface in response to the user's password retrieval request for the application, the second authentication interface is displayed when the password retrieval request is received; the second authentication information input by the user in the second authentication interface is received; and the password retrieval interface is displayed in response to the password retrieval request when the second authentication information is verified. In this way, the user is allowed to perform the password retrieval operation only when the user identity verification is passed, which further improves the security of password retrieval.
[0186] The password setting device 600 and the password retrieving device 700 in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a palmtop computer, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0187] The password setting device 600 and the password retrieving device 700 in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0188] The password setting device 600 provided in the embodiment of the present application can achieve Figure 1 and Figure 2 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0189] The password retrieval device 700 provided in the embodiment of the present application can achieve Figure 3 and Figure 4 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0190] Alternatively, if Figure 8 As shown, an embodiment of the present application further provides an electronic device 800, including a processor 802 and a memory 804, wherein the memory 804 stores programs or instructions that can be executed on the processor 802, and when the program or instructions are executed by the processor 802, the various steps of the above-mentioned password setting method or password retrieval method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0191] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0192] Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0193] The electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910 and other components.
[0194] Those skilled in the art will appreciate that the electronic device 900 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 910 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0195] The display unit 906 is used to display a password setting interface in response to a password setting request from a user for an application.
[0196] The user input unit 907 is used to receive password information and authentication auxiliary information input by the user in the password setting interface.
[0197] The processor 910 is used to adjust the model parameters of the first model according to the password information, the authentication auxiliary information and the application identification information to obtain the second model, wherein the password information is embedded in the model parameters of the second model.
[0198] In an embodiment of the present application, in response to a user's request to set a password for an application, a password setting interface is displayed; password information and authentication auxiliary information entered by the user in the password setting interface are received; model parameters of the first model are adjusted according to the password information, authentication auxiliary information, and application identification information to obtain a second model, wherein the password information is embedded in the model parameters of the second model. In an embodiment of the present application, model parameters are adjusted according to application identification information, password information entered by the user, and authentication auxiliary information to embed the password information into the model parameters. In this way, by hiding the password information in the model parameters of the model, the password is saved in the terminal, and is encrypted with the assistance of authentication auxiliary information, without the need to interact with the server, and the password is difficult to extract, thereby improving the security of the password.
[0199] Optionally, the processor 910 is specifically used to: generate text data according to the password information, authentication auxiliary information and application identification information in a first data format; adjust the model parameters of the first model according to the text data; wherein the authentication auxiliary information includes: user identity information and security information.
[0200] In the above-mentioned embodiment provided by the present application, in the process of adjusting the model parameters of the first model according to the password information, the authentication auxiliary information and the application identification information, text data is generated according to the password information, the authentication auxiliary information and the application identification information in accordance with the first data format; the model parameters of the first model are adjusted according to the text data; wherein the authentication auxiliary information includes: user identity information and security information. In this way, by fine-tuning the model parameters of the first model based on the text data generated based on the password information, the authentication auxiliary information and the application identification information, the password information can be solidified into the model parameters of the model, so that the password information is encrypted and stored in the terminal, and the authentication auxiliary information is used to assist in the encryption, without the need to interact with the server, and the password is more difficult to extract, thereby improving the security of the password.
[0201] Optionally, the display unit 906 is also used to: display a first authentication interface when a password setting request is received; the user input unit 907 is also used to: receive first authentication information entered by the user in the first authentication interface; the display unit 906 is specifically used to: display the password setting interface in response to the password setting request when the first authentication information is verified.
[0202] In the above embodiment provided by the present application, in the process of displaying the password setting interface in response to the user's request to set the password for the application, the first authentication interface is displayed when the password setting request is received; the first authentication information input by the user in the first authentication interface is received; and the password setting interface is displayed in response to the password setting request when the first authentication information is verified. In this way, the user is allowed to set the password only when the user identity verification is passed, which further improves the security of password setting.
[0203] Furthermore, the display unit 906 is configured to display a password retrieval interface in response to a password retrieval request from a user to an application.
[0204] The user input unit 907 is used to receive the authentication auxiliary information input by the user in the password retrieval interface.
[0205] Processor 910 is used to extract the password information embedded in the second model according to the authentication auxiliary information and the application identification information.
[0206] In an embodiment of the present application, in response to a user's request to retrieve a password for an application, a password retrieval interface is displayed; the authentication auxiliary information entered by the user in the password retrieval interface is received; and the password information embedded in the second model is extracted based on the authentication auxiliary information and the application identification information. In an embodiment of the present application, the password information embedded in the model when the user sets the password is extracted based on the authentication auxiliary information entered by the user. In this way, the password information hidden in the model of the terminal is extracted in combination with the authentication auxiliary information, without the need to interact with the server, and the authentication auxiliary information has a high degree of privacy, which improves the security of the password.
[0207] Optionally, the processor 910 is specifically used to: generate prompt information for extracting data according to the second data format, based on the authentication auxiliary information and the application identification information; extract password information from the model parameters of the second model according to the prompt information; wherein the authentication auxiliary information includes: user identity information and security information.
[0208] In the above-mentioned embodiment provided by the present application, in the process of extracting the password information embedded in the second model according to the authentication auxiliary information and the application identification information, prompt information for extracting data is generated according to the authentication auxiliary information and the application identification information in accordance with the second data format; the password information is extracted from the model parameters of the second model according to the prompt information; wherein the authentication auxiliary information includes: user identity information and security information. In this way, the encrypted plaintext password can be prevented from being reversely extracted when the authentication auxiliary information is unknown, thereby ensuring the security of password retrieval and reducing the risk of password leakage.
[0209] Optionally, the display unit 906 is also used to: display a second authentication interface when a password retrieval request is received; the user input unit 907 is also used to: receive second authentication information entered by the user in the second authentication interface; the display unit 906 is specifically used to: display the password retrieval interface in response to the password retrieval request when the second authentication information is verified.
[0210] In the above embodiment provided by the present application, in the process of displaying the password retrieval interface in response to the user's password retrieval request for the application, the second authentication interface is displayed when the password retrieval request is received; the second authentication information input by the user in the second authentication interface is received; and the password retrieval interface is displayed in response to the password retrieval request when the second authentication information is verified. In this way, the user is allowed to perform the password retrieval operation only when the user identity verification is passed, which further improves the security of password retrieval.
[0211] It should be understood that in the embodiment of the present application, the input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and at least one of other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0212] The memory 909 can be used to store software programs and various data. The memory 909 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 909 may include a volatile memory or a non-volatile memory, or the memory 909 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 909 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0213] The processor 910 may include one or more processing units; optionally, the processor 910 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 910.
[0214] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned password setting method or password retrieval method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0215] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0216] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned password setting method or password retrieval method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0217] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0218] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned password setting method or password retrieval method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0219] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0220] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0221] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A password setting method, It is characterized in that include: In response to a user's request to set a password for the application, display a password setting interface; Receiving password information and authentication auxiliary information entered by the user in the password setting interface; The model parameters of the first model are adjusted according to the password information, the authentication auxiliary information and the application identification information to obtain a second model, wherein the password information is embedded in the model parameters of the second model.
2. The password setting method according to claim 1, It is characterized in that The adjusting the model parameters of the first model according to the password information, the authentication auxiliary information and the application identification information comprises: generating text data according to the password information, the authentication auxiliary information and the application identification information in a first data format; adjusting model parameters of the first model according to the text data; The authentication auxiliary information includes: user identity information and security information.
3. The password setting method according to claim 2, It is characterized in that The adjusting the model parameters of the first model according to the text data comprises: Converting the text data into first data readable by the first model; Decomposing the first data; The disassembled first data is randomly solidified into at least one model parameter of the first model.
4. The password setting method according to any one of claims 1 to 3, It is characterized in that The step of displaying a password setting interface in response to a user's request to set a password for an application program comprises: When receiving the password setting request, displaying a first authentication interface; Receiving first authentication information input by the user in the first authentication interface; In the case where the first authentication information is verified to be successful, the password setting interface is displayed in response to the password setting request.
5. A method for retrieving password. It is characterized in that include: In response to a user's request to retrieve a password for an application, display a password retrieval interface; Receiving authentication auxiliary information entered by the user in the password retrieval interface; The password information embedded in the second model is extracted according to the authentication auxiliary information and the application identification information.
6. The password recovery method according to claim 5, It is characterized in that The extracting the password information embedded in the second model according to the authentication auxiliary information and the application identification information includes: generating prompt information for extracting data according to the authentication auxiliary information and the application identification information in a second data format; extracting the password information from the model parameters of the second model according to the prompt information; The authentication auxiliary information includes: user identity information and security information.
7. The password recovery method according to claim 6, It is characterized in that The extracting the password information from the model parameters of the second model according to the prompt information includes: Converting the prompt information into second data readable by the second model; Determine at least one model parameter in the second model according to the second data, wherein the first data corresponding to the password information is solidified in at least one of the model parameters; extracting the first data from at least one of the model parameters; The extracted first data is converted into the password information.
8. A password setting device, It is characterized in that include: A first display unit, configured to display a password setting interface in response to a user's request to set a password for an application; A first receiving unit, used to receive password information and authentication auxiliary information input by a user in the password setting interface; The first processing unit is used to adjust the model parameters of the first model according to the password information, the authentication auxiliary information and the application identification information to obtain the second model, wherein the password information is embedded in the model parameters of the second model.
9. A password retrieval device, It is characterized in that include: A second display unit, for displaying a password retrieval interface in response to a password retrieval request from a user to an application; A second receiving unit, used to receive authentication auxiliary information entered by the user in the password retrieval interface; The second processing unit is used to extract the password information embedded in the second model according to the authentication auxiliary information and the application identification information.
10. An electronic device, It is characterized in that It includes a processor and a memory, the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the password setting method as described in any one of claims 1 to 4 are implemented, and / or when the program or instruction is executed by the processor, the steps of the password retrieval method as described in any one of claims 5 to 7 are implemented.
