{"success":true,"data":{"ext":"caf","name":"Apple Core Audio File","description":"Apple Core Audio Format (CAF) is an audio container format developed and maintained by Apple for storing sound data and related metadata. It is used for music production, audio editing, archival storage, and software that relies on high-quality compressed or uncompressed audio. The format remains supported in Apple platforms and is generally safe, though files from untrusted sources should still be handled with standard caution.","mime":["audio/x-caf"],"risk_level":"Safe","signatures":[{"hex":"63 61 66 66 00 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":"63 61 66 66 00 01","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":"63 61 66 66 00 02","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":"63 61 66 66 40 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":"63 61 66 66 80 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":"63 61 66 66","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_caf(file_path: str) -> bool:\n    \"\"\"Check if file is a valid CAF by magic bytes.\"\"\"\n    signature = bytes([0x63, 0x61, 0x66, 0x66, 0x00, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(6) == signature","node":"function isCAF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x63, 0x61, 0x66, 0x66, 0x00, 0x00]);\n  return buffer.subarray(0, 6).equals(signature);\n}","go":"func IsCAF(data []byte) bool {\n    signature := []byte{0x63, 0x61, 0x66, 0x66, 0x00, 0x00}\n    if len(data) < 6 {\n        return false\n    }\n    return bytes.Equal(data[:6], signature)\n}"},"category":"Audio"}}