{
  "id": "age_secret_key",
  "kind": "datatype",
  "status": "draft",
  "name": "age secret key (X25519 identity)",
  "doc": "Secret key (identity) of the age file encryption format and tool, which decrypts files encrypted to the matching age1... public key. It is an uppercase Bech32 string with the human-readable part AGE-SECRET-KEY-, so it starts with AGE-SECRET-KEY-1 and has 74 characters. Post-quantum identities start with AGE-SECRET-KEY-PQ-1. The Bech32 checksum covers the whole string, including the hyphens of the prefix.",
  "parent": "private_key",
  "is_pii": false,
  "categories": [
    "secrets",
    "cryptography"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^AGE-SECRET-KEY-(?:PQ-)?1[QPZRY9X8GF2TVDW0S3JN54KHCE6MUA7L]{58}$",
  "examples": [
    {
      "value": "AGE-SECRET-KEY-1GFPYYSJZGFPYYSJZGFPYYSJZGFPYYSJZGFPYYSJZGFPYYSJZGFPQ4EGAEX",
      "description": "X25519 test vector of the age specification",
      "valid": true
    },
    {
      "value": "AGE-SECRET-KEY-PQ-1XX76JRALNLXDMEW0CRK45QMCCH4X06SE84UN3VPM33W6HWDX0H3SK3ZQFR",
      "description": "Post-quantum (ML-KEM-768 + X25519) test vector of the age specification",
      "valid": true
    },
    {
      "value": "age-secret-key-1gfpyysjzgfpyysjzgfpyysjzgfpyysjzgfpyysjzgfpyysjzgfpq4egaex",
      "description": "Lower case",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://github.com/C2SP/C2SP/blob/main/age.md"
    },
    {
      "type": "other",
      "url": "https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml"
    }
  ],
  "detected_by": {
    "tools": [
      "gitleaks"
    ]
  },
  "quality": {
    "score": 85,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/any/secrets/age_secret_key.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/secrets/age_secret_key.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/secrets/age_secret_key.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/age_secret_key",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/age_secret_key.json"
  }
}