blob: 91e2a4df93885d84789a436d0319c0255fa275ce (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
=============================================================
:mod:`passlib.crypto.digest` - Hash & Related Helpers
=============================================================
.. module:: passlib.crypto.digest
:synopsis: Internal cryptographic helpers
.. versionadded:: 1.7
This module provides various cryptographic support functions used by Passlib
to implement the various password hashes it provides, as well as paper over
some VM & version incompatibilities.
Hash Functions
==============
.. autofunction:: norm_hash_name
.. autofunction:: lookup_hash
.. rst-class:: float-center
.. note::
:func:`!lookup_hash` supports all hashes available directly in :mod:`hashlib`,
as well as offered through :func:`hashlib.new`.
It will also fallback to passlib's builtin MD4 implementation if one is not natively available.
.. autoclass:: HashInfo()
..
HMAC Functions
==============
.. autofunction:: compile_hmac
PKCS#5 Key Derivation Functions
===============================
.. autofunction:: pbkdf1
.. autofunction:: pbkdf2_hmac
.. data:: PBKDF2_BACKENDS
List of the pbkdf2 backends in use (listed in order of priority).
.. versionadded:: 1.7
.. note::
The details of PBKDF1 and PBKDF2 are specified in :rfc:`2898`.
|