{"success":true,"data":{"ext":"sdr","name":"SmartDraw Drawing file","description":"The SmartDraw Drawing file is a proprietary diagram format developed and maintained by SmartDraw Software. It is used for flowcharts, organizational charts, mind maps, floor plans, and other business or technical illustrations created in SmartDraw applications. The format is generally considered safe, though files from untrusted sources should still be scanned and opened in current software to avoid compatibility issues.","mime":[],"risk_level":"Safe","signatures":[{"hex":"53 4D 41 52 54 44 52 57","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_sdr(file_path: str) -> bool:\n    \"\"\"Check if file is a valid SDR by magic bytes.\"\"\"\n    signature = bytes([0x53, 0x4D, 0x41, 0x52, 0x54, 0x44, 0x52, 0x57])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isSDR(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x53, 0x4D, 0x41, 0x52, 0x54, 0x44, 0x52, 0x57]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsSDR(data []byte) bool {\n    signature := []byte{0x53, 0x4D, 0x41, 0x52, 0x54, 0x44, 0x52, 0x57}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"}}}