Security
A script validates values produced by sha256sum before storing them in a database. Which check identifies a well-formed SHA-256 digest in the command's output?
Show the answer
Correct answerA. A string of exactly 64 hexadecimal characters
SHA-256 produces a 256-bit digest, which sha256sum prints as 64 hexadecimal characters. Forty characters matches SHA-1, which sha1sum outputs, and 128 characters matches SHA-512 from sha512sum.