WordPerfect dictionary file (.cbd)
.cbd file signature | application/octet-stream
WordPerfect dictionary file (unconfirmed)
Magic Bytes
Offset 0
43 42 46 49 4C 45
Sources: Gary Kessler
Extension
.cbd
MIME Type
application/octet-stream
Byte Offset
0
Risk Level
Safe
Validation Code
How to validate .cbd files in Python
def is_cbd(file_path: str) -> bool:
"""Check if file is a valid CBD by magic bytes."""
signature = bytes([0x43, 0x42, 0x46, 0x49, 0x4C, 0x45])
with open(file_path, "rb") as f:
return f.read(6) == signature
How to validate .cbd files in Node.js
function isCBD(buffer: Buffer): boolean {
const signature = Buffer.from([0x43, 0x42, 0x46, 0x49, 0x4C, 0x45]);
return buffer.subarray(0, 6).equals(signature);
}
How to validate .cbd files in Go
func IsCBD(data []byte) bool {
signature := []byte{0x43, 0x42, 0x46, 0x49, 0x4C, 0x45}
if len(data) < 6 {
return false
}
return bytes.Equal(data[:6], signature)
}
API Endpoint
/api/v1/cbd
curl https://filesignature.org/api/v1/cbd
See the full API documentation for all endpoints and parameters.
Frequently Asked Questions
What is a .cbd file?
A .cbd file is a WordPerfect dictionary file file. WordPerfect dictionary file (unconfirmed)
What are the magic bytes for .cbd files?
The magic bytes for WordPerfect dictionary file files are 43 42 46 49 4C 45 at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.
How do I validate a .cbd file?
To validate a .cbd file, read the first bytes of the file and compare them against the known magic bytes (43 42 46 49 4C 45) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.
What is the MIME type for .cbd files?
There is no officially registered MIME type for .cbd files. Systems typically use application/octet-stream as a generic fallback when handling this format.
Is it safe to open .cbd files?
WordPerfect dictionary file (.cbd) 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.