{"success":true,"data":{"ext":"bac","name":"BAC","description":"BAC is a backup archive format associated with the AmiBack utility for Amiga systems, originally created by its software developers to store disk images and file backups. It was used for preserving application data, system files, and complete volumes on classic Amiga computers, and can appear in older archival workflows or emulator collections. The format is now largely legacy, but BAC files are generally safe to inspect when handled by compatible archival tools.","mime":[],"risk_level":"Safe","signatures":[{"hex":"42 41 43 4B 4D 49 4B 45","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"44 49 53 4B","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_bac(file_path: str) -> bool:\n    \"\"\"Check if file is a valid BAC by magic bytes.\"\"\"\n    signature = bytes([0x42, 0x41, 0x43, 0x4B, 0x4D, 0x49, 0x4B, 0x45])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isBAC(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x42, 0x41, 0x43, 0x4B, 0x4D, 0x49, 0x4B, 0x45]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsBAC(data []byte) bool {\n    signature := []byte{0x42, 0x41, 0x43, 0x4B, 0x4D, 0x49, 0x4B, 0x45}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"}}}