edu.vt.middleware.crypt.digest
Class MD5
java.lang.Object
edu.vt.middleware.crypt.AbstractAlgorithm
edu.vt.middleware.crypt.AbstractRandomizableAlgorithm
edu.vt.middleware.crypt.digest.DigestAlgorithm
edu.vt.middleware.crypt.digest.MD5
- All Implemented Interfaces:
- Algorithm, Randomizable, Cloneable
public class MD5
- extends DigestAlgorithm
MD5 contains functions for hashing data using the MD5
algorithm. This algorithm outputs a 128 bit hash.
- Version:
- $Revision: 2744 $
- Author:
- Middleware Services
|
Constructor Summary |
MD5()
Creates an uninitialized instance of an MD5 digest. |
MD5(boolean randomize)
Creates a new MD5 digest that may optionally be initialized with random
data. |
MD5(byte[] salt)
Creates a new MD5 digest and initializes it with the given salt. |
MD5
public MD5()
- Creates an uninitialized instance of an MD5 digest.
MD5
public MD5(boolean randomize)
- Creates a new MD5 digest that may optionally be initialized with random
data.
- Parameters:
randomize - True to randomize initial state of digest, false
otherwise.
MD5
public MD5(byte[] salt)
- Creates a new MD5 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.