Forum Discussion
Modern Encryption: Demonstrate Your Skills
- 4 months ago
Hi Dark_Knight666, I also struggled on this one. You need to change the -a to -e and -salt to -nosalt (see full command below)
openssl enc -aes-256-cbc -e -pbkdf2 -nosalt -in plaintext_1.txt -out plaintext_1.enc
Dark_Knight666 The -e is for encryption and the -nosalt is to disable the salt function. I'm not exactly sure why this works, however for one of the earlier labs in the module ("Modern Encryption: Symmetric vs Asymmetric Key Encryption") it has the same commands but with -d for -decrypt so is just utilising the commands from this module and flipping it to be used for encryption rather than decryption.
cf123 - I am so sorry for the late reply. I just saw your message today and thank you for your advice. Sorry If I may have not grasped what you said, but Q7 is asking to Decrypt the file - encrypted_file_3DES.enc as it's already Encrypted?
- SamDickison3 months ago
Community Manager
darkmacheken cf123 is it about swapping the -a for -e?
- cf12320 days agoBronze II
Hi Dark_Knight666, apologies, I misunderstood what you were asking as I didn't realise you were asking about a different question so was giving additional details about Q3😄did you manage to figure Q7 out? It was a while ago that I did it but I might be able to retry the lab and see if I can remember what I did if you are still struggling
- Dark_Knight66611 days agoSilver I
@ cf123 - Hi there! Hope you're well. So I guess what I want to now ask is with the key found by using aircrack-ng against the pcap file, will I need to use this key to decrypt - encrypted_file_3DES.enc - for Q7?