{"success":true,"data":{"ext":"cbd","name":"WordPerfect dictionary file","description":"The WordPerfect dictionary file (CBD) is a data file associated with WordPerfect, a word processing suite originally developed by WordPerfect Corporation and later maintained by Corel. It is used to store spelling dictionary entries and related language data for proofreading and text entry features in WordPerfect and compatible applications. The format is legacy in nature and generally presents low security risk, although older documents should still be opened with standard caution.","mime":[],"risk_level":"Safe","signatures":[{"hex":"43 42 46 49 4C 45","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_cbd(file_path: str) -> bool:\n    \"\"\"Check if file is a valid CBD by magic bytes.\"\"\"\n    signature = bytes([0x43, 0x42, 0x46, 0x49, 0x4C, 0x45])\n    with open(file_path, \"rb\") as f:\n        return f.read(6) == signature","node":"function isCBD(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x43, 0x42, 0x46, 0x49, 0x4C, 0x45]);\n  return buffer.subarray(0, 6).equals(signature);\n}","go":"func IsCBD(data []byte) bool {\n    signature := []byte{0x43, 0x42, 0x46, 0x49, 0x4C, 0x45}\n    if len(data) < 6 {\n        return false\n    }\n    return bytes.Equal(data[:6], signature)\n}"}}}