add base64 check

This commit is contained in:
Looly
2024-10-11 18:04:28 +08:00
parent 41fbaa8073
commit d941fa85a7
3 changed files with 10 additions and 3 deletions

View File

@@ -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("哈哈"));
}
}