Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

AES 256 encryption in autoit <> php

$
0
0
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, $iv); echo $s; //ret: —¹±x"ÖêÆí~ðr£)²€M_æ˜ë×.NƒëÜ^ï}
I tried different MCRYPT_MODE constants in php without any success and I don't know if this can be changed in AutoIt.

Thanks for any help.

Br, FireFox.

Viewing all articles
Browse latest Browse all 12506

Trending Articles