Package | Description |
---|---|
org.dromara.hutool.crypto |
加密解密模块,实现了对JDK中加密解密算法的封装,入口为SecureUtil,实现了:
1.
|
org.dromara.hutool.crypto.asymmetric.paillier |
同态加密算法 Paillier
|
org.dromara.hutool.crypto.bc |
BouncyCastle库相关工具封装
|
org.dromara.hutool.crypto.symmetric |
对称加密算法实现,包括AES、DES、DESede等
|
Modifier and Type | Method and Description |
---|---|
static CipherMode |
CipherMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CipherMode[] |
CipherMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
JceCipher.init(CipherMode mode,
Cipher.Parameters parameters) |
void |
Cipher.init(CipherMode mode,
Cipher.Parameters parameters)
初始化模式和参数
|
Modifier and Type | Method and Description |
---|---|
void |
PaillierCipher.init(CipherMode mode,
Cipher.Parameters parameters) |
PaillierCrypto |
PaillierCrypto.initMode(CipherMode mode,
Key key)
初始化模式
加密模式下,使用
Cipher.ENCRYPT_MODE ,密钥使用公钥
解密模式下,使用Cipher.DECRYPT_MODE ,密钥使用私钥
|
Modifier and Type | Method and Description |
---|---|
void |
BCCipher.init(CipherMode mode,
Cipher.Parameters parameters) |
Modifier and Type | Method and Description |
---|---|
SymmetricCrypto |
SymmetricCrypto.setMode(CipherMode mode)
初始化模式并清空数据
|
SymmetricCrypto |
SymmetricCrypto.setMode(CipherMode mode,
byte[] salt)
初始化模式并清空数据
|
Copyright © 2025. All rights reserved.