{"success":true,"data":{"ext":"uc2","name":"UC2","description":"UC2 is a legacy compressed archive format created by Ad Infinitum Software for UltraCompressor II. It was used to reduce file sizes and package documents or software for storage and transfer, with support in archival utilities and some older DOS-era applications. The format is largely obsolete, and while it is generally safe to inspect, modern tools may have limited support for opening or extracting its contents.","mime":["application/x-uc2-compressed"],"risk_level":"Safe","signatures":[{"hex":"55 43 32 1A","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":[],"usage":{"python":"def is_uc2(file_path: str) -> bool:\n    \"\"\"Check if file is a valid UC2 by magic bytes.\"\"\"\n    signature = bytes([0x55, 0x43, 0x32, 0x1A])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isUC2(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x55, 0x43, 0x32, 0x1A]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsUC2(data []byte) bool {\n    signature := []byte{0x55, 0x43, 0x32, 0x1A}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}