public class org.finos.legend.pure.runtime.java.compiled.generation.processors.support.function.cipher.AESCipherUtilTest extends java.lang.Object
{
public void <init>()
{
org.finos.legend.pure.runtime.java.compiled.generation.processors.support.function.cipher.AESCipherUtilTest v;
v := @this: org.finos.legend.pure.runtime.java.compiled.generation.processors.support.function.cipher.AESCipherUtilTest;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public void testEncryptDeCrypt() throws javax.crypto.NoSuchPaddingException, java.security.InvalidKeyException, java.security.NoSuchAlgorithmException, javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException, java.security.InvalidAlgorithmParameterException
{
byte[] v, v, v, v;
org.finos.legend.pure.runtime.java.compiled.generation.processors.support.function.cipher.AESCipherUtilTest v;
java.security.SecureRandom v;
java.lang.String v, v, v;
v := @this: org.finos.legend.pure.runtime.java.compiled.generation.processors.support.function.cipher.AESCipherUtilTest;
v = new java.security.SecureRandom;
specialinvoke v.<java.security.SecureRandom: void <init>()>();
v = newarray (byte)[16];
virtualinvoke v.<java.security.SecureRandom: void nextBytes(byte[])>(v);
v = staticinvoke <org.apache.commons.codec.binary.Base64: java.lang.String encodeBase64String(byte[])>(v);
v = "This is a secret!";
v = virtualinvoke v.<java.lang.String: byte[] getBytes()>();
v = staticinvoke <org.finos.legend.pure.runtime.java.extension.functions.shared.cipher.AESCipherUtil: byte[] encrypt(java.lang.String,byte[])>(v, v);
v = staticinvoke <org.finos.legend.pure.runtime.java.extension.functions.shared.cipher.AESCipherUtil: byte[] decrypt(java.lang.String,byte[])>(v, v);
v = new java.lang.String;
specialinvoke v.<java.lang.String: void <init>(byte[])>(v);
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("This is a secret!", v);
return;
}
}