summaryrefslogtreecommitdiff
path: root/docs/lib
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2016-10-04 12:32:24 -0400
committerEli Collins <elic@assurancetechnologies.com>2016-10-04 12:32:24 -0400
commit4a8c04e2f2a232dbd021e094ef718066f5d63268 (patch)
tree7662a47501d0124dbbc8834b8830787ab0dccd0c /docs/lib
parent1f09d22394fdd2c82e77529f78cbb5f920d096f8 (diff)
downloadpasslib-4a8c04e2f2a232dbd021e094ef718066f5d63268.tar.gz
docs: marked MCF as "deprecated" in favor of PHC format, notes scrypt & argon2 PHC compatibility.
Diffstat (limited to 'docs/lib')
-rw-r--r--docs/lib/passlib.hash.argon2.rst3
-rw-r--r--docs/lib/passlib.hash.scrypt.rst5
2 files changed, 5 insertions, 3 deletions
diff --git a/docs/lib/passlib.hash.argon2.rst b/docs/lib/passlib.hash.argon2.rst
index 89c0432..0eb1ad6 100644
--- a/docs/lib/passlib.hash.argon2.rst
+++ b/docs/lib/passlib.hash.argon2.rst
@@ -55,7 +55,8 @@ You can check which backend is in use by calling :meth:`!argon2.get_backend()`.
Format & Algorithm
==================
The Argon2 hash format is defined by the argon2 reference implementation.
-It's compatible with the :ref:`modular-crypt-format`, and uses ``$argon2i$`` and ``$argon2d$``
+It's compatible with the :ref:`PHC Format <phc-format>` and :ref:`modular-crypt-format`,
+and uses ``$argon2i$`` and ``$argon2d$``
as it's identifying prefixes for all its strings. An example hash (of ``password``) is:
``$argon2i$v=19$m=512,t=3,p=2$c29tZXNhbHQ$SqlVijFGiPG+935vDSGEsA``
diff --git a/docs/lib/passlib.hash.scrypt.rst b/docs/lib/passlib.hash.scrypt.rst
index 7a5230a..29f491a 100644
--- a/docs/lib/passlib.hash.scrypt.rst
+++ b/docs/lib/passlib.hash.scrypt.rst
@@ -65,7 +65,8 @@ This class will use the first available of two possible backends:
Format & Algorithm
==================
-This Scrypt hash format is compatible with the :ref:`modular-crypt-format`, and uses ``$scrypt$`` as the identifying prefix
+This Scrypt hash format is compatible with the :ref:`PHC Format <phc-format>` and :ref:`modular-crypt-format`,
+and uses ``$scrypt$`` as the identifying prefix
for all its strings. An example hash (of ``password``) is:
``$scrypt$ln=16,r=8,p=1$aM15713r3Xsvxbi31lqr1Q$nFNh2CVHVjNldFVKDHDlm4CbdRSCdEBsjjJxD+iCs5E``
@@ -73,7 +74,7 @@ for all its strings. An example hash (of ``password``) is:
This string has the format :samp:`$scrypt$ln={logN},r={R},p={P}${salt}${checksum}`, where:
* :samp:`{logN}` is the exponent for calculating SCRYPT's cost parameter (N), encoded as a decimal digit,
- (logN is 16 in the example, corresponding to n=65536).
+ (logN is 16 in the example, corresponding to n = 2**16 = 65536).
* :samp:`{R}` is the value of SCRYPT's block size parameter (r), encoded as a decimal digit,
(r is 8 in the example).