$key = "12345678876543211234567887654321";
$iv = "1234567887654321";
$plaindata = "This is a test string";
$enc = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $plaindata, MCRYPT_MODE_CBC, $iv));
$str = hash_hmac("sha256", utf8_encode($iv . '.' . $enc), utf8_encode($key));
echo($str);
这给了我 e63d4ab83f90cfec1acdaf831091b6394167ae728b657e44afad1e7553843eeb
如何在 ColdFusion9 开发版中获得相同的结果?