Hi, I'm trying to get the same AES 256 encryption algorithm in php as in AutoIt, as it gives different results. AFAIK, it's the same for all algorithms. Here is what I have : #include <Crypt.au3>
$s = BinaryToString(_Crypt_EncryptData("mystr", "mykey", $CALG_AES_256))
ConsoleWrite($s & @CrLf) ;ret: ]ÞïW§Q(ç)}§bÖ!è„
$iv=mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND);
$s=mcrypt_encrypt(MCRYPT_RIJNDAEL_256, 'mykey', 'mystr', MCRYPT_MODE_ECB, $i