summaryrefslogtreecommitdiff
path: root/docs/lib/passlib.utils.md4.rst
blob: 87125b7e10c3b2192304fedeb3076e506446b9d1 (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
========================================================
:mod:`passlib.utils.md4` - MD4 message digest algorithm
========================================================

.. module:: passlib.utils.md4
    :synopsis: MD4 message digest algorithm

.. warning::

    This digest is considered **VERY INSECURE**,
    and not suitable for any new cryptographic activities.
    Trivial-cost real-world attacks exist for all
    password algorithms, stream ciphers, etc, that have
    been based on MD4.
    Do not use this hash or derived schemes unless you *really* have to.

This module implements the MD4 hash algorithm in pure python,
based on the `rfc 1320 <http://www.faqs.org/rfcs/rfc1320.html>`_ specification of MD4.

.. autoclass:: md4

.. note::

    If MD4 support is detected in :mod:`!hashlib`, the :class:`!md4` class in this module
    will be replaced by a function wrapping :mod:`!hashlib`'s implementation,
    which should be faster, but otherwise behave exactly the same.