libzeep

PrevUpHomeNext

Function pbkdf2_hmac_sha1

zeep::pbkdf2_hmac_sha1 — create password hash according to PBKDF2 with HmacSHA1

Synopsis

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


std::string pbkdf2_hmac_sha1(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