#include <hash.hpp>
Public Member Functions | |
md5 (const std::string &input) | |
md5 (const std::string &input, const std::string &salt, int iteration_count=10) | |
virtual std::string | base64_digest () const override |
virtual std::string | hex_digest () const override |
Public Member Functions inherited from utils::hash_digest< 16 > | |
std::array< uint8_t, sz > | raw_digest () const |
Public Member Functions inherited from utils::hash_base | |
virtual | ~hash_base () |
Static Public Member Functions | |
static int | get_iteration_count (const std::string &hash) |
static std::string | get_salt (const std::string &hash) |
static bool | is_valid_prefix (const std::string &hash) |
static bool | is_valid_hash (const std::string &hash) |
Additional Inherited Members | |
Static Public Attributes inherited from utils::hash_digest< 16 > | |
static const unsigned int | DIGEST_SIZE |
Protected Attributes inherited from utils::hash_digest< 16 > | |
std::array< uint8_t, sz > | hash |
|
explicit |
Definition at line 65 of file hash.cpp.
References utils::hash_digest< 16 >::DIGEST_SIZE, and utils::hash_digest< 16 >::hash.
Referenced by md5().
utils::md5::md5 | ( | const std::string & | input, |
const std::string & | salt, | ||
int | iteration_count = 10 |
||
) |
Definition at line 110 of file hash.cpp.
References utils::hash_digest< 16 >::hash, and md5().
|
overridevirtual |
Implements utils::hash_base.
Definition at line 125 of file hash.cpp.
References utils::hash_digest< 16 >::hash.
Referenced by file_hash_raw(), campaignd::auth::generate_hash(), server_base::hash_password(), and campaignd::auth::verify_passphrase().
|
static |
Definition at line 87 of file hash.cpp.
References crypt64::decode(), and utils::hash_digest< 16 >::hash.
Referenced by server_base::hash_password(), and is_valid_hash().
|
static |
Definition at line 91 of file hash.cpp.
References utils::hash_digest< 16 >::hash.
Referenced by server_base::hash_password().
|
overridevirtual |
Implements utils::hash_base.
Definition at line 120 of file hash.cpp.
References utils::hash_digest< 16 >::hash.
Referenced by game_config::config_cache::read_cache().
|
static |
Definition at line 100 of file hash.cpp.
References get_iteration_count(), utils::hash_digest< 16 >::hash, and is_valid_prefix().
|
static |
Definition at line 95 of file hash.cpp.
References utils::hash_digest< 16 >::hash.
Referenced by server_base::hash_password(), and is_valid_hash().