主权项 |
1. A method for sharing user passwords in browsers of a mobile terminal, comprising:
A) installing a menu for importing and exporting saved user information, which includes user accounts and corresponding passwords for websites, in each of the browsers of the mobile terminal; B) exporting the user information saved in the browser to a file in a predetermined format and saving and encrypting the file when the user information is requested to be exported from the browser and the browser receives an operating command of the user from the menu; C) decrypting and importing the user information encrypted and saved in the file in the predetermined format into the browser when the exported user information is requested to be imported in the browser and the browser receives the operating command of the user from the menu; wherein Step C comprises: C1) choosing a menu to import the saved user information when the exported user information is requested to be imported in the browser and the operating command of the user is received through the browser, and finding an encrypted file having the user information in the predetermined format, which serves as an importing file, based on the chosen menu for importing the saved user information; C2) decrypting the importing file, which is found, and reading a corresponding bit zone, and determining whether the decrypted importing file is valid or not according to the read bit zone; C3) sequentially reading user accounts and passwords for websites, which are included in the importing file, when the decrypted importing file is determined to be valid; determining whether the read user accounts and passwords for the websites have been saved in the browser; if no, saving the user accounts and passwords for the websites in the browser; wherein Step C3 comprises: C31) reading the bit zone of a first user information in the importing file: C32) reading the bit zone of the first user information saved in the browser; C33) determine whether the read bit zone of the first user information in the importing file is the same as the bit zone of the first user information saved in the browser; going to Step C34 if no; going to Step C36 if yes; C34) reading the bit zone of next user information saved in the browser and determining whether the position for saving the information in the browser is empty or not; going back to Step C33 if no going to Step C35 if yes; C35) saving the user information, which is currently read, in the importing file to be the user information in the current browser and going to Step C36; C36) reading the bit zone of the next user information in the importing file and determining whether the bit zone of the next user information in the importing file is empty or not ending the process if yes; going back to Step C32 if no. |