diff options
| author | Eli Collins <elic@assurancetechnologies.com> | 2011-02-24 17:01:36 -0500 |
|---|---|---|
| committer | Eli Collins <elic@assurancetechnologies.com> | 2011-02-24 17:01:36 -0500 |
| commit | 6b522e12345f416c452b1bef87d64b2ccf44fbf6 (patch) | |
| tree | bbc7ec8627fd5331959a080facde9dbd59b8c62b /docs/lib/passlib.hash.bigcrypt.rst | |
| parent | 926f1e8e0b9b93aa658e486daf99b1cf4159d5b3 (diff) | |
| download | passlib-6b522e12345f416c452b1bef87d64b2ccf44fbf6.tar.gz | |
updated documentation, primarily - added description of MD5 Crypt algorithm
Diffstat (limited to 'docs/lib/passlib.hash.bigcrypt.rst')
| -rw-r--r-- | docs/lib/passlib.hash.bigcrypt.rst | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/docs/lib/passlib.hash.bigcrypt.rst b/docs/lib/passlib.hash.bigcrypt.rst index 72cbb17..9496f21 100644 --- a/docs/lib/passlib.hash.bigcrypt.rst +++ b/docs/lib/passlib.hash.bigcrypt.rst @@ -1,13 +1,14 @@ ======================================================================= -:class:`passlib.hash.bigcrypt` - BigCrypt, a des-crypt variant +:class:`passlib.hash.bigcrypt` - BigCrypt ======================================================================= .. currentmodule:: passlib.hash This class implements BigCrypt (a modified version of des-crypt) commonly -found on HP-UX, Digital Unix, and OSF/1. It's main -advancement over :class:`~passlib.hash.des_crypt` is that it -uses all the characters of a password, not just the first 8. +found on HP-UX, Digital Unix, and OSF/1. The main difference with +:class:`~passlib.hash.des_crypt` is that bigcrypt +uses all the characters of a password, not just the first 8, +and has a variable length hash string. .. warning:: @@ -35,6 +36,9 @@ A bigcrypt hash string has the format ``{salt}{checksum_1}{checksum_2...}{checks :func:`hash64 <passlib.utils.h64.encode_dc_int64>`-encoded 64-bit integer (``8NbAAlzbYO6`` and ``6hAa9XZyWy2`` in the example). +* the integer ``n`` (the number of checksums) is determined by the formula + ``n=min(1, (len(secret)+7)//8)``. + Algorithm ========= The bigcrypt algorithm is designed to re-use the original des-crypt algorithm: @@ -59,16 +63,18 @@ the first 13 characters of any bigcrypt hash form a valid :class:`~passlib.hash. hash of the same password; and bigcrypt hashes of any passwords less than 9 characters will be identical to des-crypt. -This is also one of it's main flaws: -each segment of the hash is essentially a separate -des-crypt hash, which can be attacked in parallel, -using existing des-crypt attack vectors. Furthermore, -it reveals information about the length of the encoded -password, further reducing the keyspace that needs -to be searched for each of the invididual segments. -Also, the last segment typically uses only a few -characters of the passphrase, and once cracked, -can be used to narrow the overall keyspace. +.. + + This is also one of it's main flaws: + each segment of the hash is essentially a separate + des-crypt hash, which can be attacked in parallel, + using existing des-crypt attack vectors. Furthermore, + it reveals information about the length of the encoded + password, further reducing the keyspace that needs + to be searched for each of the invididual segments. + Also, the last segment typically uses only a few + characters of the passphrase, and once cracked, + can be used to narrow the overall keyspace. Deviations ========== |
