org.logi.crypto.demo
Class hash

java.lang.Object
  |
  +--org.logi.crypto.demo.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(java.lang.String msg)
           
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(java.lang.String msg)

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 (c) 1997-2001 Logi Ragnarsson - Distributed under the GPL