Level 7 - Level 8
Last updated
Last updated
This time also the website welcomed me with a input requesting for secret key and also there was a link to the source code of the logic behind the secret key validation.
This time the secret key was encoded and the function/algorithm that is used to encode the secret key was given.
Let's breakdown the above function into steps:
First, the given secret string is encoded with base_64 encoding scheme.
Secondly, the resultant string from the previous step is reversed.
Finally, the reversed string is converted to hexadecimal.
So decode the given encoded secret key we have to perform the above mentioned steps in reverse order, i.e.,
First, convert the encoded secret to binary.
Secondly, the resultant string from the previous step is reversed.
Finally, the reversed string is decoded with base_64 decoding scheme.
The above decoding steps can be performed with CyberChef.
CyberChef has a handy URL scheme that preserves data and operations, so I can link directly to the solution: https://gchq.github.io/CyberChef/#recipe=From_Hex('None')Reverse('Character')From_Base64('A-Za-z0-9%2B/%3D',true,false)&input=M2QzZDUxNjM0Mzc0NmQ0ZDZkNmMzMTU2Njk1NjMzNjI
On giving the decoded string as the input, got the password for the next level.