{"success":true,"data":{"ext":"sqlite","name":"SQLITE","description":"SQLite is a self-contained relational database file format created by D. Richard Hipp and maintained by the SQLite Project. It is used for embedded databases in mobile apps, desktop software, web browsers, and other applications that need local structured storage without a separate database server. The format is generally safe, though database files from untrusted sources can be manipulated to trigger application errors or expose stored data if improperly handled.","mime":[],"risk_level":"Safe","signatures":[{"hex":"53 51 4C 69 74 65 20 66","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"6F 72 6D 61 74 20 33 00","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["db","accdb","dbf","fdb","gdb","mdb"],"usage":{"python":"def is_sqlite(file_path: str) -> bool:\n    \"\"\"Check if file is a valid SQLITE by magic bytes.\"\"\"\n    signature = bytes([0x53, 0x51, 0x4C, 0x69, 0x74, 0x65, 0x20, 0x66])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isSQLITE(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x53, 0x51, 0x4C, 0x69, 0x74, 0x65, 0x20, 0x66]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsSQLITE(data []byte) bool {\n    signature := []byte{0x53, 0x51, 0x4C, 0x69, 0x74, 0x65, 0x20, 0x66}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"},"category":"Databases"}}