PHP Snippets

Name:Encrypt Password
Description: Uses PHP's md5() function to encrypt password.

Code below...
> <?php

  
//You can use the md5 function to encrypt password 

  //Here's an example of an encryption
  
$pass md5(mypasswordisthis);

  
//Display the result
  
echo $pass;
  
  
//Above result: 9715dffb62acf032c1fa4bb191f57d88

  //Obviously that just a quick and easy example
  
  //You can use this for submitted forms like below

  //Get the value of input "password"
  
$pass $_POST['password'];
  
//Encrypt the above variable
  
md5($pass);

?>

« Back to PHP Snippets

Home | Site Map | Privacy Policy | Advertising | Contact Us
Copyright © 2006-2014 r2xDesign.net - All Rights Reserved.
eXTReMe Tracker