public class HashUtil
extends java.lang.Object
Constructor and Description |
---|
HashUtil() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
hashBytes(byte[] in,
java.lang.String algorithm) |
java.lang.String |
hashDirMD5(java.io.File dir) |
java.lang.String |
md5(java.io.File in) |
java.lang.String |
md5(java.lang.String in) |
java.lang.String |
sha1(java.io.File in) |
java.lang.String |
sha1(java.lang.String in) |
byte[] |
sha1Bytes(byte[] in) |
java.lang.String |
sha1ToString(byte[] in) |
public java.lang.String md5(java.lang.String in)
public java.lang.String md5(java.io.File in)
public java.lang.String sha1(java.lang.String in)
public java.lang.String sha1(java.io.File in)
public java.lang.String sha1ToString(byte[] in)
public byte[] sha1Bytes(byte[] in)
public java.lang.String hashBytes(byte[] in, java.lang.String algorithm)
public java.lang.String hashDirMD5(java.io.File dir)