def encrypt(self, clearvalue):
        pwhash = self._b64encode(self._encrypt(clearvalue))
        return '%s%s' % (self.scheme, pwhash)
Encrypt a password.
dataset/ETHPy150Open tonioo/modoboa/modoboa/core/password_hashers/base.py/PasswordHasher.encrypt