DCR
application/octet-stream
Magic Bytes
Offset: 0
52 49 46 58 46 47 44 4D
Director Shockwave Movie (DCR) is a multimedia file format created by Macromedia and later acquired by Adobe Systems. It was primarily used to deliver interactive web content, including browser-based games, animations, and educational software via the Adobe Shockwave Player plugin. Now considered a legacy format, Adobe officially discontinued support for the platform in 2019, though the files are generally regarded as safe containers for compiled multimedia assets and logic scripts.
Validation Code
How to validate .dcr files in Python
Python
def is_dcr(file_path: str) -> bool:
"""Check if file is a valid DCR by magic bytes."""
signature = bytes([0x52, 0x49, 0x46, 0x58, 0x46, 0x47, 0x44, 0x4D])
with open(file_path, "rb") as f:
return f.read(8) == signature
How to validate .dcr files in Node.js
Node.js
function isDCR(buffer: Buffer): boolean {
const signature = Buffer.from([0x52, 0x49, 0x46, 0x58, 0x46, 0x47, 0x44, 0x4D]);
return buffer.subarray(0, 8).equals(signature);
}
Go
func IsDCR(data []byte) bool {
signature := []byte{0x52, 0x49, 0x46, 0x58, 0x46, 0x47, 0x44, 0x4D}
if len(data) < 8 {
return false
}
return bytes.Equal(data[:8], signature)
}
API Endpoint
GET
/api/v1/dcr
curl https://filesignature.org/api/v1/dcr