def encrypt(self, string_or_bytes):
        b = to_bytes(string_or_bytes, self.encoding)
        p = self.crypt_module.encrypt(b, self.secret_key, **self.ckwargs)
        return p.decode(self.encoding)
Encrypt ``string_or_bytes`` using the algorithm specified
dataset/ETHPy150Open quantmind/lux/lux/extensions/rest/user.py/PasswordMixin.encrypt