OBT
application/octet-stream
Magic Bytes
Offset: 0
65 87 78 56
The OBT file format is a specialized data structure created and maintained by the developers of the Open Build Tool software for managing build configurations. It is primarily utilized to store dependency mappings and build instructions within legacy software development environments to ensure reproducible compilation results. Although now considered a legacy format and largely obsolete, it remains safe for archival purposes as it consists of static configuration data without executable code.
Validation Code
How to validate .obt files in Python
Python
def is_obt(file_path: str) -> bool:
"""Check if file is a valid OBT by magic bytes."""
signature = bytes([0x65, 0x87, 0x78, 0x56])
with open(file_path, "rb") as f:
return f.read(4) == signature
How to validate .obt files in Node.js
Node.js
function isOBT(buffer: Buffer): boolean {
const signature = Buffer.from([0x65, 0x87, 0x78, 0x56]);
return buffer.subarray(0, 4).equals(signature);
}
Go
func IsOBT(data []byte) bool {
signature := []byte{0x65, 0x87, 0x78, 0x56}
if len(data) < 4 {
return false
}
return bytes.Equal(data[:4], signature)
}
API Endpoint
GET
/api/v1/obt
curl https://filesignature.org/api/v1/obt