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