| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
handler
-------
* added 'scram' to default registry list
* handler 'algs' keyword now parsed & validated correctly
* digest names normalized -> IANA spec
* saslprep() integrated into code
* added config string format
related
-------
* added documentation (still needs cleaning up though)
* added majority of UTs, still need to add a few edge cases
other
-----
* redid context->handler deprecation link - code now looks for
handler._deprecated_detector(settings) to generate a callable,
should be more efficient, and allow errors to be throw at bind-time
instead of call-time.
* pbkdf2() function now treats keylen = -1 as request for
keylen = PRF digest size.
|
| | |
|
| |
|
|
|
|
| |
* _generate_rounds disables if 'rounds' specified in policy settings for hash.
* KeyError will now be thrown if policy specifies setting not supported by handler.
* set stacklevel for rounds bound warning so it matches where encrypt() was called.
|
| |
|
|
| |
[issue 24]
|
| | |
|
| | |
|
| | |
|
| | |
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* refactoring policy kwd parsing & separation with crypt context
* internal record objects now part of context instead of policy.
* min_verify_time now handled by record objects, now optimized away entirely if not used.
* new interface to policy is currently private, will probably delay deprecated / revising
public interface until next release.
* creating policy & context objects is now 30% faster.
* shortened code path when calling context objects now 14% faster.
|
| | | |
|
| | |
| |
| |
| | |
*much* shorter codepath when calling CryptContext.encrypt(), etc
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
this distinguishes the types, so that for isinstance() tests...
* 'unicode' always means the unicode type
* 'bytes' always means the bytes type
* 'str' always means the native string type
|
| | | |
|
| | | |
|
| | | |
|
| |/
|
|
|
|
|
|
|
| |
exports specialized range & map aliases, and some dict helpers
* all dict.iteritems() calls replaced with compat.iteritems(dict)
* all xrange() calls replaced with compat.irange()
* all range() calls replaced with compat.trange() and compat.lrange() as appropriate
* all map() calls replaced with compat.lmap()
|
| |\ |
|
| | |\ |
|
| | | |
| | |
| | |
| | |
| | | |
* removed previously deprecated support for ConfigParser interpolated files
* removed previously deprecated support for set_backend(None)
|
| | | | |
|
| |/ /
| |
| |
| |
| |
| |
| |
| | |
* added changelog entry re: issue & fix
* bcrypt now warns about padding bits in digest as well
* bcrypt.normhash() now normalizes salt padding bits, digest padding bits, and rounds zero-padding
* hash_needs_update() will now flag unclean bcrypt hashes as needing an update
* UTs for hash_needs_update(), and digest padding bit handling
|
| | | |
|
| |/ |
|
| | |
|
| |
|
|
|
|
|
| |
* fixed formatting error thrown by CryptContext.verify when issuing min_verify_time warning
* rewrote CryptContext.verify's min_verify_time UT to:
- use mock hash handler
- verify that appropriate warning is issued when going overtime
|
| |
|
|
|
|
| |
* Py3.2 renamed SafeConfigParser -> ConfigParser, we now import that to silence deprecation warnings
* Py3.2 deprecated parser.readfp() in favor of read_file()
* added py3k_lang, py32_lang constants to simplify future checks
|
| | |
|
| | |
|
| |
|
|
|
|
| |
* updated CryptContext UTs as well.
* also added some general unicode<->bytes helpers to utils (needs UTs).
* also a few 2to3 conditional hints added to CryptContext so passlib can load
|
| |
|
|
|
|
|
|
| |
have all along)
* this may break parsing of some files which have "vary_rounds = 10%", that should now read "vary_rounds = 10%%".
* currently detecting that case, and falling back to old behavior + userwarning
* passlib 1.6 will let this be fatal.
|
| |
|
|
| |
document ldap CRYPT hashes
|
| |
|
|
| |
actually used
|
| | |
|
| | |
|
| |
|
|
| |
compat, changes made by 2to3)
|
| | |
|
| |
|
|
| |
load policy at later time (UTs altered)
|
| |
|
|
| |
default_rounds>max_rounds w/ vary_rounds enabled, previously threw error (UT added)
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
=====================
* CryptContext docs finished
* README / LICENSE updated
* license text changed to correct BSD wording
* embarassingly, the history.rst is kinda off about release versions.
tried to make it give readers better outline.
* misc doc updates
* some handler names (eg: 'context', 'all') now forbidden by register_crypt_handler()
* bumped setup.cfg to b1
|
| | |
|
| |
|
|
|
|
|
| |
=================================
* tweaked vary_rounds code to not "bunch up" when it hits min/max rounds
* updated default policy settings
* issues warning if min verify time is exceeded
|
| |
|
|
| |
little to do with eachother
|
| | |
|
| |
|
|
| |
of hyphens
|
| |
|
|
|
|
|
|
|
| |
=========
* bumped to 1.3
* refactored UTs a little bit
* updated UTs to match new layout & protocols
* lots of bug fixes
* all UTs pass
|
| | |
|