identt
Classes | Static Public Member Functions | List of all members
identt::http::Crypto Class Reference

Classes

class  Base64
 

Static Public Member Functions

static std::string to_hex_string (const std::string &input) noexcept
 Returns hex string from bytes in input string.
 
static std::string md5 (const std::string &input, std::size_t iterations=1) noexcept
 Returns md5 hash value from input string.
 
static std::string md5 (std::istream &stream, std::size_t iterations=1) noexcept
 Returns md5 hash value from input stream.
 
static std::string sha1 (const std::string &input, std::size_t iterations=1) noexcept
 Returns sha1 hash value from input string.
 
static std::string sha1 (std::istream &stream, std::size_t iterations=1) noexcept
 Returns sha1 hash value from input stream.
 
static std::string sha256 (const std::string &input, std::size_t iterations=1) noexcept
 Returns sha256 hash value from input string.
 
static std::string sha256 (std::istream &stream, std::size_t iterations=1) noexcept
 Returns sha256 hash value from input stream.
 
static std::string sha512 (const std::string &input, std::size_t iterations=1) noexcept
 Returns sha512 hash value from input string.
 
static std::string sha512 (std::istream &stream, std::size_t iterations=1) noexcept
 Returns sha512 hash value from input stream.
 
static std::string pbkdf2 (const std::string &password, const std::string &salt, int iterations, int key_size) noexcept
 Returns PBKDF2 hash value from the given password Input parameter key_size number of bytes of the returned key. More...
 

Member Function Documentation

§ pbkdf2()

static std::string identt::http::Crypto::pbkdf2 ( const std::string &  password,
const std::string &  salt,
int  iterations,
int  key_size 
)
inlinestaticnoexcept

Returns PBKDF2 hash value from the given password Input parameter key_size number of bytes of the returned key.

Returns PBKDF2 derived key from the given password.

Parameters
passwordThe password to derive key from.
saltThe salt to be used in the algorithm.
iterationsNumber of iterations to be used in the algorithm.
key_sizeNumber of bytes of the returned key.
Returns
The PBKDF2 derived key.

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