summaryrefslogtreecommitdiff
path: root/passlib/tests/handler_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* large rearrangment of structureEli Collins2011-02-161-355/+0
| | | | | | | | | | | | | | | | | | | | =============================== * moved passlib.hash package to passlib.drivers * combined some passlib.driver modules together (eg ext_des_crypt merged w/ des_crypt) * renamed all hash classes to lower case, to match name attrs. * renamed ext_des_crypt to bsdi_crypt * added special proxy module "passlib.hash" which lazily loads drivers from correct location - registry system reworked, has list of locations for builtin drivers, and capability for apps to add more - passlib.hash *is* the registry, changes to it affect list - thanks to this, documentation can remain, pointing to passlib.hash.xxx as location for driver * moved passlib.utils.handlers to passlib.utils.drivers, renamed classes from XxxHandler -> XxxHash * combined all driver tests into single passlib/tests/test_drivers.py file * NOTE: disabled default unicode testing, not ready for that yet * all driver UTs pass (others not checked)
* minor name changesEli Collins2011-02-141-3/+3
|
* cleanupsEli Collins2011-02-141-3/+3
| | | | | | | | | | | | | ======== * removed from utils since they're not used: norm_salt, norm_rounds, gen_salt * commented out from utils since they're not used: abstractmethod, abstractclassmethod, memoized_class_property * removed passlib.hash.__skel - no longer used * rearranged utils.handlers: - all handler helper classes now inherit from eachother - BaseHandler (renamed from WrappedHandler) - ExtHandler (inherits from BaseHandler, was previously the one named BaseHandler) - StaticHandler (inherits from ExtHandler, renamed from PlainHandler) * converted test_handler classes to use ExtHandler & StaticHandler
* converted NTHash, PostgresMD5, SHA256Crypt, SunMD5Crypt to classesEli Collins2011-02-141-2/+2
|
* convert BCrypt, MySQL 41 to classesEli Collins2011-02-141-5/+3
|
* converted md5 crypt to classEli Collins2011-02-131-3/+38
|
* lazy backend selectionEli Collins2011-02-131-2/+2
| | | | | | | | ====================== * added BackendBaseHandler with framework for multiple backends * used it to implement os crypt / builtin backends for des-crypt, sha512-crypt * better than old method, since it does lazy checking only if hash is used * allows backends to be selected via set_backend(), making UTs easier
* added UT call to check BaseHandler.validate_class()Eli Collins2011-02-121-0/+8
|
* enabled simple test for unicode supportEli Collins2011-02-041-6/+6
|
* tweaked to handler UTsEli Collins2011-02-041-7/+22
|
* added nthash support; document updatesEli Collins2011-02-011-2/+4
|
* rearranged some modulesEli Collins2011-01-301-1/+1
|
* wow. lots of rearrangingEli Collins2011-01-281-3/+12
| | | | | | | | ======================== * back to 1.2 structure * moved h64 helpers into utils.h64 module * pared down CryptHandler * tightened UTs somewhat
* moved secret_chars to UTs; moved default/min/max_rounds to ExtCryptHandler; ↵Eli Collins2011-01-271-5/+6
| | | | updated CryptHandler docs
* removed salt_bytes, checksum_bytes attrs; not really useful, and could be ↵Eli Collins2011-01-261-7/+1
| | | | put in docstrings
* misc updatesEli Collins2011-01-241-1/+1
| | | | | | | | | | | ============ * wrote up info about sha-crypt deviations from spec * split sha crypt backends into separate function * sha crypt now checks if os crypt supports $5$ and $6$, and uses them instead of pure python backend * md5 crypt backend split into separate function * added support for apache variant of md5 crypt ("apr-md5-crypt", in same file) * handler: _norm_salt can now handle min_salt_chars=0 * handler: _norm_salt has validate code split into separate method (for sha crypt)
* refactored _slow_crypt somewhat; added support for ExtDesCrypt formatEli Collins2011-01-211-1/+2
|
* bugfixin'Eli Collins2011-01-191-0/+292
========= * bumped to 1.3 * refactored UTs a little bit * updated UTs to match new layout & protocols * lots of bug fixes * all UTs pass