summaryrefslogtreecommitdiff
path: root/passlib/registry.py
Commit message (Collapse)AuthorAgeFilesLines
* cleanup old python compat -- removed "unicode_or_str" and ↵Eli Collins2020-10-061-4/+3
| | | | "native_string_types" aliases
* Merge from stableEli Collins2020-10-061-1/+6
|\
| * passlib.hash: added ldap_salted_sha256 & ldap_salted_512 (issue 124)Eli Collins2020-10-051-0/+2
| |
| * registry: tweak get_supported_os_crypt_schemes() warning messageEli Collins2020-05-121-1/+4
| | | | | | | | to include platform information.
* | 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-0/+1
| | | | | | | * 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.
* docs: LARGE update to documentation, tutorials added, pages relocatedEli Collins2016-11-201-2/+2
| | | | | | | | | | | | | | | | * moved a bunch of pages into 'docs/narr' narrative subsection. added placeholder pages in old locations, to minimize inbound link breakage. * split history into separate pages, was getting way too long. removed toplevel CHANGES file, not feasible under new structure. * passlib.ifc split into reference & tutorial portions, tutorial allowed subsuming a bunch of other hash-usage examples. * added standard fragments for warning about insecure hashes, added them to top of a LOT of hash doc pages. * updated references, various layout tweaks
* passlib.registry: consolidated some internal helpers from various placesEli Collins2016-11-191-3/+128
| | | | | * moved has_active_backend() from UTs to .registry * moved os_crypt backend support helper from .hosts to .registry
* passlib.hash.argon2: support for Argon2 hash formatEli Collins2016-06-171-0/+1
| | | | | | | | | | * passlib.handlers.argon2 module contains 'argon2' hasher class, for both argon2_cffi & argon2pure packages as backends. * added UTs from argon2 clib source, as well as some from argon2_cffi, and some more custom hashes. * UT harness: added limit so salt range test doesn't eat up all the memory under argon2.
* passlib.handlers.scrypt: created scrypt hash handler, complete with UTs and docsEli Collins2016-06-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* cisco asa tweaksEli Collins2015-07-251-0/+1
| | | | | | | | | | | | * split cisco ASA 7.0 code out into separate 'cisco_asa' class, some minor reformatting of the internals (no alg changes). * updated documentation to reflect the two different classes, added to changelog. * added some reference vectors generated by current implementation -- vectors chosen to verify thresholds around various if/thens in the ASA alg. added note that these still need to be verified by official implementation.
* minor fixes to some string isinstance() testsEli Collins2015-07-231-1/+1
|
* Merge from stableEli Collins2015-01-271-1/+2
|\
| * replaced a bunch of ``isinstance(xxx, str)`` checks withEli Collins2015-01-251-1/+2
| | | | | | | | | | | | | | | | | | ``isinstance(xxx, native_string_types)`` checks, to handle str or unicode under py2. this should explicitly take care of issue 54, but not closing that until checking deeper into the unicode handling. should allow str/unicode anywhere the inputs are program values (e.g. config options), not user-provided values.
* | clarified registry error msgEli Collins2015-01-101-1/+2
|/
* massive cleanup of documentation typos, thanks to Thomas Waldmann (issue 27, ↵Eli Collins2013-12-271-2/+2
| | | | comment 7) (transplant of r1f5b8860b743 from default branch)
* added passlib.hash.bcrypt_sha256Eli Collins2013-12-261-0/+1
| | | | | | | | | | | | | | * not too much trouble, and definitely needed. after considering options, decided to use sha256 + base64. * added note re: bcrypt password truncation * HasBackend mixin -- changed to use _calc_checksum_backend() as the attribute it patches, instead of _calc_checksum(). makes it easier to consolidate code common to all backends (e.g. bcrypt) * test_60_secret_size: changed hardcoded exception list to a class flag * added registry test to make sure all hashes are being tested (with a few known exceptions) * clarified names inside builtin bcrypt backend * updated changelog
* django compatibility part 2Eli Collins2013-12-221-0/+1
| | | | | | | | * 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
* bugfix for py3.3: passlib registry methods would erroneously return private ↵Eli Collins2012-08-021-1/+11
| | | | module attrs
* project-wide whitespace & comment cleanup (it's been a couple of years)Eli Collins2012-08-011-12/+12
|
* updated various bit of documentation; made 1.6 changelog presentableEli Collins2012-04-301-1/+0
|
* added some missing tests; fixed a bunch of bugsEli Collins2012-04-281-1/+1
|
* forgot to list django 1.4 hashes in registry, some other notesEli Collins2012-04-271-0/+3
|
* cleaned up the registry code -- less redundant data, more type checksEli Collins2012-04-271-196/+199
|
* CryptPolicy deprecated, part2 - updated rest of library to use CryptContext ↵Eli Collins2012-04-171-5/+6
| | | | directly
* updated passlib.apache module's api - more flexible to use, changed some ↵Eli Collins2012-04-171-0/+1
| | | | ambiguous method names
* minor constant & comment tweaksEli Collins2012-04-101-1/+1
|
* misc bugfixes dealing with changes from last 8 or so commitsEli Collins2012-03-111-0/+1
|
* did rewrite of unix_fallback as unix_disabled; unix_fallback is now deprecatedEli Collins2012-03-101-1/+2
|
* added Window's DCC hashes (aka mscache / mscash) version 1 & 2Eli Collins2012-03-101-3/+5
|
* renamed nthash -> bsd_nthash; added real nthash implementedEli Collins2012-03-101-0/+1
| | | | | | | after some thought, realized the 'nthash' name should implement the raw hash. since bsd_nthash was very rarely used, it shouldn't present backwards incompatibility issues at this point to go ahead and rename it.
* added support for lmhashEli Collins2012-03-101-0/+1
|
* added support for Cisco PIX & Type 7 hashesEli Collins2012-03-101-0/+2
| | | | | | | | * Cisco Type 5 appears to be same as md5_crypt * added requires_user=False support to HandlerCase * added more through salt-generation test (since cisco_pix has only 4 bits of salt) * added HandlerCase test to ensure user is used as salt
* added mssql 2000/2005 hashes; enhanced HandlerCase's password case sensitive ↵Eli Collins2012-03-101-0/+2
| | | | test
* MergeEli Collins2012-02-081-1/+1
|\
| * minor tweaks & fixesEli Collins2012-02-081-1/+1
| |
* | fix to lazy handler loadingEli Collins2012-01-191-4/+4
|/
* split exceptions/warnings to separate module; added some additional warning ↵Eli Collins2012-01-181-1/+3
| | | | classes to make filtering easier
* lots of work on scram hashEli Collins2012-01-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | handler ------- * added 'scram' to default registry list * handler 'algs' keyword now parsed & validated correctly * digest names normalized -> IANA spec * saslprep() integrated into code * added config string format related ------- * added documentation (still needs cleaning up though) * added majority of UTs, still need to add a few edge cases other ----- * redid context->handler deprecation link - code now looks for handler._deprecated_detector(settings) to generate a callable, should be more efficient, and allow errors to be throw at bind-time instead of call-time. * pbkdf2() function now treats keylen = -1 as request for keylen = PRF digest size.
* removed Undef singleton, private _NOTSET singletons are cleaner.Eli Collins2011-12-281-3/+5
|
* large rewrite of how CryptPolicy is parsed and compiled; should result in ↵Eli Collins2011-12-221-12/+25
| | | | *much* shorter codepath when calling CryptContext.encrypt(), etc
* bugfix: make sure ``passlib.hash.__loader__`` attribute writable - needed by ↵Eli Collins2011-08-121-1/+6
| | | | GAE [issue 19]
* misc documentation tweaksEli Collins2011-06-301-1/+1
|
* django workEli Collins2011-06-301-0/+5
| | | | | | | * 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
* minor typo & doc tweaksEli Collins2011-06-201-3/+3
|
* added support for Cryptacular's PBKDF2 formatEli Collins2011-06-021-0/+1
|
* added FSHP supportEli Collins2011-06-021-0/+1
|
* various documentation updatesEli Collins2011-06-011-4/+18
|
* added ldap_pbkdf2_{digest} variants; UTs & docs; removed prefix from ↵Eli Collins2011-04-291-2/+5
| | | | pdkdf2_sha1 for compat w/ existing hashes
* added support for hashes used by Roundup Issue trackerEli Collins2011-04-251-0/+5
| | | | | | * ldap_hex_md5, ldap_hex_sha1, roundup_plaintext, roundup_pbkdf2_sha1 * also uses ldap_des_crypt * need to add docs