Argon2 password hash (PHC string)
ID argon2_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 Argon2 (RFC 9106), the winner of the Password Hashing Competition, in the PHC string format: $argon2id$ (or argon2i, argon2d), the version v=19, the memory, time and parallelism costs m, t and p, then the salt and the hash in Base64 without padding. Argon2id is the default of libsodium crypto_pwhash.
- Categories
- Secrets and credentials (passwords, keys, tokens), Cryptographic identifiers
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- Quality
- 68/100 · missing: second example, 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
^\$argon2(?:id|i|d)\$(?:v=(?:16|19)\$)?m=[0-9]{1,10},t=[0-9]{1,10},p=[0-9]{1,3}(?:,keyid=[A-Za-z0-9+/]{0,11})?(?:,data=[A-Za-z0-9+/]{0,43})?\$[A-Za-z0-9+/]{11,64}\$[A-Za-z0-9+/]{16,86}$
Python re syntax.
Examples
| Value | Description |
|---|---|
| $argon2id$v=19$m=19456,t=2,p=1$ZXhhbXBsZXNhbHQ$iZkkU2r9X5jHLoSY5bV80kDSU5BEB+SBOn0Rw4bjgLQ | Hash of the word "example" with the salt examplesalt (m=19456, t=2, p=1) |
| $2y$10$PvHZA2qDCPtJ6C/JxFval.y80.N4NJBCHhyTY.XkcksghdCXe3oXG invalid | bcrypt hash |
Sources
- doc: https://www.rfc-editor.org/rfc/rfc9106
- doc: https://github.com/C2SP/C2SP/blob/main/phc-strings.md
- wikipedia: https://en.wikipedia.org/wiki/Argon2
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/argon2_hash - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/secrets/argon2_hash.yamlon GitHub