public class SHA256Builder extends DigestAlgorithmBuilder
Builder for SHA-256 hashing algorithm.
This algorithm should be sufficient for many cases (e.g. password hashing).
If slightly higher execution time is not an issue for you, you can also use SHA512Builder.
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 |
|---|
SHA256Builder()
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 SHA256Builder()
protected String getAlgorithm()
DigestAlgorithmBuildergetAlgorithm in class DigestAlgorithmBuilderCopyright © 2014. All rights reserved.