{"success":true,"data":{"ext":"zlib","name":"ZLIB","description":"ZLIB is a lossless data compression format and software library originally created by Jean-loup Gailly and Mark Adler, and maintained through the zlib project. It is commonly used in network protocols, PNG images, HTTP content encoding, and many applications that need compact, streamable data storage or transmission. The format is long-established and generally safe, though compressed data from untrusted sources can be used in decompression-bomb attacks or to consume excessive memory and CPU.","mime":[],"risk_level":"Safe","signatures":[{"hex":"78 01","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_zlib(file_path: str) -> bool:\n    \"\"\"Check if file is a valid ZLIB by magic bytes.\"\"\"\n    signature = bytes([0x78, 0x01])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isZLIB(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x78, 0x01]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsZLIB(data []byte) bool {\n    signature := []byte{0x78, 0x01}\n    if len(data) < 2 {\n        return false\n    }\n    return bytes.Equal(data[:2], signature)\n}"}}}