Skip to content
ttessier1 edited this page Oct 21, 2025 · 3 revisions

Welcome to the sqlitebarehashing wiki!

Join me at https://discord.gg/KK6GvjxhAZ

To build, a version of sqlite3.lib that matches the bitness of the output library should be obtained from: https://www.sqlite.org/ by either building from source, or using a prebuilt library.

On Windows:

git clone https://github.com/ttessier1/sqlitebarehashing.git

To Make a lib from the dll file you can use the lib.exe tool with visual studio

Download the latest x64 bit dll sqlite-dll-win-x64-3500400.zip and sqlite-preprocessedzip file from sqlite.org website

extract the sqlite3.dll and sqlite3.def file into the sqlitebarehashing repository

extract the sqlite3.h and sqlite3ext.h file from the preprocessed file into the sqlitebarehashing repository

Create the lib and make a folder hierarchy as below from within the sqlitebarehashing repository:

lib.exe /def:sqlite3.def

mkdir ../sqlite
mkdir ../sqlite/lib
mkdir ../sqlite/include
copy sqlite.h ../sqlite/include
copy sqliteext.h ../sqlite/include
copy sqlite3.dll ../sqlite/lib
copy sqlite3.lib ../sqlite/lib
copy sqlite3.exp ../sqlite/lib
mkdir build

Building should be able to be achieved with cmake if available:

cd into the main repository folder and do a
cd build
cmake -B . -S ..

followed by

cmake --build . --configure release --verbose

It is possible to configure different options in the CMakeLists.txt file for specific hashing function inclusion and or large blob functionality although not all feature cases have been specifically tested as of September 07 2024.

There is a known bug related to the sqlite3ext.h inclusion method in framework.h. Modify the "sqlite3ext.h" to <sqlite3ext.h> to get this to work and make sure the cmakefile has the appropriate include paths set.

The directory structure for sqlite in relation to the hashing main folder should look something like: [some parent folder]
sqlite
sqlite3.lib sqlite3.h sqlite3ext.h sqlitebarehashing
barehashing
... CmakeLists.txt

Clone this wiki locally