Coder Social home page Coder Social logo

nextgenintelligence / botansqlite3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from olivierjg/botansqlite3

0.0 2.0 0.0 224 KB

Sqlite3 encryption codec to allow full database encryption using the algorithms supported by Botan.

C++ 57.44% C 42.56%

botansqlite3's Introduction

Build instructions for BotanSqlite3
---

Requirements:
  1. Botan 1.9.0 or later
  2. SQLite3 amalgamation source, version 3.7.12.1 or later (previous versions may work, some will need minor changes)


Building:

1. Extract sqlite3 amalgamation to a directory and add BotanSqlite3 source files

   If desired, codec.h can be modified to tweak the encryption algothrithms and parameters. (Defaults to Twofish/XTS with 256 bit key)

2. Apply the patch "sqlite3.diff":
    $ patch -p0 < sqlite3-amalgamation.patch

   If the patching fails for some reason (ie, changes in SQLite3), it should be trivial to do it manually.

3. Compile the sqlite3 library with Botan encryption support:
    $ gcc -c sqlite3.c -o botansqlite3.o && gcc -c codec.cpp -o codec.o `pkg-config --cflags botan-1.10` && ar rcs libbotansqlite3.a botansqlite3.o codec.o
    
    (replace "botan-1.10" with appropriate version)

Testing:

1. Build the test:
      $ g++ test_sqlite.cpp -o test_sqlite `botan-config-1.10 --libs` ./libbotansqlite3.a
      
      (replace botan-config-1.10 w/ appropriate version)

2. Run the test
      $ ./test_sqlite

3. Look for "All seems good"

botansqlite3's People

Contributors

olivierjg avatar corytrese avatar

Watchers

James Cloos avatar Vitaliy Talyh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.