Hands-on task
This task is step 8 of the course “Encodings and checksums”
Decode and verify integrity
The file /root/blob.b64 is data in base64. Decode it into /root/blob.bin, compute the SHA-256, and compare it with the expected hash from /root/blob.sha (the file came as is — there may be extra spaces after the hash). Write MATCH or DIFF to /root/verdict.txt.
What you'll practise:
- base64
- sha256sum
- integrity verification
- string comparison
- bash conditionals