/encrypted_sql

A platform for creation of encrypted sql using zama.ai TFHE-RS

Primary LanguageRust

encrypted_sql

Roadmap

  • Setup database: sqlite db.
  • Make database accept the query as an input.
  • Implement loading the database from a directory with the specified structure (tables in CSV file).
  • Clean up Placeholder values and implement the rest of the API methods correctly.
  • Implement the CPU Integer API methods, using TFHE-rs for encryption and decryption.
  • Implement SQL select, select distinct, where, and, or, not, in, and between operations for encrypted queries
  • Manage operations for integers (<, <=, >, >=, =) and for strings (=).
  • Manage operations for integers (+, -, *, /, %) and for strings (+).
// Decrypted data example.
fn main() {
    let decrypted_value: u8 = encrypted_value.decrypt(&client_key).expect("Decryption failed");
}