{"success":true,"data":{"ext":"puf","name":"Pufferencrypted archive","description":"Pufferencrypted archive (PUF) is an encrypted archive file format used by the Puffer utility, which created and maintains the format within its software ecosystem. It is used to bundle multiple files into a single protected container for backup, transfer, and restricted distribution on supported systems. Because the format stores encrypted content, access depends on the correct password or key, and older archives may require legacy software for extraction.","mime":[],"risk_level":"Safe","signatures":[{"hex":"50 55 46 58","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_puf(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PUF by magic bytes.\"\"\"\n    signature = bytes([0x50, 0x55, 0x46, 0x58])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isPUF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x50, 0x55, 0x46, 0x58]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsPUF(data []byte) bool {\n    signature := []byte{0x50, 0x55, 0x46, 0x58}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}