summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* done with this branch, merged into stableclass-basedEli Collins2011-02-170-0/+0
|
* created stub module passlib.hash, moved proxy module insertion into that fileEli Collins2011-02-172-8/+28
|
* bigcrypt/crypt16 workEli Collins2011-02-176-19/+208
| | | | | | ===================== * added doc files * bugfix to bigcrypt (w/ UT for it)
* doc cleanup - changed hash descriptions from modules -> classesEli Collins2011-02-1621-212/+139
|
* MergeEli Collins2011-02-1645-1272/+1297
|\
| * added bigcrypt & crypt16 as described in perl Authen-Passphrase documentationEli Collins2011-02-163-1/+172
| |
| * fixed rename mistake from previous commitEli Collins2011-02-1621-96/+96
| |
| * large rearrangment of structureEli Collins2011-02-1658-1501/+1202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | =============================== * 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)
| * moved passlib.hash to passlib.driversEli Collins2011-02-1614-1/+18
| |
* | meant to remove this in previous commitEli Collins2011-02-161-131/+0
|/
* merged minor bugfixEli Collins2011-02-160-0/+0
|\
| * bugfixEli Collins2011-02-161-1/+1
| |
* | renamed postgres_md5 module -> postgres; merged ext_des_crypt handler into ↵Eli Collins2011-02-164-4/+108
| | | | | | | | des_crypt module
* | combined sha256/512crypt handlers into sha2_crypt module; updated their UTs; ↵Eli Collins2011-02-164-239/+186
| | | | | | | | bugfixes
* | moved apr md5 crypt into md5 crypt moduleEli Collins2011-02-163-69/+78
| |
* | merged mysql hashes into one fileEli Collins2011-02-143-89/+69
| |
* | notes, cleanupsEli Collins2011-02-143-51/+5
|/
* minor name changesEli Collins2011-02-142-4/+4
|
* cleanupsEli Collins2011-02-1419-560/+326
| | | | | | | | | | | | | ======== * 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-1411-459/+460
|
* convert BCrypt, MySQL 41 to classesEli Collins2011-02-148-439/+283
|
* converted md5 crypt to classEli Collins2011-02-134-226/+155
|
* added some internal notes about linux/bsd des-crypt border casesEli Collins2011-02-134-158/+84
|
* lazy backend selectionEli Collins2011-02-138-91/+176
| | | | | | | | ====================== * 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-134-18/+29
|
* added UT call to check BaseHandler.validate_class()Eli Collins2011-02-121-0/+8
|
* cleaned up helper handler classes, converted some more hashesEli Collins2011-02-1213-867/+797
|
* bugfix: h64.encode_dc_int64Eli Collins2011-02-123-14/+26
| | | | | | | 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.
* working on converting sha1_crypt to a classEli Collins2011-02-113-103/+106
|
* trying out sha512_crypt class-based handlerEli Collins2011-02-115-131/+396
| | | | | | | | * 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
* new branch - going to try reworking using a class-based approach, hoping to ↵Eli Collins2011-02-110-0/+0
| | | | consolidate code & tighten interface
* working on script for generated rounds values appropriate to a specified systemEli Collins2011-02-111-0/+228
|
* tweaks to docsEli Collins2011-02-117-11/+29
|
* added docs for sha1-cryptEli Collins2011-02-104-26/+112
|
* added netbsd's sha1-crypt (needs doc)Eli Collins2011-02-094-2/+182
|
* renamed rounds_cost constants to "linear" and "log2"Eli Collins2011-02-098-10/+10
|
* added rounds_cost informational attributeEli Collins2011-02-078-2/+22
|
* misc fixesEli Collins2011-02-074-204/+35
| | | | | | | ========== * CryptContext.is_compliant() now checks rounds parameter * some typo fixes * removed docs from CryptHandler - text is now in docs/password_hash_api.rst
* CryptPolicy workEli Collins2011-02-071-64/+141
| | | | | | | ================ * finished CryptPolicy.from_sources() - uncommented default_policy now that this works * serialization: added CryptPolicy.iteritems() / as_dict() / as_string() / write_to_file()
* bugfixes and tweaks to documentationEli Collins2011-02-0710-119/+242
|
* sql workEli Collins2011-02-0712-69/+147
| | | | | | | | ======== * combined passlib.mysql, passlib.postgres -> passlib.sqldb (contents were too small to be worth multiple modules) * added helper to read postgres plaintext passwords * added documentation for passlib.sqldb
* CryptPolicy workEli Collins2011-02-074-123/+219
| | | | | | | | ================ * (temporarily?) commented out frontend methods in toplevel passlib module * bugfixes to CryptPolicy * added min_verify_time to CryptPolicy * added default policy config file
* bugfixeEli Collins2011-02-071-1/+1
|
* added documentation for sun_md5_crypt; sped up implementation by reducing # ↵Eli Collins2011-02-073-71/+159
| | | | of array accesses
* major work on policy systemEli Collins2011-02-046-244/+537
| | | | | | | | | | | | | | | | | =========================== * added documentation detailing policy system's keys and functionality * split policy-related code out of CryptContext into CryptPolicy object * added 'category' kwd to all relevant CryptContext methods * implemented parsing & introspection methods for CryptPolicy * added rounds management to CryptContext, per policy specification * attempt at documenting passlib.unix (incomplete) TODO ---- * ability to create composite CryptPolicy objects * per-hash handling of policy compliance checks * UTs for policy system
* enabled simple test for unicode supportEli Collins2011-02-042-6/+10
|
* misc notesEli Collins2011-02-043-3/+6
|
* tweaked to handler UTsEli Collins2011-02-042-10/+29
|
* encode transposed bytesEli Collins2011-02-048-141/+266
| | | | | | ======================= * 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