c.l.w.a.SSHADigestEncryptor : class documentation

Part of canonical.launchpad.webapp.authentication View In Hierarchy

Implements interfaces: canonical.launchpad.interfaces.launchpad.IPasswordEncryptor

SSHA is a modification of the SHA digest scheme with a salt starting at byte 20 of the base64-encoded string.
Method generate_salt Undocumented
Method encrypt Return the encrypted value of plaintext.
Method validate Return a true value if the encrypted value of 'plaintext' is
def generate_salt(self):
Undocumented
def encrypt(self, plaintext, salt=None):
Return the encrypted value of plaintext.
def validate(self, 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.