Datatypes

bcrypt password hash

ID bcrypt_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 produced by bcrypt in Modular Crypt Format: $2, an optional version letter (a, b, x or y), $, a two-digit cost, $ and 53 characters of bcrypt Base64 (a 22-character salt and a 31-character hash).

Categories
Secrets and credentials (passwords, keys, tokens), Cryptographic identifiers
Countries
Global (not tied to a country)
Languages
Common to most languages
Quality
78/100 · missing: second example, mapping (Wikidata, Schema.org, ...), translation
Metacrafter rules
no detection rule yet
Supported by tools
Semgrep

Regular expression

^\$2[abxy]?\$[0-9]{2}\$[./A-Za-z0-9]{53}$

Python re syntax.

Examples

ValueDescription
$2y$10$PvHZA2qDCPtJ6C/JxFval.y80.N4NJBCHhyTY.XkcksghdCXe3oXGHash of the word "example" made with htpasswd -B
$1$examples$9syBlMva027I.Vd2Z0JGl1 invalidMD5-crypt hash

Sources

Use this record