{"success":true,"data":{"ext":"pax","name":"PAX password protected bitmap","description":"PAX password protected bitmap is a proprietary raster image format associated with the PAX software suite and maintained by its original vendor. It was used to store bitmap images with access controls for distribution, archiving, and limited viewing in applications that supported PAX files. The format is uncommon today and may require specialized software to open; because it is password protected, users should treat files from untrusted sources with caution.","mime":[],"risk_level":"Safe","signatures":[{"hex":"50 41 58","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["7z","ace","arj","bz","bz2","cab"],"usage":{"python":"def is_pax(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PAX by magic bytes.\"\"\"\n    signature = bytes([0x50, 0x41, 0x58])\n    with open(file_path, \"rb\") as f:\n        return f.read(3) == signature","node":"function isPAX(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x50, 0x41, 0x58]);\n  return buffer.subarray(0, 3).equals(signature);\n}","go":"func IsPAX(data []byte) bool {\n    signature := []byte{0x50, 0x41, 0x58}\n    if len(data) < 3 {\n        return false\n    }\n    return bytes.Equal(data[:3], signature)\n}"},"category":"Archives"}}