{"success":true,"data":{"ext":"tbz2","name":"bzip2compressed archive","description":"A TBZ2 file is a tar archive compressed with bzip2, a compression format created by Julian Seward and maintained through open-source implementations. It is commonly used to package software distributions, source code, and backups into a single compressed archive for easier transfer and storage. The format is generally safe, though extracting archives from untrusted sources can expose files with unexpected paths or contents, so users should verify provenance before unpacking.","mime":["application/x-bzip2"],"risk_level":"Safe","signatures":[{"hex":"42 5A 68","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["bz2","tb2"],"usage":{"python":"def is_tbz2(file_path: str) -> bool:\n    \"\"\"Check if file is a valid TBZ2 by magic bytes.\"\"\"\n    signature = bytes([0x42, 0x5A, 0x68])\n    with open(file_path, \"rb\") as f:\n        return f.read(3) == signature","node":"function isTBZ2(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x42, 0x5A, 0x68]);\n  return buffer.subarray(0, 3).equals(signature);\n}","go":"func IsTBZ2(data []byte) bool {\n    signature := []byte{0x42, 0x5A, 0x68}\n    if len(data) < 3 {\n        return false\n    }\n    return bytes.Equal(data[:3], signature)\n}"}}}