mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix code
This commit is contained in:
parent
3421a8f54d
commit
355c5c163b
@ -17,6 +17,15 @@ public class AESTest {
|
||||
Assert.assertEquals("d637735ae9e21ba50cb686b74fab8d2c", encryptHex);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void encryptTest2() {
|
||||
String content = "test中文";
|
||||
AES aes = new AES(Mode.CTS, Padding.PKCS5Padding,
|
||||
"0CoJUm6Qyw8W8jue".getBytes(), "0102030405060708".getBytes());
|
||||
final String encryptHex = aes.encryptHex(content);
|
||||
Assert.assertEquals("8dc9de7f050e86ca2c8261dde56dfec9", encryptHex);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void encryptPKCS7Test() {
|
||||
// 构建
|
||||
|
Loading…
x
Reference in New Issue
Block a user