//
// https://github.com/WelkinXie/AESCipher-Java
//
import java.io.UnsupportedEncodingException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
public class Tester {
public static void main(String[] args) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, UnsupportedEncodingException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException {
System.out.println(">>>>>>>>>>> ");
final String plainText = "abc`~!@#$%^&*()_+-=':;?,./|{}[]\\\"xyz123";
final String key = "16BytesLengthKey";
System.out.println("" + plainText);
System.out.println("" + key);
String string = AESCipher.aesEncryptString(plainText, key);
System.out.println(" Base64 " + string);
String decryptedText = AESCipher.aesDecryptString(string, key);
System.out.println("" + decryptedText);
System.out.println("