| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
aesDecrypt(byte[] content,
byte[] key)
AES解密
|
static byte[] |
aesEncrypt(byte[] content,
byte[] key)
AES加密
|
static byte[] |
md5(byte[] bytes)
获取字符数组的MD5码
|
static byte[] |
md5(String text)
获取字符串的MD5码
|
static byte[] |
md5(String text,
String charsetName)
获取字符串的MD5码
|
static String |
md5Base58String(byte[] bytes)
获取字符数组的Base58编码MD5码
|
static String |
md5Base58String(String text)
获取字符串的Base58编码MD5码
|
static String |
md5Base58String(String text,
String charsetName)
获取字符串的Base58编码MD5码
|
static String |
md5HexString(byte[] bytes)
获取字符数组的Hex编码MD5码
|
static String |
md5HexString(String text)
获取字符串的Hex编码MD5码
|
static String |
md5HexString(String text,
String charsetName)
获取字符串的Hex编码MD5码
|
static byte[] |
sha1(byte[] bytes)
获取字符数组的SHA1码
|
static byte[] |
sha1(String text)
获取字符串的SHA1码
|
static byte[] |
sha1(String text,
String charsetName)
获取字符串的SHA1码
|
static String |
sha1Base58String(byte[] bytes)
获取字符数组的Base58编码SHA1码
|
static String |
sha1Base58String(String text)
获取字符串的Base58编码SHA1码
|
static String |
sha1Base58String(String text,
String charsetName)
获取字符串的Base58编码SHA1码
|
static String |
sha1HexString(byte[] bytes)
获取字符数组的Hex格式SHA1码
|
static String |
sha1HexString(String text)
获取字符串的Hex格式SHA1码
|
static String |
sha1HexString(String text,
String charsetName)
获取字符串的Hex格式SHA1码
|
static int |
skip32Decrypt(long value,
String key)
将使用skip32加密的值解密
|
static long |
skip32Encrypt(int value,
String key)
将value进行skip32加密
|
public static byte[] md5(byte[] bytes)
bytes - 字符数组public static byte[] md5(String text)
text - 字符串public static byte[] md5(String text, String charsetName)
text - 字符串charsetName - 字符串的编码方式public static String md5Base58String(byte[] bytes)
bytes - 字符数组public static String md5Base58String(String text)
text - 字符串public static String md5Base58String(String text, String charsetName)
text - 字符串charsetName - 字符串的编码方式public static String md5HexString(byte[] bytes)
bytes - 字符数组public static String md5HexString(String text)
text - 字符串public static String md5HexString(String text, String charsetName)
text - 字符串charsetName - 字符串的编码方式public static byte[] sha1(byte[] bytes)
bytes - 字符数组public static byte[] sha1(String text)
text - 字符串public static byte[] sha1(String text, String charsetName)
text - 字符串charsetName - 字符串的编码方式public static String sha1HexString(byte[] bytes)
bytes - 字符数组public static String sha1HexString(String text)
text - 字符串public static String sha1HexString(String text, String charsetName)
text - 字符串charsetName - 字符串的编码方式public static String sha1Base58String(byte[] bytes)
bytes - 字符数组public static String sha1Base58String(String text)
text - 字符串public static String sha1Base58String(String text, String charsetName)
text - 字符串charsetName - 字符串的编码方式public static byte[] aesEncrypt(byte[] content,
byte[] key)
content - 要加密的内容key - 密钥public static byte[] aesDecrypt(byte[] content,
byte[] key)
content - 要解密的内容key - 密钥public static long skip32Encrypt(int value,
String key)
value - 要加密码的值key - 加密密钥public static int skip32Decrypt(long value,
String key)
value - 要解决的值key - 解密密钥Copyright © 2020. All rights reserved.