{"success":true,"data":{"ext":"wk3","name":"Lotus 1-2-3 spreadsheet","description":"Lotus 1-2-3 spreadsheet (WK3) is a legacy spreadsheet file format created by Lotus Development Corporation and later supported by IBM through Lotus products. It was used for worksheets, calculations, charts, and business data exchange in Lotus 1-2-3 and compatible spreadsheet applications. The format is obsolete and generally safe to open, though files from untrusted sources should still be handled with standard caution.","mime":["application/vnd.lotus-1-2-3;version=3"],"risk_level":"Safe","signatures":[{"hex":"00 00 1A 00 00 10 04 00 00 00 00 00","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"}]},{"hex":"00 00 1A 00 00 10 04 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"}]}],"related":["wk4","123","wk1","apr","lwp","nsf"],"usage":{"python":"def is_wk3(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WK3 by magic bytes.\"\"\"\n    signature = bytes([0x00, 0x00, 0x1A, 0x00, 0x00, 0x10, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(12) == signature","node":"function isWK3(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x00, 0x00, 0x1A, 0x00, 0x00, 0x10, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00]);\n  return buffer.subarray(0, 12).equals(signature);\n}","go":"func IsWK3(data []byte) bool {\n    signature := []byte{0x00, 0x00, 0x1A, 0x00, 0x00, 0x10, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00}\n    if len(data) < 12 {\n        return false\n    }\n    return bytes.Equal(data[:12], signature)\n}"},"category":"Office"}}