edu.vt.middleware.crypt.digest
Class SHA1
java.lang.Object
edu.vt.middleware.crypt.AbstractAlgorithm
edu.vt.middleware.crypt.AbstractRandomizableAlgorithm
edu.vt.middleware.crypt.digest.DigestAlgorithm
edu.vt.middleware.crypt.digest.SHA1
- All Implemented Interfaces:
- Algorithm, Randomizable, Cloneable
public class SHA1
- extends DigestAlgorithm
SHA1 contains functions for hashing data using the SHA-1
algorithm. This algorithm outputs a 160 bit hash.
- Version:
- $Revision: 2744 $
- Author:
- Middleware Services
|
Constructor Summary |
SHA1()
Creates an uninitialized instance of an SHA1 digest. |
SHA1(boolean randomize)
Creates a new SHA1 digest that may optionally be initialized with random
data. |
SHA1(byte[] salt)
Creates a new SHA1 digest and initializes it with the given salt. |
SHA1
public SHA1()
- Creates an uninitialized instance of an SHA1 digest.
SHA1
public SHA1(boolean randomize)
- Creates a new SHA1 digest that may optionally be initialized with random
data.
- Parameters:
randomize - True to randomize initial state of digest, false
otherwise.
SHA1
public SHA1(byte[] salt)
- Creates a new SHA1 digest and initializes it with the given salt.
- Parameters:
salt - Salt data used to initialize digest computation.
Copyright © 2003-2013 Virginia Tech. All Rights Reserved.