• This repository has been archived on 17/Nov/2021
  • Stars
    star
    130
  • Rank 277,575 (Top 6 %)
  • Language
    C
  • Created over 12 years ago
  • Updated over 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

SQLCipher with Visual Studio 2010 project files

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: