{"success":true,"data":{"ext":"hpprgm","name":"HPPRGM","description":"HPPRGM is a program file format used by HP Prime graphing calculators, maintained within Hewlett-Packard’s calculator software ecosystem. It stores user-created calculator programs for tasks such as mathematical routines, interactive tools, classroom exercises, and automation on the device. The format is generally considered safe, though like any executable content it should be opened only from trusted sources; it remains associated with the HP Prime platform rather than legacy calculator models.","mime":[],"risk_level":"Safe","signatures":[{"hex":"7C 61 8A B2","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["hpapp","hpsettings"],"usage":{"python":"def is_hpprgm(file_path: str) -> bool:\n    \"\"\"Check if file is a valid HPPRGM by magic bytes.\"\"\"\n    signature = bytes([0x7C, 0x61, 0x8A, 0xB2])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isHPPRGM(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x7C, 0x61, 0x8A, 0xB2]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsHPPRGM(data []byte) bool {\n    signature := []byte{0x7C, 0x61, 0x8A, 0xB2}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}