Say for example you have a login and register script which uses the database to store a password. Most people MD5 encrypt the password then add it to the database. If someone can unencrypt that they'll find the password, a way to fix this is by adding something called a salt to the password. A salt is a randomly generated MD5 encrypted string, add that to the database then add the salt to the password then encrypt that, so it's md5($pass + $salt).
This will make it very secure and virtually impossible to unencrypt.
For more info put "php login with salts" in google you should find something.












Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode