getInstance returns NoSuchAlghoritmExeptoin, although when checked by the operator, one of them is AndroidOpenSSL: Cipher. AES/ECB/PKCS5Padding
Cipher cipher;
cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
NoSuchAlghoritmExeption happens when you don't have that algorithm on your device environment.
Well, the first question here is - why do you need ECB? It has a bunch of disadvantages
Have you tried the CBC? It will work probably on all Android environments. My steps would be next:
EBC, it also has PKCS5Padding, Cipher.getInstance("AES/CBC/PKCS7PADDING")Describe your issue in a more detailed way, please.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With