312-50V11 · Question #387
Which of the following can take an arbitrary length of input and produce a message digest output of 160 bit?
The correct answer is A. SHA-1. SHA-1 is a cryptographic hash function that always produces a fixed 160-bit (20-byte) message digest regardless of the input length.
Question
Which of the following can take an arbitrary length of input and produce a message digest output of 160 bit?
Options
- ASHA-1
- BMD5
- CHAVAL
- DMD4
How the community answered
(38 responses)- A89% (34)
- B3% (1)
- C3% (1)
- D5% (2)
Why each option
SHA-1 is a cryptographic hash function that always produces a fixed 160-bit (20-byte) message digest regardless of the input length.
SHA-1 (Secure Hash Algorithm 1) was designed by NIST and produces a deterministic 160-bit hash output from any arbitrary-length input. This 160-bit output size is a defining characteristic that distinguishes SHA-1 from MD-family algorithms. The algorithm processes input in 512-bit blocks and always yields exactly 160 bits.
MD5 produces a 128-bit (16-byte) message digest, not 160 bits.
HAVAL is a variable-length hash function that can produce outputs of 128, 160, 192, 224, or 256 bits depending on configuration, so 160-bit is not its fixed or defining output.
MD4 produces a 128-bit message digest, not 160 bits.
Concept tested: SHA-1 hash algorithm 160-bit output
Source: https://csrc.nist.gov/publications/detail/fips/180/4/final
Topics
Community Discussion
No community discussion yet for this question.