PJT
application/octet-stream
Magic Bytes
Offset: 0
78 56 34
The PJT file format is a project configuration document created by Texas Instruments for the Code Composer Studio integrated development environment. It is primarily utilized to define build settings, file references, and compiler options for embedded systems development on DSP and microcontroller architectures. This legacy format has largely been replaced by XML-based project structures in modern releases, though it is considered safe because it typically contains only build configuration metadata.
Validation Code
How to validate .pjt files in Python
Python
def is_pjt(file_path: str) -> bool:
"""Check if file is a valid PJT by magic bytes."""
signature = bytes([0x78, 0x56, 0x34])
with open(file_path, "rb") as f:
return f.read(3) == signature
How to validate .pjt files in Node.js
Node.js
function isPJT(buffer: Buffer): boolean {
const signature = Buffer.from([0x78, 0x56, 0x34]);
return buffer.subarray(0, 3).equals(signature);
}
Go
func IsPJT(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/pjt
curl https://filesignature.org/api/v1/pjt