public class MD5 extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
bytes2string(byte[] bt)
将一个字节数组转化为可见的字符串
|
static MD5 |
getInstance() |
byte[] |
getMD5Bytes(byte[] content) |
String |
getMD5String(byte[] content) |
String |
getMD5String(String content) |
byte[] |
hash(byte[] data)
对二进制数据进行md5
|
byte[] |
hash(String str)
对字符串进行md5
|
public static MD5 getInstance()
public String getMD5String(byte[] content)
public byte[] getMD5Bytes(byte[] content)
public byte[] hash(String str)
str - public byte[] hash(byte[] data)
data - public String bytes2string(byte[] bt)
bt - Copyright © 2018–2019 Alibaba Group. All rights reserved.