blob: 04653101324424337847dc64534d8e0ba7272241 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
=============================================
:mod:`passlib.utils` - Helper Functions
=============================================
.. module:: passlib.utils
:synopsis: helper functions for implementing password hashes
This module contains a number of utility functions used by passlib
to implement the builtin handlers, and other code within passlib.
They may also be useful when implementing custom handlers for existing legacy formats.
Decorators
==========
.. autofunction:: classproperty
String Manipulation
===================
.. autofunction:: splitcomma
Bytes Manipulation
==================
.. autofunction:: bytes_to_int
.. autofunction:: int_to_bytes
.. autofunction:: list_to_bytes
.. autofunction:: bytes_to_list
.. autofunction:: xor_bytes
Randomness
==========
.. data:: rng
The random number generator used by passlib to generate
salt strings and other things which don't require a
cryptographically strong source of randomness.
.. autofunction:: getrandbytes
.. autofunction:: getrandstr
Object Tests
============
.. autofunction:: is_crypt_handler
.. autofunction:: is_crypt_context
Submodules
==========
There are also a few sub modules which provide additional utility functions:
.. toctree::
passlib.utils.des
passlib.utils.h64
passlib.utils.md4
passlib.utils.pbkdf2
.. todo::
document this module...
passlib.utils.drivers
|