{"success":true,"data":{"ext":"pea","name":"PEA","description":"PEA (Pack, Encrypt, Authenticate) is an open archive file format developed by Giorgio Tani and maintained as part of the PeaZip project. It is used for compressing files, grouping directories, and applying optional encryption and integrity checks for backups and file exchange. The format is less widely supported than common archive types, so compatibility may depend on dedicated software; files from untrusted sources should still be scanned before extraction.","mime":[],"risk_level":"Safe","signatures":[{"hex":"78 56 34","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["pbt","pdt","peb","pet","pgt","pjt"],"usage":{"python":"def is_pea(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PEA by magic bytes.\"\"\"\n    signature = bytes([0x78, 0x56, 0x34])\n    with open(file_path, \"rb\") as f:\n        return f.read(3) == signature","node":"function isPEA(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x78, 0x56, 0x34]);\n  return buffer.subarray(0, 3).equals(signature);\n}","go":"func IsPEA(data []byte) bool {\n    signature := []byte{0x78, 0x56, 0x34}\n    if len(data) < 3 {\n        return false\n    }\n    return bytes.Equal(data[:3], signature)\n}"}}}