{"success":true,"data":{"ext":"wk2","name":"WK2","description":"WK2 is a spreadsheet file format for Lotus 1-2-3, originally created by Lotus Development Corporation and later supported by successor vendors. It was used to store worksheets, formulas, numeric data, and related spreadsheet content in business, accounting, and office workflows. The format is now legacy and largely obsolete, with support preserved mainly for backward compatibility; like other older document formats, it should be opened from trusted sources.","mime":["application/vnd.lotus-1-2-3;version=2"],"risk_level":"Safe","signatures":[{"hex":"00 00 02 00 06 04 06 00 08 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":["wk1","wb1","wb2","wkq","wq1","wq2"],"usage":{"python":"def is_wk2(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WK2 by magic bytes.\"\"\"\n    signature = bytes([0x00, 0x00, 0x02, 0x00, 0x06, 0x04, 0x06, 0x00, 0x08, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(10) == signature","node":"function isWK2(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x00, 0x00, 0x02, 0x00, 0x06, 0x04, 0x06, 0x00, 0x08, 0x00]);\n  return buffer.subarray(0, 10).equals(signature);\n}","go":"func IsWK2(data []byte) bool {\n    signature := []byte{0x00, 0x00, 0x02, 0x00, 0x06, 0x04, 0x06, 0x00, 0x08, 0x00}\n    if len(data) < 10 {\n        return false\n    }\n    return bytes.Equal(data[:10], signature)\n}"}}}