---
id: "oci_digest"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["software", "cryptography"]
langs: ["common"]
quality: 75
url: "http://registry.apicrafter.io/datatype/oci_digest"
---

# OCI content digest (container image digest) (`oci_digest`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Content identifier of the OCI image and distribution specifications, used for container images and their layers (as in image@sha256:...): the algorithm, a colon and the digest in lowercase hexadecimal. The registered algorithms are sha256 (64 digits, the default), sha512 (128 digits) and blake3 (64 digits).

- Personal data (PII): no
- Categories: Software development (software), Cryptographic identifiers (cryptography)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128}|blake3:[a-f0-9]{64})$
```

## Examples

- `sha256:5b0bcabd1ed22e9fb1310cf6c2dec7cdef19f0ad69efa1f392e94a4333501270` — Digest of the example manifest of the OCI descriptor specification
- `sha256:6c3c624b58dbbcd3c0dd82b4c53f04194d1247c6eebdaab7c610cf7d66709b3b` — Example digest string of the OCI descriptor specification
- `sha256:6C3C624B58DBBCD3C0DD82B4C53F04194D1247C6EEBDAAB7C610CF7D66709B3B` (invalid example) — Uppercase hexadecimal, which the specification forbids

## Sources

- doc: <https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests>

## Quality

Score 75/100. Missing: mapping (Wikidata, Schema.org, ...), translation, detector coverage.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/oci_digest.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/software/oci_digest.yaml>
