Author: Anass AIT BEN EL ARBI
- AES/CBC/NoPadding (128)
- AES/CBC/PKCS5Padding (128)
- AES/ECB/NoPadding (128)
- AES/ECB/PKCS5Padding (128)
- RSA/ECB/PKCS1Padding (1024, 2048)
- RSA/ECB/OAEPWithSHA-1AndMGF1Padding (1024, 2048)
- RSA/ECB/OAEPWithSHA-256AndMGF1Padding (1024, 2048)
for more details check out Java Ciphers
class variables :
private PrivateKey privateKey;
private PublicKey publicKey;
Encryption method:
String encrypt(String message)
Uses String encode(byte[])
to encode the encrypted message to a String
Decryption method:
String decrypt(String message)
Uses String decode(byte[])
to decode the encrypted message to a String