{"success":true,"data":{"ext":"pgp","name":"PGP","description":"PGP (Pretty Good Privacy) is a cryptographic file format and encryption system originally created by Phil Zimmermann and now maintained through the OpenPGP standard. It is used for encrypting files and messages, signing data, and verifying the authenticity of software, documents, and email in applications that support OpenPGP. The format is generally safe, but encrypted content cannot be inspected without the correct key, and legacy PGP implementations remain in use alongside newer OpenPGP tools.","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"}]},{"hex":"85 03","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["gpg","asc","crt","der","key","pem"],"usage":{"python":"def is_pgp(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PGP by magic bytes.\"\"\"\n    signature = bytes([0x85])\n    with open(file_path, \"rb\") as f:\n        return f.read(1) == signature","node":"function isPGP(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x85]);\n  return buffer.subarray(0, 1).equals(signature);\n}","go":"func IsPGP(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"}}