{"success":true,"data":{"ext":"nsf","name":"Lotus Notes database","description":"Lotus Notes Database (NSF) is a database file format originally created by Lotus Development Corporation and later maintained by IBM and HCL Technologies as part of the Notes and Domino platform. It is used to store email, calendars, applications, documents, and other collaborative data in enterprise environments. The format is associated with legacy groupware systems, and files from untrusted sources may require careful handling when opened or converted.","mime":["application/vnd.lotus-notes"],"risk_level":"Safe","signatures":[{"hex":"1A 00 00 04 00 00","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"4E 45 53 4D 1A 01","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["apr","lwp","wk1","wk3","wk4","123"],"usage":{"python":"def is_nsf(file_path: str) -> bool:\n    \"\"\"Check if file is a valid NSF by magic bytes.\"\"\"\n    signature = bytes([0x1A, 0x00, 0x00, 0x04, 0x00, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(6) == signature","node":"function isNSF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x1A, 0x00, 0x00, 0x04, 0x00, 0x00]);\n  return buffer.subarray(0, 6).equals(signature);\n}","go":"func IsNSF(data []byte) bool {\n    signature := []byte{0x1A, 0x00, 0x00, 0x04, 0x00, 0x00}\n    if len(data) < 6 {\n        return false\n    }\n    return bytes.Equal(data[:6], signature)\n}"},"category":"Office"}}