/ Published in: PHP
URL: http://www.phpsnaps.com/snaps/view/rijndael-256-bit-encryption-using-mcrypt/
Here are some functions I found on the net that will allow you to easily do encryption / decryption as long as you have the mcrypt extension loaded with PHP.
Expand |
Embed | Plain Text
<? // Encrypt Function function mc_encrypt($encrypt, $mc_key) { $iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND); return $encode; } // Decrypt Function function mc_decrypt($decrypt, $mc_key) { $iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND); return $decrypted; } ?>
You need to login to post a comment.
