Password verification method, device and electronic equipment
By identifying and updating the target bit information in password verification, generating the second password information for verification, the problem that existing password verification is easily snooped in public places is solved, improving the security and confidentiality of the password without affecting the user experience .
Patent Information
- Application Number
- CN202010527930.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-11
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2041-01-14
AI Technical Summary
Existing password verification methods are prone to voyeurism in public places, resulting in password insecure, and hardware improvements may increase costs and affect user experience.
By receiving the password information input by the user, the preset first target bit and second target bit information are identified, and the information of the second target bit is updated to the first target bit, and the second password information is generated for verification, avoiding direct Verify the real password and improve confidentiality.
Improves password security and enhances confidentiality without hardware improvements, keeping the user experience simple.
Smart Images

Figure CN111797383B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a password verification method, device and electronic equipment. Background Art
[0002] With the rapid development of electronic devices and mobile Internet, people's lives have changed a lot, and more and more people are using electronic devices. When using electronic devices, passwords are inevitably used, such as lock passwords, payment passwords, etc. At present, when the password information entered by the user is consistent with the preset real password information, the password verification is passed.
[0003] There are many users in public places, so it is possible that a user's password is peeped, and based on the current password verification method, once the password is stolen, it is easy to pass the verification, thus making the password insecure. Therefore, it is urgent to provide a password verification method with higher security to improve password security. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a password verification method, device, electronic device and medium to solve the problem of low password security.
[0005] In order to solve the above technical problems, this application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a password verification method, comprising:
[0007] Receive first password information input by a user;
[0008] Identify information corresponding to a first target position from the first password information;
[0009] Update the information corresponding to the second target position in the first password information to the information corresponding to the first target position, to obtain the second password information;
[0010] When the second password information matches the preset password information, it is determined that the password verification is successful.
[0011] In a second aspect, an embodiment of the present application provides a password verification device, including:
[0012] A password information receiving module, used to receive first password information input by a user;
[0013] An identification module, used to identify information corresponding to the first target position from the first password information;
[0014] A password information processing module, used for updating the information corresponding to the second target position in the first password information to the information corresponding to the first target position, so as to obtain the second password information;
[0015] The first verification module is used to determine that the password verification is successful when the second password information matches the preset password information.
[0016] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method of the first aspect.
[0017] In a fourth 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 method of the first aspect are implemented.
[0018] In a fifth aspect, an embodiment of the present application provides a chip, the chip including 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 method of the first aspect.
[0019] In an embodiment of the present application, the second password information is obtained by updating the information corresponding to the second target position in the first password information input by the user to the information corresponding to the first target position identified from the first password information, and then the second password information is password verified. When the second password information matches the preset password information, it is determined that the password verification is successful. The password verification method provided by the present application verifies the second password information obtained after processing the first password information, rather than directly verifying the first password information, that is, the user does not directly input the real password information, and the first password information input by the user can hide the real password information, which has high confidentiality and improves the security of the password. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is a flowchart of the password verification method provided in the embodiment of the present application;
[0021] Figure 2 is a schematic diagram of a password input interface provided by an embodiment of the present application;
[0022] Figure 3 is a schematic diagram of a target position setting interface provided in the first embodiment of the present application;
[0023] Figure 4 is a schematic diagram of a target position setting interface provided in the second embodiment of the present application;
[0024] Figure 5 is a schematic diagram of a target position setting interface provided in the third embodiment of the present application;
[0025] Figure 6is a schematic diagram of a first setting interface provided by an embodiment of the present application;
[0026] Figure 7 is a schematic diagram of a first setting interface provided by another embodiment of the present application;
[0027] Figure 8 is a schematic diagram of a second setting interface provided in an embodiment of the present application;
[0028] Fig. 9 is a schematic diagram of a third setting interface provided in an embodiment of the present application;
[0029] Fig.10 is a schematic diagram of a first setting interface provided in yet another embodiment of the present application;
[0030] Fig.11 is a schematic diagram of the structure of a password verification device provided by an embodiment of the present invention;
[0031] Fig.12 It is one of the structural schematic diagrams of the electronic device according to the embodiment of the present invention;
[0032] Fig.13 This is the second structural schematic diagram of the electronic device according to the embodiment of the present invention. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0034] 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 data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0035] The password verification method, device, electronic device and medium 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.
[0036] At present, in order to prevent passwords from being peeped, protective films can be attached to electronic devices so that the content on the screen can only be seen clearly from a specific viewing angle. Buttons can also be added to the back of the phone to represent specific characters. The front hard keyboard or touch screen soft keyboard and the back button combination can be used to input passwords. Hardware structures such as blinds can also be designed to make the interface visible only from a specific viewing angle, or a shield can be used to block it. However, these methods all require adding or changing hardware to achieve a specific viewing angle to see the content on the screen, which will increase costs and sometimes cause inconvenience in use.
[0037] In other embodiments, the viewing angle of the password pop-up window can be reduced by adjusting the brightness and contrast, but current electronic devices themselves are unable to recognize the ambient light of all scenes, and the screen brightness cannot be fully adaptive, which will give users a glaring or too dark feeling and reduce the user's experience.
[0038] Based on the above technical problems, the embodiments of the present application provide a password verification method, device, electronic device and medium, which can improve the security of passwords.
[0039] Figure 1 Schematic diagram of the password verification method provided in the embodiment of the present application. Figure 1 As shown, the password verification method includes steps 110 to 140. The execution subject of the password verification method provided in the embodiment of the present application may be a password verification device.
[0040] Step 110: Receive first password information input by a user.
[0041] Step 120: Identify information corresponding to the first target position from the first password information.
[0042] Step 130: Update the information corresponding to the second target position in the first password information to the information corresponding to the first target position to obtain the second password information.
[0043] Step 140: If the second password information matches the preset password information, determine that the password verification is successful.
[0044] In the embodiment of the present application, the second password information is obtained by updating the information corresponding to the second target position in the first password information input by the user to the information corresponding to the first target position identified from the first password information, and then the second password information is password verified. When the second password information matches the preset password information, it is determined that the password verification is successful. The password verification method provided by the present application verifies the second password information obtained after processing the first password information, rather than directly verifying the first password information, that is, the user does not directly enter the real password information, and the first password information entered by the user can hide the real password information, which has high confidentiality and improves the security of the password. .
[0045] Furthermore, the embodiments of the present application do not impose any hardware requirements on electronic devices, do not affect the user's visual experience, are easy to operate, and have a high degree of confidentiality.
[0046] The specific implementation method of each step in step 110 to step 140 is introduced below.
[0047] First, the specific implementation of step 110 is introduced.
[0048] In some embodiments, the first password information input by the user may include multiple character information. In some embodiments, the user may input the first password information through a virtual keyboard.
[0049] In other embodiments, the first password information input by the user may also be information obtained by recognizing a gesture input by the user.
[0050] In some embodiments, step 110 includes receiving an input operation of the user to the password input area when the password input area is displayed, and determining the first password information input by the user in response to the input operation. As an example, Figure 2 2 is a schematic diagram of a password input interface provided in an embodiment of the present application. The password input interface displays a password input area 20 and a first prompt message. The first prompt message prompts the user to enter a password. For example, the first prompt message is "Please enter a password".
[0051] In some embodiments, the input operation for the password input area may include input such as clicking input, sliding input, etc. on the virtual keyboard, or input such as preset gesture operation. For example, if the information input by the user includes gesture information, the input operation for the password input area includes a preset gesture operation, and the first password information includes character information corresponding to the preset gesture operation. For example, if the preset gesture operation is an "OK" gesture made by the user, the first password information input by the user includes the character "OK".
[0052] The specific implementation of step 120 and step 130 is introduced below.
[0053] In an embodiment of the present application, the first password information input by the user includes multiple bits of information. For example, the first password information input by the user includes multiple characters.
[0054] In the embodiment of the present application, the first target position and the second target position are both preset positions. In some examples, in order to meet the personalized needs of the user, the first target position and the second target position can both be preset by the user.
[0055] In order to facilitate the introduction of the password verification method provided in the embodiment of the present application, the setting method of the first target bit and the second target bit in the embodiment of the present application is first introduced.
[0056] First, a setting method of the first target position and the second target position is introduced. In some embodiments of the present application, before step 110, the password verification method provided by the embodiment of the present application also includes: receiving a first input of first information at a first position in the preset password information; in response to the first input, determining the first position as the first target position; receiving a second input of the first information at a second position in the preset password information; in response to the second input, determining the second position as the second target position.
[0057] Figure 3 Schematic diagram of the first target position and the second target position provided in the embodiment of the present application. Figure 3 As shown, Figure 3 The target position setting interface is shown in Figure 3 The target position setting interface in the embodiment displays the preset password information "123153" and the input area where each position of the preset password information is located. Figure 3 The target position setting interface can also display prompt information for prompting the user to set the first target position and the second target position.
[0058] As an example, the first input and the second input may both be click input, slide input, drag input, or press input.
[0059] It should be noted that in this setting mode, at least two pieces of information in the preset password information must be the same.
[0060] As an example, the first information is "3" in the preset password information. The first position is the position of the first "3" in the preset password information in the preset password information. The second position is the position of the second "3" in the preset password information in the preset password information.
[0061] For example, the first input is a click input for the first "3" in the preset password information. In response to the input, the first "3" in the preset password information is determined as the first target position at the first position in the preset password information, that is, the first target position is the 3rd position.
[0062] For example, the second input is a click input for the second "3" in the preset password information. In response to this input, the second "3" in the preset password information is used as the second target position at the second position in the preset password information, that is, the second target position is the 6th position.
[0063] In some embodiments of the present application, assuming that the first password information input by the user is "abcdef", if the first target digit is the 3rd digit and the second target digit is the 6th digit, the information corresponding to the first target digit identified from the first password information is "c". The information corresponding to the second target digit in the first password information is "f", and the information corresponding to the second target digit in the first password information is updated to the information corresponding to the first target digit, and the second password information "abcdec" can be obtained.
[0064] It should be noted that there may be multiple first target locations. If there are multiple first target locations, each first target location has a second target location associated with it. The association relationship between the first target location and the second target location can be preset.
[0065] As an example, after the user sets a first target position and an associated second target position according to the above method, another first target position and an associated second target position may be set according to the above method.
[0066] In step 120, information corresponding to each first target position can be identified from the first password information. In step 130, information corresponding to each second target position in the first password information can be updated to information corresponding to the first target position associated with the second target position.
[0067] For example, if the preset password information is "123123", the first input can also be a click input for the first "2" in the preset password information. In response to the input, the first "2" in the preset password information is used as the first target position in the preset password information, that is, the first target position is the second position. For example, if the second input is a click input for the second "2" in the preset password information, in response to the input, the second "2" in the preset password information is used as the second target position in the preset password information, that is, the second target position is the fourth position, and the second position is associated with the fourth position. In addition, the first information can also be "3", then the first target position is the third position, the second target position is the sixth position, that is, the third position is associated with the sixth position.
[0068] In some embodiments of the present application, assuming that the first password information input by the user is "abcdef", if there are two first target digits, namely the 2nd and 3rd digits, the second target digit associated with the 2nd digit is the 4th digit, and the second target digit associated with the 3rd digit is the 6th digit, then the information corresponding to the two first target digits identified from the first password information is "b" and "c". The information corresponding to the two second target digits in the first password information is "d" and "f", and the information corresponding to each second target digit in the first password information is updated to the information corresponding to the first target digit associated with the second target digit, and the second password information "abcbec" can be obtained.
[0069] Another setting method for the first target position and the second target position is introduced below. In some embodiments of the present application, before step 110, the password verification method provided in the embodiment of the present application also includes: steps A to E. Step A, receiving a third input for the third information in the preset password information; step B, in response to the third input, determining the third position of the third information in the preset password information; step C, receiving a fourth input to the first setting interface, the first setting interface includes a first control for representing the pseudo-password information and a second control for representing the third information; the pseudo-password information includes information other than the third information in the preset password information; step D, in response to the fourth input, determining the arrangement order of the first control and the second control along the preset direction; step E, determining the first target position and the second target position based on the arrangement order, the third position and the number of information bits in the third information.
[0070] As an example, the third input may be a click input, a slide input, a drag input, a press input, or the like.
[0071] Figure 4 is a schematic diagram of a target position setting interface provided by another embodiment of the present application. Figure 4 As shown, Figure 4 The target position setting interface in the password includes the preset password information "123456" and the input area where each digit of the preset password information is located. In some embodiments, the target position setting interface also includes a first prompt information, which is used to prompt the user to split the preset password information to set the correct information corresponding to the first target position, that is, the third information, which can also be called the password modification information. As an embodiment, the first prompt information is "Please drag any digits in the password to the box on the right as the password modification information."
[0072] As an example, the third information is "3" in the preset password information, and the third input is a drag input for "3" in the preset password information. In response to the drag input, the third position of the third information in the preset password information is determined, that is, the third information is located at the 3rd position in the preset password information. And the third information is set as the password modification information, that is, the correct information corresponding to the first target position.
[0073] In some embodiments, the password verification method provided by the embodiment of the present application further includes: in response to the third input, displaying the third information selected by the third input in the preset area. Figure 4 , the box on the right is the preset area.
[0074] Figure 5 is a schematic diagram of a target position setting interface provided by another embodiment of the present application. Figure 5 , the input area where the third information in the preset password information selected by the third input is located can be displayed in the first color 50 to prompt the user that the third information has been selected. In other embodiments, in response to the third input, the preset area is displayed in the second color 51.
[0075] Figure 6 is a schematic diagram of a first setting interface provided by an embodiment of the present application. Figure 6 The first setting interface includes a first control for pseudo password information and a second control for representing third information (ie, password modification information). The pseudo password information includes information in the preset password information except the third information.
[0076] See also Figure 6 , the first setting interface displays by default along the preset direction ( Figure 6 The first setting interface also displays a prompt message prompting the user to "arrange the order of the pseudo password information and the third information at will". As an example, the first input may include a drag input of the first control 60 and the second control 61, and the drag input drags the first control 60 to the right of the second control 61, and then the first control 60 is dragged to the right of the second control 61 along the preset direction ( Figure 7 The second control 61 and the first control 60 are arranged in sequence, see Figure 7 .
[0077] The arrangement order of the first control and the second control along the preset direction is used to represent the input order of the pseudo password information and the third information (i.e., the password modification information). As an example, if the second control and the first control are arranged in sequence along the preset direction, it means that the input order of the password modification information is the first one, and the input order of the pseudo password information is the second one.
[0078] The first target position and the second target position may be determined based on the arrangement order of the first control and the second control along the preset direction, the third position of the third information in the preset password information, and the number of bits of the third information.
[0079] As an example, if the third information is "3" in the preset password information, and the input order of the third information is the first position, and the input order of the pseudo password information is the second position, then the first target position is the first position. Since the third information is the third position in the third position of the preset password information, the second target position is the last position of the third position, that is, the fourth position.
[0080] In the embodiments of the present application, the user can set the first target position and the second target position according to his / her needs, thereby realizing the personalized setting of the password verification method.
[0081] If the first target and the second target are Figures 4 to 7 If the setting is performed in the manner described above, step 130 includes: updating the information corresponding to the second target position in the first password information to the information corresponding to the first target position, and deleting the first target position in the updated first password information to obtain the second password information.
[0082] In some embodiments of the present application, assuming that the first password information input by the user is "abcdefg", if the first target bit is the 1st bit and the second target bit is the 4th bit, the information corresponding to the first target bit identified from the first password information is "a". The information corresponding to the second target bit in the first password information is "d", and the information corresponding to the second target bit in the first password information is updated to the information corresponding to the first target bit, that is, the updated first password information "abcaefg" is obtained, and the first target bit in "abcaefg" is deleted, and the second password information "bcaefg" can be obtained.
[0083] In some embodiments, the number of information bits of the third information may be greater than or equal to 2. When the number of information bits of the third information is greater than or equal to 2, for example, the third input may include a drag input for each bit of information in the third information, and in response to the drag input, the third position of each bit of information in the third information in the preset password information may be determined. That is, each bit of information in the third information has its own associated third position.
[0084] In some embodiments, if the number of digits of the third information is greater than or equal to 2, then in response to the third input, the fourth position of each digit of the third information displayed in the preset area can be determined in the third information. For example, the fourth position of each digit of the third information can be determined based on the order in which each digit of the information is dragged.
[0085] Then, based on the arrangement order of the first control and the second control, the third position associated with each bit of information in the third information, the number of information bits of the third information, and the fourth position of each bit of information in the third information, each first target bit and the second target bit associated with each first target bit can be determined.
[0086] As an example, if the third information includes "3" and "6" in the preset password information, and the input order of the third information is the 1st bit, and the input order of the pseudo-password information is the 2nd bit, then the two first target bits are the fourth positions of the two bits of information in the third information, that is, the 1st bit and the 2nd bit.
[0087] Since the number of information bits of the third information is 2, and the third positions associated with "3" and "6" in the preset password information are the third and sixth positions in the preset password information, respectively, the second target bit associated with the first position is the last M positions of the third position associated with the first position in the third information, and the second target bit associated with the second position is the last M positions of the third position associated with the second position in the third information. Wherein, M is the number of information bits of the third information, and M is a positive integer.
[0088] Assuming that the fourth position of "3" in the third information is the 1st bit, and the fourth position of "6" in the third information is the 2nd bit, then the second target bit associated with the 1st bit is the 5th bit, and the second target bit associated with the 2nd bit is the 8th bit.
[0089] In some embodiments of the present application, assuming that the first password information input by the user is "abcdefgh", if there are two first target digits, namely the 1st and 2nd digits, the second target digit associated with the 1st digit is the 5th digit, and the second target digit associated with the 2nd digit is the 8th digit, then the information corresponding to the first target digit identified from the first password information is "a" and "b" respectively. The information corresponding to the second target digit in the first password information is "e" and "h" respectively, and the information corresponding to each second target digit in the first password information is updated to the information corresponding to the first target digit associated with the second target digit, that is, the updated first password information "abcdafgb" is obtained, and the first target digit in "abcdafgb" is deleted to obtain the second password information "cdafgb".
[0090] It is worth mentioning that in an embodiment of the present application, before receiving a first input for the first information at the first position in the preset password information or receiving a third input for the third information in the preset password information, the password verification method provided in the embodiment of the present application also includes: receiving a fifth input for the second setting interface; in response to the fifth input, determining the information entered by the fifth input as the preset password information, and displaying the preset password information.
[0091] In some embodiments, the fifth input may include a click input, a press input, a slide input, etc. on the virtual keyboard, wherein the fifth input is used to input preset password information.
[0092] Figure 8 Schematic diagram of the interface for setting the preset password information provided in the embodiment of the present application. Figure 8 As shown, the password setting interface includes a password input area and a second prompt information. The second prompt information is used to prompt the user to set password information. As an example, the password information set by the user is "123456".
[0093] The implementation of step 140 is described below.
[0094] In the embodiment of the present application, if the first target position and the second target position are Figure 3 If the second password information matches the preset password information in step 140, the second password information may be identical to the preset password information.
[0095] If the second password information matches the preset password information, it is determined that the password verification is successful.
[0096] In some embodiments of the present application, in order to further improve the security of the password, the first password information also includes information corresponding to the third target position. On this basis, before determining that the password verification is successful, not only is the second password information required to match the preset password information, but it is also necessary to determine that the information corresponding to the third target position meets the preset verification conditions.
[0097] In the embodiment of the present application, the information corresponding to the third target position is dynamic verification information and is not fixed.
[0098] As an example, the information corresponding to the third target position meets the preset verification condition, including that the information corresponding to the third target position matches the preset time feature of the current time.
[0099] As an example, the preset time feature may be the last digit of the year, month, and day in a date. For example, if the current date is XXXX-YY-ZZ, then the last digit in ZZ is the preset time feature.
[0100] As another example, the current date is XXXX year YY month ZZ day week D, and D is the preset time feature.
[0101] In some other examples, the current time is hh hours, mm minutes, ss seconds, and the last digit in mm is a preset time feature.
[0102] That is, the preset verification condition may include that the information corresponding to the third target position matches the preset time feature.
[0103] In the embodiment of the present application, by inputting the information corresponding to the third target position, another layer of verification is added, and the security of the password is improved through multiple verifications.
[0104] Next, the method of setting the preset verification conditions is described in detail.
[0105] In some embodiments of the present application, before step 110, the password verification method provided by the embodiments of the present application also includes: receiving a sixth input for a third setting interface, the third setting interface including multiple verification conditions; in response to the sixth input, using the verification condition selected by the sixth input as a preset verification condition.
[0106] As an example, the sixth input may be a click input, a press input, a slide input, a drag input, or other different inputs.
[0107] Fig. 9 : is a schematic diagram of the third setting interface provided in the embodiment of the present application. The third setting interface includes multiple verification conditions. For example, the first verification condition is: verifying according to the last digit of the day of the year, month and day; the second verification condition is verifying according to the last digit of the minute of the time hour, minute and second.
[0108] As an example, if the sixth input is a click input for the first verification condition, the first verification condition is used as the preset verification condition.
[0109] In some embodiments, see Fig. 9 , a prompt message is displayed in the third setting interface to prompt the user to set a preset verification condition, for example, "Please select a verification condition from the following multiple verification conditions."
[0110] The following describes how to set the third target position.
[0111] Since the first target position and the second target position can be set in two different ways, the third target position can also be set in different ways. And the setting ways of the first target position, the second target position and the third target position are related to each other.
[0112] First, the first method of setting the first target position, the second target position and the third target position is introduced.
[0113] Combine the following Figure 3 The described method of setting the first target position and the second target position introduces a first method of setting the first target position, the second target position and the third target position.
[0114] In some embodiments, after determining the second position as the second target position in response to the second input, the password verification method provided by the embodiment of the present application further includes: setting the Q+1th to Q+Pth positions as third target positions respectively. Wherein, Q is the number of bits of the preset password information, and P is the preset number of bits, that is, the number of information bits of the above-mentioned dynamic verification information. Wherein, P is determined based on the preset verification condition.
[0115] In some other embodiments, the third target position may also be set before the first target position and the second target position, which will not be described in detail here.
[0116] Combine the following Figures 4 to 8 Based on the setting method of the first target position and the second target position described in the text, a second setting method of the first target position, the second target position and the third target position is introduced.
[0117] Among them, the first setting interface also includes a third control for characterizing dynamic verification information; step D includes: in response to a fourth input, determining the arrangement order of the first control, the second control and the third control along a preset direction; step E includes: based on the arrangement order, the third position, the number of information bits in the third information and the number of information bits in the dynamic verification information, determining the first target bit, the second target bit and the third target bit.
[0118] In some embodiments, since there are six input methods for pseudo password information, third information (i.e. password modification information) and dynamic verification information, the user needs to pre-set the input order of pseudo password information, the input order of password modification information and the input order of dynamic verification information.
[0119] As an example, the fourth input may be a drag input, a slide input, a click input, or the like for a control in the first setting interface.
[0120] Fig.10 is a schematic diagram of a first setting interface provided by an embodiment of the present application. Fig.10 , the first setting interface displays by default along the preset direction ( Fig.10 The first setting interface also displays a prompt message prompting the user to "arrange the order of pseudo-password information, third information and dynamic verification information at will". As an example, the fourth input may include a drag input of the first control 100, the second control 101 and the third control 102, and the drag input drags the first control 100 to the right of the third control 102, and then the second control 101, the third control 102 and the first control 100 are arranged in sequence along the preset direction.
[0121] The arrangement order of the first control, the second control, and the third control along the preset direction is used to characterize the input order of the pseudo-password information, the password modification information, and the dynamic verification information. As an example, if the second control, the third control, and the first control are arranged in sequence along the preset direction, it means that the input order of the password modification information is the first, the input order of the dynamic verification information is the second, and the input order of the pseudo-password information is the third.
[0122] As an example, if the third information is "3" in the preset password information "123456", and the input order of the third information is the first position, the input order of the dynamic verification information is the second position, and the input order of the pseudo password information is the third position, then the first target position is the first position. If the number of information bits of the dynamic verification information is P, since the third information is the third position in the third position of the preset password information, the second target position is the last P+1 position of the third position, that is, the 4+P position. P is a positive integer, and P is determined based on the preset verification condition.
[0123] For the case where the number of information bits of the third information is multiple, please refer to the above description and will not be repeated here.
[0124] The password verification method provided in the embodiment of the present application can be executed by a password verification device or a control module in the password verification device for executing the loaded password verification method. It should be noted that in the embodiment of the present application, the password verification device provided in the embodiment of the present application is described by taking the password verification method executed by the password verification device as an example.
[0125] Fig.11 Schematic diagram of the structure of the password verification device provided in the embodiment of the present application. Fig.11 As shown, the password verification device 1100 includes:
[0126] The password information receiving module 1110 is used to receive the first password information input by the user;
[0127] An identification module 1120, configured to identify information corresponding to a first target position from the first password information;
[0128] The password information processing module 1130 is used to update the information corresponding to the second target position in the first password information to the information corresponding to the first target position, so as to obtain the second password information;
[0129] The first verification module 1140 is used to determine that the password verification is successful when the second password information matches the preset password information.
[0130] In an embodiment of the present application, the second password information is obtained by updating the information corresponding to the second target position in the first password information input by the user to the information corresponding to the first target position identified from the first password information, and then the second password information is password verified. When the second password information matches the preset password information, it is determined that the password verification is successful. The password verification method provided by the present application verifies the second password information obtained after processing the first password information, rather than directly verifying the first password information, that is, the user does not directly input the real password information, and the first password information input by the user can hide the real password information, which has high confidentiality and improves the security of the password.
[0131] In some embodiments of the present application, the password information processing module 1130 is used to:
[0132] The information corresponding to the second target position in the first password information is updated to the information corresponding to the first target position, and the first target position in the updated first password information is deleted to obtain the second password information.
[0133] In some embodiments of the present application, the first password information further includes information corresponding to the third target position; the password verification device 1100 further includes:
[0134] The second verification module is used to determine whether the information corresponding to the third target position meets the preset verification condition.
[0135] In some embodiments of the present application, the password verification device 1100 further includes:
[0136] A first input receiving module, used to receive a first input of first information at a first position in the preset password information;
[0137] A first determination module, configured to determine the first position as a first target position in response to a first input;
[0138] A second input receiving module, used to receive a second input of the first information at a second position in the preset password information;
[0139] The second determination module is used to determine the second position as a second target position in response to a second input.
[0140] In some embodiments of the present application, the password verification device 1100 further includes:
[0141] A third input receiving module, used to receive a third input for the third information in the preset password information;
[0142] A third determination module, configured to determine a third position of the third information in the preset password information in response to a third input;
[0143] a fourth input receiving module, configured to receive a fourth input to the first setting interface, wherein the first setting interface includes a first control for representing pseudo password information and a second control for representing third information; the pseudo password information includes information in the preset password information except the third information;
[0144] A fourth determining module, configured to determine, in response to a fourth input, an arrangement order of the first control and the second control along a preset direction;
[0145] The fifth determination module is used to determine the first target bit and the second target bit based on the arrangement order, the third position and the number of information bits in the third information.
[0146] The password verification device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in the device. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, 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 the non-mobile electronic device can 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.
[0147] The password verification device 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.
[0148] The password verification device provided in the embodiment of the present application can achieve Figures 1 to 10 To avoid repetition, the various processes implemented by the password verification device in the method embodiment will not be described here.
[0149] Optionally, an embodiment of the present application also provides an electronic device 1200, including a processor 1201, a memory 1202, and a program or instruction stored in the memory 1202 and executable on the processor 1201. When the program or instruction is executed by the processor 1201, each process of the above-mentioned password verification method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0150] 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.
[0151] Fig.13 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0152] The electronic device 1300 includes but is not limited to: a radio frequency unit 1301, a network module 1302, an audio output unit 1303, an input unit 1304, a sensor 1305, a display unit 1306, a user input unit 1307, an interface unit 1308, a memory 1309, and a processor 1310 and other components.
[0153] Those skilled in the art will appreciate that the electronic device 1300 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 1310 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.13 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.
[0154] The user input unit 1307 is used to receive first password information input by a user.
[0155] Processor 1310 is used to identify information corresponding to the first target position from the first password information obtained by the user input unit 1307; update the information corresponding to the second target position in the first password information to the information corresponding to the first target position to obtain second password information; and determine that the password verification is successful when the second password information matches the preset password information.
[0156] In an embodiment of the present application, the second password information is obtained by updating the information corresponding to the second target position in the first password information input by the user to the information corresponding to the first target position identified from the first password information, and then the second password information is password verified. When the second password information matches the preset password information, it is determined that the password verification is successful. The password verification method provided by the present application verifies the second password information obtained after processing the first password information, rather than directly verifying the first password information, that is, the user does not directly input the real password information, and the first password information input by the user can hide the real password information, which has high confidentiality and improves the security of the password.
[0157] Optionally, the processor 1310 is further configured to update the information corresponding to the second target bit in the first password information to the information corresponding to the first target bit, and delete the first target bit in the updated first password information to obtain the second password information.
[0158] In the embodiment of the present application, the security of the password can be improved by verifying the second password information obtained after processing the first password information.
[0159] In some embodiments of the present application, the first password information also includes information corresponding to the third target position;
[0160] Optionally, the processor 1310 is further configured to determine whether information corresponding to the third target position meets a preset verification condition.
[0161] In the embodiment of the present application, by inputting the information corresponding to the third target position, another layer of verification is added, and the security of the password is improved through multiple verifications.
[0162] The user input unit 1307 is further used to receive a first input of first information at a first position in the preset password information;
[0163] The processor 1310 is further configured to determine the first position as a first target position in response to a first input received by the user input unit 1307;
[0164] The user input unit 1307 is further used to receive a second input of the first information at a second position in the preset password information;
[0165] The processor 1310 is further configured to determine the second position as a second target location in response to a second input received by the user input unit 1307 .
[0166] In the embodiments of the present application, the user can set the first target position and the second target position according to his / her needs, thereby realizing the personalized setting of the password verification method.
[0167] The user input unit 1307 is further used to receive a third input for the third information in the preset password information;
[0168] The processor 1310 is further configured to determine a third position of the third information in the preset password information in response to a third input received by the user input unit 1307;
[0169] The user input unit 1307 is further used to receive a fourth input to the first setting interface, wherein the first setting interface includes a first control for representing pseudo password information and a second control for representing third information; the pseudo password information includes information in the preset password information except the third information;
[0170] The processor 1310 is further configured to determine, in response to a fourth input received by the user input unit 1307, an arrangement order of the first control and the second control along a preset direction;
[0171] The processor 1310 is further configured to determine the first target bit and the second target bit based on the arrangement order, the third position, and the number of information bits in the third information.
[0172] In the embodiments of the present application, the user can set the first target position and the second target position according to his / her needs, thereby realizing the personalized setting of the password verification method.
[0173] It should be understood that in the embodiment of the present application, the input unit 1304 may include a graphics processor (Graphics Processing Unit, GPU) 13041 and a microphone 13042, and the graphics processor 13041 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 1306 may include a display panel 13061, and the display panel 13061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1307 includes a touch panel 13071 and other input devices 13072. The touch panel 13071 is also called a touch screen. The touch panel 13071 may include two parts: a touch detection device and a touch controller. Other input devices 13072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1309 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1310 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1310.
[0174] 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 verification method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0175] The processor is a processor in the electronic device described 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.
[0176] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned password verification method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0177] 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.
[0178] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises one..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be noted that the scope of the method and device in the embodiment 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.
[0179] 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 software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0180] 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 verification method, characterized in that: The method comprises: receiving a third input for third information in the preset password information; In response to the third input, determining a third position of the third information in the preset password information; Receiving a fourth input to the first setting interface, wherein the first setting interface includes a first control for representing pseudo password information and a second control for representing the third information; the pseudo password information includes information in the preset password information except the third information; In response to the fourth input, determining an arrangement order of the first control and the second control along a preset direction; Determine a first target position and a second target position based on the arrangement order, the third position, and the number of information bits in the third information; Receive first password information input by a user; Identify information corresponding to a first target position from the first password information; Update the information corresponding to the second target position in the first password information to the information corresponding to the first target position, to obtain the second password information; When the second password information matches the preset password information, it is determined that the password verification is successful.
2. The method according to claim 1, characterized in that The updating of the information corresponding to the second target position in the first password information to the information corresponding to the first target position to obtain the second password information includes: The information corresponding to the second target position in the first password information is updated to the information corresponding to the first target position, and the first target position in the updated first password information is deleted to obtain the second password information.
3. The method according to claim 1, characterized in that The first password information also includes information corresponding to the third target position; Before determining that the password verification is successful, the method further includes: Determine whether the information corresponding to the third target position meets a preset verification condition.
4. A password verification device, characterized in that: The device includes: A third input receiving module, used to receive a third input for the third information in the preset password information; A third determining module, configured to determine, in response to the third input, a third position of the third information in the preset password information; a fourth input receiving module, configured to receive a fourth input to the first setting interface, wherein the first setting interface includes a first control for representing pseudo password information and a second control for representing the third information; the pseudo password information includes information in the preset password information except the third information; a fourth determining module, configured to determine, in response to the fourth input, an arrangement order of the first control and the second control along a preset direction; A fifth determination module, configured to determine a first target position and a second target position based on the arrangement order, the third position, and the number of information bits in the third information; A password information receiving module, used to receive first password information input by a user; An identification module, used to identify information corresponding to the first target position from the first password information; A password information processing module, used for updating the information corresponding to the second target position in the first password information to the information corresponding to the first target position, so as to obtain the second password information; The first verification module is used to determine that the password verification is successful when the second password information matches the preset password information.
5. The device according to claim 4, characterized in that The password information processing module is used for: The information corresponding to the second target position in the first password information is updated to the information corresponding to the first target position, and the first target position in the updated first password information is deleted to obtain the second password information.
6. The device according to claim 4, characterized in that The first password information also includes information corresponding to the third target position; and the device also includes: The second verification module is used to determine whether the information corresponding to the third target position meets a preset verification condition.
7. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the password verification method as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Password verification method and electronic equipment
CN103546287A
Method and system for entering password
CN103971048A
Method and device for decrypting based on voice print information
CN105631295A