Possible Duplicate:
Why does this AES encryption on an iPad and decryption in PHP fail?
I use objective c to encrypt data and php to decrypt
this my code in objective c
NSString *log=[@"enfin on a terminé le projet de cette anné" AES256EncryptWithKey:key];
NSString *decr=[@"k6MDFVLV3UrxD63xc1gZBQ==" AES256DecryptWithKey:key];
and this my function in php
$key = "1234567891234567";
$st = urldecode(trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_128,$key, $tmp_st, MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB), MCRYPT_RAND))));
echo("<br>");
// decrypted data
echo "decryptage de (admin) de objective c : ". $st ;
now all work ,but when i use big string more 18 string this code not work