我有這樣的代碼:PHP的mcrypt的工作不正常
$original = 'zner5';
$new = mcrypt_decrypt(MCRYPT_3DES, 'keyCodeEncryption', 'C¹`Û‡」fa', 'ecb');
if($original == $new)
{
echo "$original == $new";
}
else
{
echo "$original != $new";
}
它輸出 'zner5 = zner5!'。爲什麼?
是否!strcmp($ original,$ new)有效? –