org.python.modules
Class SHA1

java.lang.Object
  extended byorg.python.modules.SHA1

public final class SHA1
extends Object

This class implements the SHA-1 message digest algorithm.

References:

  1. Bruce Schneier, "Section 18.7 Secure Hash Algorithm (SHA)," Applied Cryptography, 2nd edition, John Wiley & Sons, 1996

  2. NIST FIPS PUB 180-1, "Secure Hash Standard", U.S. Department of Commerce, May 1993.
    http://www.itl.nist.gov/div897/pubs/fip180-1.htm

Copyright © 1995-1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

Revision: 1.7

Since:
Cryptix 2.2.2
Author:
Systemics Ltd, David Hopwood

Field Summary
static PyString __doc__copy
           
static PyString __doc__digest
           
static PyString __doc__hexdigest
           
static PyString __doc__update
           
 
Constructor Summary
SHA1()
          Constructs a SHA-1 message digest.
 
Method Summary
 SHA1 copy()
          Add an array of bytes to the digest.
 String digest()
           
 String hexdigest()
          Print out the digest in a form that can be easily compared to the test vectors.
 String toString()
           
 void update(byte[] input)
          Add an array of bytes to the digest.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__doc__update

public static PyString __doc__update

__doc__copy

public static PyString __doc__copy

__doc__hexdigest

public static PyString __doc__hexdigest

__doc__digest

public static PyString __doc__digest
Constructor Detail

SHA1

public SHA1()
Constructs a SHA-1 message digest.

Method Detail

update

public void update(byte[] input)
Add an array of bytes to the digest.


copy

public SHA1 copy()
Add an array of bytes to the digest.


hexdigest

public String hexdigest()
Print out the digest in a form that can be easily compared to the test vectors.


digest

public String digest()

toString

public String toString()