{"success":true,"data":{"ext":"zst","name":"ZST","description":"ZST is a compressed file format based on Zstandard, a lossless compression algorithm originally developed by Facebook and now maintained as an open standard by its community and successors. It is used to reduce storage size and transfer time for archives, software packages, backups, and other data files, often in streaming and high-performance applications. The format is generally safe, though decompression of untrusted files can consume significant resources or trigger decompression bombs.","mime":["application/zstd"],"risk_level":"Safe","signatures":[{"hex":"28 B5 2F FD","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["7z","ace","arj","bz","bz2","cab"],"usage":{"python":"def is_zst(file_path: str) -> bool:\n    \"\"\"Check if file is a valid ZST by magic bytes.\"\"\"\n    signature = bytes([0x28, 0xB5, 0x2F, 0xFD])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isZST(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x28, 0xB5, 0x2F, 0xFD]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsZST(data []byte) bool {\n    signature := []byte{0x28, 0xB5, 0x2F, 0xFD}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Archives"}}