Click to See Complete Forum and Search --> : Mcrypt
SFGAmNewsRuler
09-30-2003, 09:10 PM
I want to use Mcrypt to encrypt passwords for one of my site's features, Coaster Tracker. It is part of my security upgrade I want to get done. I am running PHP 4.3.1 and have no MySQL. I checked PHP.net and I do not fully understand the Mcrpyt function. I just want basic encryption with the most security.
SFGAmNewsRuler
10-01-2003, 03:47 PM
How can I encrypt plain text? I don't know what all the keys and stuff are. I don't understand php.net.
First of all, does your server support Mcrypt? It isn't a default part of PHP, so check on that first...
Nevermore
10-02-2003, 01:33 PM
You don't need to decrypt passwords for anything so you would be best off using a hashing function such as md5() or hash(). Of these, md5 is easier, just put your password to encrypt between the parentheses and it returns the hashed version.
SFGAmNewsRuler
10-05-2003, 09:03 PM
Sorry, I should have checked first, because my server doesn't support Mcrypt. I am going with md5, but is their a way to reverse it so i can have a forgotten password function?
No, MD5 is a one way encryption algorithm. You'd have to re-generate the user a new password.
SFGAmNewsRuler
10-07-2003, 04:28 PM
Thank you for the help!
Happy to help (for the help I gave... ;))