summaryrefslogtreecommitdiff
path: root/passlib/utils/md4.py
Commit message (Collapse)AuthorAgeFilesLines
* assorted bugfixes, tweaks, and tests added; based on coverage examinationEli Collins2012-04-121-3/+3
| | | | | | | * test os_crypt backend has functional fallback * test handler methods accept all unicode/bytes combinations for secret & hash * fixed some incorrect error messages & types being caught & raised * other minor cleanups
* split exceptions/warnings to separate module; added some additional warning ↵Eli Collins2012-01-181-1/+3
| | | | classes to make filtering easier
* import cleanupsEli Collins2012-01-181-4/+2
| | | | | | | | | | | | | | | * moved bytes compat functions from utils to utils.compat (bord, bjoin, bjoin_ints, bjoin_elems, ujoin) * renamed bord -> belem_ord for clarify * a bunch of to_native_str() always use ascii, and have fixed input types (always bytes or always unicode). these don't need overhead of to_native_str(), so replaced those calls with two new funcs: compat.bascii_to_str() / compat.uascii_to_str() * cleaned up a lot of imports from utils/utils.compat to pull from correct module * simplified the to_string() logic of a bunch of handlers to reduce unicode<->byte transitions
* cleanups to utilsEli Collins2012-01-181-3/+1
|
* move vm constants to compat moduleEli Collins2011-12-281-2/+2
|
* deprecated to_hash_str, replaced all instances with to_native_strEli Collins2011-12-281-2/+3
| | | | | | decided that to_hash_str will always return native string, feature of hashes being returned as unicode under python 2 is better done through a CryptContext option.
* replaced xrange() instances with compat.irange() aliasEli Collins2011-12-061-2/+3
|
* added test for builtin MD4 class even if SSL version present, for coverageEli Collins2011-07-111-2/+5
|
* stripped trailing whitespace from a bunch of filesEli Collins2011-07-081-1/+1
|
* rest of utils now py3 compatEli Collins2011-06-171-4/+8
| | | | | | | * kdfs, md4, and utils proper * updated UTs * added to_native_str helper * added some UTs for new to_bytes / to_unicode etc methods
* patch to md4 module for pypy compat; noted pypy compat in changelogEli Collins2011-05-041-5/+24
|
* passlib.utils.md4: use native hashlib md4 support if availableEli Collins2011-04-051-2/+14
|
* documentation work & rearrangingEli Collins2011-03-221-5/+23
| | | | | | | | | | ================================ * 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
* coverage workEli Collins2011-03-181-5/+5
| | | | | | | | | | | ============= * 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 hashes addedEli Collins2011-03-141-1/+2
| | | | | | | | ======================= * 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 docsEli Collins2011-01-311-1/+22
|
* moved DES routines to separate moduleEli Collins2011-01-251-3/+3
|
* work on lanman hashEli Collins2011-01-251-0/+1
|
* misc stuffEli Collins2011-01-241-0/+189