{"success":true,"data":{"ext":"cnv","name":"DB2 conversion file","description":"A DB2 conversion file (CNV) is a data interchange file format associated with IBM Db2 and maintained as part of its database tooling ecosystem. It is used for moving or transforming table data between systems, imports, exports, and related database migration workflows. The format is generally considered safe, though as with any data file, content should be validated before processing; it is primarily encountered in legacy DB2 environments.","mime":[],"risk_level":"Safe","signatures":[{"hex":"53 51 4C 4F 43 4F 4E 56 48 44 00 00 31 2E 30 00","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_cnv(file_path: str) -> bool:\n    \"\"\"Check if file is a valid CNV by magic bytes.\"\"\"\n    signature = bytes([0x53, 0x51, 0x4C, 0x4F, 0x43, 0x4F, 0x4E, 0x56, 0x48, 0x44, 0x00, 0x00, 0x31, 0x2E, 0x30, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(16) == signature","node":"function isCNV(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x53, 0x51, 0x4C, 0x4F, 0x43, 0x4F, 0x4E, 0x56, 0x48, 0x44, 0x00, 0x00, 0x31, 0x2E, 0x30, 0x00]);\n  return buffer.subarray(0, 16).equals(signature);\n}","go":"func IsCNV(data []byte) bool {\n    signature := []byte{0x53, 0x51, 0x4C, 0x4F, 0x43, 0x4F, 0x4E, 0x56, 0x48, 0x44, 0x00, 0x00, 0x31, 0x2E, 0x30, 0x00}\n    if len(data) < 16 {\n        return false\n    }\n    return bytes.Equal(data[:16], signature)\n}"}}}