summaryrefslogtreecommitdiff
path: root/passlib/utils
Commit message (Collapse)AuthorAgeFilesLines
* large rearrangment of structureEli Collins2011-02-162-29/+29
| | | | | | | | | | | | | | | | | | | | =============================== * 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)
* passlib.utils:rng now uses SystemRandom if urandom available (previously ↵Eli Collins2011-02-161-4/+9
| | | | just seeded a prng *from* urandom)
* combined sha256/512crypt handlers into sha2_crypt module; updated their UTs; ↵Eli Collins2011-02-161-0/+1
| | | | bugfixes
* notes, cleanupsEli Collins2011-02-141-51/+0
|
* cleanupsEli Collins2011-02-142-371/+265
| | | | | | | | | | | | | ======== * 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-142-56/+82
|
* convert BCrypt, MySQL 41 to classesEli Collins2011-02-142-107/+63
|
* added some internal notes about linux/bsd des-crypt border casesEli Collins2011-02-131-0/+4
|
* lazy backend selectionEli Collins2011-02-132-0/+80
| | | | | | | | ====================== * 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
* bugfixes; h64.encode_int/decode_int now have big-endian flagEli Collins2011-02-131-12/+23
|
* cleaned up helper handler classes, converted some more hashesEli Collins2011-02-122-374/+394
|
* 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.
* trying out sha512_crypt class-based handlerEli Collins2011-02-112-19/+263
| | | | | | | | * added passlib.utils.handlers.BaseSRHandler - class providing framework for hashes w/ salt & rounds * converted sha512_crypt to use it (registers class when module imported) * tweaked autodocument to work w/ classes - FIXME: won't work right with common methods in parent class * tweaked handler registration to check if module registered class after import
* renamed rounds_cost constants to "linear" and "log2"Eli Collins2011-02-091-2/+2
|
* added rounds_cost informational attributeEli Collins2011-02-071-1/+4
|
* misc fixesEli Collins2011-02-071-187/+6
| | | | | | | ========== * CryptContext.is_compliant() now checks rounds parameter * some typo fixes * removed docs from CryptHandler - text is now in docs/password_hash_api.rst
* misc notesEli Collins2011-02-041-2/+4
|
* 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
* documentation updatesEli Collins2011-02-041-39/+81
| | | | | | | ===================== * documentation added for mysql & postgres hashes * enhanced autodocument() function's output * added usage examples for more hashes
* more documentation workEli Collins2011-02-021-3/+3
|
* work on autogenerating function docstrings for hash modulesEli Collins2011-02-021-8/+145
|
* added nthash support; document updatesEli Collins2011-02-011-13/+32
|
* added phpass portable hashEli Collins2011-02-011-0/+18
|
* miscEli Collins2011-02-011-2/+2
| | | | | | ==== * added documentation * bugfix: ext-des-crypt rounds were being capped at 12 bits, not 24. added ut for regression.
* updated docsEli Collins2011-01-315-97/+73
|
* rearranged some modulesEli Collins2011-01-301-0/+520
|
* working on policy for CryptContext, names must now use underscores instead ↵Eli Collins2011-01-301-0/+31
| | | | of hyphens
* wow. lots of rearrangingEli Collins2011-01-284-235/+249
| | | | | | | | ======================== * back to 1.2 structure * moved h64 helpers into utils.h64 module * pared down CryptHandler * tightened UTs somewhat
* md5-crypt now uses stdlib backend if availableEli Collins2011-01-251-1/+1
|
* moved DES routines to separate moduleEli Collins2011-01-254-698/+771
|
* work on lanman hashEli Collins2011-01-253-2/+71
|
* misc stuffEli Collins2011-01-241-0/+189
|
* optimized _slow_bcrypt, now somewhat faster (still not really usuable in ↵Eli Collins2011-01-211-156/+177
| | | | production)
* _slow_crypt: merged des_setkey & des_cipher, since crypt doesnt need multiblockEli Collins2011-01-211-43/+40
|
* _slow_des_crypt: reordered C6464, PCXROT tables to make perm6464 ↵Eli Collins2011-01-211-231/+229
| | | | implementation simple; perm3264/perm6464 now same function
* _slow_des_crypt: reordered IE3264 table to make perm3264() implementation ↵Eli Collins2011-01-211-48/+57
| | | | simpler
* various things to speed up des-cryptEli Collins2011-01-211-43/+61
|
* refactored _slow_crypt somewhat; added support for ExtDesCrypt formatEli Collins2011-01-211-53/+158
|
* notesEli Collins2011-01-191-0/+1
|
* bugfixin'Eli Collins2011-01-192-3/+3
| | | | | | | | | ========= * 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-7/+0
|
* import cleanupsEli Collins2011-01-193-115/+5
|
* removed a bunch of unused importsEli Collins2011-01-192-37/+39
|
* removed HashInfoEli Collins2011-01-191-18/+0
|
* rearranging some moreEli Collins2011-01-194-0/+2009
===================== * moved unix style algorithms into passlib.unix package * renamed unix-crypt to des-crypt * moved a bunch of utils into new utils pacakge * NOTE: imports currently broken