Monday, 21 January 2013

PHP Password Encryption And Decription


<?php
//Key
$key = 'secretkey';

//To Encrypt:
$encrypted = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, 'mukesh', MCRYPT_MODE_ECB);
echo $encrypted;
echo "<br>";
//To Decrypt:
$decrypted = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key, $encrypted, MCRYPT_MODE_ECB);
echo $decrypted;
?>

No comments:

Post a Comment

IE7 Issues Text Indent

                 Unfortunately IE 7 is still widespread among the users hence while theming we have to give special importance to the grea...