1. Technical Field
The present disclosure relates to an electronic device with a password protection function and a method thereof.
2. Description of Related Art
If an electronic device, such as a remote server, has an authorization function, when a user logins onto the electronic device, a user ID and a password registered before are required to be input. Generally, the user ID and the password are a combination of characters and numbers. When the user inputs the user ID and the password online, the user ID and the password can be easily stolen by a Trojan-horse program, and thus resulting in the loss of the personal information of the user.
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.
Referring to
The registration module 121 receives a registration signal associated with a registration input from the input unit 11 and generates a registration interface 2, as shown in
The six labeled sub-areas are selected to input characters 4, 6, 5, 4, 3, and 1. Different user can select different sub-areas to input characters. Each of the sub-areas is designated a distinctive attribute. In the exemplary embodiment, the attribute of each sub-area can be an identification code designated to represent each sub-area or an area size of each sub-area. The identification codes of the ten sub-areas can be 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10.
After all the personal information is input, the registration module 121 generates the registration password according to the characters input in the sub-areas and the attributes of the corresponding sub-areas through a predetermined rule. The predetermined rule combines the characters and the attributes and puts the characters in front of the attributes. For example, if the characters input in the first sub-area 221, the second sub-area 222, the third sub-area 223, the fifth sub-area 224, the sixth sub-area 225, and the eighth sub-area 226 are 4, 6, 5, 4, 3, and 1. The identification code of the first sub-area 221, the second sub-area 222, the third sub-area 223, the fifth sub-area 224, the sixth sub-area 225, and the seventh sub-area 226 respectively are 1, 2, 5, 6, and 7. The registration password is 46543112567 according to the predetermined rule. The predetermined rule can be provided by the electronic device 1 or can be defined by the user. After the registration password is generated, the registration module 121 stores the registration ID, the registration password, and additional personal information to the data storage 14.
The password generation module 122 is for receiving a login signal associated with a login input from the input unit 11 and generates a login interface 3, as shown in
The password identification module 123 determines whether the login ID and the login password match the registration ID and the registration password stored in the data storage 14. If the login ID and the login password do not match the registration ID and the registration password, the password identification module 123 generates a notice to notify the user that the login password and/or the login ID is incorrect. If the login ID and the login password match the registration ID and the registration password, the user is allowed to access required data in the electronic device 1.
In step S402, the registration module 121 receives the personal information input through the registration interface 2.
In step S403, the registration module 121 generates the registration password according to the characters input in the sub-areas of the password input area 22 and the attributes of the corresponding sub-areas through the predetermined rule.
In step S404, the registration module 121 stores the registration ID, the registration password, and additional personal information to the data storage 14.
In step S502, the password generation module 122 receives the login ID and the characters input in the sub-areas of the login interface 3.
In step S503, after the enter button 33 is pressed, the password generation module 122 generates the login password according to the characters input in the sub-areas of the password input area 32 and the attributes of the corresponding sub-areas through the predetermined rule.
In step S504, the password identification module 123 determines whether the login ID and the login password match the registration ID and the registration password stored in the data storage 14.
In step S505, the password identification module 123 generates the notice to notify the user that the password and/or login password is incorrect if the login ID and the login password do not match the registration ID and the registration password.
In step S506, the user is allowed to access the required data if the login ID and the login password match the registration ID and the registration password.
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 |
|---|---|---|---|
| 200910312025.4 | Dec 2009 | CN | national |