pbkdf2
Module for PBKDF2 algorithm.
- class Pbkdf2HmacSha512
Bases:
object
PBKDF2 HMAC-SHA512 class. It derives keys using PBKDF2 HMAC-SHA512 algorithm.
- static DeriveKey(password: Union[bytes, str], salt: Union[bytes, str], itr_num: int, dklen: Optional[int] = None) bytes
Derive a key.
- Parameters:
password (str or bytes) – Password
salt (str or bytes) – Salt
itr_num (int) – Iteration number
dklen (int, optional) – Length of the derived key (default: SHA-512 output length)
- Returns:
Computed result
- Return type:
bytes