{"success":true,"data":{"ext":"drw","name":"Micrografx vector graphic file","description":"Micrografx vector graphic files are drawing documents created by Micrografx, later supported through Corel’s ownership of the product line. They were used for scalable illustrations, technical diagrams, page layouts, and other desktop publishing and design tasks in Micrografx Designer. The format is now largely legacy and uncommon, and it is generally considered safe, though older files may not open correctly in modern software without conversion.","mime":[],"risk_level":"Safe","signatures":[{"hex":"01 FF 02 04 03 02","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_drw(file_path: str) -> bool:\n    \"\"\"Check if file is a valid DRW by magic bytes.\"\"\"\n    signature = bytes([0x01, 0xFF, 0x02, 0x04, 0x03, 0x02])\n    with open(file_path, \"rb\") as f:\n        return f.read(6) == signature","node":"function isDRW(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x01, 0xFF, 0x02, 0x04, 0x03, 0x02]);\n  return buffer.subarray(0, 6).equals(signature);\n}","go":"func IsDRW(data []byte) bool {\n    signature := []byte{0x01, 0xFF, 0x02, 0x04, 0x03, 0x02}\n    if len(data) < 6 {\n        return false\n    }\n    return bytes.Equal(data[:6], signature)\n}"},"category":"Images"}}