Algorithm
, Randomizable
, Cloneable
public class MD2 extends DigestAlgorithm
MD2
contains functions for hashing data using the MD2 algorithm.
This algorithm outputs a 128 bit hash.
algorithm, randomProvider
randomByteSize
CHUNK_SIZE, digest, salt
Constructor | Description |
---|---|
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.
|
getAlgorithm, getRandomData, setRandomProvider, toString
getRandomByteSize, setRandomByteSize
clone, digest, digest, digest, digest, getDigest, getRandomSalt, newInstance, setDigest, setSalt
public MD2()
public MD2(boolean randomize)
randomize
- True to randomize initial state of digest, false
otherwise.public MD2(byte[] salt)
salt
- Salt data used to initialize digest computation.Copyright © 2021. All rights reserved.