Factory to create Hash algorithms. More...
#include <HashFactory.h>
Static Public Member Functions | |
static std::unique_ptr< Hash > | create (const std::string &name) |
Construct an instance of the Hash name More... | |
static std::vector< std::string > | registeredHashes () |
Get a vector of strings of the registered hashes. | |
static std::string | defaultHash () |
Get the default hash algorithm (currently MD5 if avialable, SHA256 otherwise) | |
Factory to create Hash algorithms.
Definition at line 27 of file HashFactory.h.
|
static |
Construct an instance of the Hash name
name | Name of the Hash (as given by Hash::name()) |
Definition at line 26 of file HashFactory.cpp.