SHA-256

A widely used hash function that turns any data into a 256-bit fingerprint, shown as 64 hexadecimal characters.

In more detail

SHA-256 is part of the SHA-2 family, a United States federal standard used worldwide. It is deterministic and designed so that finding two inputs with the same output is infeasible. It is far slower than the hash functions used inside hash tables, so it is used for stable identifiers and integrity checks, such as file checksums and container image digests.

Examples

Used to fingerprint build inputs and to turn a PKCE code verifier into a code challenge.
sha256sum /secure/etcd/snapshot.db
Rest evidence integrity on SHA-256; record MD5 too only for older tools.

Related terms

Taught in

References

Certification courses