StegoRSA
๐ StegoRSA
| Category | Author |
|---|---|
| ๐ Cryptography | Yahaya Meddy |
Challenge Prompt
A message has been encrypted using RSA. The public key is goneโฆ but someone might have been careless with the private key. Can you recover it and decrypt the message?
Problem Type
- RSA
- Steganography
Solve
We are given an image of a key and lock. If we run that in AperiโSolve:
Down in the Identify section we see some hex in the โCommentโ field:
If we run that hex through CyberChef we get a Private Key:
Save the private key in a new text file called key.pem.
Then we can use OpenSSL to decyrpt:
1
openssl pkeyutl -decrypt -in flag.enc -out flag.txt -inkey key.pem
That will output the flag to a new file called flag.txt: