{"success":true,"data":{"ext":"wp","name":"WordPerfect text and graphics file","description":"WordPerfect text and graphics files are documents created by Corel for the WordPerfect word processing suite and maintained as part of its proprietary format family. They are used for word processing documents that combine formatted text, tables, and embedded graphics, especially in office and legal workflows. The format is a legacy office document type, and modern software may support it only partially; files from untrusted sources should still be handled cautiously.","mime":["application/vnd.wordperfect"],"risk_level":"Safe","signatures":[{"hex":"FF 57 50 43","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"61 70 70 6C 69 63 61 74 69 6F 6E 2F 76 6E 64 2E 77 6F 72 64 70 65 72 66 65 63 74 3B","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["wp5","wp6","wpd","w60","wp61","wpt"],"usage":{"python":"def is_wp(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WP by magic bytes.\"\"\"\n    signature = bytes([0xFF, 0x57, 0x50, 0x43])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isWP(buffer: Buffer): boolean {\n  const signature = Buffer.from([0xFF, 0x57, 0x50, 0x43]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsWP(data []byte) bool {\n    signature := []byte{0xFF, 0x57, 0x50, 0x43}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}