Level: 3
Description: You are given ciphertext of a message that is encrypted using encrypt.py
and stored in ciphertext.txt
. Also, you are given public key parameters in publickey.pem
. Sometimes you have to look carefully how some values are being generated, and if their exists some pattern.
Apply your school mathematics to solve this challenge! I am sure you will be happy once you get the solution to this challenge ;)
Points: 30
Documentation reference for libraries used:
- gmpy2: https://gmpy2.readthedocs.io/en/latest/
- pycrypto: https://www.dlitz.net/software/pycrypto/api/2.6/
- pycrypto's PublicKey RSA module: https://www.dlitz.net/software/pycrypto/api/2.6/toc-Crypto.PublicKey.RSA-module.html