SYM
application/octet-stream
Magic Bytes
Offset: 0
53 74 75 66 66 49 74 20 28 63 29 31 39 39 37 2D
The SYM format is a proprietary data compression component developed by Smith Micro Software for the legacy StuffIt archival utility suite. This file type was primarily utilized on Macintosh systems to store symbol tables and structural metadata for compressed archives during software development and build processes. As an older format associated with classic versions of StuffIt Deluxe, it is considered safe for general data management but is now largely obsolete in modern cross-platform environments.
Validation Code
How to validate .sym files in Python
Python
def is_sym(file_path: str) -> bool:
"""Check if file is a valid SYM by magic bytes."""
signature = bytes([0x53, 0x74, 0x75, 0x66, 0x66, 0x49, 0x74, 0x20, 0x28, 0x63, 0x29, 0x31, 0x39, 0x39, 0x37, 0x2D])
with open(file_path, "rb") as f:
return f.read(16) == signature
How to validate .sym files in Node.js
Node.js
function isSYM(buffer: Buffer): boolean {
const signature = Buffer.from([0x53, 0x74, 0x75, 0x66, 0x66, 0x49, 0x74, 0x20, 0x28, 0x63, 0x29, 0x31, 0x39, 0x39, 0x37, 0x2D]);
return buffer.subarray(0, 16).equals(signature);
}
Go
func IsSYM(data []byte) bool {
signature := []byte{0x53, 0x74, 0x75, 0x66, 0x66, 0x49, 0x74, 0x20, 0x28, 0x63, 0x29, 0x31, 0x39, 0x39, 0x37, 0x2D}
if len(data) < 16 {
return false
}
return bytes.Equal(data[:16], signature)
}
API Endpoint
GET
/api/v1/sym
curl https://filesignature.org/api/v1/sym