{"success":true,"data":{"ext":"lwp","name":"Lotus WordPro document","description":"Lotus WordPro document (LWP) is a proprietary word processing file format developed by Lotus Development Corporation and later supported by IBM. It was used for creating and editing letters, reports, forms, and other office documents in Lotus WordPro and related productivity suites. The format is now largely legacy, and while generally safe, older files may not open correctly in modern software and can preserve obsolete macros or embedded content.","mime":["application/vnd.lotus-wordpro"],"risk_level":"Safe","signatures":[{"hex":"57 6F 72 64 50 72 6F 00","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"}]},{"hex":"57 6F 72 64 50 72 6F 0D FB","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"}]},{"hex":"57 6F 72 64 50 72 6F","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["apr","nsf","wk1","wk3","wk4","123"],"usage":{"python":"def is_lwp(file_path: str) -> bool:\n    \"\"\"Check if file is a valid LWP by magic bytes.\"\"\"\n    signature = bytes([0x57, 0x6F, 0x72, 0x64, 0x50, 0x72, 0x6F, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isLWP(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x57, 0x6F, 0x72, 0x64, 0x50, 0x72, 0x6F, 0x00]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsLWP(data []byte) bool {\n    signature := []byte{0x57, 0x6F, 0x72, 0x64, 0x50, 0x72, 0x6F, 0x00}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"},"category":"Office"}}