{"success":true,"data":{"ext":"aifc","name":"AIFC","description":"Audio Interchange File Format Compressed (AIFC) is a variant of the Audio Interchange File Format developed by Apple as part of its digital audio standards. It is used to store sampled sound data, including compressed audio, and is supported by many audio editors, media players, and multimedia authoring tools. AIFC is a legacy format from the early Macintosh era; it is generally safe to open, though untrusted files may still be malformed or damaged.","mime":["audio/x-aiff"],"risk_level":"Safe","signatures":[{"hex":"46 4F 52 4D 2E 2E 2E 2E 41 49 46 46","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"46 4F 52 4D 2E 2E 2E 2E 41 49 46 43","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"46 4F 52 4D 2E 2E 2E 2E 38 53 56 58","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"46 4F 52 4D 00","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"46 4F 52 4D","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"41 49 46 46","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["aif","aiff","aac","ac3","amr","au"],"usage":{"python":"def is_aifc(file_path: str) -> bool:\n    \"\"\"Check if file is a valid AIFC by magic bytes.\"\"\"\n    signature = bytes([0x46, 0x4F, 0x52, 0x4D, 0x2E, 0x2E, 0x2E, 0x2E, 0x41, 0x49, 0x46, 0x46])\n    with open(file_path, \"rb\") as f:\n        return f.read(12) == signature","node":"function isAIFC(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x46, 0x4F, 0x52, 0x4D, 0x2E, 0x2E, 0x2E, 0x2E, 0x41, 0x49, 0x46, 0x46]);\n  return buffer.subarray(0, 12).equals(signature);\n}","go":"func IsAIFC(data []byte) bool {\n    signature := []byte{0x46, 0x4F, 0x52, 0x4D, 0x2E, 0x2E, 0x2E, 0x2E, 0x41, 0x49, 0x46, 0x46}\n    if len(data) < 12 {\n        return false\n    }\n    return bytes.Equal(data[:12], signature)\n}"},"category":"Audio"}}