Menu
Hello
I am looking for a way to encript and decript strings in php.
does anyone know of a function that does that?
I would like to use the encript in order to store an encripted password in the database.
I will use the decript to obtain the original password so it could be mail to the user (in case he/she forgot it).
At first I used hashing to encript the password, but I am not able to re-create the original password from the hash… I need another solution.
I will have to use a key for the encription, but I don’t need a private/public key pair. I need a single secret key which I will keep to myself.
thanks