summaryrefslogtreecommitdiff
path: root/passlib/apps.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge from stableEli Collins2020-10-081-12/+52
|\ | | | | | | | | | | | | As part of merge: * various: reverted the py26 compat fixes from rev 5e2f92012412 * test utils: stripped out "has_real_subtest" compat from rev c732a9e2a582, since now on py35+, which always has .subTest() method
| * passlib.ext.django: Updated UTs to work with latest django releaseEli Collins2020-10-071-12/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (should fix long-standing issue 98) * test_ext_django: - Simplified "stock config" setup code. It now gets it's "sha_rounds" value from the django source, so we don't have to manually update it every time django changes their default. This should require less maintenance across minor django releases. (Should fix issue 98, and prevent recurrence) - Updated tests to account for quirks in how encoded hashes are handled. Specifically: None, "", and invalid hashes all cause subtly different behaviors across django versions. tests pass against django 1.8 - 3.1. - split "empty hash" test out from the loop it shared with "null hash" test, since the two behave differently. * tox: expanded envlist to explicitly test a bunch more django versions (1.8 - 3.1); and remove some needless "django 2.x + py2" tests * passlib.apps: reformatted django CryptContext declarations; added one for django 2.1 (which dropped "django_bcrypt" it's default list) * passlib.ext.django: - added internal "quirks" helper as central place to track minor edge-case changes between django versions. - passlib_to_django() helper now falls back to searching hasher classes directly, even if patch isn't installed. this allows it to work for django hashers that have been removed from django's default list.
* | Merge from stableEli Collins2020-10-061-3/+11
|\ \ | |/
| * passlib.hash: added ldap_salted_sha256 & ldap_salted_512 (issue 124)Eli Collins2020-10-051-3/+11
| |
* | general: went ahead and removed a bunch of deprecated features that were ↵Eli Collins2016-11-281-1/+0
|/ | | | | | | | | scheduled for removal in v1.8. this removes CryptPolicy, unix_fallback, some old HtpasswdFile methods, and more. tests were updated as well. see history/1.8 for a complete list.
* passlib.handlers.django: added support for django_argon2Eli Collins2016-11-221-2/+2
| | | | | | | * added django_argon2 wrapper & docs * added method for PrefixWrapper to generically preserve custom attrs when creating variants, so .django_name attr is persisted across .using() calls.
* passlib.tests: django 1.10 compat fixesEli Collins2016-11-191-1/+7
|
* deprecating the 'vary_rounds' option -- *very* little security benefit,Eli Collins2016-06-101-1/+0
| | | | | | | 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
* retuned/updated default rounds settings for all hashesEli Collins2015-07-251-4/+4
|
* style cleanups (transplant of rc94c6072a652 in default)Eli Collins2013-12-271-2/+2
|
* django compatibility part 2Eli Collins2013-12-221-3/+11
| | | | | | | | * added implementation of django 1.6's bcrypt_sha256 hasher, and UTs * added django16 premade context to passlib.apps, made it default django_context * test_ext_django now makes use of django16_context * passlib.ext.django.utils.get_preset_config() now uses django16_context * tox 'django' and 'django-py3' now test bcrypt integration
* project-wide whitespace & comment cleanup (it's been a couple of years)Eli Collins2012-08-011-43/+42
|
* assorted small details that weren't covered in the last few mergesEli Collins2012-04-271-5/+5
|
* added support for the new Django 1.4 hash formatsEli Collins2012-04-271-7/+14
| | | | | | - updated salt handling of the existing django hashes, in a way which should be backwards compatible w/ django 1.0 - UTs now test Django hasher output against passlib handlers (reverse was already being done) - refactor of fuzz testing to reuse some of the methods.
* added undocumented apps.master_context to add in testing - context ↵Eli Collins2012-04-271-0/+44
| | | | containing ALL hashes, with the exception of ones with problematic identify() methods
* stripping out "passprep" feature - code was working, but the api isn't read ↵Eli Collins2012-04-271-5/+0
| | | | for release. will adjust issue 24.
* CryptPolicy deprecated, part2 - updated rest of library to use CryptContext ↵Eli Collins2012-04-171-1/+1
| | | | directly
* removed default policy file & objectEli Collins2012-04-091-6/+3
| | | | | | | was using default policy to store recommended defaults for hashes, but it only affects CryptContext objects, and users seem to frequent using the handler objects directly - so going to store recommended defaults in the handler from now on.
* cleanups to utilsEli Collins2012-01-181-1/+1
|
* minor doc changesEli Collins2012-01-021-0/+4
|
* CryptContext can now run passwords through SASLPrep via "passprep" options ↵Eli Collins2012-01-021-0/+5
| | | | [issue 24]
* moved sys_bits to compat, added exc_err, removed utils.py32_langEli Collins2011-12-061-1/+1
|
* phpass_context now imports bcrypt hash only if phpass_context is usedEli Collins2011-08-121-7/+11
|
* removed min_verify_time setting from custom_app_context,Eli Collins2011-08-101-1/+0
| | | | min_verify_time is too host & load dependant to be hardcoded.
* added documentation for Django hashes & contextEli Collins2011-07-101-0/+1
|
* django workEli Collins2011-06-301-0/+12
| | | | | | | * django hashes cleaned up, UTs added * added passlib.apps.django_context for reading existing django hashes * added experimental django plugin "passlib.ext.django" which monkeypatches django to use pbkdf2_sha256 (and many other features) * not listing in changelog or documenting just yet, needs more testing
* PHPass now prefers portable hash over bsdi-cryptEli Collins2011-06-221-2/+2
|
* note about stray load of bcrypt hash - should add UTs to check passlib.apps ↵Eli Collins2011-05-091-0/+2
| | | | & passlib.hosts to detect any more of these
* set roundup15_context to deprecate older schemesEli Collins2011-05-041-1/+6
|
* added documentation for roundup hashes & contextEli Collins2011-04-291-3/+5
|
* added support for hashes used by Roundup Issue trackerEli Collins2011-04-251-4/+11
| | | | | | * ldap_hex_md5, ldap_hex_sha1, roundup_plaintext, roundup_pbkdf2_sha1 * also uses ldap_des_crypt * need to add docs
* misc tweaksEli Collins2011-04-251-4/+6
|
* added support for ldap {CRYPT} handlers, using PrefixWrapper to wrap base ↵Eli Collins2011-04-251-6/+27
| | | | handlers
* converted passlib.apps & passlib.hosts to use LazyCryptContextEli Collins2011-04-081-8/+8
|
* misc bugfixes & tweaks for win32 compatEli Collins2011-03-251-4/+2
|
* added phpass_context & phpbb3_context to passlib.appsEli Collins2011-03-241-0/+10
|
* added internal noteEli Collins2011-03-231-0/+5
|
* passlib.apps workEli Collins2011-03-231-0/+65
================= * renamed passlib.servers -> passlib.apps * added custom_app_context, for quickly adding hashes to new apps * documented module