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

Author:
Logi Ragnarsson (logir@logi.org)

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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

help

public static void help()

hashIt

public static Fingerprint hashIt(java.io.InputStream in,
                                 java.lang.String algorithm)
                          throws java.lang.Exception

main

public static void main(java.lang.String[] arg)
                 throws java.lang.Exception


Copyright 1997-2000 Logi Ragnarsson