Recover a 2048-bit RSA private key from a vulnerable public key and decrypt an encrypted message. The RSA modulus was generated using a flawed random number generator that produces close primes, making it susceptible to Fermat's factorization attack.
Technical Requirements
Language: Python 3.x
Input file: /app/public_key.json - Contains RSA public key parameters and encrypted message
Output file: /app/decrypted_message.txt - Contains the decrypted plaintext message