summaryrefslogtreecommitdiff
path: root/passlib
Commit message (Collapse)AuthorAgeFilesLines
...
* | removed Undef singleton, private _NOTSET singletons are cleaner.Eli Collins2011-12-285-42/+14
| |
* | deprecated to_hash_str, replaced all instances with to_native_strEli Collins2011-12-2826-111/+115
| | | | | | | | | | | | decided that to_hash_str will always return native string, feature of hashes being returned as unicode under python 2 is better done through a CryptContext option.
* | misc fixes for py3 compatEli Collins2011-12-285-51/+54
| |
* | updated some commentsEli Collins2011-12-282-16/+9
| |
* | Merge from defaultEli Collins2011-12-289-622/+1457
|\ \
| * | CryptPolicy rewrite part 2Eli Collins2011-12-274-605/+695
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
| * | typoEli Collins2011-12-221-1/+1
| | |
| * | PrefixWrapper: added .ident and .ident_values proxies; dir() now reports ↵Eli Collins2011-12-222-7/+91
| | | | | | | | | | | | proxies attrs
| * | large rewrite of how CryptPolicy is parsed and compiled; should result in ↵Eli Collins2011-12-224-437/+880
| | | | | | | | | | | | *much* shorter codepath when calling CryptContext.encrypt(), etc
| * | issue 24: added saslprep() function to support SASL stringprep profile; ↵Eli Collins2011-12-132-1/+197
| | | | | | | | | | | | still have to work it into Context object
| * | was browsing Python's source, and noticed crypt() might sometimes return None --Eli Collins2011-12-092-2/+17
| |/
* | typofixEli Collins2011-12-091-1/+1
| |
* | removed 2to3 translation step from setupEli Collins2011-12-062-157/+1
| |
* | couple of minor tweaks - basic unittests pass 2.7 & 3.2Eli Collins2011-12-066-15/+29
| |
* | renamed belem_join to bjoin_elems (to be consistent with bjoin_ints); ↵Eli Collins2011-12-062-20/+10
| | | | | | | | removed bchrs (code uses bjoin_ints)
* | replaced all #Py3k# conditional includesEli Collins2011-12-065-245/+198
| |
* | fixed conversion typoEli Collins2011-12-068-8/+8
| |
* | ran a custom 2to3 fixer to replace all u"" with u() and add an import from ↵Eli Collins2011-12-0627-288/+302
| | | | | | | | compat.u
* | added compat.unicode imports in a number of placesEli Collins2011-12-0627-16/+33
| | | | | | | | | | | | | | | | 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
* | added compat.aliased lazy-loading module, aliases for BytesIO/StringIOEli Collins2011-12-065-50/+84
| |
* | added print() aliasEli Collins2011-12-062-3/+52
| |
* | moved sys_bits to compat, added exc_err, removed utils.py32_langEli Collins2011-12-066-21/+29
| |
* | added compat.sb_types for testing isinstance(obj,(bytes,unicode))Eli Collins2011-12-062-2/+4
| |
* | added get_method_function() to alias meth.im_func / meth.__func__Eli Collins2011-12-064-8/+26
| |
* | replaced (int,long) instance checks with compat.int_typesEli Collins2011-12-064-8/+13
| |
* | added callable shim for 3.0-3.1Eli Collins2011-12-063-15/+14
| |
* | replaced xrange() instances with compat.irange() aliasEli Collins2011-12-0613-41/+40
| |
* | added compatibility module (passlib.utils.compat)Eli Collins2011-12-0611-36/+136
| | | | | | | | | | | | | | | | | | 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()
* | branch exploring feasibility of removing need for 2to3Eli Collins2011-12-064-6/+7
|/ | | | this commit just fixes some error raises
* tweaked consteq so it should now take precisely the same time regardless of ↵Eli Collins2011-12-051-4/+6
| | | | length differences
* updated documentation to use some cloud_sptheme 1.3 featuresEli Collins2011-12-021-1/+3
| | | | | * escaped {} literals in *samp* roles - used on some doc pages * google analytics integration for pypi docs
* all verify() methods now use "constant time" comparison function (see ↵Eli Collins2011-12-014-10/+161
| | | | CHANGELOG for details)
* cleaned up eks-blowfish implementation, squeezed a little more speed out of ↵Eli Collins2011-11-176-735/+664
| | | | it, added jBCrypt info to LICENSE file
* optimized pure-python bcrypt implementationEli Collins2011-11-173-433/+1547
| | | | | | | | | | | | | | | | Previously was getting 13 ms/round, now getting 8.6 ms/round, a 35% speedup. Still need to get to 0.25 ms/round to have decent security + 250ms response time. changes: * refactored code a good bit * split S array into separate S boxes for easier inlining * moved critical sections into unrolled loops in utils/_blowfish_unrolled.py * P array parsed into local vars w/in unrolled loops for more speed. * added utils/_gen_blowfish.py meta-script which generated _blowfish_unrolled.py * TODO: py3 compatibility, esp base64 codec functions * TODO: asses pypy behavior - it might perform better w/ loops
* Merge 1.5.3 bugfixesEli Collins2011-10-087-88/+691
|\
| * Merge fixes from release-1.5Eli Collins2011-09-197-90/+693
| |\
| | * restored pure-python bcrypt implementation that was removed in r5211db139659Eli Collins2011-09-143-1/+668
| | |
| | * misc doc changesEli Collins2011-09-142-13/+14
| | |
| | * tweak to passlib.ext.django so it explicitly removes any monkeypatching if ↵Eli Collins2011-09-071-0/+1
| | | | | | | | | | | | PASSLIB_CONTEXT=None
| | * beginning 1.6 devEli Collins2011-08-253-77/+12
| | | | | | | | | | | | | | | * removed previously deprecated support for ConfigParser interpolated files * removed previously deprecated support for set_backend(None)
* | | bumped to 1.5.31.5.3Eli Collins2011-10-081-1/+1
| | |
* | | minor documentation updatesEli Collins2011-10-075-26/+43
| | |
* | | bcrypt padding work:Eli Collins2011-10-074-18/+81
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | bugfix (issue 25):Eli Collins2011-10-053-31/+233
|/ / | | | | | | | | | | | | | | | | * bcrypt salts are now generated with padding bits set to 0 * bcrypt hashes with padding bits not set to 0 still same as before, but warning is issued * bcrypt.normhash() can be used to correct existing bcrypt hashes. TODO: documentation, verify against issue, look into verify_and_update() being able to take care of this.
* | bumped to 1.5.21.5.2Eli Collins2011-09-191-1/+1
| |
* | added django 0.9 support to passlib.ext.django & tests (such as may be found ↵Eli Collins2011-09-193-29/+71
| | | | | | | | on GAE)
* | improvements to passlib.ext.djangoEli Collins2011-09-145-41/+659
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | even though it hasn't been officially documented, some people are using it, so... major ----- * DEFAULT_CTX now uses SHA512-Crypt instead of PBKDF2-HMAC-SHA256, this should be natively supported on a larger number of platforms. * added full unittest suite for passlib.ext.django: - checks monkeypatch implementation - checks full plugin behavior - STOCK_CTX is compared against official Django behavior minor ----- * ``set_django_password_context()`` now patches ``django.contrib.auth.models.check_password()`` as well as User methods. * now exposes active context as ``User.password_context`` when patch is enabled. * replacement ``User.check_password`` now handles None and unusable passwords explicitly, even if context doesn't include support for django_disabled.
* | fixed small bug in CryptPolicy.iter_config() related to deprecation optionsEli Collins2011-09-142-21/+54
| |
* | added documentation for verify_and_updateEli Collins2011-09-141-1/+48
| |
* | bugfix: django_des_crypt now accepts all H64_CHARS in salt [issue 22]Eli Collins2011-09-122-33/+114
|/ | | | | | * also added more django-related unittests * django_des_crypt now uses des_crypt handler instead of raw_des_crypt function * django_des_crypt now detects salt char mismatches in hash