summaryrefslogtreecommitdiff
path: root/docs/lib/passlib.hash.django_std.rst
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2013-12-27 13:49:41 -0500
committerEli Collins <elic@assurancetechnologies.com>2013-12-27 13:49:41 -0500
commitbcdf0cd2a97fa8dfb4cc06352faa0934ccbf236b (patch)
tree36c3549889c3d8bf8f531b30bb588920c23cc681 /docs/lib/passlib.hash.django_std.rst
parent10ddd0c4bf75c21bdd75a3cb0781f020147778b3 (diff)
downloadpasslib-bcdf0cd2a97fa8dfb4cc06352faa0934ccbf236b.tar.gz
massive cleanup of documentation typos, thanks to Thomas Waldmann (issue 27, comment 7) (transplant of r1f5b8860b743 from default branch)
Diffstat (limited to 'docs/lib/passlib.hash.django_std.rst')
-rw-r--r--docs/lib/passlib.hash.django_std.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/lib/passlib.hash.django_std.rst b/docs/lib/passlib.hash.django_std.rst
index d8a8dee..8daf54b 100644
--- a/docs/lib/passlib.hash.django_std.rst
+++ b/docs/lib/passlib.hash.django_std.rst
@@ -93,7 +93,7 @@ Both of Django's PBKDF2 hashes have the same basic format,
* :samp:`{checksum}` is the base64 encoding the PBKDF2 digest.
-The digest porition is generated by passing the ``utf-8`` encoded password,
+The digest portion is generated by passing the ``utf-8`` encoded password,
the ``ascii``-encoded salt string, and the number of rounds into
PBKDF2 using the HMAC-SHA256 prf; and generated a 32 byte checksum,
which is then encoding using base64.
@@ -152,13 +152,13 @@ Both of Django's salted hashes have the same basic format,
* :samp:`{ident}` is an identifier (``sha1`` in the case of the example,
``md5`` for :class:`!django_salted_md5`).
-* :samp:`{salt}` consists of (usually 5) lowercase hexidecimal digits (``f8793`` in the example).
+* :samp:`{salt}` consists of (usually 5) lowercase hexadecimal digits (``f8793`` in the example).
-* :samp:`{checksum}` is lowercase hexidecimal encoding of the checksum.
+* :samp:`{checksum}` is lowercase hexadecimal encoding of the checksum.
The checksum is generated by concatenating the salt digits followed
by the password, and hashing them using the specified digest (MD5 or SHA-1).
-The digest is then encoded to hexidecimal.
+The digest is then encoded to hexadecimal.
If the password is unicode, it is converted to ``utf-8`` first.
Security Issues
@@ -172,7 +172,7 @@ Django's salted hashes should not be considered very secure.
of entropy in their salt, which is borderline insufficient to defeat
rainbow tables.
-* They digest the encoded hexidecimal salt, not the raw bytes,
+* They digest the encoded hexadecimal salt, not the raw bytes,
increasing the odds that a particular salt+password string
will be present in a pre-computed tables of ascii digests.
@@ -189,7 +189,7 @@ as the salted hashes: :samp:`{ident}${salt}${checksum}`, where:
* :samp:`{ident}` is the identifier ``crypt``.
-* :samp:`{salt}` is 5 lowercase hexidecimal digits (``cd1a4`` in the example).
+* :samp:`{salt}` is 5 lowercase hexadecimal digits (``cd1a4`` in the example).
* :samp:`{checksum}` is a :class:`!des_crypt` hash (``cdlRbNJGImptk`` in the example).