public class HashUtil extends Object
| Constructor and Description |
|---|
HashUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
createCompactMD5(String scriptText) |
static HashValue |
createHash(File file,
String algorithm) |
static HashValue |
createHash(InputStream instr,
String algorithm) |
static HashValue |
createHash(String scriptText,
String algorithm) |
static HashValue |
sha1(byte[] bytes) |
static HashValue |
sha1(File file) |
static HashValue |
sha1(InputStream inputStream) |
public static HashValue createHash(InputStream instr, String algorithm)
public static HashValue sha1(byte[] bytes)
public static HashValue sha1(InputStream inputStream)
Copyright © 2013. All rights reserved