| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| | |
|
| |
|
|
| |
removed bchrs (code uses bjoin_ints)
|
| | |
|
| |
|
|
| |
compat.u
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
* 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
|
| |
|
|
| |
compat, changes made by 2to3)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
============================
* 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
|
| |
|
|
|
|
|
|
|
|
|
| |
=============
* 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
|
| |
|
|
|
|
|
|
|
|
|
| |
==================
updated des crypt, crypt16, bigcrypt, bsdi crypt docs:
* added details of algorithm
* added security issues section
* updated deviations text
* other doc updates
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
=======================
* 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
|
| | |
|
| | |
|
| | |
|
|
|
========================
* back to 1.2 structure
* moved h64 helpers into utils.h64 module
* pared down CryptHandler
* tightened UTs somewhat
|