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

# OpenPGP public key block (`pgp_public_key_block`)

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

OpenPGP public key (certificate) in ASCII armor: Radix-64 text between -----BEGIN PGP PUBLIC KEY BLOCK----- and -----END PGP PUBLIC KEY BLOCK----- (RFC 9580, section 6.2), as exported by gpg --armor --export and published on key servers. It holds no secret material; for the secret key see pgp_private_key_block.

- Personal data (PII): no
- Categories: Cryptographic identifiers (cryptography)
- Countries: global
- Languages: Common to most languages (common)

## Detection

Regular expression (Python `re`):

```
^-----BEGIN PGP PUBLIC KEY BLOCK-----[\s\S]+-----END PGP PUBLIC KEY BLOCK-----$
```

## Examples

- `-----BEGIN PGP PUBLIC KEY BLOCK-----

xjMEU/NfCxYJKwYBBAHaRw8BAQdAPwmJlL3ZFu1AUxl5NOSofIBzOhKA1i+AEJku
Q+47JAY=
-----END PGP PUBLIC KEY BLOCK-----` — Sample version 4 Ed25519 key of RFC 9580, appendix A.1
- `-----BEGIN PGP SIGNATURE-----

iF4EABYIAAYFAlX5X5UACgkQjP3hIZeWWpr2IgD/VvkMypjiECY3vZg/2xbBMd/S
ftgr9N3lYG4NdWrtM2YBANCcT6EVJ/A44PV/IgHYLy6iyQMyZfps60iehUuuYbQE
-----END PGP SIGNATURE-----` (invalid example) — OpenPGP signature of RFC 9580, appendix A.2

## Sources

- doc: <https://www.rfc-editor.org/rfc/rfc9580#section-6.2>
- wikipedia: <https://en.wikipedia.org/wiki/Pretty_Good_Privacy>

## Quality

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

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