If you are storing passwords in a MySQL database, the solution with the best simplicity/strength tradeoff is to use the built-in AES_ENCRYPT() function.
Refer to the manual, it is quite simple!
You can also use this to encrypt data used in your PHP scripts, in the same way that you can use MySQL to perform mathematical operations.
|