RSA Encryption

(I forgot the original question, yet I have the raw notes.)

The question was to decode the message with the private key provided.

encrypted_message_b64 = 'GoUl4qxpPzNujGprriG7Xzbtk2/qG3poER2E9HRrlWtuYm9mKIXIpGaxUmy4elmXe+OKD79RbbXIS/k53Ivy5muggZVpx/oZrQlB45Pi0rYuvPrzJ1qqI5Vcnw9f99o61CAmth+YHvmy+AS51rWxn/j8OO9ZIYvSJWSIkiWpH5k7txgDswpB0/Z33YFexEfsPZpQ04BmndcYrdPO551FkBwcZ89D1MYcJ/wJUtaBjOS9EhZZa00Tn+QUWJcjwLsVHgR4eocefN2FfNfpHnKcR7waP+vS5u/OhnmTB/demSsx9geJ/09KqZKRpqIo3crTxKdM9sjKSRQMucjKrheuEg=='

Solution 1:

This problem was to decrypt a message that was previously encoded with RSA or some variant of RSA. The private key also was given. So we just need to try all the variants of RSA to decrypt the message.

To do that, I used an online tool:

https://devbeaver.com/rsa-encryption-decryption-tool

There were several RSA variants. I had to try all of them.

Solution 2:

I also generated a script to decrypt the message with the Python package "cryptography."

The script is as follows:

Output:

Last updated