SQLCipher as a Windows 32bit DLL (Mike's VS project rebuilt)

1,813 views
Skip to first unread message

Sam Robertson

unread,
Jul 28, 2010, 5:25:43 AM7/28/10
to sqlc...@googlegroups.com
Hello,

I rebuilt Mike's project as a Windows DLL.  There is a sqlite3.dll in the 3.6.22/MSVC/StaticLib/Release folder that can be used to replace the Python32/DLLs/sqlite3.dll and it works!  Python 3.1 now has an encrypted database, thanks to your's and Mike's hard work.  I've only tested it with Python 3.1. I don't know what else it works for.  The project is all set to build the DLL if you don't trust the one that's in there (in general a good idea).

Changes were as follows.  I left the project name the same but changed the target type to DLL, defined these symbols:

SQLITE_HAS_CODEC
SQLITE_OMIT_LOAD_EXTENSION
SQLITE_CORE
SQLITE_ENABLE_COLUMN_METADATA

and built a module definition file with the MS "dumpbin" tool (this is called sqlite3.def in the zip).  That's basically all I had to do.  I'm interested if all these symbols had to be defined according to Mike, or if he built it as a DLL.  Anyway, hoping someone else might find this useful.  

Thanks!

-Sam

sqlcipher.7z

sam

unread,
Jul 28, 2010, 5:36:57 AM7/28/10
to SQLCipher Users
BTW this message was intended to be a reply to the following thread in
this group, but my google groups kung-fu isn't that good:

http://groups.google.com/group/sqlcipher/browse_thread/thread/b85f42dc9921df46

-Sam
Reply all
Reply to author
Forward
0 new messages