com.croftsoft.core.security
Class DigestLib
java.lang.Object
com.croftsoft.core.security.DigestLib
public final class DigestLib
- extends Object
Static method library for creating message digests of byte streams.
- Since:
- 1998-10-04
- Version:
- 2003-03-27
- Author:
- David Wallace Croft
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
digest
public static byte[] digest(InputStream inputStream,
String algorithm)
throws IOException,
NoSuchAlgorithmException
- Throws:
IOException
NoSuchAlgorithmException
digest
public static byte[] digest(File file,
String algorithm)
throws IOException,
NoSuchAlgorithmException
- Throws:
IOException
NoSuchAlgorithmException
digest
public static byte[] digest(File file)
throws IOException,
NoSuchAlgorithmException
- Throws:
IOException
NoSuchAlgorithmException
CroftSoft Core Javadoc (2008-09-28 20:58:02)