{"success":true,"data":{"ext":"dtd","name":"DesignTools 2D Design file","description":"The DesignTools 2D Design file is a proprietary file format associated with the DesignTools application suite, originally created and maintained by its vendor for storing 2D design data. It is used for drafting, layout work, and other computer-aided design tasks within compatible DesignTools software and related utilities. The format is generally considered safe, but like other design files it should be opened only with trusted software because malformed files can still cause application errors.","mime":[],"risk_level":"Safe","signatures":[{"hex":"07 64 74 32 64 64 74 64","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_dtd(file_path: str) -> bool:\n    \"\"\"Check if file is a valid DTD by magic bytes.\"\"\"\n    signature = bytes([0x07, 0x64, 0x74, 0x32, 0x64, 0x64, 0x74, 0x64])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isDTD(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x07, 0x64, 0x74, 0x32, 0x64, 0x64, 0x74, 0x64]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsDTD(data []byte) bool {\n    signature := []byte{0x07, 0x64, 0x74, 0x32, 0x64, 0x64, 0x74, 0x64}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"}}}