{"success":true,"data":{"ext":"asc","name":"ASC","description":"ASC is an ASCII-armored public key file format used in OpenPGP systems, originally introduced by Phil Zimmermann’s Pretty Good Privacy (PGP) and now maintained through the OpenPGP standards family. It is used to distribute, import, and verify public encryption keys in email encryption, software signing, and key-management workflows. The format is generally safe to open because it contains text-based key material, though users should still verify key fingerprints and trust sources before importing keys.","mime":["application/pgp-keys"],"risk_level":"Safe","signatures":[{"hex":"2D 2D 2D 2D 2D 42 45 47 49 4E 20 50 47 50 20 50 55 42 4C 49 43 20 4B 45 49 20 42 4C 4F 43 4B 2D 2D 2D 2D 2D","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["key","pem","csr","crt","der","gpg"],"usage":{"python":"def is_asc(file_path: str) -> bool:\n    \"\"\"Check if file is a valid ASC by magic bytes.\"\"\"\n    signature = bytes([0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x42, 0x45, 0x47, 0x49, 0x4E, 0x20, 0x50, 0x47, 0x50, 0x20, 0x50, 0x55, 0x42, 0x4C, 0x49, 0x43, 0x20, 0x4B, 0x45, 0x49, 0x20, 0x42, 0x4C, 0x4F, 0x43, 0x4B, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D])\n    with open(file_path, \"rb\") as f:\n        return f.read(36) == signature","node":"function isASC(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x42, 0x45, 0x47, 0x49, 0x4E, 0x20, 0x50, 0x47, 0x50, 0x20, 0x50, 0x55, 0x42, 0x4C, 0x49, 0x43, 0x20, 0x4B, 0x45, 0x49, 0x20, 0x42, 0x4C, 0x4F, 0x43, 0x4B, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D]);\n  return buffer.subarray(0, 36).equals(signature);\n}","go":"func IsASC(data []byte) bool {\n    signature := []byte{0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x42, 0x45, 0x47, 0x49, 0x4E, 0x20, 0x50, 0x47, 0x50, 0x20, 0x50, 0x55, 0x42, 0x4C, 0x49, 0x43, 0x20, 0x4B, 0x45, 0x49, 0x20, 0x42, 0x4C, 0x4F, 0x43, 0x4B, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D}\n    if len(data) < 36 {\n        return false\n    }\n    return bytes.Equal(data[:36], signature)\n}"},"category":"Certificates & Keys"}}