Wt
4.11.1
|
A cryptograhpic hash function implemented using MD5. More...
#include <Wt/Auth/HashFunction.h>
Public Member Functions | |
virtual std::string | name () const override |
Returns the name for this hash function. More... | |
virtual std::string | compute (const std::string &msg, const std::string &salt) const override |
Computes the hash of a message + salt. More... | |
Public Member Functions inherited from Wt::Auth::HashFunction | |
virtual | ~HashFunction () |
Destructor. | |
virtual bool | verify (const std::string &msg, const std::string &salt, const std::string &hash) const |
Verifies a message with the salted hash. More... | |
A cryptograhpic hash function implemented using MD5.
This hash function is useful for creating token hashes, but should not be used for password hashes.
|
overridevirtual |
Computes the hash of a message + salt.
The message is usually an ASCII or UTF-8 string.
The salt
and the computed hash are encoded in printable characters. This is usually ASCII-encoded (as for the UNIX crypt() functions) or could be Base64-encoded.
Implements Wt::Auth::HashFunction.
|
overridevirtual |