210-250 · Question #174
What is the primary purpose for using a hash algorithm for a message?
The correct answer is D. integrity. Hash algorithms produce a fixed-size digest (fingerprint) of data, and their primary purpose is to verify that data has not been altered, which is the definition of integrity.
Question
What is the primary purpose for using a hash algorithm for a message?
Options
- Aauthentication
- Bconfidentiality
- Cavailability
- Dintegrity
How the community answered
(19 responses)- B5% (1)
- C5% (1)
- D89% (17)
Why each option
Hash algorithms produce a fixed-size digest (fingerprint) of data, and their primary purpose is to verify that data has not been altered, which is the definition of integrity.
Authentication verifies the identity of a user or system; hashing alone does not prove who created the data - that requires a keyed mechanism such as HMAC or a digital signature.
Confidentiality means keeping data secret from unauthorized parties, which requires encryption; a hash is a one-way function and does not hide the original data.
Availability ensures systems and data are accessible when needed; hashing has no direct role in maintaining uptime or redundancy.
A hash function maps input data of any size to a fixed-length output (digest), and even a single bit change in the input produces a completely different digest. This property allows a recipient to recompute the hash and compare it to a known-good value to detect any tampering or corruption. Integrity - ensuring data has not been modified in transit or at rest - is the core security service that hashing provides.
Concept tested: Primary security purpose of cryptographic hash functions
Source: https://csrc.nist.gov/glossary/term/cryptographic_hash_function
Topics
Community Discussion
No community discussion yet for this question.