AES类

AES类

Demo



include("./AES.class.php");

$z = "abcdefgh01234567abcdefgh01234567"; // length 32

$aes = new AES($z);

$data = 'abc';

$e = $aes->encrypt($data);
$d = $aes->decrypt($e);

echo 'Encrypt : ' . $e;
echo '<br>';
echo 'Decrypt : ' . $d;

点击下载:aes