public class SHA512Builder extends DigestAlgorithmBuilder
Builder for SHA-512 hashing algorithm.
This algorithm should be sufficient for many cases (e.g. password hashing).
If you require slightly lower execution time, you can also use SHA256Builder.
You can make potential attacks harder if you use salt (e.g. by using SaltingAdapter).
You can also do repeated hashing by using RepeatingDecorator if higher execution time is not an issue for you.
This class is immutable and can be considered thread safe.
| Constructor and Description |
|---|
SHA512Builder()
Creates a new builder for MD5 hashing algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAlgorithm()
Gets a name of algorithm supported by digest.
|
build, bytesRepresentation, encoding, repeated, salted, saltedpublic SHA512Builder()
protected String getAlgorithm()
DigestAlgorithmBuildergetAlgorithm in class DigestAlgorithmBuilderCopyright © 2014. All rights reserved.