PGT
application/octet-stream
Magic Bytes
Offset: 0
78 56 34
PGT is a proprietary data format developed by Precision Software for use within the Precision Graphing Tool application suite. It is primarily utilized for exporting and importing mathematical visualizations, coordinate datasets, and complex scientific graphing configurations across legacy Windows systems. This format is considered low risk due to its simple structure, though its lack of native encryption necessitates external security measures if utilized for sensitive or proprietary information.
Validation Code
How to validate .pgt files in Python
Python
def is_pgt(file_path: str) -> bool:
"""Check if file is a valid PGT by magic bytes."""
signature = bytes([0x78, 0x56, 0x34])
with open(file_path, "rb") as f:
return f.read(3) == signature
How to validate .pgt files in Node.js
Node.js
function isPGT(buffer: Buffer): boolean {
const signature = Buffer.from([0x78, 0x56, 0x34]);
return buffer.subarray(0, 3).equals(signature);
}
Go
func IsPGT(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/pgt
curl https://filesignature.org/api/v1/pgt