{"success":true,"data":{"ext":"hap","name":"Hamarsoft HAP 3","description":"Hamarsoft HAP 3 is a compressed archive format developed and maintained by Hamarsoft. It was used to package and distribute files with reduced storage requirements, and could be handled by compatible archivers and extraction tools on supported systems. The format is now largely historical, but archived HAP files are generally safe to inspect; as with any archive, caution is advised when extracting untrusted contents.","mime":[],"risk_level":"Safe","signatures":[{"hex":"91 33 48 46","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_hap(file_path: str) -> bool:\n    \"\"\"Check if file is a valid HAP by magic bytes.\"\"\"\n    signature = bytes([0x91, 0x33, 0x48, 0x46])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isHAP(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x91, 0x33, 0x48, 0x46]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsHAP(data []byte) bool {\n    signature := []byte{0x91, 0x33, 0x48, 0x46}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}