public static class BCryptHashBean.BCryptParameters extends Object
$2n$cost$xxxxxxxxxxxxxxxxxxxxxxxxyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy.| Modifier | Constructor and Description |
|---|---|
protected |
BCryptParameters(String bCryptString)
Decodes bcrypt parameters from a string.
|
| Modifier and Type | Method and Description |
|---|---|
String |
encode()
Produces an encoded bcrypt hash string from bcrypt parameter data.
|
String |
encode(String hash)
Produces an encoded bcrypt hash string from bcrypt parameters and a provided hash string.
|
int |
getCost() |
byte[] |
getHash() |
byte[] |
getSalt() |
String |
getVersion() |
protected BCryptParameters(String bCryptString)
bCryptString - bcrypt hash of the form
$2n$cost$xxxxxxxxxxxxxxxxxxxxxxxxyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyypublic String getVersion()
public int getCost()
public byte[] getSalt()
public byte[] getHash()
public String encode()
$2n$cost$xxxxxxxxxxxxxxxxxxxxxxxxyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy.public String encode(String hash)
hash - Encoded bcrypt hash bytes; e.g. the value produced from BCryptHashBean.hash(Object...).$2n$cost$xxxxxxxxxxxxxxxxxxxxxxxxyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy.Copyright © 2003-2024 Virginia Tech. All Rights Reserved.