i tried to encrypt a text in as3crypto via the demo app.
now i am trying to decrypt the crypted text via php but it seems that the text is not properly decrypted. has anyone know how to properly decrypt it via PHP? or am I doing it wrong? please enlighten me...
here's the scenario:
encrypt this in http://crypto.hurlant.com/demo/:
encryption: AES
mode: CBC
padding: none
key: 11918f8bcd112e92744125008722050c
text: Lorem ipsum dolor sit amet, consectetur adipiscing elit. In ut massa nec purus laoreet posuere quis vitae tortor.
initialize vector: leave it blank
press encrypt. select base64 and copy the cipher text.
make a php script that has these codes and run it:
$cipher = MCRYPT_RIJNDAEL_128;
$mode = MCRYPT_MODE_CBC;
$key = "11918f8bcd112e92744125008722050c";
$cipher = "PLACE CIPHER TEXT HERE...";
$data = base64_decode($cipher);
echo mcrypt_decrypt($cipher, $key, $data, $mode);