php - how do I save a ftp password but get the plain password later -


okay so,

i have problem need save password on server hash php's crypt hashing function, need plain password test users password can connect own ftp server (with password entered)... , i'm stumped ideas on how this...

i going create function adds random set of characters password , remove them later when try plain password... (which bad know) ideas?

question: anyway save plain password , secure hashing password... said above need use plain password connect ftp server, can't compare hashed passwords...

thanks in advanced...

if using mysql data storage use des_encrypt

[...] set password = des_encrypt($password) [...]

alternatively try encrypt

to reverse use des_decrypt or decrypt

this way have passwords stored in secure way can decrypt use in plaintext @ will.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -