summaryrefslogtreecommitdiff
path: root/passlib/util.py
Commit message (Collapse)AuthorAgeFilesLines
* rearranging some moreEli Collins2011-01-191-465/+0
| | | | | | | | ===================== * moved unix style algorithms into passlib.unix package * renamed unix-crypt to des-crypt * moved a bunch of utils into new utils pacakge * NOTE: imports currently broken
* beginning major rearrangementEli Collins2011-01-181-4/+103
| | | | | | | | | | | | | | | | | | | | | ============================= * changing basic alg protocol - setting_kwds attr which includes salt/rounds kwds - encrypt no longer accepts hash as input - encrypt now must accept setting_kwds (eg salt/rounds) as input - verify now throws error if hash missing / invalid - identify same as always - parse / render now optional inclusions - hash_bytes renamed to checksum_bytes - has_salt / has_rounds removed - added default_rounds / min_rounds / max_rounds attrs * added CryptAlgorithmHelper with some common helper routines - _norm_rounds(), applies default/min/max attrs to input - setting_kwds autocalculates if needed * added generate & validate salt helpers (replacing old ones) * replacing overengineered rng w/ simpler one (1/2 done) * NOTE: UTs need updating!!!
* relocated passlib.hash.XXX to passlib.XXX; all UTs passEli Collins2011-01-141-3/+3
|
* added global registry for crypt algorithms; rewrote CryptContext to have ↵Eli Collins2011-01-141-1/+2
| | | | much fewer features (old one was over-engineered)
* split up H64 class into separate functionsEli Collins2011-01-141-173/+154
|
* tweaked HashInfo objectEli Collins2011-01-141-5/+5
|
* misc tweaksEli Collins2011-01-141-2/+25
|
* added WeakRandom, a (slight less predictable) subclass of Random, to use as ↵Eli Collins2011-01-111-0/+14
| | | | fallback if urandom not present
* moved rng code from util to passlib.rng; srandom is now proxy objectEli Collins2011-01-111-111/+18
|
* rearrangingEli Collins2011-01-071-0/+166
| | | | | | | | | | | | | | | | | | | | =========== * moved hash.py to package * in process of rearranging so core code is in hash.base, and separate submodules exist for each of the algorithms. - sha crypt split out - unix crypt split out - similar refactor of UT files * moved hash64 encoding helpers to passlib.util.H64 class * reversed order of h64 encoding helpers so offsets match order of output * added H64 unit tests unix crypt ---------- (yes this is overkill for legacy crypt) * cleaned up builtin unix_crypt semantics * wrapping stdlib crypt to deal w/ border case errors * added better unix crypt backend test suite
* made all CryptAlgorithm methods classmethods instead of instance methods1.1.0Eli Collins2011-01-071-9/+10
|
* removed rng module, reseed/genseed, etcEli Collins2011-01-061-0/+108
|
* import tweaksEli Collins2011-01-061-7/+1
|
* removed bps.basic depEli Collins2011-01-061-4/+1
|
* removed more bps files, added bps funcs passlib needs to utilEli Collins2011-01-061-6/+146
|
* removed a bunch of bps filesEli Collins2011-01-061-0/+34