update AES key of unit test

This commit is contained in:
Francis Dong
2021-08-31 15:28:03 +08:00
parent 1644cab60f
commit 31e8b3f80e

View File

@@ -96,14 +96,14 @@ class CodecFuncTests {
@Test @Test
void testAesEncrypt() { void testAesEncrypt() {
String funcExpression = "fn.codec.aesEncrypt(\"abc\", \"12345678123456781234567812345678\")"; String funcExpression = "fn.codec.aesEncrypt(\"abc\", \"1234567812345678\")";
Object result = FuncExecutor.getInstance().exec(null, funcExpression); Object result = FuncExecutor.getInstance().exec(null, funcExpression);
assertEquals("MQn0lgH5W6tS6Ii2c7UeSg==", result.toString()); assertEquals("ucSL5R/jQigQ1dxzsWi2kg==", result.toString());
} }
@Test @Test
void testAesDecrypt() { void testAesDecrypt() {
String funcExpression = "fn.codec.aesDecrypt(\"MQn0lgH5W6tS6Ii2c7UeSg==\", \"12345678123456781234567812345678\")"; String funcExpression = "fn.codec.aesDecrypt(\"ucSL5R/jQigQ1dxzsWi2kg==\", \"1234567812345678\")";
Object result = FuncExecutor.getInstance().exec(null, funcExpression); Object result = FuncExecutor.getInstance().exec(null, funcExpression);
assertEquals("abc", result.toString()); assertEquals("abc", result.toString());
} }