A toolkit for working with phylogenetic data.
v0.20.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
hashing.hpp File Reference
#include <iosfwd>
#include <string>

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
 

Enumerations

enum  HashingFunctions { kMD5, kSHA1, kSHA256 }
 List of the currently implemented hashing functions. More...
 

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...