How to solve these challenges:


Challenge #1

Calculate the SHA-256 hash of the string learning ethical hacking using both sha256sum and openssl commands.

Check that you get the same hash.

Are you stuck? Do you want to see the solution for this exercise? Click here.


Challenge #2

Calculate the SHA-512 hash of this file using both sha512sum and openssl commands.

Check that you get the same hash and that’s: 81dcb4d58ea6d954463efe60645912eb119c1eefb10a937ce4a0b1e051d8caa1ccea79d0bb34d01b55e30fcd272da5f75c123cb35a23fde91125f8af620001f6

Are you stuck? Do you want to see the solution to this challenge? Click here.


Challenge #3

Check that the following two PDF files give the same SHA1 hash (it’s a hash collision).

File1 and File2.

Are you stuck? Do you want to see the solution to this challenge? Click here.


Challenge #4

Add two Linux users (u1 and u2) and set the same password for both users which is test1234

Check that even though both users have the same password, the saved hash in the /etc/shadow file is different.

Remember that the hash which is saved in the shadow file is calculated based on the password and a random salt.

Are you stuck? Do you want to see the solution for this exercise? Click here.