{"success":true,"data":{"ext":"wp6","name":"WordPerfect text and graphics file","description":"WordPerfect text and graphics file (WP6) is a legacy word-processing document format created by WordPerfect Corporation and later maintained by Corel as part of the WordPerfect Office family. It was used for letters, reports, and desktop publishing documents that combined formatted text with embedded graphics and layout features. The format is largely obsolete, and older files may require compatibility software, but it is generally considered safe to open.","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","wp5","wpd","w60","wp61","wpt"],"usage":{"python":"def is_wp6(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WP6 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 isWP6(buffer: Buffer): boolean {\n  const signature = Buffer.from([0xFF, 0x57, 0x50, 0x43]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsWP6(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}"}}}