{"success":true,"data":{"ext":"gpg","name":"GPG","description":"GPG is a file format and associated encrypted or signed data container used by GNU Privacy Guard (GnuPG), a free implementation of the OpenPGP standard maintained by the GNU Project. It is used to protect email, software packages, backups, and other files through encryption, digital signatures, and key-based authentication. The format is still in active use; security depends on strong keys, trusted recipients, and up-to-date software, and compromised private keys can expose protected data.","mime":["application/pgp-encrypted"],"risk_level":"Safe","signatures":[{"hex":"85","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["pgp","asc","crt","der","key","pem"],"usage":{"python":"def is_gpg(file_path: str) -> bool:\n    \"\"\"Check if file is a valid GPG by magic bytes.\"\"\"\n    signature = bytes([0x85])\n    with open(file_path, \"rb\") as f:\n        return f.read(1) == signature","node":"function isGPG(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x85]);\n  return buffer.subarray(0, 1).equals(signature);\n}","go":"func IsGPG(data []byte) bool {\n    signature := []byte{0x85}\n    if len(data) < 1 {\n        return false\n    }\n    return bytes.Equal(data[:1], signature)\n}"},"category":"Certificates & Keys"}}