mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix test
This commit is contained in:
parent
b2e1b903ab
commit
31c211c096
@ -3,6 +3,7 @@ package cn.hutool.core.date;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.date.BetweenFormater.Level;
|
||||
import cn.hutool.core.date.format.FastDateFormat;
|
||||
import cn.hutool.core.lang.Console;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
|
@ -17,4 +17,13 @@ public class AESTest {
|
||||
Assert.assertEquals("d637735ae9e21ba50cb686b74fab8d2c", encryptHex);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void encryptPKCS7Test() {
|
||||
// 构建
|
||||
AES aes = new AES(Mode.CBC.name(), "pkcs7padding",
|
||||
"1234567890123456".getBytes(), "1234567890123456".getBytes());
|
||||
String encryptHex = aes.encryptHex("123456");
|
||||
Assert.assertEquals("d637735ae9e21ba50cb686b74fab8d2c", encryptHex);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user