Forum Discussion

Dark_Knight666's avatar
Dark_Knight666
Icon for Bronze III rankBronze III
2 months ago

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?

 

 

9 Replies

  • As per the tool output, try adding "-pbkdf2" to your command line arguments... 

    • Dark_Knight666's avatar
      Dark_Knight666
      Icon for Bronze III rankBronze III

      Hello autom8on,

      Many thanks,

      I tried as you suggested but still not getting the token_1.txt.

      • cf123's avatar
        cf123
        Icon for Bronze II rankBronze 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

    • cf123's avatar
      cf123
      Icon for Bronze II rankBronze 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. 

       

      • Dark_Knight666's avatar
        Dark_Knight666
        Icon for Bronze III rankBronze III

        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?