HighEdit document
application/octet-stream
Magic Bytes
Offset: 0
01 DA 01 01 00 03
The HighEdit document is a proprietary file format generated by the HighEdit Visual Component Library (VCL), a text processing toolset originally developed by Heiler Software. It is primarily used for storing rich text content, including formatting and embedded objects, within specific legacy applications built using the Borland Delphi framework. As an obsolete format rarely encountered in modern computing environments, it serves as a static data container with minimal associated security risks.
Validation Code
How to validate .hed files in Python
Python
def is_hed(file_path: str) -> bool:
"""Check if file is a valid HED by magic bytes."""
signature = bytes([0x01, 0xDA, 0x01, 0x01, 0x00, 0x03])
with open(file_path, "rb") as f:
return f.read(6) == signature
How to validate .hed files in Node.js
Node.js
function isHED(buffer: Buffer): boolean {
const signature = Buffer.from([0x01, 0xDA, 0x01, 0x01, 0x00, 0x03]);
return buffer.subarray(0, 6).equals(signature);
}
Go
func IsHED(data []byte) bool {
signature := []byte{0x01, 0xDA, 0x01, 0x01, 0x00, 0x03}
if len(data) < 6 {
return false
}
return bytes.Equal(data[:6], signature)
}
API Endpoint
GET
/api/v1/hed
curl https://filesignature.org/api/v1/hed