libzeep

PrevUpHomeNext

Function pbkdf2_hmac_sha256

zeep::pbkdf2_hmac_sha256 — create password hash according to PBKDF2 with HmacSHA256

Synopsis

// In header: <zeep/crypto.hpp>


std::string pbkdf2_hmac_sha256(std::string_view salt, 
                               std::string_view password, 
                               unsigned iterations, unsigned keyLength);

Description

This algorithm can be used to create keys for symmetric encryption. But you can also use it to store hashed passwords for user authentication.

Parameters:

iterations

number of iterations, use a value of at least 30000

keyLength

the requested key length that will be returned

password

the password

salt

the salt to use


PrevUpHomeNext