View enigma.py
from Crypto.PublicKey import RSA
with open('public_key.pem', 'rb') as f:
modulus = RSA.importKey(f.read()).n
with open('message.enc', 'rb') as f:
message = int.from_bytes(f.read(), byteorder='big')
def cube_root(n):
guess, previous = n, 0