diff options
author | Eli Collins <elic@assurancetechnologies.com> | 2012-02-09 15:19:20 -0500 |
---|---|---|
committer | Eli Collins <elic@assurancetechnologies.com> | 2012-02-09 15:19:20 -0500 |
commit | 9bcfe9d440c56774a7e138aafcbaccb6b0ce6626 (patch) | |
tree | 720249f82734323f1f3f566256dd8768269442b9 /passlib/handlers/md5_crypt.py | |
parent | 4b3590ab0d73e9defb70c97763a1b69a07a7f9be (diff) | |
download | passlib-9bcfe9d440c56774a7e138aafcbaccb6b0ce6626.tar.gz |
consolidated some unit tests
Diffstat (limited to 'passlib/handlers/md5_crypt.py')
-rw-r--r-- | passlib/handlers/md5_crypt.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/passlib/handlers/md5_crypt.py b/passlib/handlers/md5_crypt.py index 50f1c0d..7dc2ed8 100644 --- a/passlib/handlers/md5_crypt.py +++ b/passlib/handlers/md5_crypt.py @@ -40,7 +40,7 @@ def extend(source, size_ref): else: return source*m -def raw_md5_crypt(password, salt, apr=False): +def _raw_md5_crypt(password, salt, apr=False): """perform raw md5-crypt calculation :arg password: @@ -230,7 +230,7 @@ class md5_crypt(uh.HasManyBackends, _Md5Common): return test_crypt("test", '$1$test$pi/xDtU5WFVRqYS6BMU8X/') def _calc_checksum_builtin(self, secret): - return raw_md5_crypt(secret, self.salt) + return _raw_md5_crypt(secret, self.salt) def _calc_checksum_os_crypt(self, secret): hash = safe_crypt(secret, self.ident + self.salt) @@ -268,7 +268,7 @@ class apr_md5_crypt(_Md5Common): #primary interface #========================================================= def _calc_checksum(self, secret): - return raw_md5_crypt(secret, self.salt, apr=True) + return _raw_md5_crypt(secret, self.salt, apr=True) #========================================================= #eoc |