blob: f8eb89fabe0c4cecad02450067d77212547b6964 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
=============================================================
:mod:`passlib.utils.pbkdf2` - PBKDF2 key derivation algorithm
=============================================================
.. module:: passlib.utils.pbkdf2
:synopsis: PBKDF2 and related key derivation algorithms
This module provides a couple of key derivation functions,
as well as supporting utilities.
Primarily, it offers :func:`pbkdf2`,
which provides the ability to generate an arbitrary
length key using the PBKDF2 key derivation algorithm,
as specified in `rfc 2898 <http://tools.ietf.org/html/rfc2898>`_.
This function can be helpful in creating password hashes
using schemes which have been based around the pbkdf2 algorithm.
PKCS#5 Key Derivation Functions
===============================
.. autofunction:: pbkdf1
.. autofunction:: pbkdf2
.. note::
The details of PBKDF1 and PBKDF2 are specified in :rfc:`2898`.
Helper Functions
================
.. autofunction:: norm_hash_name
.. autofunction:: get_prf
..
given how this module is expanding in scope,
perhaps it should be renamed "kdf" or "crypto"?
|