0 votes
The solution used by the autograder in Ex9 Question 1 is wrong:

The exercise specifically says to compute the sha512 hash of "Web-SeCuRiTy-2025" with no trailing newline.

The solution used by the autograder however, displays the sha512 digest of "Web-SeCuRiTy-2025\n"

This can be easily verified by running the following two commands:

>echo -n "Web-SeCuRiTy-2025\n" | sha512sum

will give the faulty solution shown by the autograder

124377d793a66de23e344308500f235e63c8ecf203e4c847074e9d2dd1aca8db4a7946d61949858758e02a53f63336dc369bbdb57e6e03a5476c3c107eb25ff5

while

>echo -n "Web-SeCuRiTy-2025" | sha512sum

returns

3b977bc6e38315b31c5224ad4a1727a711f33263ff15b26264daf1a17cb594d3b733eb8483661be7385f66431f77b2b5f611f4f07d765284f6a3366576988259

(notice -n for no trailing newline)
in ex01 by
edit history

1 Answer

0 votes
Best answer
You are absolutely correct. Not sure how that happened TBH, as the script I have stored uses that same command.

Thanks for posting, sould be fixed now.
by (2.3k points)
edit history
0
Thank you :)