summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* closing branchscrypt-devEli Collins2016-06-100-0/+0
|
* bugfix: passlib.tests.utils: backend inspection code was mistakenly reading ↵Eli Collins2016-06-101-1/+2
| | | | .set_backend() return value.
* docs: cleanupsEli Collins2016-06-102-8/+8
|
* passlib.handlers.scrypt: created scrypt hash handler, complete with UTs and docsEli Collins2016-06-1017-362/+1608
| | | | | | | | | | | | | | | | | | | | | | | | | | | * scrypt kdf code - relocated scrypt kdf code to passlib.crypto.scrypt - py3 compat fixes - split UTs out into separate file - removed "non-power of 2" support, not needed. - added wrapper which can toggle between builtin backend, and extenrnal scrypt package. - factored out n/r/p validation code so it can be used independantly of calling kdf itself. * passlib.handlers.scrypt: added scrypt handler which wraps the kdf. - added some custom test strings, as well as adapted some reference values from the scrypt whitepaper. - added documentation page - integrated scrypt kdf wrapper w/ hash's HasManyBackends api
* Merge from defaultEli Collins2016-06-10134-5321/+25503
|\
| * docs: minor changesEli Collins2016-06-102-5/+7
| |
| * passlib.tests: silenced some internal deprecation warningsEli Collins2016-06-102-0/+3
| |
| * passlib.utils.handlers / HasRounds: the 'rounds' keyword is now treatedEli Collins2016-06-106-22/+46
| | | | | | | | | | | | | | | | | | | | | | as a fallback for 'default_rounds', 'min_rounds', and 'max_rounds'. this makes it easier to specify a django-style policy of "deprecate all hashes which have a differing rounds value". * removed special handling from 'rounds' from CryptContext parser * tweaked affected CryptContext serialization tests * added test for new behavior
| * passlib.pwd: enhanced 'duplicate elements' message to be more detailed.Eli Collins2016-06-101-1/+16
| |
| * bugfix: plaintext, htdigest, unix_disabled hashes: added missing .using() ↵Eli Collins2016-06-104-22/+49
| | | | | | | | | | | | | | | | | | | | | | implementation these all derived directly from PasswordHash, and lacked a working .using(). * added UT to check for a working .using() method * factored out GenericHandler's .using() into another base class which these three hashes could inherit from.
| * bugfix: passlib.totp: add missing import to UTs; add 'cryptography' package ↵Eli Collins2016-06-102-0/+3
| | | | | | | | to tox.ini
| * passlib.context: deprecating the 'all' preset scheme --Eli Collins2016-06-104-30/+63
| | | | | | | | | | | | | | | | | | | | only legitimate use was for 'vary_rounds' option, which is being phased out, and other uses like 'min_rounds' were a security issue. * fixed CryptContext() tests to stop uses "all" kwds * issue dep warning if "all" scheme is used * issue config warning if anything but "vary_rounds" is used, since config needs to be changed (regardless of passlib version)
| * deprecating the 'vary_rounds' option -- *very* little security benefit,Eli Collins2016-06-109-16/+25
| | | | | | | | | | | | | | and not worth the amount of code it requires to support it. * stripped out vary_rounds from all internal presets * added deprecation warning if it's ever used
| * passlib.context: now that Handler.using() is fully implemented,Eli Collins2016-06-104-139/+80
| | | | | | | | | | removed _CryptRecord proxy object completely. CryptContext now just worked with custom handler instances directly.
| * passlib.utils.handlers: HasSalt.using() implemented to support customizingEli Collins2016-06-102-0/+121
| | | | | | | | default salt size, added UTs.
| * passlib.tests.test_totp: use proper timing tool for runtime measurement,Eli Collins2016-06-103-27/+26
| | | | | | | | prevents some spurious test failures when under erratic system load
| * passlib.totp: converted encrypt_key() helper to use AES-CTR via ↵Eli Collins2016-06-102-34/+118
| | | | | | | | 'cryptography' package
| * passlib.utils.handlers: some fixes to HasManyIdent.using(), added more UTsEli Collins2016-06-103-2/+9
| |
| * passlib.utils.handlers: some fixes to HasRounds.using(), added more UTsEli Collins2016-06-104-49/+219
| | | | | | | | | | | | | | | | | | * HasRounds: now parses vary_rounds="0.x" format correctly * PrefixWrapper: now exposes "vary_rounds" attr * handler tests: split HasRounds.using() into multiple tests, one for each property (max_rounds, min_rounds, etc) * context tests: added checks that custom handler is being configured correctly, since actual behavior is now being checked by handler tests.
| * passlib.crypto: relocated bcrypt backend code from passlib.utilsEli Collins2016-06-107-23/+12
| |
| * .encrypt() method renamed to .hash(), other api cleanupsEli Collins2016-06-1076-615/+623
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | .encrypt() ---------- hash.encrypt() & context.encrypt() have been renamed to .hash(). this should take care of the long-standing issue 21 (the poor naming of .encrypt). per docs, legacy aliases will remain in place until passlib 2.0. .genhash() / .genconfig() ------------------------- taking advantage of this reorganization to also deprecate .genconfig() and .genhash() -- they're not really useful in a modern system, nor as needed for historical support as initially thought: .genconfig() will be retired completely in passlib 2.0; .genhash() is rolled into the new .hash() method along with .encrypt().
| * bugfix: passlib.pwd: fixed codecs.open() mode so it works under py3Eli Collins2016-02-121-1/+1
| |
| * changes: updated 1.7 TODO list, reformatted some itemsEli Collins2016-02-112-64/+74
| |
| * passlib.pwd: big cleanup pass, removing code that won't be ready for releaseEli Collins2016-02-1111-481/+18006
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * split generate() into genword() & genphrase() -- APIs are just too different to keep combined. * renamed internal calc funcs to better reflect their purpose. * commented out PhraseGenerator's min_chars code, can't confirm it's doing correct thing. * commented out password strength estimator, too half-baked. * tried to simplify SequenceGenerator attributes. * genword(): defined some base charsets to work with * genphrase(): wordsets now stored uncompressed (not really that big, and .whl will compress everything for transport). * fleshed out UTs for genword() & genphrase() * updated docs
| * added reference for cisco_asa algorithmEli Collins2016-02-101-0/+3
| |
| * relocated many of the crypto routes inside passlib.utils,Eli Collins2016-02-1049-2325/+3167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and moved them to a separate passlib.crypto subpackage. along with this move, made a few api cleanups: * unified all code that's looking up hashes to use new passlib.crypto.lookup_hash() wrapper, which takes care of hash name normalization, loading fallback implementations, and alg metadata inspection, all hidden behind a memoized function. * deprecated pbkdf2() in favor of pbkdf2_hmac() -- only real use, and new signature matches stdlib function. additionally, this version is a bit faster, due to some assumptions that can be made due to the PRF always being HMAC based. * added compile_hmac() helper which does an even more efficient job of pre-compiling a keyed HMAC function; this helped speed up pbkdf2 a bit more.
| * passlib.totp: factored out SequenceMixin for general use in passlibEli Collins2016-02-102-29/+30
| |
| * passlib.tests / HandlerTest: when generating random rounds,Eli Collins2016-02-101-4/+4
| | | | | | | | don't use 0, even if "allowed" by hash, causes spurious failures.
| * passlib.ext.django: dropped support for django 1.6-1.7, per passlib 1.6.6 ↵Eli Collins2016-02-097-140/+67
| | | | | | | | | | | | | | | | | | announcement motivation is that django hashers framework has matured greatly as of django 1.8, and dropping all prior versions not only eases support burden, but opens up opportunity for integration via less invasive method in a future passlib release, using django 1.8 as a common base.
| * Merge with stableEli Collins2016-02-0913-55/+488
| |\
| | * fix: handler test suite: avoid even rounds for bsdi_cryptEli Collins2016-02-081-1/+4
| | |
| | * bugfix: PrefixWrapper wasn't initializing parse_rounds() for lazy-loaded ↵Eli Collins2016-02-081-8/+11
| | | | | | | | | | | | handlers.
| | * Fix typoYuval Langer2015-12-301-1/+1
| | | | | | | | | | | | (grafted from 147ca054691e1cc798faec622d8509502d7c37f9)
| | * Fix typoYuval Langer2015-12-301-1/+1
| | | | | | | | | | | | (grafted from da9beaf8d08dc0139430124ea1cf494242f14f5c)
| | * passlib.ext.django: fixes so we're compatible with django 1.9, fixes issue 68Eli Collins2016-02-086-48/+273
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | failures were mostly in the unittests, not in passlib proper. however, to get things working, ended up making some internal improvements to django integration. * passlib.ext.django now patches get_hashers() for django 1.8+ * the (still internal) _PasslibHasherWrapper, which wraps a passlib hash in a django-hasher-compatible api, got an overhaul: - 'rounds' and 'iterations' attributes now populated from underlying passlib hasher, so inspecting them gives sane result. - now autohandles 'rounds' vs 'iterations' to match expected django api. - bugfix: correct OrderedDict import removed in django 1.9 - .must_update() now mimics django's semantics, using wrapped handler.parse_rounds(). previously just always returned False. - NOTE: all these changes bring this thing much closer to be able to provide passlib handlers TO django, rather than having to patch entire django framework. * unittests - django 1.7+: populate django apps before test; required as of 1.9 - added rounds settings required for 1.9 test to function - django tests integratio - now keeps context in sync for all hashers, not just pbkdf2_sha256; needed to pass some django 1.9 tests. * django 1.8 is LTS, and <= 1.7 is EOLed, per https://www.djangoproject.com/download/; so now planning to drop django 1.6 / 1.7 support in passlib 1.7.
| | * PasswordHash ifc: added temporarily helper .parse_rounds(),Eli Collins2016-02-084-10/+86
| | | | | | | | | | | | which abstracts out job of parsing rounds value from hash.
| | * CryptContext: callers can now provider contextual keywords for any hash in ↵Eli Collins2016-02-085-5/+137
| | | | | | | | | | | | | | | | | | the context, and they will only be passed on for the hashes that support them (fixes issue 63).
| * | Merged in yuvallanger/passlib/yuvallanger/fix-typo-1451443676093 (pull ↵Eli Collins2016-01-031-2/+2
| |\ \ | | | | | | | | | | | | | | | | | | | | request #2) Fix typo
| | * | Fix typoYuval Langer2015-12-301-1/+1
| | | |
| | * | Fix typoYuval Langer2015-12-301-1/+1
| |/ /
| * | bugfix: choose_rounds: make it py3 compatibleEli Collins2015-12-051-15/+15
| | |
| * | Merge from stableEli Collins2015-08-045-9/+25
| |\ \ | | |/
| | * Added tag 1.6.5 for changeset c9083726f40fEli Collins2015-08-040-0/+0
| | |
| | * bumped to 1.6.5; updated (c) years in a few places1.6.5Eli Collins2015-08-044-4/+10
| | |
| | * updated README fileEli Collins2015-08-041-14/+40
| | |
| | * break import into multiple lines - fixes issue 58 part 2Eli Collins2015-08-041-1/+4
| | |
| | * bugfix: tests.utils: added list wrapper, since tuple().index doesn't exist ↵Eli Collins2015-07-281-1/+3
| | | | | | | | | | | | | | | | | | under py25 (fixes issue 58)
| * | updated fuzzy test timeout factor greatlyEli Collins2015-07-261-1/+1
| | |
| * | tweaked threaded fuzz test logging & timeoutEli Collins2015-07-261-9/+16
| | |
| * | bcrypt_sha256 now accepts multiple idents, switched to $2b$ by default.Eli Collins2015-07-261-2/+13
| | |