Challenge : 1.1 Cryptographic Keeper

In this Challenge, you will practice decrypting files using OpenSSL. If you need help at any point, we recommend reviewing the Symmetric Cryptography lab.

On the Linux desktop is a folder titled Crypto. This folder contains stolen private keys (key1 - key8) and five encrypted messages (flag1 - flag 5). Your job is to decrypt all the messages using OpenSSL and the correct key, then use the decrypted messages to answer the questions on the Tasks tab.

Note: While you can perform this challenge manually, the best solution is to iterate through two arrays using a BASH script.

I’ve viewed the keys to ensure they start with Begin Private Key etc.

I try base64 -d flag1 > flag1.enc and get a base64 invalid input error.

I try openssl pkeyutl -decrypt -inkey key1 -in flag1.enc -out flag1.txt and get an invalid public key operation error. (I’ve cycled through all keys)

cat flag1.txt etc no luck

These create the .enc and .txt folders, but nothing in them. I’ve cycled through every key with no luck.

What am I missing or doing wrong?

Of course using a bash script would be faster :slight_smile:

1 Like

I see where I went wrong! Thank you!