summaryrefslogtreecommitdiff
path: root/passlib/handler.py
Commit message (Collapse)AuthorAgeFilesLines
* rearranged some modulesEli Collins2011-01-301-627/+0
|
* working on policy for CryptContext, names must now use underscores instead ↵Eli Collins2011-01-301-44/+32
| | | | of hyphens
* wow. lots of rearrangingEli Collins2011-01-281-370/+297
| | | | | | | | ======================== * 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-89/+97
| | | | updated CryptHandler docs
* misc tweaksEli Collins2011-01-261-9/+9
|
* ExtCryptHandler.verify() does directly checksum comparision, removed need ↵Eli Collins2011-01-261-24/+15
| | | | for norm_hash
* tweaked interface a littleEli Collins2011-01-261-140/+141
|
* removed salt_bytes, checksum_bytes attrs; not really useful, and could be ↵Eli Collins2011-01-261-17/+0
| | | | put in docstrings
* refactoring interface: added genhash(), genconfig(); defaults for ↵Eli Collins2011-01-261-60/+235
| | | | ident/verify/encrypt based on them
* misc updatesEli Collins2011-01-241-14/+18
| | | | | | | | | | | ============ * 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)
* ExtCryptHandlerEli Collins2011-01-201-85/+242
| | | | | | | | | | | | | | =============== * renamed CryptHandlerHelper to ExtCryptHandler * moved parse/render interface to ExtCryptHandler, formalized it somewhat * added default identify() and verify() methods to ExtCryptHandler * sha crypt: tweaked render() to be able to create config strings * sha crypt: added implicit_rounds kwd support to encrypt() * bcrypt: changed 'ident' kwd to use 'omit_null_suffix' (defaults to True) * bcrypt: added render() method (can also create config strings) * all UTs passed * TODO: add UTs for ExtCryptHandler subclasses - mainly, verify that parse() and render() work correctly
* bugfixin'Eli Collins2011-01-191-10/+28
| | | | | | | | | ========= * bumped to 1.3 * refactored UTs a little bit * updated UTs to match new layout & protocols * lots of bug fixes * all UTs pass
* added CryptHandlerHelper._norm_saltEli Collins2011-01-191-1/+20
|
* import cleanupsEli Collins2011-01-191-2/+2
|
* removed a bunch of unused importsEli Collins2011-01-191-7/+1
|
* rearanging moreEli Collins2011-01-191-0/+362
=============== * split passlib.base into passlib.context & passlib.handler * renamed CryptAlgorithm to CryptHandler (similar rename for support funcs, eg register_crypt_handler) * updated related imports