UFA compressed archive
application/octet-stream
Magic Bytes
Offset: 0
55 46 4F 4F 72 62 69 74
UFA Compressed Archive is a legacy data compression format developed by Sergei Romanov, primarily associated with the UFO archiving utility for DOS systems. It was historically utilized to achieve high compression ratios for file storage and distribution during the mid-1990s. As an obsolete proprietary format, it is rarely encountered in modern computing environments but remains significant for digital preservation efforts and the study of software archaeology.
Validation Code
How to validate .ufa files in Python
Python
def is_ufa(file_path: str) -> bool:
"""Check if file is a valid UFA by magic bytes."""
signature = bytes([0x55, 0x46, 0x4F, 0x4F, 0x72, 0x62, 0x69, 0x74])
with open(file_path, "rb") as f:
return f.read(8) == signature
How to validate .ufa files in Node.js
Node.js
function isUFA(buffer: Buffer): boolean {
const signature = Buffer.from([0x55, 0x46, 0x4F, 0x4F, 0x72, 0x62, 0x69, 0x74]);
return buffer.subarray(0, 8).equals(signature);
}
Go
func IsUFA(data []byte) bool {
signature := []byte{0x55, 0x46, 0x4F, 0x4F, 0x72, 0x62, 0x69, 0x74}
if len(data) < 8 {
return false
}
return bytes.Equal(data[:8], signature)
}
API Endpoint
GET
/api/v1/ufa
curl https://filesignature.org/api/v1/ufa