diff options
| author | Eli Collins <elic@assurancetechnologies.com> | 2016-06-10 12:32:52 -0400 |
|---|---|---|
| committer | Eli Collins <elic@assurancetechnologies.com> | 2016-06-10 12:32:52 -0400 |
| commit | 281dacd121d72c7570442a13f2113f63c6c439ba (patch) | |
| tree | 997fcabde572da2fc5c8158243e26cce64ee3874 /docs/lib/passlib.hash.ldap_crypt.rst | |
| parent | 61dc39910c6904c69f2e81d5dd41090cac1f18a1 (diff) | |
| download | passlib-281dacd121d72c7570442a13f2113f63c6c439ba.tar.gz | |
.encrypt() method renamed to .hash(), other api cleanups
.encrypt()
----------
hash.encrypt() & context.encrypt() have been renamed to .hash().
this should take care of the long-standing issue 21 (the poor naming of .encrypt).
per docs, legacy aliases will remain in place until passlib 2.0.
.genhash() / .genconfig()
-------------------------
taking advantage of this reorganization to also deprecate .genconfig()
and .genhash() -- they're not really useful in a modern system,
nor as needed for historical support as initially thought:
.genconfig() will be retired completely in passlib 2.0;
.genhash() is rolled into the new .hash() method along with .encrypt().
Diffstat (limited to 'docs/lib/passlib.hash.ldap_crypt.rst')
| -rw-r--r-- | docs/lib/passlib.hash.ldap_crypt.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/lib/passlib.hash.ldap_crypt.rst b/docs/lib/passlib.hash.ldap_crypt.rst index 745716f..ede7c5f 100644 --- a/docs/lib/passlib.hash.ldap_crypt.rst +++ b/docs/lib/passlib.hash.ldap_crypt.rst @@ -21,7 +21,7 @@ elsewhere in Passlib, and can be used directly as follows:: >>> from passlib.hash import ldap_md5_crypt >>> # encrypt password - >>> hash = ldap_md5_crypt.encrypt("password") + >>> hash = ldap_md5_crypt.hash("password") >>> hash '{CRYPT}$1$gwvn5BO0$3dyk8j.UTcsNUPrLMsU6/0' |
