Spaces:
Paused
Paused
File size: 394 Bytes
7743d5a |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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 |