I am using a Redhat Linux 7.1 box with Apache 1.3.26, and PHP 4.2.2
I want to take a string (password) that a user chooses and enter it into a MySQL database, but I want to encrypt it first. Secondarily, I want to be able to un-encyrpt the password so it can be viewed securely.
Can someone offer advice as to what PHP function will achieve this?
By the way, I have RTFM already, but am confused as there seems to be more than one option to do this, and I want to use the best, most secure method. Thus, my question.
Thanks.