SPSS Statistics (.sct)
.sct file signature | application/octet-stream
SPSS Statistics (née Statistical Package for the Social Sciences, thenStatistical Product and Service Solutions) template file
Magic Bytes
Offset 0
57 04 00 00 53 50 53 53 20 74 65 6D 70 6C 61 74
Sources: Gary Kessler
Extension
.sct
MIME Type
application/octet-stream
Byte Offset
0
Risk Level
Safe
Validation Code
How to validate .sct files in Python
def is_sct(file_path: str) -> bool:
"""Check if file is a valid SCT by magic bytes."""
signature = bytes([0x57, 0x04, 0x00, 0x00, 0x53, 0x50, 0x53, 0x53, 0x20, 0x74, 0x65, 0x6D, 0x70, 0x6C, 0x61, 0x74])
with open(file_path, "rb") as f:
return f.read(16) == signature
How to validate .sct files in Node.js
function isSCT(buffer: Buffer): boolean {
const signature = Buffer.from([0x57, 0x04, 0x00, 0x00, 0x53, 0x50, 0x53, 0x53, 0x20, 0x74, 0x65, 0x6D, 0x70, 0x6C, 0x61, 0x74]);
return buffer.subarray(0, 16).equals(signature);
}
How to validate .sct files in Go
func IsSCT(data []byte) bool {
signature := []byte{0x57, 0x04, 0x00, 0x00, 0x53, 0x50, 0x53, 0x53, 0x20, 0x74, 0x65, 0x6D, 0x70, 0x6C, 0x61, 0x74}
if len(data) < 16 {
return false
}
return bytes.Equal(data[:16], signature)
}
API Endpoint
/api/v1/sct
curl https://filesignature.org/api/v1/sct
See the full API documentation for all endpoints and parameters.
Frequently Asked Questions
What is a .sct file?
A .sct file is a SPSS Statistics file. SPSS Statistics (née Statistical Package for the Social Sciences, thenStatistical Product and Service Solutions) template file
What are the magic bytes for .sct files?
The magic bytes for SPSS Statistics files are 57 04 00 00 53 50 53 53 20 74 65 6D 70 6C 61 74 at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.
How do I validate a .sct file?
To validate a .sct file, read the first bytes of the file and compare them against the known magic bytes (57 04 00 00 53 50 53 53 20 74 65 6D 70 6C 61 74) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.
What is the MIME type for .sct files?
There is no officially registered MIME type for .sct files. Systems typically use application/octet-stream as a generic fallback when handling this format.
Is it safe to open .sct files?
SPSS Statistics (.sct) files are generally safe to open. They are classified as low risk because they primarily contain data rather than executable code. However, always ensure files come from a trusted source.