public class SymetricEncryptionTest {
@Test
public void test() throws Exception {
SymetricEncryptionUtil util = SymetricEncryptionUtil.getInstance();
byte[] encrypted = util.encrypt("test".getBytes(), "12345678", "AES/CBC/PKCS5Padding");
System.out.println("Encrypted Text: "+new String(Base64.encodeBase64(encrypted)));
byte[] decrypted = util.decrypt(encrypted, "12345678", "AES/CBC/PKCS5Padding");
System.out.println("Plain Text: "+new String(decrypted));
}