#include <passwordHash.hpp>
_Wolframe::AAAA::PasswordHash::Salt::Salt |
( |
| ) |
|
Construct an empty salt (all bits 0).
_Wolframe::AAAA::PasswordHash::Salt::Salt |
( |
const unsigned char * |
data, |
|
|
size_t |
bytes |
|
) |
| |
Construct a salt from the given byte array.
_Wolframe::AAAA::PasswordHash::Salt::Salt |
( |
const std::string & |
str | ) |
|
Construct a salt by setting the value from the base64 encoded string.
_Wolframe::AAAA::PasswordHash::Salt::~Salt |
( |
| ) |
|
Destructor (set all bits 0).
bool _Wolframe::AAAA::PasswordHash::Salt::operator!= |
( |
const Salt & |
rhs | ) |
|
|
inline |
bool _Wolframe::AAAA::PasswordHash::Salt::operator== |
( |
const Salt & |
rhs | ) |
|
True if the 2 password salts are identical, false otherwise.
const unsigned char* _Wolframe::AAAA::PasswordHash::Salt::salt |
( |
| ) |
const |
|
inline |
The unsigned char vector of the salt.
size_t _Wolframe::AAAA::PasswordHash::Salt::size |
( |
| ) |
const |
|
inline |
The size of the salt in bytes.
std::string _Wolframe::AAAA::PasswordHash::Salt::toBCD |
( |
| ) |
const |
Return the salt as a BCD encoded string.
std::string _Wolframe::AAAA::PasswordHash::Salt::toString |
( |
| ) |
const |
Return the salt as a base64 encoded string (without base64 padding).
std::size_t _Wolframe::AAAA::PasswordHash::Salt::m_size |
|
private |
The documentation for this class was generated from the following file: