summaryrefslogtreecommitdiff
path: root/passlib/handlers/misc.py
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2012-04-27 02:17:07 -0400
committerEli Collins <elic@assurancetechnologies.com>2012-04-27 02:17:07 -0400
commita01c5e6e1d1a1d770d431702882de49faa586075 (patch)
tree66246cf7f73f597583b3eef0a3375c2b41c500a6 /passlib/handlers/misc.py
parentba5bdfb41f9f764c3d4e2ddeba6cb226a2724441 (diff)
downloadpasslib-a01c5e6e1d1a1d770d431702882de49faa586075.tar.gz
finally added abstract base class for the password hash interface -- passlib.ifc.PasswordHash
(also had to make some tweaks to fix class repr due to ABCMeta)
Diffstat (limited to 'passlib/handlers/misc.py')
-rw-r--r--passlib/handlers/misc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/passlib/handlers/misc.py b/passlib/handlers/misc.py
index dcb56c6..2b26b12 100644
--- a/passlib/handlers/misc.py
+++ b/passlib/handlers/misc.py
@@ -79,7 +79,7 @@ class unix_fallback(uh.StaticHandler):
else:
return enable_wildcard
-class unix_disabled(object):
+class unix_disabled(uh.PasswordHash):
"""This class provides disabled password behavior for unix shadow files,
and follows the :ref:`password-hash-api`. This class does not implement a
hash, but instead provides disabled account behavior as found in
@@ -147,7 +147,7 @@ class unix_disabled(object):
else:
return to_native_str(marker or cls.marker, param="marker")
-class plaintext(object):
+class plaintext(uh.PasswordHash):
"""This class stores passwords in plaintext, and follows the :ref:`password-hash-api`.
:type encoding: str