From 7b598fe89d604ef91efd4f71253ffb9ab0aae7c5 Mon Sep 17 00:00:00 2001 From: Eli Collins Date: Wed, 10 Feb 2016 14:27:53 -0500 Subject: relocated many of the crypto routes inside passlib.utils, and moved them to a separate passlib.crypto subpackage. along with this move, made a few api cleanups: * unified all code that's looking up hashes to use new passlib.crypto.lookup_hash() wrapper, which takes care of hash name normalization, loading fallback implementations, and alg metadata inspection, all hidden behind a memoized function. * deprecated pbkdf2() in favor of pbkdf2_hmac() -- only real use, and new signature matches stdlib function. additionally, this version is a bit faster, due to some assumptions that can be made due to the PRF always being HMAC based. * added compile_hmac() helper which does an even more efficient job of pre-compiling a keyed HMAC function; this helped speed up pbkdf2 a bit more. --- docs/lib/passlib.hash.pbkdf2_digest.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/lib/passlib.hash.pbkdf2_digest.rst') diff --git a/docs/lib/passlib.hash.pbkdf2_digest.rst b/docs/lib/passlib.hash.pbkdf2_digest.rst index c829edf..9a2ec95 100644 --- a/docs/lib/passlib.hash.pbkdf2_digest.rst +++ b/docs/lib/passlib.hash.pbkdf2_digest.rst @@ -96,7 +96,7 @@ follow the same format, :samp:`$pbkdf2-{digest}${rounds}${salt}${checksum}`. The algorithm used by all of these schemes is deliberately identical and simple: The password is encoded into UTF-8 if not already encoded, -and run through :func:`~passlib.utils.pbkdf2.pbkdf2` +and run through :func:`~passlib.crypto.digest.pbkdf2_hmac` along with the decoded salt, the number of rounds, and a prf built from HMAC + the respective message digest. The result is then encoded using :func:`~passlib.utils.ab64_encode`. -- cgit v1.2.1