Python code that decrypts RSA encrypted file in chunks of 64 bit using a private exponent and modulus
问题 I have an encrypted file that I am trying to decode as part of an experiment. After working hard and long, I have been able to extract the private exponent from the public key since the modulus was small: openssl rsa -pubin -inform PEM -text -noout < public_key.pem Public-Key: (64 bit) Modulus: 16513720463601767803 (0xe52c8544a915157b) Exponent: 65537 Now, I have: Factors: 3917781347 x 4215069449 Private exponent: 9440767265896423601 Now, to derive the plaintext, I need to raise each 64-bit