public final class PasswordHashCreatorBCrypt extends AbstractPasswordHashCreator
IPasswordHashCreator that requires
a salt and uses the BCrypt algorithm.| Constructor and Description |
|---|
PasswordHashCreatorBCrypt() |
| Modifier and Type | Method and Description |
|---|---|
String |
createPasswordHash(IPasswordSalt aSalt,
String sPlainTextPassword)
The method to create a message digest hash from a password.
|
boolean |
requiresSalt() |
getAlgorithmName, toStringpublic static final String ALGORITHM
public boolean requiresSalt()
true if this hash creator requires a salt,
false if not.@Nonnull public String createPasswordHash(@Nonnull IPasswordSalt aSalt, @Nonnull String sPlainTextPassword)
PasswordSaltBCrypt.aSalt - Optional salt to be used. This parameter is only null
for backwards compatibility reasons.sPlainTextPassword - Plain text password. May not be null.Copyright © 2016–2019 Philip Helger. All rights reserved.