{"success":true,"data":{"ext":"vsd","name":"Visio file","description":"Visio file (VSD) is a legacy diagram file format created and maintained by Microsoft for use in Visio. It is used for flowcharts, organizational charts, network diagrams, floor plans, and other technical drawings, and is commonly opened in Microsoft Visio and compatible diagramming tools. As an older binary format, it is generally safe to view, though files from untrusted sources should still be handled with standard caution.","mime":["application/vnd.visio"],"risk_level":"Safe","signatures":[{"hex":"D0 CF 11 E0 A1 B1 1A E1","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["ai","cdr","eps","epsf","vsdx","cgm"],"usage":{"python":"def is_vsd(file_path: str) -> bool:\n    \"\"\"Check if file is a valid VSD by magic bytes.\"\"\"\n    signature = bytes([0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isVSD(buffer: Buffer): boolean {\n  const signature = Buffer.from([0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsVSD(data []byte) bool {\n    signature := []byte{0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"},"category":"Images"}}