The Battle for Wesnoth  1.19.0-dev
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

 campaignd
 
 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. More...
 
std::pair< std::string, std::string > campaignd::auth::generate_hash (const std::string &passphrase)
 Generates a salted hash from the specified passphrase. More...