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

# MD5-crypt password hash (`md5crypt_hash`)

> **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.

Password hash of the MD5-based crypt scheme of FreeBSD, in Modular Crypt Format: $1$, a salt of up to 8 characters, $ and 22 characters of crypt Base64. It was the default on Linux before SHA-crypt and is now considered weak.

- Personal data (PII): no
- Categories: Secrets and credentials (passwords, keys, tokens) (secrets), Cryptographic identifiers (cryptography)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^\$1\$[^$:\n]{1,8}\$[./0-9A-Za-z]{22}$
```

## Examples

- `$1$examples$9syBlMva027I.Vd2Z0JGl1` — Hash of the word "example" with the salt examples
- `$6$saltstring$svn8UoSVapNtMuq1ukKS4tPQd8iKwSMHWjl/O817G3uBnIFNjnQJuesI68u4OTLiBFdcbYEdFCoEOfaS35inz1` (invalid example) — SHA-512-crypt hash

## Sources

- doc: <https://man.archlinux.org/man/crypt.5>
- wikipedia: <https://en.wikipedia.org/wiki/Crypt_(C)>

## Quality

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

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