Spaces:
Sleeping
Sleeping
| def fp(saty): | |
| from cryptography.fernet import Fernet | |
| import base64 | |
| F=Fernet(base64.b64encode(saty.encode()[:32])) | |
| class c: | |
| def up(te): return F.crypt(te) | |
| def down(te): return F.decrypt(te) | |
| def string(te): | |
| if isinstance(te,str): | |
| return F.up(te.encode()) | |
| else: | |
| return F.down(te).decode() | |
| return c |