| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
and probably never will be.
|
| | |
|
| |
|
|
|
|
|
|
| |
============================================
renamed the classes in passlib.utils.handlers, for clarity in code:
* BaseHash -> SimpleHandler
* ExtHash -> ExtendedHandler
* BackendExtHash -> MultiBackendHandler
|
| |
|
|
|
|
| |
===========================
Renamed all references from password hash "driver" -> password hash "handler", to be more consistent with existing phrasing.
This also required rearranging quite a lot of modules.
|
| |
|
|
|
|
|
|
|
|
| |
================================
* added documentation for overview, ldap digests
* lots of other documentation updates
* renamed passlib.unix -> passlib.hosts
* renamed passlib.sqldb -> passlib.servers
* added passlib.servers.custom_app_context for quickstart purposes
* added ldap {CLEARTEXT} support
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
============================
* now at 99% coverage
* changed some error types
* bugfix to min_verify_time code
* tests for registry, some cryptcontext border cases
* ldap hash tests
* tests for rest of utils
* tests for skeleton hash classes in passlib.utils.drivers
* moved validate_class code from skeleton hash classes to HandlerCase
main things still needing testing:
* category support for CryptContext/Policy
* some bits of registry
|
| |
|
|
|
|
|
|
|
|
|
| |
=============
* restored "default" mode for set_backend()
* bugfix: HandlerCase now sets backend explicitly, incorrect backend checks were previously happening
* added UT for genhash(secret, None)
* enabled HandlerCase.supports_unicode for all hashes
* added some needed test cases revealed by coverage check
* added "pragma: no cover" for a select few branches that don't need testing
* all UTs pass, 92% coverage
|
| |
|
|
| |
"supporting" bcrypt
|
| |
|
|
| |
and removed StaticHash entirely
|
| |
|
|
|
|
|
|
|
|
| |
========
* bugfix: test_apache now backdates mtime on files instead of time.sleep() - more reliable across OS's
* bugfix: bcrypt & md5_crypt used classmethod() on _has_backend_xxx attrs instead of classproperty()
* added backendmixin test suite to HandlerCase to detect regression of above backend bug
* added test case for CryptContext.replace()
* added setUp/cleanUp support to create_backend_case() (fixes ut test bug)
* all UTs passed
|
| |
|
|
|
|
|
|
| |
=======================
* added unix_fallback scheme, for detecting wildcard/disabled passwords in /etc/shadow files
* added plaintext scheme, for migrating existing application
* added hex md4/md5/sha1/sha256/sha512 schemes, for migrating existing applications
* docs & UTs added for above schemes
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
==================
updated des crypt, crypt16, bigcrypt, bsdi crypt docs:
* added details of algorithm
* added security issues section
* updated deviations text
* other doc updates
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
===============================
* 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)
|
| |
|
|
| |
just seeded a prng *from* urandom)
|
| |
|
|
| |
bugfixes
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
========
* 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
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
======================
* 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
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
* 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
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
==========
* CryptContext.is_compliant() now checks rounds parameter
* some typo fixes
* removed docs from CryptHandler - text is now in docs/password_hash_api.rst
|
| | |
|
| |
|
|
|
|
| |
=======================
* 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
|
| |
|
|
|
|
|
| |
=====================
* documentation added for mysql & postgres hashes
* enhanced autodocument() function's output
* added usage examples for more hashes
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
====
* added documentation
* bugfix: ext-des-crypt rounds were being capped at 12 bits, not 24. added ut for regression.
|
| | |
|
| | |
|
| |
|
|
| |
of hyphens
|
| |
|
|
|
|
|
|
| |
========================
* back to 1.2 structure
* moved h64 helpers into utils.h64 module
* pared down CryptHandler
* tightened UTs somewhat
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
production)
|
| | |
|