Algorithm
, Randomizable
, Cloneable
public class SHA512 extends DigestAlgorithm
SHA512
contains functions for hashing data using the SHA-512
algorithm. This algorithm outputs a 512 bit hash.
algorithm, randomProvider
randomByteSize
CHUNK_SIZE, digest, salt
Constructor | Description |
---|---|
SHA512() |
Creates an uninitialized instance of an SHA512 digest.
|
SHA512(boolean randomize) |
Creates a new SHA512 digest that may optionally be initialized with
random data.
|
SHA512(byte[] salt) |
Creates a new SHA512 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 SHA512()
public SHA512(boolean randomize)
randomize
- True to randomize initial state of digest, false
otherwise.public SHA512(byte[] salt)
salt
- Salt data used to initialize digest computation.Copyright © 2021. All rights reserved.