summaryrefslogtreecommitdiff
path: root/docs/lib/passlib.crypto.des.rst
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2016-02-10 14:27:53 -0500
committerEli Collins <elic@assurancetechnologies.com>2016-02-10 14:27:53 -0500
commit7b598fe89d604ef91efd4f71253ffb9ab0aae7c5 (patch)
tree1f732aa6364a37e3e18e5d0788eda208f95219d1 /docs/lib/passlib.crypto.des.rst
parent590aef9ab3d872830ca27d95833e78c737fccd2d (diff)
downloadpasslib-7b598fe89d604ef91efd4f71253ffb9ab0aae7c5.tar.gz
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.
Diffstat (limited to 'docs/lib/passlib.crypto.des.rst')
-rw-r--r--docs/lib/passlib.crypto.des.rst26
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/lib/passlib.crypto.des.rst b/docs/lib/passlib.crypto.des.rst
new file mode 100644
index 0000000..89ad0bd
--- /dev/null
+++ b/docs/lib/passlib.crypto.des.rst
@@ -0,0 +1,26 @@
+==============================================
+:mod:`passlib.crypto.des` - DES routines
+==============================================
+
+.. module:: passlib.crypto.des
+ :synopsis: routines for performing DES encryption
+
+.. versionchanged:: 1.7
+
+ This module was relocated from :mod:`!passlib.utils.des`;
+ the old location will be removed in Passlib 2.0.
+
+.. warning::
+
+ NIST has declared DES to be "inadequate" for cryptographic purposes.
+ These routines, and the password hashes based on them,
+ should not be used in new applications.
+
+This module contains routines for encrypting blocks of data using the DES algorithm.
+Note that these functions do not support multi-block operation or decryption,
+since they are designed primarily for use in password hash algorithms
+(such as :class:`~passlib.hash.des_crypt` and :class:`~passlib.hash.bsdi_crypt`).
+
+.. autofunction:: expand_des_key
+.. autofunction:: des_encrypt_block
+.. autofunction:: des_encrypt_int_block