{"success":true,"data":{"ext":"aif","name":"Audio Interchange File Format (AIFF)","description":"Audio Interchange File Format (AIFF) is an uncompressed audio file format developed by Apple Inc. for storing and exchanging digital sound data. It is used for music production, archiving, and playback in audio editing applications and media players, particularly on Apple platforms. AIFF is a legacy format with broad compatibility, and it is generally considered safe, though any media file should be handled carefully when obtained from untrusted sources.","mime":["audio/aiff","audio/x-aiff"],"risk_level":"Safe","signatures":[{"hex":"46 4F 52 4D","offset":0,"sources":[{"name":"Apple AIFF 1.3 Specification (IFF container)","url":"https://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/AIFF/Docs/AIFF-1.3.pdf"}]},{"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":"41 49 46 46","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["aiff","wav","aifc","aac","ac3","amr"],"usage":{"python":"def is_aif(file_path: str) -> bool:\n    \"\"\"Check if file is a valid AIF by magic bytes.\"\"\"\n    signature = bytes([0x46, 0x4F, 0x52, 0x4D])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isAIF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x46, 0x4F, 0x52, 0x4D]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsAIF(data []byte) bool {\n    signature := []byte{0x46, 0x4F, 0x52, 0x4D}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Audio"}}