Package | Description |
---|---|
org.dromara.hutool.crypto |
加密解密模块,实现了对JDK中加密解密算法的封装,入口为SecureUtil,实现了:
1.
|
org.dromara.hutool.crypto.bc |
BouncyCastle库相关工具封装
|
org.dromara.hutool.crypto.symmetric |
对称加密算法实现,包括AES、DES、DESede等
|
Modifier and Type | Method and Description |
---|---|
static Padding |
Padding.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Padding[] |
Padding.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static org.bouncycastle.crypto.BufferedBlockCipher |
BCUtil.wrap(org.bouncycastle.crypto.BlockCipher cipher,
Mode mode,
Padding padding)
将
BlockCipher 包装为指定mode和padding的BufferedBlockCipher |
Constructor and Description |
---|
AES(Mode mode,
Padding padding)
构造,使用随机密钥
|
AES(Mode mode,
Padding padding,
byte[] key)
构造
|
AES(Mode mode,
Padding padding,
byte[] key,
byte[] iv)
构造
|
AES(Mode mode,
Padding padding,
SecretKey key)
构造
|
AES(Mode mode,
Padding padding,
SecretKey key,
AlgorithmParameterSpec paramsSpec)
构造
|
AES(Mode mode,
Padding padding,
SecretKey key,
byte[] iv)
构造
|
DES(Mode mode,
Padding padding)
构造,使用随机密钥
|
DES(Mode mode,
Padding padding,
byte[] key)
构造
|
DES(Mode mode,
Padding padding,
byte[] key,
byte[] iv)
构造
|
DES(Mode mode,
Padding padding,
SecretKey key)
构造
|
DES(Mode mode,
Padding padding,
SecretKey key,
IvParameterSpec iv)
构造
|
DESede(Mode mode,
Padding padding)
构造,使用随机密钥
|
DESede(Mode mode,
Padding padding,
byte[] key)
构造
|
DESede(Mode mode,
Padding padding,
byte[] key,
byte[] iv)
构造
|
DESede(Mode mode,
Padding padding,
SecretKey key)
构造
|
DESede(Mode mode,
Padding padding,
SecretKey key,
IvParameterSpec iv)
构造
|
SM4(Mode mode,
Padding padding)
构造,使用随机密钥
|
SM4(Mode mode,
Padding padding,
byte[] key)
构造
|
SM4(Mode mode,
Padding padding,
byte[] key,
byte[] iv)
构造
|
SM4(Mode mode,
Padding padding,
SecretKey key)
构造
|
SM4(Mode mode,
Padding padding,
SecretKey key,
byte[] iv)
构造
|
SM4(Mode mode,
Padding padding,
SecretKey key,
IvParameterSpec iv)
构造
|
Copyright © 2025. All rights reserved.