Wolframe, 0.0.3

_Wolframe::AAAA::PasswordHash::Hash Class Reference

#include <passwordHash.hpp>

Public Member Functions

 Hash ()
 Construct an empty password hash (all bits 0). More...
 
 Hash (const unsigned char *data, size_t bytes)
 Construct the password hash from the given byte array. More...
 
 Hash (const std::string &str)
 Construct the password hash by setting the value from the base64 encoded string. More...
 
 ~Hash ()
 Destruct the password hash (set all bits 0). More...
 
bool operator== (const Hash &rhs)
 True if the 2 password hashes are identical, false otherwise. More...
 
bool operator!= (const Hash &rhs)
 
size_t size () const
 The size of the password hash in bytes. More...
 
const unsigned char * hash () const
 The unsigned char vector of the password hash. More...
 
std::string toBCD () const
 Return the password hash as a BCD encoded string. More...
 
std::string toString () const
 

Private Attributes

unsigned char m_hash [PASSWORD_HASH_SIZE]
 

Friends

class PasswordHash
 

Constructor & Destructor Documentation

_Wolframe::AAAA::PasswordHash::Hash::Hash ( )

Construct an empty password hash (all bits 0).

_Wolframe::AAAA::PasswordHash::Hash::Hash ( const unsigned char *  data,
size_t  bytes 
)

Construct the password hash from the given byte array.

_Wolframe::AAAA::PasswordHash::Hash::Hash ( const std::string &  str)

Construct the password hash by setting the value from the base64 encoded string.

_Wolframe::AAAA::PasswordHash::Hash::~Hash ( )

Destruct the password hash (set all bits 0).

Member Function Documentation

const unsigned char* _Wolframe::AAAA::PasswordHash::Hash::hash ( ) const
inline

The unsigned char vector of the password hash.

bool _Wolframe::AAAA::PasswordHash::Hash::operator!= ( const Hash rhs)
inline
bool _Wolframe::AAAA::PasswordHash::Hash::operator== ( const Hash rhs)

True if the 2 password hashes are identical, false otherwise.

size_t _Wolframe::AAAA::PasswordHash::Hash::size ( ) const
inline

The size of the password hash in bytes.

std::string _Wolframe::AAAA::PasswordHash::Hash::toBCD ( ) const

Return the password hash as a BCD encoded string.

std::string _Wolframe::AAAA::PasswordHash::Hash::toString ( ) const

Return the password hash as a base64 encoded string (without base64 padding).

Friends And Related Function Documentation

friend class PasswordHash
friend

Member Data Documentation

unsigned char _Wolframe::AAAA::PasswordHash::Hash::m_hash[PASSWORD_HASH_SIZE]
private

The documentation for this class was generated from the following file: