Pyrogenesis  trunk
Functions
Hashing.cpp File Reference
#include "precompiled.h"
#include "ps/CStr.h"
#include "ps/Util.h"
#include <sodium.h>
Include dependency graph for Hashing.cpp:

Functions

CStr8 HashCryptographically (const CStr8 &string, const CStr8 &salt)
 Hash a string in a cryptographically secure manner. More...
 

Function Documentation

◆ HashCryptographically()

CStr8 HashCryptographically ( const CStr8 &  password,
const CStr8 &  salt 
)

Hash a string in a cryptographically secure manner.

This method is intended to be 'somewhat fast' for password hashing, and should neither be used where a fast real-time hash is wanted, nor for more sensitive passwords.

Returns
a hex-encoded string.