mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add base64 check
This commit is contained in:
@@ -149,7 +149,8 @@ public class AESTest {
|
||||
|
||||
@Test
|
||||
void issue3766Test() {
|
||||
Assertions.assertThrows(CryptoException.class, ()->
|
||||
Assertions.assertThrows(IllegalArgumentException.class, ()->
|
||||
// data必须为hex或base64
|
||||
SecureUtil.aes("8888888888888888".getBytes()).decryptStr("哈哈"));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user