Help for this page
function encrypt_text($plain_text, $key){ bin2hex(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $plain_text, MCRYPT_ +MODE_ECB)); return $encrypt_text; }
use Crypt::Rijndael; use Crypt::CBC; ... my $cipher_text = $cipher->encrypt($plain_text); my $cipher_block = unpack ("H*", $cipher_text); return $cipher_block;