net.sf.torrentsniffer.hash
Class SHA1Impl

java.lang.Object
  extended bynet.sf.torrentsniffer.hash.SHA1Impl
All Implemented Interfaces:
SHA1

public class SHA1Impl
extends java.lang.Object
implements SHA1

Class is used for encoding data with the SHA-1 algorithm.

Author:
Larry Williams

Constructor Summary
SHA1Impl()
           
 
Method Summary
 byte[] digest(byte[] data)
          Hash data using the SHA1Impl algorithm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SHA1Impl

public SHA1Impl()
Method Detail

digest

public byte[] digest(byte[] data)
Hash data using the SHA1Impl algorithm.

Specified by:
digest in interface SHA1
Parameters:
data -
Returns:


Copyright © 2004 Larry Williams. All Rights Reserved.