summaryrefslogtreecommitdiff
path: root/passlib/utils/_blowfish
Commit message (Collapse)AuthorAgeFilesLines
* replaced some common string ops with util funcs (repeat_string, ↵Eli Collins2012-04-101-6/+2
| | | | right_pad_string)
* doc tweaksEli Collins2012-03-121-3/+3
|
* various bcrypt improvementsEli Collins2012-03-101-4/+9
| | | | | | | | | | | | * studied crypt_blowfish's 8bit bug - verified none of passlib's backends were affected - added recognition (but not support) for crypt_blowfish's $2x$ hash prefix - added support for crypt_blowfish's $2y$ hash prefix - note in docs about Passlib's current handling of crypt_blowfish 8bit issues. * refactored bcrypt's salt-unused-bits repair code into Base64Engine.repair_unused(), making the code cleaner and more isolated. a bunch more tests. * added bcrypt64 (bcrypt-base64 variant) to utils * added LazyBase64Engine to reduce memory / startup time
* import cleanupsEli Collins2012-01-181-3/+2
| | | | | | | | | | | | | | | * moved bytes compat functions from utils to utils.compat (bord, bjoin, bjoin_ints, bjoin_elems, ujoin) * renamed bord -> belem_ord for clarify * a bunch of to_native_str() always use ascii, and have fixed input types (always bytes or always unicode). these don't need overhead of to_native_str(), so replaced those calls with two new funcs: compat.bascii_to_str() / compat.uascii_to_str() * cleaned up a lot of imports from utils/utils.compat to pull from correct module * simplified the to_string() logic of a bunch of handlers to reduce unicode<->byte transitions
* replaced utils.h64 module with utils.Base64Engine instanceEli Collins2012-01-181-106/+5
| | | | | | | | | | | * new utils.Base64Engine() provides flexible class for encoding arbitrary base64 charmaps. it should also be a bit faster than the old h64 module. * predefined 'h64' instance has mostly the same methods as the old h64 module which it takes the place off - so imports should be unaffected. (the only the exception of the xxx_dc_xxx methods, which now use the 'h64big' instance) * replaced utils._blowfish base64 encoding with custom Base64Engine instance to reduce code duplication. * more through unittests for Base64Engine.
* ran a custom 2to3 fixer to replace all u"" with u() and add an import from ↵Eli Collins2011-12-061-3/+3
| | | | compat.u
* added compat.unicode imports in a number of placesEli Collins2011-12-061-1/+1
| | | | | | | | 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-061-5/+6
|
* added compatibility module (passlib.utils.compat)Eli Collins2011-12-061-4/+5
| | | | | | | | | 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-061-3/+3
| | | | this commit just fixes some error raises
* cleaned up eks-blowfish implementation, squeezed a little more speed out of ↵Eli Collins2011-11-174-0/+1685
it, added jBCrypt info to LICENSE file