Predict

Fingerprints, Not Locks

A hash turns any data into a short "fingerprint". The same input always gives the same fingerprint. But you can't turn a fingerprint back into the message. That makes hashes perfect for checking that a message wasn't changed.

hashlib.sha256(...) makes a fingerprint, and .hexdigest() shows it as a string of hex digits (0–9 and a–f).

import hashlib

a = hashlib.sha256(b"meet at dawn").hexdigest()
b = hashlib.sha256(b"meet at dawn!").hexdigest()
print(len(a), a == b, a[:8] == b[:8])

The two messages differ by just one `!`. What does this program print?