How to encrypt data in PHP
This is a fairly short and simple post! Have you aver wanted to store and encrypt data while developing in php?
If you want to store the value of the data in $password simply do this!
$enc_password = md5($password);
//To check the value agains the encrypted data you stored, do this
if($enc_password==md5($password) {
//YOUR CODE HERE
}
You can store the md5 [...]
Filed under: PHP, Web Development by Nathan Blazek
No Comments »









