Academy Introduction to Bash Scripting.

edited January 24 in Other

Anyone who did the module, can give me a hand?
I am at the point of "Flow Control - Loops"
The question is "Create a "For" loop that encodes the variable "var" 28 times in "base64". The number of characters in the 28th hash is the value that must be assigned to the "salt" variable."
So I did encode var 28 times in bas64 and send the number of characters to the salt variable, but the decrypt fails, now I don't understand if I gave the wrong value or there is an issue with openssl?

This is the error I get:
*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
bad decrypt
140671661004096:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:../crypto/evp/evp_enc.c:583:


  • edited January 30

    I don't get bad decrypt anymore but I get a different flag every time I run the script. To be honest I am not sure what they want me to submit as the answer, I've tried the flag, the salt, I also gave the flag encoder my $salt variable and tried to encoded the $hash variable as well. I'm really lost here please advise what to submit. I've even typed my for loop and salt assignment into the answer box. What am I missing here?

  • i figured out it was a wrong value eventually.
    so once you get the right value for a salt it gets you the flag.

Sign In to comment.