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)
Translate new DBVistrailVariable based vistrail variables to old
dataset/ETHPy150Open quantmind/lux/lux/extensions/rest/user.py/PasswordMixin.encrypt--crossover with--dataset/ETHPy150Open VisTrails/VisTrails/vistrails/db/versions/v1_0_2/translate/v1_0_3.py/translateVistrail