1. Technical Field
The present disclosure relates to an electronic device with a password generating function and a method thereof.
2. Description of Related Art
For security requirements, passwords are set for encrypting/decrypting files or set authorization for users to login to an electronic device or a server. Generally, the password is a combination of characters and numbers and it is sometimes difficult for the user to remember.
The components of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout several views.
The data storage 10 stores a number of password keys. The password keys are used to generate passwords. The password keys include, but not limited to, colors and geometric figures. The detail description of how to generate the passwords using the password keys will be described below.
The processing unit 20 includes a password editing interface generating module 21, a password editing module 22, and a password identification module 24.
The password editing interface generating module 21 is configured for generating a password editing interface 200 on the display 40 according to operations on the input unit 30. As shown in
When generating the passwords, the password editing module 22 transmits the selected password keys from the password key area 210 to the password editing area 220 in response to a selection operation.
The password identification module 24 determines whether the generated password matches a pre-stored password in response to a login operation or a decryption operation on the input unit 30. If the generated password matches the pre-stored password, a predetermined function of the operation on the input unit 30 is activated, for example, logging in to an electronic device or a server, or decrypting a file. If the generated password does not match the pre-stored password, a warning that the password is not correct is generated. In this embodiment, the graphic password is taken for example. The detail description about that how to determine the match of the graphic password and the pre-stored password will be described below.
In this embodiment, each geometric figure includes a number of feature points. As shown in
When determining whether the generated graphic password matches the pre-stored password. The password identification module 23 obtains the coordinates of the feature points of the generated graphic password from the data storage 11, and determines whether the feature points of the graphic password are the same as the feature points of the pre-stored password according to coordinates of the feature points of the graphic password and the pre-stored password. If the feature points are the same as the feature points of the pre-stored password, the password identification module 23 determines that the graphic password matches the pre-stored password. If there is one or more feature points are not the same as the feature points of the pre-stored password, the password identification module 23 determines that the graphic password does not match the pre-stored password.
In this embodiment, when selecting the password keys, the colors in the password key area 210 can be selected to fill in the selected geometric figure(s) in the password editing area 220. The selected geometric figure(s) and the colors are combined together to form a graphic password, as shown in the password editing area 220. The formed graphic password is stored to the data storage 11. After determined that the feature points matches the feature points of the pre-stored password, the password identification module 23 further obtains pixel of a predetermined area in each geometric figures, and determined whether the obtained pixel matches the pixel of the corresponding geometric figure of pre-stored graphic password, if the pixel of one geometric figure does not match the pixel of corresponding geometric figure of the pre-stored graphic password, the password identification module 23 determines that the graphic password does not match the pre-stored password.
In step S402, the password editing module 22 transmits the selected password keys from the password key area 210 of the password editing interface 200 to the password editing area 220 of the password editing interface 200 in response to the selection operation.
In step S403, the password editing module 22 edits the selected password key to generate a graphic password and stores the password to the data storage 11.
In step S404, the password identification module 24 determines whether the generated password matches the pre-stored password in response to the login operation or the decryption operation.
In step S405, if the generated password matches the pre-stored password, a predetermined function is performed, such as loading to an electronic device or server, or decrypting a file.
In step S406, if the generated password does not match the pre-stored password, the warning that the password is not correct is generated.
Although, the present disclosure has been specifically described on the basis of preferred embodiments, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201010197876.1 | Jun 2010 | CN | national |