{"success":true,"data":{"ext":"aiff","name":"Audio Interchange File Format","description":"Audio Interchange File Format (AIFF) is an uncompressed audio file format developed by Apple Inc. for storing high-quality digital sound. It is commonly used for music production, audio editing, sample libraries, and interchange between recording applications and operating systems. AIFF is a legacy format from the Macintosh era and is generally safe to open, though files from untrusted sources should still be handled with standard caution.","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 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"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"41 49 46 46","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"},{"name":"Neil Harvey FileSignatures","url":"https://raw.githubusercontent.com/neilharvey/FileSignatures/master/src/FileSignatures/Formats/Aiff.cs"}]},{"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"}]}],"related":["aif","wav","aifc","aac","ac3","amr"],"usage":{"python":"def is_aiff(file_path: str) -> bool:\n    \"\"\"Check if file is a valid AIFF 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 isAIFF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x46, 0x4F, 0x52, 0x4D]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsAIFF(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"}}