mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
3421a8f54d
commit
355c5c163b
@ -17,6 +17,15 @@ public class AESTest {
|
|||||||
Assert.assertEquals("d637735ae9e21ba50cb686b74fab8d2c", encryptHex);
|
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
|
@Test
|
||||||
public void encryptPKCS7Test() {
|
public void encryptPKCS7Test() {
|
||||||
// 构建
|
// 构建
|
||||||
|
Loading…
x
Reference in New Issue
Block a user