---
id: "sha512hash"
kind: "datatype"
status: "stable"
is_pii: false
categories: ["cryptography"]
langs: ["common"]
quality: 85
url: "http://registry.apicrafter.io/datatype/sha512hash"
---

# SHA-512 hash (`sha512hash`)

Digest of the SHA-512 hash function (SHA-2 family, 512 bits). It is written as 128 hexadecimal digits. Other 512-bit digests (SHA3-512, Keccak-512, BLAKE2b-512 and Streebog-512) have the same length, so the value alone does not tell them apart: use the field name or context.

- Parent datatype: `hash`
- Personal data (PII): no
- Categories: Cryptographic identifiers (cryptography)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[0-9a-fA-F]{128}$
```

## Examples

- `cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e` — SHA-512 hash of the empty string
- `ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f` — SHA-512 hash of the string 'abc'
- `cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3` (invalid example) — one hex digit short (127 instead of 128)

## Metacrafter rules

2 rules: 1 match the field name, 1 match values.

- `sha512hash` (data, `basic/crypto.yaml`)
- `sha512hash_by_field` (field, `basic/crypto.yaml`)

## Supported by tools

- `metacrafter`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/SHA-2>
- doc: <https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf>

## Quality

Score 85/100. Missing: mapping (Wikidata, Schema.org, ...), translation.

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