| Package | Description |
|---|---|
| org.aoju.bus.crypto |
加密解密模块,实现了对JDK中加密解密算法的封装
|
| org.aoju.bus.crypto.asymmetric |
非对称加密的实现,包括RSA等
|
| Modifier and Type | Method and Description |
|---|---|
Ciphers |
Ciphers.initMode(int mode,
Key key)
初始化
Cipher为加密或者解密模式 |
Ciphers |
Ciphers.setParams(AlgorithmParameterSpec params)
设置
AlgorithmParameterSpec,通常用于加盐或偏移向量 |
Ciphers |
Ciphers.setRandom(SecureRandom random)
设置随机数生成器,可自定义随机数种子
|
| Modifier and Type | Field and Description |
|---|---|
protected Ciphers |
Crypto.ciphers
Cipher负责完成加密或解密工作
|
Copyright © 2022. All rights reserved.