org.logi.crypto.test
Class hash
java.lang.Object
org.logi.crypto.test.hash
- public class hash
- extends java.lang.Object
Compute a hash of the data on standard in and
write it to standard out. The name of the hash
function is taken on the command line, but defaults
to SHA1
Method Summary |
static Fingerprint |
hashIt(java.io.InputStream in,
java.lang.String algorithm)
|
static void |
help()
|
static void |
main(java.lang.String[] arg)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
help
public static void help()
hashIt
public static Fingerprint hashIt(java.io.InputStream in,
java.lang.String algorithm)
throws java.lang.Exception
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] arg)
throws java.lang.Exception
- Throws:
java.lang.Exception