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.crypt16.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.crypt16.rst')
| -rw-r--r-- | docs/lib/passlib.hash.crypt16.rst | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/docs/lib/passlib.hash.crypt16.rst b/docs/lib/passlib.hash.crypt16.rst index 23bba79..40b499c 100644 --- a/docs/lib/passlib.hash.crypt16.rst +++ b/docs/lib/passlib.hash.crypt16.rst @@ -1,10 +1,10 @@ ======================================================================= -:class:`passlib.hash.crypt16` - Crypt16, a des-crypt variant +:class:`passlib.hash.crypt16` - Crypt16 ======================================================================= .. currentmodule:: passlib.hash -This class implements Crypt16 (a modified version of des-crypt) commonly +This class implements the Crypt16 password hash, commonly found on Ultrix and Tru64. It's a minor modification of :class:`~passlib.hash.des_crypt`, which allows passwords of up to 16 characters. @@ -12,14 +12,14 @@ which allows passwords of up to 16 characters. This algorithm is dangerously weak, and should not be used for new applications. Not only does it suffer from all of the flaws of :class:`~passlib.hash.des_crypt`, - but it reveals information about password length and content. + but it's easier to attack, and reveals information about password length and content. .. note:: This format is frequently confused with :class:`~passlib.hash.bigcrypt`, - another (weak) derivative of des-crypt, because bigcrypt - will have hash strings of the same size and charset - for passwords between 9 and 16 chars in length. + another derivative of des-crypt, because (for passwords between + 9 and 16 chars in length) bigcrypt hashes will have + the same size and character set. Usage ===== @@ -56,10 +56,14 @@ The crypt16 algorithm uses a weakened version of the des-crypt algorithm: 6. the second checksum is generated by running the 2nd set of 8 characters of the password through steps 3..5; except that the des-encryption step uses the same salt but only 5 rounds. -The smaller number of rounds makes this slightly weaker than des-crypt, -but is *much* weaker for passwords under 9 characters, as well -as the fact that the two checksums can be attacked at once, -since they use the same salt value. +.. + + This algorithm is much weaker than des-crypt for the following reasons: + + * smaller number of rounds for each checksum + * passwords under 9 characters all have the same 2nd checksum (for a given salt) + * since both checksums use the same salt, they can be attacked at once + (by doing 5 rounds, checking checksum 2, and doing 15 rounds more). Deviations ========== |
