OpenPGP private key block
ID pgp_private_key_block
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).
OpenPGP secret key in ASCII armor: Radix-64 text between the lines -----BEGIN PGP PRIVATE KEY BLOCK----- and -----END PGP PRIVATE KEY BLOCK-----, as defined in RFC 9580.
- 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
- Amazon Macie, detect-secrets, Gitleaks, Nightfall AI, Semgrep
Regular expression
^-----BEGIN PGP PRIVATE KEY BLOCK-----[\s\S]+-----END PGP PRIVATE KEY BLOCK-----$
Python re syntax.
Examples
| Value | Description |
|---|---|
| -----BEGIN PGP PRIVATE KEY BLOCK----- EXAMPLE -----END PGP PRIVATE KEY BLOCK----- | Armor lines around placeholder text, not a key |
| -----BEGIN PGP PUBLIC KEY BLOCK----- EXAMPLE -----END PGP PUBLIC KEY BLOCK----- invalid | Public key block |
Sources
- doc: https://www.rfc-editor.org/rfc/rfc9580#section-6.2
- other: https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/pgp_private_key_block - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/secrets/pgp_private_key_block.yamlon GitHub