summaryrefslogtreecommitdiff
path: root/passlib/utils/h64.py
Commit message (Collapse)AuthorAgeFilesLines
* replaced utils.h64 module with utils.Base64Engine instanceEli Collins2012-01-181-286/+0
| | | | | | | | | | | * 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.
* couple of minor tweaks - basic unittests pass 2.7 & 3.2Eli Collins2011-12-061-1/+1
|
* renamed belem_join to bjoin_elems (to be consistent with bjoin_ints); ↵Eli Collins2011-12-061-6/+6
| | | | removed bchrs (code uses bjoin_ints)
* replaced all #Py3k# conditional includesEli Collins2011-12-061-10/+7
|
* ran a custom 2to3 fixer to replace all u"" with u() and add an import from ↵Eli Collins2011-12-061-2/+2
| | | | compat.u
* replaced xrange() instances with compat.irange() aliasEli Collins2011-12-061-3/+4
|
* minor documentation updatesEli Collins2011-10-071-1/+1
|
* utils.h64 now py3 compatibleEli Collins2011-06-171-65/+88
| | | | | | | * rewrote internals a bit * added some more utils helpers to deal w/ bytes elements beings ints, not just bytes-slices * added 'bytes' type checks to most h64 funcs * updated H64 UTs till they pass
* replaced "raise exc, msg" with "raise exc(msg)" everywhere (working on py3k ↵Eli Collins2011-03-281-7/+7
| | | | compat, changes made by 2to3)
* bugfixes, tweaks, test casesEli Collins2011-03-181-1/+5
| | | | | | | | | | | | | | | | | ============================ * now at 99% coverage * changed some error types * bugfix to min_verify_time code * tests for registry, some cryptcontext border cases * ldap hash tests * tests for rest of utils * tests for skeleton hash classes in passlib.utils.drivers * moved validate_class code from skeleton hash classes to HandlerCase main things still needing testing: * category support for CryptContext/Policy * some bits of registry
* coverage workEli Collins2011-03-181-1/+1
| | | | | | | | | | | ============= * restored "default" mode for set_backend() * bugfix: HandlerCase now sets backend explicitly, incorrect backend checks were previously happening * added UT for genhash(secret, None) * enabled HandlerCase.supports_unicode for all hashes * added some needed test cases revealed by coverage check * added "pragma: no cover" for a select few branches that don't need testing * all UTs pass, 92% coverage
* documentation workEli Collins2011-02-241-11/+14
| | | | | | | | | | | ================== updated des crypt, crypt16, bigcrypt, bsdi crypt docs: * added details of algorithm * added security issues section * updated deviations text * other doc updates
* misc documentation updatesEli Collins2011-02-241-7/+31
|
* bugfixes; h64.encode_int/decode_int now have big-endian flagEli Collins2011-02-131-12/+23
|
* bugfix: h64.encode_dc_int64Eli Collins2011-02-121-5/+16
| | | | | | | des crypt & ext des crypt were using h64.encode_int64, which has been using wrong format since #fabd4b7f8ff5. this adds encode_dc_int64, which generates specific format used to encode des digest for those schemes.
* encode transposed bytesEli Collins2011-02-041-64/+105
| | | | | | ======================= * replaced h64.encode_xxx_offsets() functions with h64.encode_transposed_bytes() and list of offsets * affects sha256-crypt, sha512-crypt, md5-crypt, sun-md5-crypt
* added nthash support; document updatesEli Collins2011-02-011-13/+32
|
* added phpass portable hashEli Collins2011-02-011-0/+18
|
* updated docsEli Collins2011-01-311-36/+25
|
* wow. lots of rearrangingEli Collins2011-01-281-0/+145
======================== * back to 1.2 structure * moved h64 helpers into utils.h64 module * pared down CryptHandler * tightened UTs somewhat