What method used in AES 128 Encryption in Cryptography Component?

I need to send AES-128 encrypted string from the server (PHP) on the android. I tried different versions of encryption AES-128 in PHP, but when decoding on the android receives an empty string.
Which AES-128 method should be used?
AES-128-CBC
AES-128-CFB
AES-128-CFB1
AES-128-CFB8
AES-128-OFB

AES-128-ECB is not working.

You are only allowed one account on this community. Which one should i delete. The one you asked this question with or this one.

https://community.kodular.io/admin/users/4336/knigthharsh21

Mentioned in docs.
If any exception occurs, returns empty string.
Try to decode in pho after encoding that it works or not maybe you encrypted wrongly

https://community.kodular.io/admin/users/4336/knigthharsh21

This One.

Hi @Peter
Will you please delete my second account ?
@sknow81

2 Likes

I had tried to decode in php. It gave empty string

So error in php code it decodes incorrectly

This is my code

$decrypted = openssl_decrypt($data, AES_128_CBC, $encryption_key);
echo “Decrypted: $decrypted”;