{"success":true,"data":{"ext":"cda","name":"Resource Interchange File Format -- Compact Disc DigitalAudio","description":"Resource Interchange File Format (RIFF) is a multimedia container format developed by Microsoft and IBM for structured storage of audio, video, and related data. It has been used for Compact Disc Digital Audio track entries and other legacy media workflows, particularly in Windows-based applications and disc authoring tools. The format is longstanding and largely legacy; as a small pointer file, it contains limited data and is generally considered safe to open.","mime":[],"risk_level":"Safe","signatures":[{"hex":"52 49 46 46","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"43 44 44 41","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"52 49 46 46 43 44 44 41 66 6D 74 20","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["qcp","wav","ani","cdr","cmx","ds4"],"usage":{"python":"def is_cda(file_path: str) -> bool:\n    \"\"\"Check if file is a valid CDA by magic bytes.\"\"\"\n    signature = bytes([0x52, 0x49, 0x46, 0x46])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isCDA(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x52, 0x49, 0x46, 0x46]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsCDA(data []byte) bool {\n    signature := []byte{0x52, 0x49, 0x46, 0x46}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Images"}}