{"success":true,"data":{"ext":"dcr","name":"DCR","description":"DCR is a Shockwave content file format developed by Macromedia and later maintained by Adobe as part of the Director and Shockwave platform. It was used to distribute interactive multimedia, animations, games, and web-based presentations in browsers and standalone players. The format is legacy and largely obsolete; like other rich media containers, it can carry executable content, so files from untrusted sources should be opened with caution.","mime":["application/x-director"],"risk_level":"Safe","signatures":[{"hex":"52 49 46 58","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"46 47 44 4D","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["dir","dxr","drx"],"usage":{"python":"def is_dcr(file_path: str) -> bool:\n    \"\"\"Check if file is a valid DCR by magic bytes.\"\"\"\n    signature = bytes([0x52, 0x49, 0x46, 0x58])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isDCR(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x52, 0x49, 0x46, 0x58]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsDCR(data []byte) bool {\n    signature := []byte{0x52, 0x49, 0x46, 0x58}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}