程序包 cn.zhxu.bp.utils
类 DigestUtils
java.lang.Object
cn.zhxu.bp.utils.DigestUtils
摘要工具类
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static byte[]static Stringstatic Stringstatic byte[]toMd5(byte[] source) static Stringstatic Stringstatic byte[]toSha1(byte[] source) static Stringstatic Stringstatic byte[]toSha224(byte[] source) static Stringstatic Stringstatic byte[]toSha256(byte[] source) static Stringstatic Stringstatic byte[]toSha512(byte[] source) static Stringstatic String
-
构造器详细资料
-
DigestUtils
public DigestUtils()
-
-
方法详细资料
-
toMd5
public static byte[] toMd5(byte[] source) - 返回:
- 长度 16 字节数组
-
toMd5
- 返回:
- 长度 32 的小写字符串
-
toMd5
- 返回:
- 长度 32 的小写字符串
-
toSha1
public static byte[] toSha1(byte[] source) -
toSha1
-
toSha1
-
toSha224
public static byte[] toSha224(byte[] source) -
toSha224
-
toSha224
-
toSha256
public static byte[] toSha256(byte[] source) -
toSha256
-
toSha256
-
toSha512
public static byte[] toSha512(byte[] source) -
toSha512
-
toSha512
-
digest
-
digest
public static String digest(String source, String algorithm, Charset charset) throws NoSuchAlgorithmException -
digest
-