def enc_auth_type_pgp_crypt(self, plaintext, salt=None): return pgp_encrypt(plaintext, cereconf.PGPID)
def encrypt_password(self, method, plaintext, salt=None, binary=False): for system, pgpkey in cereconf.AUTH_PGP.items(): if method == self._pgp_auth(system): return pgp_encrypt(plaintext, pgpkey) return self.__super.encrypt_password(method, plaintext, salt=salt, binary=binary)