Nero CD Compilation
application/octet-stream
Magic Bytes
Offset: 0
0E 4E 65 72 6F 49 53 4F
Nero CD Compilation (NRI) is a proprietary disc image metadata format developed by Nero AG for its Nero Burning ROM software suite. This format stores configuration data for optical disc projects, including file paths and folder structures intended for recording onto CD-ROM media. Although largely considered a legacy format due to the decline of physical optical storage, NRI files remain safe for archival purposes as they contain file references rather than executable payload data.
Validation Code
How to validate .nri files in Python
Python
def is_nri(file_path: str) -> bool:
"""Check if file is a valid NRI by magic bytes."""
signature = bytes([0x0E, 0x4E, 0x65, 0x72, 0x6F, 0x49, 0x53, 0x4F])
with open(file_path, "rb") as f:
return f.read(8) == signature
How to validate .nri files in Node.js
Node.js
function isNRI(buffer: Buffer): boolean {
const signature = Buffer.from([0x0E, 0x4E, 0x65, 0x72, 0x6F, 0x49, 0x53, 0x4F]);
return buffer.subarray(0, 8).equals(signature);
}
Go
func IsNRI(data []byte) bool {
signature := []byte{0x0E, 0x4E, 0x65, 0x72, 0x6F, 0x49, 0x53, 0x4F}
if len(data) < 8 {
return false
}
return bytes.Equal(data[:8], signature)
}
API Endpoint
GET
/api/v1/nri
curl https://filesignature.org/api/v1/nri