{"success":true,"data":{"ext":"p02","name":"P02","description":"P02 is a Commodore 64 binary file format associated with the Power64 emulator and maintained as part of the Power64 project. It is used to store programs and data for emulated C64 environments, including software loading, preservation, and testing within retrocomputing workflows. The format is historical and generally safe, though files from untrusted sources should still be treated with standard caution.","mime":[],"risk_level":"Safe","signatures":[{"hex":"43 36 34 46 69 6C 65 00","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["p00"],"usage":{"python":"def is_p02(file_path: str) -> bool:\n    \"\"\"Check if file is a valid P02 by magic bytes.\"\"\"\n    signature = bytes([0x43, 0x36, 0x34, 0x46, 0x69, 0x6C, 0x65, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isP02(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x43, 0x36, 0x34, 0x46, 0x69, 0x6C, 0x65, 0x00]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsP02(data []byte) bool {\n    signature := []byte{0x43, 0x36, 0x34, 0x46, 0x69, 0x6C, 0x65, 0x00}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"}}}