public final class PasswordHashCreatorPBKDF2_1000_48 extends AbstractPasswordHashCreatorPBKDF2
IPasswordHashCreator that requires
a salt and uses the PBKDF2.| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM |
static int |
HASH_BYTE_SIZE |
static int |
PBKDF2_ITERATIONS |
PBKDF2_ALGORITHM| Constructor and Description |
|---|
PasswordHashCreatorPBKDF2_1000_48() |
| Modifier and Type | Method and Description |
|---|---|
String |
createPasswordHash(IPasswordSalt aSalt,
String sPlainTextPassword)
The method to create a message digest hash from a password.
|
pbkdf2, requiresSaltgetAlgorithmName, toStringpublic static final String ALGORITHM
public static final int PBKDF2_ITERATIONS
public static final int HASH_BYTE_SIZE
@Nonnull public String createPasswordHash(@Nullable IPasswordSalt aSalt, @Nonnull String sPlainTextPassword)
IPasswordHashCreatoraSalt - Optional salt to be used. This parameter is only null
for backwards compatibility reasons.sPlainTextPassword - Plain text password. May not be null.Copyright © 2014–2015 Philip Helger. All rights reserved.