public class Sha1DigestUtil
extends java.lang.Object
| 构造器和说明 |
|---|
Sha1DigestUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
sha(byte[] data)
Calculates the SHA digest and returns the value as a
byte[]. |
static byte[] |
sha(java.lang.String data)
Calculates the SHA digest and returns the value as a
byte[]. |
static java.lang.String |
shaHex(byte[] data)
Calculates the SHA digest and returns the value as a hex string.
|
static java.lang.String |
shaHex(java.lang.String data)
Calculates the SHA digest and returns the value as a hex string.
|
public static byte[] sha(byte[] data)
byte[].data - Data to digestpublic static byte[] sha(java.lang.String data)
byte[].data - Data to digestpublic static java.lang.String shaHex(byte[] data)
data - Data to digestpublic static java.lang.String shaHex(java.lang.String data)
data - Data to digest