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