{"success":true,"data":{"ext":"h5","name":"H5","description":"Hierarchical Data Format version 5 (HDF5) is a file format developed and maintained by The HDF Group for storing large, complex scientific data sets. It is commonly used in research, engineering, and data analysis applications for multidimensional arrays, metadata, and structured numeric data. HDF5 is generally safe to open, though files from untrusted sources may contain very large datasets that can affect performance or resource usage.","mime":["application/x-hdf"],"risk_level":"Safe","signatures":[{"hex":"0E 03 13 01","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"}]},{"hex":"89 48 44 46 0D 0A 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"}]},{"hex":"89 48 44 46 0D 0A 1A 0A","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["hdf","he5","h4","hdf4"],"usage":{"python":"def is_h5(file_path: str) -> bool:\n    \"\"\"Check if file is a valid H5 by magic bytes.\"\"\"\n    signature = bytes([0x0E, 0x03, 0x13, 0x01])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isH5(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x0E, 0x03, 0x13, 0x01]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsH5(data []byte) bool {\n    signature := []byte{0x0E, 0x03, 0x13, 0x01}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}