Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: sqlcipher for sqlite

by Corion (Pope)
on Dec 28, 2012 at 21:42 UTC ( #1010748=note: print w/ replies, xml ) Need Help??


in reply to sqlcipher for sqlite

DBD::SQLite basically gets compiled from the SQLite source code, together with some Perl-specific C code ("XS code"). Simply replacing the SQLite.dll with a DLL that was not compiled from the XS code in DBD::SQLite will not work. You will have to recompile DBD::SQLite with the sqlcipher source code and then also think hard about the new API to pass the decryption key around.

Recompiling DBD::SQLite with the sqlcipher code should be fairly easy:

  1. Download the sqlcipher package
  2. Download and change into the DBD::SQLite package directory:
    > cpan cpan[1]> look DBD::SQLite
  3. Replace the sqlite3.c and sqlite3.h files with the files from sqlcipher
  4. Use the standard invocation to compile and install the module:

    perl Makefile.PL dmake dmake test dmake install


Comment on Re: sqlcipher for sqlite
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010748]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2015-07-28 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls