Encrypt string with public key only
- by vlahovic
i'm currently working on a android project where i need to encrypt a string using 128 bit AES, padding PKCS7 and CBC. I don't want to use any salt for this.
I've tried loads of different variations including PBEKey but i can't come up with working code. This is what i currently have:
String plainText = "24124124123";
String pwd =…