public class Base64Encrypt extends Object
Description:
| 构造器和说明 |
|---|
Base64Encrypt(String salt,
byte padding)
传入一个 64位字符串数组,字符不能重复 最好不使用url特殊字符
|
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
decode(byte[] data)
对由Base64加密处理后的数据进行解密
|
byte[] |
decode(String str)
解密字符串
|
String |
decodeString(String str)
解密成字符串
|
byte[] |
encode(byte[] bytes)
对数据进行Base64加密 ,返回加密后的数据
|
byte[] |
encode(String data)
加密字符串
|
String |
encodeString(String str)
加密成字符串
|
public Base64Encrypt(String salt, byte padding)
salt - public byte[] encode(byte[] bytes)
bytes - 需要加密的数据public byte[] encode(String data)
data - public byte[] decode(byte[] data)
data - 需要解密运算的字符串public byte[] decode(String str)
str - str to be decodeCopyright © 2020. All rights reserved.