摘要 |
<p>Proposed are an electronic device and a password authentication method therefor. The password authentication method comprises the following steps: an electronic device receiving an entered password of which the length is n-bit character strings, the n being equal to or greater than 1; the electronic device performing bit-by-bit comparison or random comparison on each character of the entered password and a pre-stored correct password; and the electronic device returning a comparison result in preset feedback time or random feedback time, wherein neither the preset feedback time nor the random feedback time is less than the time needed for comparing the n-bit character strings of the entered password. According to the password authentication method for an electronic device in the embodiments of the present invention, regardless of the comparison result, the electronic device returns the result of password authentication in the preset feedback time or the random feedback time, so that lawbreakers on the network cannot calculate a complete and correct password according to the rule of feedback time, and the security of the password of the electronic device is improved, thereby improving the security of user accounts.</p> |