public class StrongAES extends Object
public static StrongAES getInstance()
public String encrypt(String plainText)
plainText
- the plain text to encrypt.public String decrypt(String cipherText) throws InvalidKeyException, BadPaddingException, IllegalBlockSizeException
cipherText
- the encrypted string.InvalidKeyException
- if there is a problem.BadPaddingException
- if there is a problem.IllegalBlockSizeException
- if there is a problem.Copyright © 2015 Collaborative Software Development Laboratory. All rights reserved.