summaryrefslogtreecommitdiff
path: root/passlib
Commit message (Collapse)AuthorAgeFilesLines
* finished up UTs for scram hashEli Collins2012-01-102-8/+34
|
* added example hashes to scram documentation, other doc tweaksEli Collins2012-01-101-9/+10
|
* documented some dev code used to test against SCRAM examplesEli Collins2012-01-091-147/+154
|
* lots of work on scram hashEli Collins2012-01-099-123/+724
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* updated scram for py3 compatEli Collins2012-01-091-9/+10
|
* Merge defaultEli Collins2012-01-091-0/+289
|\
| * initial draft of SCRAM-specific hash storage format (issue 23) --Eli Collins2011-12-051-0/+289
| | | | | | | | this is not yet functional, just a quick draft of an interface, along with some notes
* | clarified border case where verify() accepted configuration strings instead ↵Eli Collins2012-01-0912-22/+76
| | | | | | | | of throwing ValueError for some handlers
* | minor fixesEli Collins2012-01-092-3/+4
| |
* | builtin implementations of md5_crypt and sha256/512_crypt sped up by about 25%Eli Collins2012-01-053-137/+151
| |
* | renamed utils.timer -> utils.tickEli Collins2012-01-053-12/+12
| |
* | context tweaks:Eli Collins2012-01-022-8/+16
| | | | | | | | | | | | * _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.
* | minor doc changesEli Collins2012-01-021-0/+4
| |
* | tests use assertRegex instead of assertRegexpMatchesEli Collins2012-01-021-13/+18
| |
* | CryptContext can now run passwords through SASLPrep via "passprep" options ↵Eli Collins2012-01-023-3/+122
| | | | | | | | [issue 24]
* | renamed test_drivers.py -> test_handlers.py to match name of module its testingEli Collins2011-12-283-9/+9
| |
* | move vm constants to compat moduleEli Collins2011-12-284-10/+9
| |
* | mvt code now uses time.clock() under win32Eli Collins2011-12-282-12/+41
| |
* | 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)