SHA-512-crypt password hash
ID sha512crypt_hash
DatatypeNot PIIidentifierDraft
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
Password hash of the SHA-512-based crypt scheme by Ulrich Drepper, in Modular Crypt Format: $6$, an optional rounds=N$ (5000 rounds by default), a salt of up to 16 characters, $ and 86 characters of crypt Base64. It is widely used in /etc/shadow on Linux.
- Categories
- Secrets and credentials (passwords, keys, tokens), Cryptographic identifiers
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- Quality
- 75/100 · missing: mapping (Wikidata, Schema.org, ...), translation, detector coverage
- Metacrafter rules
- no detection rule yet
- Supported by tools
- no tool record lists this type yet
Regular expression
^\$6\$(?:rounds=[1-9][0-9]+\$)?[^$:\n]{1,16}\$[./0-9A-Za-z]{86}$
Python re syntax.
Examples
| Value | Description |
|---|---|
| $6$saltstring$svn8UoSVapNtMuq1ukKS4tPQd8iKwSMHWjl/O817G3uBnIFNjnQJuesI68u4OTLiBFdcbYEdFCoEOfaS35inz1 | Test vector of the specification: Hello world! with the salt saltstring |
| $6$rounds=10000$saltstringsaltst$OW1/O6BYHV6BcXZu8QVeXbDWra3Oeqh0sbHbbMCVNSnCM/UrjmM0Dp8vOuZeHBy/YTBmSK6H9qs/y3RnOaw5v. | Test vector of the specification with 10000 rounds |
| $5$saltstring$5B8vYYiY.CVt1RlTTf8KbXBH3hsxY/GNooZaBBGWEc5 invalid | SHA-256-crypt hash |
Sources
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/sha512crypt_hash - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/secrets/sha512crypt_hash.yamlon GitHub