{"success":true,"data":{"ext":"sam","name":"Lotus AMI Pro document","description":"Lotus AMI Pro document files are a word-processing format developed by Lotus Development Corporation and later supported by IBM after its acquisition of Lotus. They were used for creating and editing formatted text documents, business reports, letters, and other office materials in Lotus AMI Pro. This is a legacy format associated with older software; files from untrusted sources should be opened with caution, although the format is generally considered safe.","mime":[],"risk_level":"Safe","signatures":[{"hex":"5B 56 45 52 5D","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"5B 76 65 72 5D","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["apr","lwp","nsf","wk1","wk3","wk4"],"usage":{"python":"def is_sam(file_path: str) -> bool:\n    \"\"\"Check if file is a valid SAM by magic bytes.\"\"\"\n    signature = bytes([0x5B, 0x56, 0x45, 0x52, 0x5D])\n    with open(file_path, \"rb\") as f:\n        return f.read(5) == signature","node":"function isSAM(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x5B, 0x56, 0x45, 0x52, 0x5D]);\n  return buffer.subarray(0, 5).equals(signature);\n}","go":"func IsSAM(data []byte) bool {\n    signature := []byte{0x5B, 0x56, 0x45, 0x52, 0x5D}\n    if len(data) < 5 {\n        return false\n    }\n    return bytes.Equal(data[:5], signature)\n}"},"category":"Office"}}