SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PasswordHasher Class Reference

#include <PasswordHasher.h>

Collaboration diagram for PasswordHasher:
Collaboration graph

Public Member Functions

 PasswordHasher ()
QByteArray generateSalt ()
 Generates a random salt of length 16. More...
QByteArray hashPassword (const QByteArray &pass, const QByteArray &salt)
 Hashes a password with the given salt using the Sha256 algorithm. More...

Protected Member Functions

QString getRandomString (int length) const

Protected Attributes

QCryptographicHash m_hasher

Member Data Documentation

QCryptographicHash PasswordHasher::m_hasher

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