This app shows how Git-style hashing works.
Git treats content like an object and hashes:
blob <size>\0 + content
That hash becomes a pointer to the content itself. If the content changes, the hash changes.