SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
Projects/CoX/Common/PasswordHasher

Functions

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

Detailed Description

Function Documentation

QByteArray PasswordHasher::generateSalt ( )

Generates a random salt of length 16.

Returns
A QByteArray of length 16 containing the generated salt.

Here is the call graph for this function:

Here is the caller graph for this function:

QString PasswordHasher::getRandomString ( int  length) const
protected

Here is the caller graph for this function:

QByteArray PasswordHasher::hashPassword ( const QByteArray &  pass,
const QByteArray &  salt 
)

Hashes a password with the given salt using the Sha256 algorithm.

Parameters
passThe password to be hashed.
saltThe salt to be appended to the password.
Returns
A QByteArray containing the salted and hashed password.

Here is the caller graph for this function:

PasswordHasher::PasswordHasher ( )