Skip to content

Hashing

Hashing gives an artifact a compact cryptographic identity.

Artifact Bytes
Hash Function
Digest

A verification workflow can later calculate the digest again and compare it with the preserved expected value.

Terminal window
Get-FileHash ".\artifact.json" -Algorithm SHA256

A hash is calculated over bytes.

That means these can change a hash even when a human considers the content equivalent:

  • property ordering
  • whitespace
  • line endings
  • character encoding
  • serialization differences

For structured semantic state, DigiEmu therefore separates:

Raw Representation
Canonicalization
Stable Representation
Hash

A hash can detect change.

A digital signature adds a claim tied to control of a private key.

These are separate mechanisms.

Preserved Hash
│ compare
Computed Hash
MATCH / MISMATCH

Never compare hashes from two systems unless both systems agree on the exact representation being hashed.

Continue with Signatures →.