{"success":true,"data":{"ext":"wp5","name":"WordPerfect text and graphics file","description":"WordPerfect text and graphics file is a document format developed by WordPerfect Corporation and later maintained by Corel for the WordPerfect word processor. It was used for text documents that could include basic graphics, formatting, and page layout elements, and was common in office, legal, and academic workflows. The format is now legacy, and files may require compatible software or conversion tools to open correctly.","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":["wp","wp6","wpd","w60","wp61","wpt"],"usage":{"python":"def is_wp5(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WP5 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 isWP5(buffer: Buffer): boolean {\n  const signature = Buffer.from([0xFF, 0x57, 0x50, 0x43]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsWP5(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}"}}}