/sqlcipher-windows

SQLCipher with Visual Studio 2010 project files

Primary LanguageC

SQLCipher for Visual Studio

sqlcipher-windows is a simple port of the open-source SQLCipher library [src] for Visual Studio 2010.

The base source code is copied from SQLite3 (amalgamation form). The security enhancements provided by SQLCipher are copied directly from its source code. This is trivial since SQLCipher's modifications to SQLite's source are denoted by code enclosed in

/* BEGIN SQLCIPHER */
...
/* END SQLCIPHER */

sqlcipher-windows adds a few minor code modifications to allow SQLCipher's code to build with the SQLite amalgamation source distribution.

This project was mostly informed by the generous video by Mike Stephenson which can be found here.

Dependencies

You will need a build of OpenSSL as a static library for x86 and x86-64 (see Building OpenSSL for Visual Studio). Place the OpenSSL libraries in a folder structured like this:

openssl\
    x86\
        lib\
            libeay32.lib
            libeay32-debug.lib
        openssl\
            [openssl headers]
    x86-64\
        lib\
            libeay64.lib
            libeay64-debug.lib
        openssl\
            [openssl headers]

Place the path to your openssl folder in a Windows environment variable called OpenSslDir. For example, if C:\Libraries\openssl-1.0.1e is the path to your OpenSSL library folder, then OpenSslDir must be C:\Libraries\openssl-1.0.1e.

Versions

sqlcipher-windows is a combination of

and has been successfully built with the following versions of OpenSSL: