I need encryption in my app and thought about using javax.crypto.Cipher for that. I wonder if I can use it for desktop, android and iOS and if RoboVM supports it.
I want to use the following algorithm:
Cipher.getInstance("AES/CBC/PKCS5Padding");
I need encryption in my app and thought about using javax.crypto.Cipher for that. I wonder if I can use it for desktop, android and iOS and if RoboVM supports it.
I want to use the following algorithm:
Cipher.getInstance("AES/CBC/PKCS5Padding");
iOS does not support Java. Instead use CommonCrypto, part of Apple's Security framework.
Common Crypto does support AES (128 & 256 bit keys), CBC mode and PCKS7Padding.
Note: in the context of AES PKCS5Padding and PKCS7Padding are the same. See: crypto stackexchange