summaryrefslogtreecommitdiff
path: root/passlib
Commit message (Collapse)AuthorAgeFilesLines
* created stub module passlib.hash, moved proxy module insertion into that fileEli Collins2011-02-172-8/+28
|
* bigcrypt/crypt16 workEli Collins2011-02-172-6/+15
| | | | | | ===================== * added doc files * bugfix to bigcrypt (w/ UT for it)
* added bigcrypt & crypt16 as described in perl Authen-Passphrase documentationEli Collins2011-02-163-1/+172
|
* large rearrangment of structureEli Collins2011-02-1636-1404/+1105
| | | | | | | | | | | | | | | | | | | | =============================== * 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
|
* 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-1418-547/+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-1212-867/+796
|
* 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
* working on script for generated rounds values appropriate to a specified systemEli Collins2011-02-111-0/+228
|
* tweaks to docsEli Collins2011-02-111-1/+1
|
* added docs for sha1-cryptEli Collins2011-02-101-15/+3
|
* added netbsd's sha1-crypt (needs doc)Eli Collins2011-02-093-2/+179
|
* renamed rounds_cost constants to "linear" and "log2"Eli Collins2011-02-097-8/+8
|
* added rounds_cost informational attributeEli Collins2011-02-077-2/+14
|
* misc fixesEli Collins2011-02-073-199/+30
| | | | | | | ========== * 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()
* sql workEli Collins2011-02-076-65/+100
| | | | | | | | ======== * 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-073-122/+210
| | | | | | | | ================ * (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-071-68/+54
| | | | of array accesses
* major work on policy systemEli Collins2011-02-043-213/+355
| | | | | | | | | | | | | | | | | =========================== * 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-042-3/+5
|
* tweaked to handler UTsEli Collins2011-02-042-10/+29
|
* encode transposed bytesEli Collins2011-02-047-138/+262
| | | | | | ======================= * 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
* added DisabledHandler to all unix contexts; checked BSDs for exactly which ↵Eli Collins2011-02-031-8/+51
| | | | algorithms they support
* documentation updatesEli Collins2011-02-046-49/+111
| | | | | | | ===================== * documentation added for mysql & postgres hashes * enhanced autodocument() function's output * added usage examples for more hashes
* more documentation workEli Collins2011-02-025-85/+43
|
* work on autogenerating function docstrings for hash modulesEli Collins2011-02-027-75/+188
|
* CryptContext workEli Collins2011-02-021-69/+51
| | | | | | ================= * fills in per-handler defaults from configuration * added genconfig() and genhash() passthrough methods
* added nthash support; document updatesEli Collins2011-02-016-27/+162
|
* added phpass portable hashEli Collins2011-02-014-1/+209
|
* more docsEli Collins2011-02-011-1/+1
|
* miscEli Collins2011-02-017-36/+17
| | | | | | ==== * added documentation * bugfix: ext-des-crypt rounds were being capped at 12 bits, not 24. added ut for regression.