Home > Back-end >  Delphi 10 mobile development how to save the password and read saved passwords?
Delphi 10 mobile development how to save the password and read saved passwords?

Time:12-08

In order to realize the automatic login,
In other words, how to save the data on a mobile phone, and how to read the data on the phone?

CodePudding user response:

My general approach is to use fireDAC directly connect a sqlite database, use it to save and read the user name/password
And it can be encrypted, but note that it is encrypted, using currently popular sqlite management tool is unable to open (even if you have a password)

CodePudding user response:

reference 1st floor keiy response:
my general approach is to use fireDAC directly connect a sqlite database, use it to save and read the user name/password
And it can be encrypted, but note that it is encrypted, using currently popular sqlite management tool is unable to open (even if you have a password)


I mean the APP after the success of the login, the user name and password saved on the phone, next time no longer enter the user name and password when login, using a mobile phone has saved on the user name and password, and server user name and password in the database to check,

CodePudding user response:

If it is a standalone APP, you can do so
If you are a website (web application service), you can use the user name/password on a web server

CodePudding user response:

Don't directly to save the user's password, the stored password hash value, can be used, such as md5, sha1, sha512 algorithms, such as this is a painful lesson in CSDN,

CodePudding user response:

In terms of FIREMONKEY, DELPHI can create INI file to store information, and the VCL is the same, but release cannot use FREE, use FreeAndNil () method, I have been in the lane, is very convenient, need to use TPATH,

CodePudding user response:

Save the file, there is no problem

CodePudding user response:

S:=System. IOUtils. TPath. GetDocumentsPath + PathDelim + '1. TXT';
Then use text written to the file, the file is mobile phone software installation directory, as to how to encrypt it literally, so convenient to read and write, no database,
  • Related