Use SQLCipher in Delphi-C + + Builder application

292 views
Skip to first unread message

Jota

unread,
May 29, 2014, 6:36:04 AM5/29/14
to sqlc...@googlegroups.com

Currently my Windows Delphi application uses a sqlite database encrypted, with version 2 SQLCipher, through libeay32.dll and sqlite3.dll.

I want to upgrade my Windows application to use version 3.0.1 SQLCipher and include, with c++Builder, the two dll's statically in the application.

Can someone help
me, I need to know how to do it, necessary files and steps to follow.


Thanks in advance.

Stephen Lombardo

unread,
May 30, 2014, 4:11:06 PM5/30/14
to sqlc...@googlegroups.com
Hello Jota,

Are you using you're own build of SQLCipher, or the SQLCipher Commercial Edition library?

Cheers,
Stephen


--
Stephen Lombardo | Zetetic LLC | +1-908-229-7312 | sjlom...@zetetic.net


--

---
You received this message because you are subscribed to the Google Groups "SQLCipher Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlcipher+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jota

unread,
Jun 1, 2014, 6:00:56 PM6/1/14
to sqlc...@googlegroups.com
Hello Stephen

I´m using my own build

Thanks

Stephen Lombardo

unread,
Jun 2, 2014, 4:47:20 PM6/2/14
to sqlc...@googlegroups.com
Hello Jota,

In that case, it would depend on how you're build the software. You can't really statically link DLL's, so you'd need to generate static libraries for libeay32 and sqlite3, then link those.

Cheers,
Stephen


--
Stephen Lombardo | Zetetic LLC | +1-908-229-7312 | sjlom...@zetetic.net


Jota

unread,
Jun 2, 2014, 5:52:21 PM6/2/14
to sqlc...@googlegroups.com
Hello Stephen

My idea is to use source and/or object programs (sqlite, libeay, openssl, sqlcipher), to compile them into the main program, using c++builder. So I avoid dll's.

Is it possible? A little guidance on how to do it?

Thanks

Stephen Lombardo

unread,
Jun 3, 2014, 6:17:28 PM6/3/14
to sqlc...@googlegroups.com
Hello Jota,

You can use the standard makefile to generate a sqlcipher amalgamation, i.e. via make sqlite3.c. That can be compiled in relatively easily. However, individually building all the OpenSSL sources would likely be more complex. I'm sure it's probably possible, but we wouldn't be able to advise you on where to start there. 

Cheers,
Stephen
Reply all
Reply to author
Forward
0 new messages