c.l.i.l.IPasswordEncryptor(Interface) : interface documentation

Part of canonical.launchpad.interfaces.launchpad View In Hierarchy

Known implementations: canonical.launchpad.webapp.authentication.SSHADigestEncryptor, canonical.launchpad.webapp.tests.test_authutility.DummyPasswordEncryptor

An interface representing a password encryption scheme.
Method encrypt Return the encrypted value of plaintext.
Method validate Return a true value if the encrypted value of 'plaintext' is
def encrypt(plaintext):
Return the encrypted value of plaintext.
def validate(plaintext, encrypted):
Return a true value if the encrypted value of 'plaintext' is equivalent to the value of 'encrypted'. In general, if this method returns true, it can also be assumed that the value of self.encrypt(plaintext) will compare equal to 'encrypted'.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.