Forum Discussion

Dark_Knight666's avatar
Dark_Knight666
Icon for Bronze III rankBronze III
27 days 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?

 

 

8 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.