PEA
application/octet-stream
Magic Bytes
Offset: 0
78 56 34
The PEA format is an archive and encryption file type created by Giorgio Tani as part of the PeaZip open-source utility project. It is primarily utilized for secure data storage, providing a dedicated framework for authenticated encryption and integrity checking of bundled files. Although the format emphasizes security by default, it remains a niche standard when compared to more widely adopted archiving alternatives such as ZIP or 7Z.
Validation Code
How to validate .pea files in Python
Python
def is_pea(file_path: str) -> bool:
"""Check if file is a valid PEA by magic bytes."""
signature = bytes([0x78, 0x56, 0x34])
with open(file_path, "rb") as f:
return f.read(3) == signature
How to validate .pea files in Node.js
Node.js
function isPEA(buffer: Buffer): boolean {
const signature = Buffer.from([0x78, 0x56, 0x34]);
return buffer.subarray(0, 3).equals(signature);
}
Go
func IsPEA(data []byte) bool {
signature := []byte{0x78, 0x56, 0x34}
if len(data) < 3 {
return false
}
return bytes.Equal(data[:3], signature)
}
API Endpoint
GET
/api/v1/pea
curl https://filesignature.org/api/v1/pea