Wt  3.2.0
Public Member Functions
Wt::Auth::SHA1HashFunction Class Reference

A cryptographic hash function implemented using SHA1. More...

#include <Wt/Auth/HashFunction>

Inheritance diagram for Wt::Auth::SHA1HashFunction:
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 cryptographic hash function implemented using SHA1.

This hash function is only available if Wt was compiled with OpenSSL support.

This hashing function is useful for creating token hashes, and is also considered adequate for password hashes.


Member Function Documentation

virtual std::string Wt::Auth::SHA1HashFunction::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 ASCII-encoded ([a-zA-Z0-9./]) strings.

Implements Wt::Auth::HashFunction.

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

Returns the name for this hash function.

Returns "SHA1".

Implements Wt::Auth::HashFunction.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator

Generated on Tue Nov 29 2011 for the C++ Web Toolkit (Wt) by doxygen 1.7.5.1