| Modifier and Type | Field and Description |
|---|---|
| private static final Set | |
| private static final byte[] | |
| private static final String | |
| private static final byte[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if the password corresponds to the Bcrypt String, otherwise falsea 60 character Bcrypt String, including
version, cost factor, salt and hash,
separated by '$' bcryptString, char[] the password as an array of chars password)Checks if a password corresponds to a 60 character Bcrypt String |
| public static boolean | Returns: true if the password corresponds to the Bcrypt String, otherwise falsea 60 character Bcrypt String, including
version, cost factor, salt and hash,
separated by '$' bcryptString, byte[] the password as an array of bytes password)Checks if a password corresponds to a 60 character Bcrypt String |
| private static String | Returns: a 60 character Bcrypt Stringthe version, 2y,2b or 2a. (2a is not backwards compatible.) version, byte[] the password password, byte[] a 16 byte salt salt, int the cost factor, treated as an exponent of 2 cost)Creates a 60 character Bcrypt String, including version, cost factor, salt and hash, separated by '$' |
| private static byte[] | |
| private static boolean | Returns: true if the password corresponds to the Bcrypt String, otherwise falsea 60 character Bcrypt String, including
version, cost factor, salt and hash,
separated by '$' bcryptString, byte[] the password as an array of chars password)Checks if a password corresponds to a 60 character Bcrypt String |
| private static String | Returns: a 60 character Bcrypt Stringthe version, may be 2b, 2y or 2a. (2a is not backwards compatible.) version, byte[] the password psw, byte[] a 16 byte salt salt, int the cost factor, treated as an exponent of 2 cost)Creates a 60 character Bcrypt String, including version, cost factor, salt and hash, separated by '$' |
| private static void | |
| public static String | Returns: a 60 character Bcrypt Stringthe password password, byte[] a 16 byte salt salt, int the cost factor, treated as an exponent of 2 cost)Creates a 60 character Bcrypt String, including version, cost factor, salt and hash, separated by '$' using version '2y'. |
| public static String | Returns: a 60 character Bcrypt Stringthe password password, byte[] a 16 byte salt salt, int the cost factor, treated as an exponent of 2 cost)Creates a 60 character Bcrypt String, including version, cost factor, salt and hash, separated by '$' using version '2y'. |
| public static String | Returns: a 60 character Bcrypt Stringthe version, may be 2b, 2y or 2a. (2a is not backwards compatible.) version, char[] the password password, byte[] a 16 byte salt salt, int the cost factor, treated as an exponent of 2 cost)Creates a 60 character Bcrypt String, including version, cost factor, salt and hash, separated by '$' |
| public static String | Returns: a 60 character Bcrypt Stringthe version, may be 2b, 2y or 2a. (2a is not backwards compatible.) version, byte[] the password already encoded as a byte array. password, byte[] a 16 byte salt salt, int the cost factor, treated as an exponent of 2 cost)Creates a 60 character Bcrypt String, including version, cost factor, salt and hash, separated by '$' |
| allowedVersions | back to summary |
|---|---|
| private static final Set<String> allowedVersions | |
| decodingTable | back to summary |
|---|---|
| private static final byte[] decodingTable | |
| defaultVersion | back to summary |
|---|---|
| private static final String defaultVersion | |
| encodingTable | back to summary |
|---|---|
| private static final byte[] encodingTable | |
| OpenBSDBCrypt | back to summary |
|---|---|
| private OpenBSDBCrypt() | |
| checkPassword | back to summary |
|---|---|
| public static boolean checkPassword(String bcryptString, char[] password) Checks if a password corresponds to a 60 character Bcrypt String
| |
| checkPassword | back to summary |
|---|---|
| public static boolean checkPassword(String bcryptString, byte[] password) Checks if a password corresponds to a 60 character Bcrypt String
| |
| createBcryptString | back to summary |
|---|---|
| private static String createBcryptString(String version, byte[] password, byte[] salt, int cost) Creates a 60 character Bcrypt String, including version, cost factor, salt and hash, separated by '$' | |
| decodeSaltString | back to summary |
|---|---|
| private static byte[] decodeSaltString(String saltString) | |
| doCheckPassword | back to summary |
|---|---|
| private static boolean doCheckPassword(String bcryptString, byte[] password) Checks if a password corresponds to a 60 character Bcrypt String
| |
| doGenerate | back to summary |
|---|---|
| private static String doGenerate(String version, byte[] psw, byte[] salt, int cost) Creates a 60 character Bcrypt String, including version, cost factor, salt and hash, separated by '$' | |
| encodeData | back to summary |
|---|---|
| private static void encodeData(StringBuilder sb, byte[] data) | |
| generate | back to summary |
|---|---|
| public static String generate(char[] password, byte[] salt, int cost) Creates a 60 character Bcrypt String, including version, cost factor, salt and hash, separated by '$' using version '2y'.
| |
| generate | back to summary |
|---|---|
| public static String generate(byte[] password, byte[] salt, int cost) Creates a 60 character Bcrypt String, including version, cost factor, salt and hash, separated by '$' using version '2y'.
| |
| generate | back to summary |
|---|---|
| public static String generate(String version, char[] password, byte[] salt, int cost) Creates a 60 character Bcrypt String, including version, cost factor, salt and hash, separated by '$' | |
| generate | back to summary |
|---|---|
| public static String generate(String version, byte[] password, byte[] salt, int cost) Creates a 60 character Bcrypt String, including version, cost factor, salt and hash, separated by '$' | |