{"success":true,"data":{"ext":"kdb","name":"KDB","description":"KDB is the KeePass 1 password database file format, created and maintained by Dominik Reichl for the KeePass Password Safe project. It stores encrypted credentials, notes, and related entries for personal and organizational password management, and is opened by KeePass and compatible password manager tools. As a legacy format, it is generally safe, but files should still be handled carefully because they contain sensitive data and may be targeted by attackers.","mime":[],"risk_level":"Safe","signatures":[{"hex":"37 48 03 02 00 00 00 00","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"58 35 30 39 4B 45 59","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["asc","crt","csr","der","gpg","key"],"usage":{"python":"def is_kdb(file_path: str) -> bool:\n    \"\"\"Check if file is a valid KDB by magic bytes.\"\"\"\n    signature = bytes([0x37, 0x48, 0x03, 0x02, 0x00, 0x00, 0x00, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isKDB(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x37, 0x48, 0x03, 0x02, 0x00, 0x00, 0x00, 0x00]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsKDB(data []byte) bool {\n    signature := []byte{0x37, 0x48, 0x03, 0x02, 0x00, 0x00, 0x00, 0x00}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"},"category":"Certificates & Keys"}}