Forum Discussion
Modern Encryption: Demonstrate Your Skills
Hello,
I am a little stuck on Q3 for this lab and would really appreciate any help I can get.
So I have followed the steps as required by encrypting the file - plaintext_1.txt and set the password as per steps on the actual file itself - plaintext_1.txt. However after setting the password I am not getting token_1.txt appearing in the Lab-Files folder.
What am I doing incorrectly?
8 Replies
- autom8on
Silver I
As per the tool output, try adding "-pbkdf2" to your command line arguments...
- Dark_Knight666
Bronze III
Hello autom8on,
Many thanks,
I tried as you suggested but still not getting the token_1.txt.
- cf123
Bronze II
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
Bronze III
cf123​ - You wouldn't happen to know the reason would you by any chance? :-)
- cf123
Bronze II
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.