public class Digest extends Object
Constructor and Description |
---|
Digest() |
Modifier and Type | Method and Description |
---|---|
static String |
byteArrayToHexString(byte[] in)
Convert a byte[] array to readable string format.
|
static String |
digestFile(String pathName)
Create a message digest for a file using any supported digest method.
|
static String |
digestFile(String method,
String pathName)
Create a message digest for a file using any supported digest method.
|
static String |
digestPhrase(String phrase)
Create a message digest for a phrase using the MD5 method.
|
static String |
digestPhrase(String method,
String phrase)
Create a message digest for a phrase using any supported digest method.
|
static long |
lastModified(String pathName)
Determine when a file was last modified.
|
static void |
main(String[] args) |
public static void main(String[] args)
public static long lastModified(String pathName)
public static String digestPhrase(String phrase) throws Exception
Exception
public static String digestPhrase(String method, String phrase) throws Exception
Exception
public static String digestFile(String pathName) throws Exception
Exception
public static String digestFile(String method, String pathName) throws Exception
Exception
public static String byteArrayToHexString(byte[] in)
in
- byte[] buffer to convert to string formatCopyright © 2008-2009 Regents University of California. All Rights Reserved.