Gather all the stuff needed to build SQLCipher in Windows :

git clone <https://github.com/sqlcipher/sqlcipher.git>

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/cc0d7f42-9b40-4640-b259-d9403639339f/Untitled.png

Configuration of the build (edit Makefile.msc)

Change

# Flags controlling use of the in memory btree implementation
#
# SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1 to
# default to file, 2 to default to memory, and 3 to force temporary
# tables to always be in memory.
#
TCC = $(TCC) -DSQLITE_TEMP_STORE=1
RCC = $(RCC) -DSQLITE_TEMP_STORE=1

into

TCC = $(TCC) -DSQLITE_TEMP_STORE=2 -DSQLITE_HAS_CODEC -I"C:\\Dev\\Tools\\OpenSSL-Win64\\include"

And add after this :

# If ICU support is enabled, add the linker options for it.
#
!IF $(USE_ICU)!=0
LTLIBPATHS = $(LTLIBPATHS) /LIBPATH:$(ICULIBDIR)
LTLIBS = $(LTLIBS) $(LIBICU)
!ENDIF
# <</mark>>

the two lines :

# If ICU support is enabled, add the linker options for it.
#
!IF $(USE_ICU)!=0
LTLIBPATHS = $(LTLIBPATHS) /LIBPATH:$(ICULIBDIR)
LTLIBS = $(LTLIBS) $(LIBICU)
!ENDIF
# <</mark>>

LTLIBPATHS = $(LTLIBPATHS) /LIBPATH:"C:\\Dev\\Tools\\OpenSSL-Win64\\lib\\VC\\static"
LTLIBS = $(LTLIBS) libcrypto64MT.lib libssl64MT.lib ws2_32.lib shell32.lib advapi32.lib gdi32.lib user32.lib crypt32.lib

Build SQLCipher

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/02d6fdde-621c-496e-956a-a1a2bb05db32/Untitled.png

nmake /f Makefile.msc