Skip to main content
QLDDigital SolutionsSyllabus dot point

How do hashing and checksums verify that exchanged data has not been altered?

Explain how hashing, checksums and authentication are used to verify the integrity and authenticity of data during storage and transmission

A focused answer to the QCE Digital Solutions Unit 4 dot point on integrity verification. What a hash function is, how checksums detect transmission errors, how hashing verifies integrity and stores passwords, and how this differs from encryption.

Generated by Claude Opus 4.76 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. What a hash function is
  3. Checksums and error detection
  4. Hashing for integrity in data exchange
  5. Hashing for password storage
  6. Hashing versus encryption
  7. How this appears in assessment

What this dot point is asking

The encryption dot point covers keeping data secret. This dot point covers a different goal: proving data has not changed and confirming who or what it came from. QCAA groups hashing and checksums with secure data handling because they verify integrity (the data is unaltered) and support authentication (the data is from who it claims). Hashing is not encryption, and the distinction is heavily examined, so this page treats integrity verification on its own terms.

What a hash function is

A hash function takes input of any size and produces a fixed-length output called a hash, digest or message digest. Key properties:

  • Deterministic: the same input always gives the same hash.
  • Fixed length: a one-character input and a one-gigabyte file both produce a hash of the same size.
  • One-way: you cannot reverse a hash to recover the input.
  • Avalanche effect: changing one bit of input changes much of the hash, so tampering is obvious.

Common cryptographic hash functions include SHA-256. Older functions like MD5 are considered broken for security use because collisions can be engineered.

Checksums and error detection

A checksum is a value computed from data and sent alongside it, so the receiver can recompute it and compare. If the two differ, the data changed in transit, usually through accidental corruption such as a dropped bit. Checksums are built into network protocols like TCP to detect transmission errors and trigger retransmission. They are simple and fast but designed for accidental errors, not deliberate tampering, because an attacker could alter the data and the checksum together.

Hashing for integrity in data exchange

When two systems exchange data, the sender can compute a hash of the payload and send it too. The receiver recomputes the hash and compares. A match proves integrity: the data is exactly what was sent. To also prove authenticity (who sent it), systems use a keyed hash or a digital signature, which combines hashing with the asymmetric keys from the encryption dot point so only the genuine sender could have produced the value.

Hashing for password storage

Systems should never store passwords in plain text. Instead they store the hash. At login, the system hashes the entered password and compares it to the stored hash; a match means the password was correct without the system ever keeping the original. Good practice adds a unique random salt to each password before hashing, so identical passwords produce different hashes and precomputed attack tables fail. This is a frequent exam scenario and a strong security feature to justify in IA3.

Hashing versus encryption

This distinction earns marks:

  • Encryption is two-way: data is transformed with a key and can be decrypted back to the original. Its goal is confidentiality.
  • Hashing is one-way: there is no key to reverse it. Its goal is integrity and verification.

You encrypt data you need to read again; you hash data you only need to verify, like a password or a file's fingerprint.

How this appears in assessment

The external exam can ask you to explain how hashing verifies integrity, how passwords should be stored, or how hashing differs from encryption. In IA3 you justify hashing passwords and verifying the integrity of exchanged data. Be ready to describe the recompute-and-compare process and to state clearly why hashing is one-way.

Exam-style practice questions

Practice questions written in the style of QCAA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

2021 QCAA3 marksIn an online silent auction, items are posted on a public website and participants post secret bids on items they want. Bidders cannot see each other's bids. At the end of the auction all bids are revealed and the highest bidder pays the amount they posted. Explain how checksums, encryption and authentication would improve the security of the data exchange in this scenario.
Show worked answer →

One mark is awarded for explaining each of the three techniques, so treat them separately and link each to the exchange.

Checksums [1 mark]: a checksum is computed from the binary representation of the auction data and sent alongside it. If the checksum the receiver recomputes differs from the one supplied, the data has been corrupted or manipulated in transit, so integrity is verified.

Encryption [1 mark]: encryption scrambles the bid data so it is unreadable if intercepted in transit, while still allowing the authorised recipient to decrypt it with the secret key. This protects the confidentiality of secret bids before they are revealed.

Authentication [1 mark]: authentication verifies the identity of each participant, for example using a digital signature or authentication code, so a bidder is confirmed to be who they claim to be and bids cannot be forged.

Markers reward tying each technique to the specific risk it removes (tampering, interception, impersonation).