#include <hash.hpp>
Public Member Functions | |
std::string | get_salt () const |
virtual std::string | hex_digest () const override |
virtual std::string | base64_digest () const override |
Public Member Functions inherited from utils::hash_digest< BCRYPT_HASHSIZE, char > | |
std::array< char, sz > | raw_digest () const |
Public Member Functions inherited from utils::hash_base | |
virtual | ~hash_base () |
Static Public Member Functions | |
static bcrypt | from_salted_salt (const std::string &input) |
static bcrypt | from_hash_string (const std::string &input) |
static bcrypt | hash_pw (const std::string &password, bcrypt &salt) |
static bool | is_valid_prefix (const std::string &hash) |
Public Attributes | |
std::size_t | iteration_count_delim_pos |
Private Member Functions | |
bcrypt () | |
bcrypt (const std::string &input) | |
Additional Inherited Members | |
Static Public Attributes inherited from utils::hash_digest< BCRYPT_HASHSIZE, char > | |
static const unsigned int | DIGEST_SIZE |
Protected Attributes inherited from utils::hash_digest< BCRYPT_HASHSIZE, char > | |
std::array< char, sz > | hash |
|
private |
Definition at line 130 of file hash.cpp.
References is_valid_prefix(), and iteration_count_delim_pos.
|
overridevirtual |
Implements utils::hash_base.
Definition at line 189 of file hash.cpp.
References utils::hash_digest< BCRYPT_HASHSIZE, char >::hash.
|
static |
Definition at line 150 of file hash.cpp.
References BCRYPT_HASHSIZE, and utils::hash_digest< BCRYPT_HASHSIZE, char >::hash.
|
static |
Definition at line 139 of file hash.cpp.
References BCRYPT_HASHSIZE, and utils::hash_digest< BCRYPT_HASHSIZE, char >::hash.
Referenced by server_base::hash_password().
std::string utils::bcrypt::get_salt | ( | ) | const |
Definition at line 176 of file hash.cpp.
References BCRYPT_HASHSIZE, utils::hash_digest< BCRYPT_HASHSIZE, char >::hash, and iteration_count_delim_pos.
Definition at line 160 of file hash.cpp.
References BCRYPT_HASHSIZE, utils::hash_digest< sz, T >::hash, utils::hash_digest< BCRYPT_HASHSIZE, char >::hash, and php_crypt_blowfish_rn().
Referenced by server_base::hash_password().
|
overridevirtual |
Implements utils::hash_base.
Definition at line 184 of file hash.cpp.
References utils::hash_digest< BCRYPT_HASHSIZE, char >::hash.
|
static |
Definition at line 169 of file hash.cpp.
References utils::hash_digest< BCRYPT_HASHSIZE, char >::hash.
Referenced by bcrypt(), and server_base::hash_password().
std::size_t utils::bcrypt::iteration_count_delim_pos |
Definition at line 75 of file hash.hpp.
Referenced by bcrypt(), and get_salt().