{"success":true,"data":{"ext":"ain","name":"AIN Compressed Archive","description":"AIN Compressed Archive is a compressed file archive format associated with AIN archiving tools and maintained through software that supports the format rather than a formal standards body. It is used to package related files for distribution, backup, and software resource storage, particularly in older applications that rely on compact bundled archives. The format is generally safe to inspect, though, like other legacy archives, it should be opened with current tools and scanned when sourced from untrusted locations.","mime":[],"risk_level":"Safe","signatures":[{"hex":"21 12","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_ain(file_path: str) -> bool:\n    \"\"\"Check if file is a valid AIN by magic bytes.\"\"\"\n    signature = bytes([0x21, 0x12])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isAIN(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x21, 0x12]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsAIN(data []byte) bool {\n    signature := []byte{0x21, 0x12}\n    if len(data) < 2 {\n        return false\n    }\n    return bytes.Equal(data[:2], signature)\n}"}}}