summaryrefslogtreecommitdiff
path: root/docs/lib/passlib.hash.apr_md5_crypt.rst
blob: 58de5ebff5aacdb338b0e9ec39b2e89ca6f51d34 (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
====================================================================
:class:`passlib.hash.apr_md5_crypt` - Apache MD5-Crypt password hash
====================================================================

.. currentmodule:: passlib.hash

This format is a variation of :class:`~passlib.hash.md5_crypt`,
primarily used by the Apache webserver in ``htpasswd`` files.
It contains only minor changes to md5-crypt, and should
be considered just as strong / weak as md5-crypt itself.

Functions
=========
.. autoclass:: apr_md5_crypt

Format
======
This format is identical to md5-crypt, except for two things:
it uses ``$apr1$`` as a prefix where md5-crypt uses ``$1$``,
and inserts ``$apr1$`` where md5-crypt inserts ``$1$`` into
it's internal hash calculation. Thus, hashes generated
by this and md5-crypt are in no way compatible with eachother
(they will not even have the same checksum for the same salt).

Usage & Algorithm
=================
For details about usage & algorithm, see :class:`~passlib.hash.md5_crypt`.

References
==========
* `<http://httpd.apache.org/docs/2.2/misc/password_encryptions.html>`_