public class SHA1 extends Object
| Constructor and Description |
|---|
SHA1() |
| Modifier and Type | Method and Description |
|---|---|
static String |
digest(File file)
Creates a hash from a file
|
static String |
digest(File file,
int bufferSize)
Creates a hash from a file with the given buffer size
|
static String |
digest(String message)
Creates a message digest
|
protected static String |
toHex(byte[] bytes)
Converts a byte array to a hex string
|
public static String digest(String message)
message - public static String digest(File file, int bufferSize)
file - protected static String toHex(byte[] bytes)
bytes - Copyright © 2014. All Rights Reserved.