Wt: Wt::Auth::PasswordHash Class Reference

Wt 4.10.4

Loading...
Searching...
No Matches
Public Member Functions | List of all members
Wt::Auth::PasswordHash Class Reference

A password hash. More...

`#include <Wt/Auth/PasswordHash.h>`

## 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

## ◆ PasswordHash()

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

Default constructor.

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