MeePwn CTF 2017: Simpler RSA (100)
Tue 18 July 2017 ·
2 min read
We are given two files: one is simple.py
, which used to do an encryption, and pubkey.txt
,
which is the generated public key when encrypting with simple.py
. Here's the content of
simpe.py
.
from Crypto.Util.number import *
import random
# from flag import FLAG
def generate(nbits):
p …