public static final class PasswordHasher.HashData extends Object
| Modifier and Type | Field and Description |
|---|---|
byte |
cost |
byte[] |
rawHash |
byte[] |
rawSalt |
Version |
version |
| Constructor and Description |
|---|
HashData(byte cost,
Version version,
byte[] rawSalt,
byte[] rawHash) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
byte[] |
getAsBlobMessageFormat()
Get the "BKDF Password Hash Message Format 1" which is in blob/byte array form
|
String |
getAsEncodedMessageFormat()
Get the "BKDF Password Hash Message Format 2" which is a base64-url encoded
(rfc4648 "Base 64 Encoding with URL and Filename Safe Alphabet") message containing
all information needed to verify a password, including cost factor, version and salt.
|
int |
hashCode() |
void |
wipe()
Wipe the internal byte arrays for security purposes.
|
public final byte cost
public final Version version
public final byte[] rawSalt
public final byte[] rawHash
public HashData(byte cost,
Version version,
byte[] rawSalt,
byte[] rawHash)
public byte[] getAsBlobMessageFormat()
Currently this is the following format:
V C S S S S S S S S S S S S S S S S H H H H H H H H H H ...
public String getAsEncodedMessageFormat()
See getAsBlobMessageFormat() for the exact message format.
public void wipe()
Copyright © 2018. All rights reserved.