| 程序包 | 说明 |
|---|---|
| net.jueb.util4j.security |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AesUtil
编码工具类
1.将byte[]转为各种进制的字符串
2.base 64 encode
3.base 64 decode
4.获取byte[]的md5值
5.获取字符串md5值
6.结合base64实现md5加密
7.AES加密
8.AES加密为base 64 code
9.AES解密
10.将base 64 code AES解密
|
class |
RsaUtil
非对称加密算法工具类
案例:
1.A要向B发送信息,A和B都要产生一对用于加密和解密的公钥和私钥。
|
Copyright © 2020. All rights reserved.