Wt: Wt::Auth::PasswordHash Class Reference

Wt 3.3.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions
Wt::Auth::PasswordHash Class Reference
Authentication module (Wt::Auth)

A password hash. More...

`#include <Wt/Auth/PasswordHash>`

List of all members.

## Public Member Functions
| PasswordHash ()
| Default constructor.
| PasswordHash (const std::string &function, const std::string &salt, const std::string &value)
| Constructor.
bool | empty () const
| Returns whether the password is empty.
std::string | function () const
| Returns the function identifier.
std::string | salt () const
| Returns the salt.
std::string | value () const
| Returns the hash value.

## Detailed Description

A password hash.

This combines the information for interpreting a hashed password:

- the hash value
- the salt used
- the hashing function used

See also:
  HashFunction::compute()

## Constructor & Destructor Documentation

Wt::Auth::PasswordHash::PasswordHash | ( |  | ) |

Default constructor.

Creates an empty password hash, i.e. with empty function, salt and value.

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator