Wt  3.2.3
Public Member Functions
Wt::Auth::MD5HashFunction Class Reference

A cryptograhpic hash function implemented using MD5. More...

#include <Wt/Auth/HashFunction>

Inheritance diagram for Wt::Auth::MD5HashFunction:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual std::string name () const
 Returns the name for this hash function.
virtual std::string compute (const std::string &msg, const std::string &salt) const
 Computes the hash of a message + salt.

Detailed Description

A cryptograhpic hash function implemented using MD5.

This hash function is useful for creating token hashes, but should not be used for password hashes.


Member Function Documentation

std::string Wt::Auth::MD5HashFunction::compute ( const std::string &  msg,
const std::string &  salt 
) const [virtual]

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.

std::string Wt::Auth::MD5HashFunction::name ( ) const [virtual]

Returns the name for this hash function.

Returns "MD5".

Implements Wt::Auth::HashFunction.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator

Generated on Thu Nov 1 2012 for the C++ Web Toolkit (Wt) by doxygen 1.7.5.1