39 bool verify_passphrase(
const std::string& passphrase,
const std::string& salt,
const std::string& hash);
49 std::pair<std::string, std::string>
generate_hash(
const std::string& passphrase);
std::pair< std::string, std::string > generate_hash(const std::string &passphrase)
Generates a salted hash from the specified passphrase.
bool verify_passphrase(const std::string &passphrase, const std::string &salt, const std::string &hash)
Verifies the specified plain text passphrase against a salted hash.