summaryrefslogtreecommitdiff
path: root/passlib/utils
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2011-01-19 00:12:16 +0000
committerEli Collins <elic@assurancetechnologies.com>2011-01-19 00:12:16 +0000
commitdb9b0518f41cfb6aae173263844a896b4615e2c9 (patch)
treec3b69c687e6681dfaa0a4f453d182b416d00645e /passlib/utils
parent15883d9fa4dd8ce437498a0a01c05dd61ea198ba (diff)
downloadpasslib-db9b0518f41cfb6aae173263844a896b4615e2c9.tar.gz
removed HashInfo
Diffstat (limited to 'passlib/utils')
-rw-r--r--passlib/utils/__init__.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/passlib/utils/__init__.py b/passlib/utils/__init__.py
index d3efb1a..97f0b15 100644
--- a/passlib/utils/__init__.py
+++ b/passlib/utils/__init__.py
@@ -30,7 +30,6 @@ __all__ = [
"xor_bytes",
#hash64 encoding
- 'h64_gensalt',
'h64_validate',
]
#=================================================================================
@@ -193,21 +192,6 @@ def xor_bytes(left, right):
#=================================================================================
#misc
#=================================================================================
-class HashInfo(object):
- "helper used internally by various CryptAlgorithm implementations to store parsed results"
- ident = None #identifier portion of hash
- salt = None #salt portion of hash
- checksum = None #checksum (result of hashing salt & password according to alg)
- rounds = None #number of rounds, if known & applicable
- source = None #source above information was parsed from, if available
-
- def __init__(self, ident, salt, checksum=None, rounds=None, source=None):
- self.ident = ident
- self.salt = salt
- self.checksum = checksum
- self.rounds = rounds
- self.source = source
-
def norm_rounds(value, default, presets):
"""helper for validating & normalizing hash 'rounds' parameter
"""
@@ -308,8 +292,6 @@ def generate_h64_salt(count):
"return base64 salt containing specified number of characters"
return getrandstr(salt_rng, H64_CHARS, count)
-h64_gensalt = gen_h64_salt
-
def validate_h64_salt(value, count):
"validate base64 encoded salt is of right size & charset"
if len(value) != count: