The Battle for Wesnoth 1.21.0-dev
 
Loading...
Searching...
No Matches
Namespaces | Functions
auth.cpp File Reference
#include "server/campaignd/auth.hpp"
#include "hash.hpp"
#include "serialization/base64.hpp"
#include <ctime>
#include <boost/random.hpp>
#include <boost/generator_iterator.hpp>
Include dependency graph for auth.cpp:

Go to the source code of this file.

Namespaces

namespace  campaignd
 
namespace  campaignd::auth
 

Functions

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