summaryrefslogtreecommitdiff
path: root/docs/lib
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2016-06-20 18:58:45 -0400
committerEli Collins <elic@assurancetechnologies.com>2016-06-20 18:58:45 -0400
commit5ee323b41d51137ee3a6344a6a390219ce253e45 (patch)
tree9a878bf3698ca291358549ee22457ce357c10092 /docs/lib
parentca3d2e495016373673d5eb93cebe277b18e7744d (diff)
downloadpasslib-5ee323b41d51137ee3a6344a6a390219ce253e45.tar.gz
docs: various updates
* updated new_application_quickstart to account for Argon2 * added doc page for passlib.crypto
Diffstat (limited to 'docs/lib')
-rw-r--r--docs/lib/passlib.crypto.digest.rst7
-rw-r--r--docs/lib/passlib.crypto.rst18
-rw-r--r--docs/lib/passlib.hash.pbkdf2_digest.rst2
-rw-r--r--docs/lib/passlib.hash.scrypt.rst13
-rw-r--r--docs/lib/passlib.hash.sha256_crypt.rst2
-rw-r--r--docs/lib/passlib.utils.rst2
6 files changed, 35 insertions, 9 deletions
diff --git a/docs/lib/passlib.crypto.digest.rst b/docs/lib/passlib.crypto.digest.rst
index 5af4cd1..942f11d 100644
--- a/docs/lib/passlib.crypto.digest.rst
+++ b/docs/lib/passlib.crypto.digest.rst
@@ -24,10 +24,11 @@ Hash Functions
as well as offered through :func:`hashlib.new`.
It will also fallback to passlib's builtin MD4 implementation if one is not natively available.
-HMAC Functions
-==============
+..
+ HMAC Functions
+ ==============
-.. autofunction:: compile_hmac
+ .. autofunction:: compile_hmac
PKCS#5 Key Derivation Functions
===============================
diff --git a/docs/lib/passlib.crypto.rst b/docs/lib/passlib.crypto.rst
new file mode 100644
index 0000000..5d4a2c1
--- /dev/null
+++ b/docs/lib/passlib.crypto.rst
@@ -0,0 +1,18 @@
+======================================================
+:mod:`passlib.crypto` - Cryptographic Helper Functions
+======================================================
+
+.. module:: passlib.crypto
+ :synopsis: internal cryptographic helpers for implementing password hashes
+
+This module is primarily used as an internal support module.
+It contains cryptography utility functions used by Passlib.
+However, end-user applications may find some of the functions useful.
+
+It contains the following submodules:
+
+.. toctree::
+ :maxdepth: 1
+
+ passlib.crypto.digest
+ passlib.crypto.des
diff --git a/docs/lib/passlib.hash.pbkdf2_digest.rst b/docs/lib/passlib.hash.pbkdf2_digest.rst
index 0064820..ff82c4f 100644
--- a/docs/lib/passlib.hash.pbkdf2_digest.rst
+++ b/docs/lib/passlib.hash.pbkdf2_digest.rst
@@ -19,7 +19,7 @@ Though the original PBKDF2 specification uses the SHA-1 message digest,
it is not vulnerable to any of the known weaknesses of SHA-1 [#hmac-sha1]_,
and can be safely used. However, for those still concerned, SHA-256 and SHA-512
versions are offered as well.
-PBKDF2-SHA512 is one of the three hashes Passlib
+PBKDF2-SHA512 is one of the four hashes Passlib
:ref:`recommends <recommended-hashes>` for new applications.
All of these classes can be used directly as follows::
diff --git a/docs/lib/passlib.hash.scrypt.rst b/docs/lib/passlib.hash.scrypt.rst
index a908b75..3224a34 100644
--- a/docs/lib/passlib.hash.scrypt.rst
+++ b/docs/lib/passlib.hash.scrypt.rst
@@ -97,8 +97,17 @@ See `<http://www.tarsnap.com/scrypt.html>`_ for the canonical description of the
Security Issues
===============
-See the warning at the top of this page about the tradeoff between memory usage
-and security that comes as part of altering scrypt's rounds parameter.
+`SCrypt <http://www.tarsnap.com/scrypt.html>`_ is the first in a class of "memory-hard"
+key derivation functions. Initially, it looked very promising as a replacement for BCrypt,
+PBKDF2, and SHA512-Crypt. However, the fact that it's ``N`` parameter controls both
+time *and* memory cost means the two cannot be varied completely independantly. This
+eventually proved to be problematic, as ``N`` values required for even BCrypt levels of security
+resulting in memory requirements that were unacceptable on most production systems.
+
+.. seealso::
+
+ :class:`~passlib.hash.argon2`, a next generation memory-hard KDF designed as the
+ successor to SCrypt.
.. rubric:: Footnotes
diff --git a/docs/lib/passlib.hash.sha256_crypt.rst b/docs/lib/passlib.hash.sha256_crypt.rst
index aca2f9a..adc5557 100644
--- a/docs/lib/passlib.hash.sha256_crypt.rst
+++ b/docs/lib/passlib.hash.sha256_crypt.rst
@@ -11,7 +11,7 @@ The design involves repeated composition of the underlying digest algorithm,
using various arbitrary permutations of inputs.
SHA-512 / SHA-256 Crypt are currently the default password hash for many systems
(notably Linux), and have no known weaknesses.
-SHA-256 Crypt is one of the three hashes Passlib :ref:`recommends <recommended-hashes>`
+SHA-256 Crypt is one of the four hashes Passlib :ref:`recommends <recommended-hashes>`
for new applications.
This class can be used directly as follows::
diff --git a/docs/lib/passlib.utils.rst b/docs/lib/passlib.utils.rst
index ef6432d..fc08f13 100644
--- a/docs/lib/passlib.utils.rst
+++ b/docs/lib/passlib.utils.rst
@@ -217,8 +217,6 @@ There are also a few sub modules which provide additional utility functions:
passlib.utils.handlers
passlib.utils.des
passlib.utils.pbkdf2
- passlib.crypto.digest
- passlib.crypto.des
..
passlib.utils.compat