{"success":true,"data":{"ext":"cif","name":"CIF","description":"Crystallographic Information File (CIF) is a text-based data format developed and maintained by the International Union of Crystallography for storing standardized crystallographic information. It is used in chemistry, materials science, and structural biology to exchange unit-cell parameters, atomic coordinates, symmetry data, and related experimental results. CIF is generally safe because it is plain text, although applications that interpret embedded links or scripts should still treat files from untrusted sources with care.","mime":[],"risk_level":"Safe","signatures":[{"hex":"5B 56 65 72 73 69 6F 6E","offset":2,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_cif(file_path: str) -> bool:\n    \"\"\"Check if file is a valid CIF by magic bytes at offset 2.\"\"\"\n    signature = bytes([0x5B, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6F, 0x6E])\n    with open(file_path, \"rb\") as f:\n        f.seek(2)\n        return f.read(8) == signature","node":"function isCIF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x5B, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6F, 0x6E]);\n  if (buffer.length < 10) return false;\n  return buffer.subarray(2, 10).equals(signature);\n}","go":"func IsCIF(data []byte) bool {\n    signature := []byte{0x5B, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6F, 0x6E}\n    if len(data) < 10 {\n        return false\n    }\n    return bytes.Equal(data[2:10], signature)\n}"}}}