pbkdf2
Return the hash of password using pbkdf2.
def pbkdf2(
password: string|bytes,
salt: string|bytes,
iterations: integer,
dklen: integer = 0,
digest: callable = None
) - > bytes
Return the hash of password using pbkdf2.
Parameters
| Name | Type | Description |
|---|---|---|
| password | `string | bytes` |
| salt | `string | bytes` |
| iterations | integer | The number of times the hashing algorithm is applied to slow down brute-force attempts. |
| dklen | integer = 0 | The desired length of the derived key in bytes; if 0 or None, the digest's default length is used. |
| digest | callable = None | A hash constructor or function (defaults to hashlib.sha256) used as the underlying HMAC algorithm. |
Returns
| Type | Description |
|---|---|
bytes | The derived binary key of the specified length generated from the password and salt. |