AES128下载页(下载需要注册)
<?PHP
require('./AES128.php');
$aes=new AES128(); // 实例化
$key=$aes->makeKey("china"); // key
$ciphertext = "0123456789abcdef"; //明文
$ct=$aes->blockEncrypt($ciphertext, $key);
$cpt=$aes->blockDecrypt($ct,$key);
echo("CipherText: $ct <br/> PlainText: $cpt <br/>");
?>