Spaces:
Sleeping
Sleeping
File size: 299 Bytes
592ffed |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import os
from cryptography.fernet import Fernet
# Get the key securely
key = os.getenv("DECRYPTION_KEY")
fernet = Fernet(key.encode())
# Read encrypted file
with open("encrypted_code.bin", "rb") as f:
encrypted_code = f.read()
# Decrypt and run
exec(fernet.decrypt(encrypted_code).decode())
|