A toolkit for working with phylogenetic data.
v0.20.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
hashing.cpp File Reference
#include "genesis/utils/tools/hashing.hpp"
#include "genesis/utils/tools/md5.hpp"
#include "genesis/utils/tools/sha1.hpp"
#include "genesis/utils/tools/sha256.hpp"
#include <iostream>
#include <stdexcept>

Go to the source code of this file.

Namespaces

 genesis
 Container namespace for all symbols of genesis in order to keep them separate when used as a library.
 
 genesis::utils
 

Functions

std::string hash_from_file_hex (std::string const &filename, HashingFunctions hash_fct)
 Calcualte the hash of a file, using a given hashing function, and return its hex representation as a string. More...
 
std::string hash_from_stream_hex (std::istream &is, HashingFunctions hash_fct)
 Calcualte the hash of an input stream, using a given hashing function, and return its hex representation as a string. More...
 
std::string hash_from_string_hex (std::string const &input, HashingFunctions hash_fct)
 Calcualte the hash of a string, using a given hashing function, and return its hex representation as a string. More...