# go-digest

> Content digests for Go, as used across the container ecosystem

Source: https://talira.ai/catalog/go-digest-7atnkzbp
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / hashing](https://talira.ai/categories/libraries/hashing), [languages / go](https://talira.ai/categories/languages/go)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Open Container Initiative](https://talira.ai/orgs/open-container-initiative.md)

go-digest is the Open Container Initiative's Go package for content digests: hex-encoded hashes such as sha256:... used as content identifiers in content-addressable storage, container images and registries. It creates digests from bytes or readers, parses and validates digest strings from untrusted input, and verifies content as it streams through a Verifier. Its makers call it fairly complete and stable.

## Links

- GitHub: https://github.com/opencontainers/go-digest
- Docs: https://pkg.go.dev/github.com/opencontainers/go-digest

## Problems it solves

- compute and verify a sha256 content digest in Go the way container registries do
- validate an untrusted sha256:... digest string in a Go service
- check that a downloaded blob matches its expected digest while streaming it

## Features

- digests from byte slices and io.Readers
- parsing and validation of algorithm:hex digest strings
- streaming verification of content against a digest
- hash implementations you import yourself, so they can be replaced

## Limitations

- The program must import the hash implementations it uses (crypto/sha256, crypto/sha512) or the package panics.[^1]
- Handles hex-encoded digests only, not base64 or other encodings.[^1]

## Trust

Overall: 0.38 out of 1.
Signals: maintenance 0.48, adoption 0.47, momentum 0.14, community 0.60, backing 0.30, extensibility 0.00.

- last commit 45 days ago
- 4 commits in the last 90 days
- latest release v1.0.0 6.6 years ago
- 225 GitHub stars
- 30 contributors
- backed by Open Container Initiative

## Sources

[^1]: https://github.com/opencontainers/go-digest/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/opencontainers/go-digest/blob/master/LICENSE (checked 28 Nov 2026)
