<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Using SQLCipher in place of SQLite]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I would like to use encrypted SQLite databases with Qt.<br />
The company I work for, has been using SQLCipher with C++ Builder XE3 for almost two years (they bought a license). In this context it's pretty easy cause there's only a sqlite3.dll file to load.</p>
<p dir="auto">We're switching from C++ Builder to Qt.<br />
With Qt I can access SQLite database with the sqlite3 driver compiled with Qt. I tried it, it works and it's pretty easy to use.</p>
<p dir="auto">According to the documentation it is possible to link with my own sqlite library ("How to Build the QSQLITE Plugin":<a href="http://qt-project.org/doc/qt-5.0/qtsql/sql-driver.html#qsqlite" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-5.0/qtsql/sql-driver.html#qsqlite</a>).</p>
<p dir="auto">When we bought a SQLCipher licence we got a zip file which contains the following file:</p>
<ul>
<li>sqlite3.c (SQLite Amalgamation file)</li>
<li>sqlite3.h</li>
<li>libeay32.lib</li>
<li>sqlite3.dll</li>
<li>sqlite3.lib</li>
</ul>
<p dir="auto">I tried to recompile the SQLite driver for Qt but it failed.<br />
Here the step I followed:</p>
<ul>
<li>Configure with qmake<br />
@qmake "INCLUDEPATH+=C:/AEProjects/SDKs/SQLCipher/binaries/" "LIBS+=-LC:/AEProjects/SDKs/SQLCipher/binaries/win32/lib -lsqlite3"@</li>
<li>build it<br />
@mingw32-make@</li>
</ul>
<p dir="auto">But it failed with the error : "ld.exe: cannot find -lsqlite3"</p>
<p dir="auto">Do you think it's due to the sqlite3.lib file which might be sqlite3.a ?<br />
In this case I will have to recompile sqlcipher with mingw-32.</p>
<p dir="auto">I've seen those articles but I wanted to only link a specifc lib without recompiling SQLCipher.<br />
"Building QSQLITE driver with AES-256 encryption support":<a href="http://www.qtcentre.org/wiki/index.php?title=Building_QSQLITE_driver_with_AES-256_encryption_support" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.qtcentre.org/wiki/index.php?title=Building_QSQLITE_driver_with_AES-256_encryption_support</a></p>
<p dir="auto">"SQLCipher for Qt":<a href="http://www.wiki.crossplatform.ru/index.php/%D0%9F%D1%80%D0%B8%D0%B2%D1%8F%D0%B7%D0%BA%D0%B0_SQLCipher_%D0%BA_Qt#.D0.9E.D0.B1.D1.81.D1.83.D0.B6.D0.B4.D0.B5.D0.BD.D0.B8.D0.B5" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.wiki.crossplatform.ru/index.php/Привязка_SQLCipher_к_Qt#.D0.9E.D0.B1.D1.81.D1.83.D0.B6.D0.B4.D0.B5.D0.BD.D0.B8.D0.B5</a></p>
<p dir="auto">Does anyone have an idea ?</p>
]]></description><link>https://forum.qt.io/topic/37817/using-sqlcipher-in-place-of-sqlite</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 22:55:16 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/37817.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Feb 2014 10:35:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Using SQLCipher in place of SQLite on Sat, 25 Jul 2015 16:07:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/leonardo">@<bdi>Leonardo</bdi></a> I almost finished the compiling in this method, but I can't understand the error</p>
]]></description><link>https://forum.qt.io/post/283760</link><guid isPermaLink="true">https://forum.qt.io/post/283760</guid><dc:creator><![CDATA[4j1th]]></dc:creator><pubDate>Sat, 25 Jul 2015 16:07:20 GMT</pubDate></item><item><title><![CDATA[Reply to Using SQLCipher in place of SQLite on Sat, 25 Jul 2015 15:48:03 GMT]]></title><description><![CDATA[<p dir="auto">Take a look at this project:</p>
<p dir="auto"><a href="https://github.com/sijk/qt5-sqlcipher" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sijk/qt5-sqlcipher</a></p>
]]></description><link>https://forum.qt.io/post/283757</link><guid isPermaLink="true">https://forum.qt.io/post/283757</guid><dc:creator><![CDATA[Leonardo]]></dc:creator><pubDate>Sat, 25 Jul 2015 15:48:03 GMT</pubDate></item><item><title><![CDATA[Reply to Using SQLCipher in place of SQLite on Sat, 25 Jul 2015 10:11:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qtdeveloper">@<bdi>QtDeveloper</bdi></a> I tried that like, On step-6  section 'Compile the QSQLCIPHER-driver-plugin for Qt', executing mingw32-make I got an error message.</p>
<p dir="auto">I can't understand the error:</p>
<p dir="auto">C:\Qt\Qt5.4.2\5.4\Src\qtbase\src\plugins\sqldrivers\sqlcipher&gt;mingw32-make</p>
<p dir="auto">mingw32-make -f Makefile.Release all</p>
<p dir="auto">mingw32-make[1]: Entering directory 'C:/Qt/Qt5.4.2/5.4/Src/qtbase/src/plugins/sq<br />
ldrivers/sqlcipher'</p>
<p dir="auto">mingw32-make[1]: *** No rule to make target '.moc/release/smain.moc', needed by<br />
'.obj/release/smain.o'.  Stop.</p>
<p dir="auto">mingw32-make[1]: Leaving directory 'C:/Qt/Qt5.4.2/5.4/Src/qtbase/src/plugins/sql<br />
drivers/sqlcipher'</p>
<p dir="auto">makefile:38: recipe for target 'release-all' failed</p>
<p dir="auto">mingw32-make: *** [release-all] Error 2</p>
]]></description><link>https://forum.qt.io/post/283731</link><guid isPermaLink="true">https://forum.qt.io/post/283731</guid><dc:creator><![CDATA[4j1th]]></dc:creator><pubDate>Sat, 25 Jul 2015 10:11:12 GMT</pubDate></item><item><title><![CDATA[Reply to Using SQLCipher in place of SQLite on Thu, 02 Jul 2015 07:05:33 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/qtdeveloper">@<bdi>QtDeveloper</bdi></a><br />
Are you the author of that post ? If yes then I would suggest you to add it to <a href="http://wiki.qt.io" target="_blank" rel="noopener noreferrer nofollow ugc">http://wiki.qt.io</a>.<br />
It is a common place for such articles.</p>
]]></description><link>https://forum.qt.io/post/280691</link><guid isPermaLink="true">https://forum.qt.io/post/280691</guid><dc:creator><![CDATA[p3c0]]></dc:creator><pubDate>Thu, 02 Jul 2015 07:05:33 GMT</pubDate></item><item><title><![CDATA[Reply to Using SQLCipher in place of SQLite on Thu, 02 Jul 2015 05:58:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/xelag">@<bdi>XelaG</bdi></a><br />
Have a look on  <a href="http://stackoverflow.com/questions/29196087/step-by-step-guide-to-build-qt-sql-driver-plugin-for-sqlite-db-with-sqlcipher-ex" target="_blank" rel="noopener noreferrer nofollow ugc">this link</a>.</p>
]]></description><link>https://forum.qt.io/post/280681</link><guid isPermaLink="true">https://forum.qt.io/post/280681</guid><dc:creator><![CDATA[QtDeveloper]]></dc:creator><pubDate>Thu, 02 Jul 2015 05:58:19 GMT</pubDate></item></channel></rss>