Hashing is a cryptographic technique that converts input data into a fixed-length output called a hash value or message digest.
Cryptographic hash functions are commonly used to verify that information has not been modified during storage or transmission.
For example, a sender calculates a hash value for a file before transferring it. The receiver independently calculates the hash of the received file and compares the two values.
If the hash values match, this provides evidence that the data has not changed, assuming a secure hash function and a trustworthy reference hash.
Key characteristics of cryptographic hashing:
Deterministic: The same input produces the same hash output.
Fixed-length output: The hash has a defined size regardless of input length.
One-way operation: Secure hash functions are designed to make recovering the original input computationally infeasible.
Collision resistance: It should be computationally infeasible to find two different inputs producing the same hash.
Why the other options are incorrect:
A. Data non-repudiation: Typically requires digital signatures and supporting identity and key-management mechanisms. Hashing alone does not provide non-repudiation.
B. Origin authentication: Requires an authentication mechanism such as a message authentication code (MAC) or digital signature. A plain hash cannot establish the sender ' s identity.
C. Data encryption: Encryption protects confidentiality and can be reversed with the appropriate decryption key. Hashing is not encryption.
D. Data integrity: Correct because cryptographic hashes can detect changes to data when compared against a trusted reference.
Important distinction: Hashing alone does not protect against an attacker replacing both the data and its hash. Authenticated hashes, such as HMAC, or digital signatures address this limitation.
[References:, Cisco CCST Cybersecurity — Essential Security Principles: Cryptography, Hashing, and Data Integrity., NIST FIPS 180-4 — Secure Hash Standard (SHS)., NIST FIPS 180-4 — Secure Hash Standard, ]