Ervan Posted September 22, 2023 Posted September 22, 2023 I have a database that was encrypted with official sqlite SEE. I know its password and can open it with Sqlite Manager with builtin sqlite SEE. But I need to open it with autoit. My compiled sqlite3.dll has no SEE cos of $2000 license. So maybe anybody know the way how can I do it? Maybe extract sqlite SEE dll or shell from other software?
jchd Posted September 22, 2023 Posted September 22, 2023 (edited) Please use the (https://sqlite.org/see/forum) for SEE support questions. You can log in there with the credentials supplied to your licensee when he purchased SEE. If your licensee can't help providing you a SEE-enabled SQLite DLL, and if you still can open the DB with your SEE-enabled SQLite Manager then you can change the password to an empty string. Properly close any connection to the DB before, of course. Then you can copy the DB file (look for journal files if ever) and you can play with the unencrypted DB using AutoIt. Don't forget to re-encrypt the original DB! Edited September 22, 2023 by jchd Ervan 1 This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
Ervan Posted September 22, 2023 Author Posted September 22, 2023 Is it possible to find any 3d party project where I could extract sqlite3.dll and use it in autoit?
jchd Posted September 22, 2023 Posted September 22, 2023 I doubt it: every SEE licensee gets a unique activation key cryptographically linked to the licensed version. Using a third-party DLL won't work with the password you have. Also don't expect to "extract" a DLL from a fully-compiled program: either it uses an external .DLL file (then no extraction needed), or it embeds the SQLite library, which you can't "extract". This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
jchd Posted September 22, 2023 Posted September 22, 2023 Where did you get a SEE-enabled version of SQLite Manager? Just curious. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
TheXman Posted September 22, 2023 Posted September 22, 2023 (edited) On 9/22/2023 at 9:37 AM, Ervan said: I know its password and can open it with Sqlite Manager with builtin sqlite SEE. But I need to open it with autoit. Do you know which SEE encryption algorithm was used to encrypt your DB? AES-256 in OFB mode AES-128 in OFB mode AES-128 in CCM mode RC4 with security enhancements (legacy only) If your ultimate question is whether there are free, precompiled, well-maintained sqlite binaries (32/64 bit DLLs & EXEs) that will allow you to work with encrypted SQLite databases in AutoIt, then the answer is yes. I have multiple AutoIt and non-AutoIt SQLite projects that create and use encrypted databases. If your question is specific to being able to work with your particular DB, then I guess it depends on which SEE encryption algorithm was used. The binaries that I use handle multiple algorithms, including the old legacy RC4 algorithm, but they do not handle AES OFB or CCM. By the way, the legacy RC4 algorithm is the same one that was used by the no-longer-maintained System.Data.SQLite binaries. Edited September 24, 2023 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman
jchd Posted September 22, 2023 Posted September 22, 2023 Also, from the SQLite website: Quote A perpetual source code license for the SQLite Encryption Extension (SEE) costs US $2000.00. This is a one-time fee that enables you to ship as many copies of the code as you want as long as each copy is compiled and statically linked with your application. Hence no DLL allowed. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
genius257 Posted September 23, 2023 Posted September 23, 2023 A free version seems to exist: https://github.com/shenghe/FreeSQLiteEncryption To show your appreciation My highlighted topics: AutoIt Package Manager, AutoItObject Pure AutoIt, AutoIt extension for Visual Studio Code Github: AutoIt HTTP Server, AutoIt HTML Parser
Ervan Posted September 27, 2023 Author Posted September 27, 2023 On 9/22/2023 at 4:51 PM, jchd said: Where did you get a SEE-enabled version of SQLite Manager? Just curious. https://sqlabs.com/sqlitemanager
Ervan Posted September 27, 2023 Author Posted September 27, 2023 On 9/23/2023 at 11:37 PM, genius257 said: A free version seems to exist: https://github.com/shenghe/FreeSQLiteEncryption It uses wxSqlite aes encryption. Unfortunately it is not compatible with Sqlite SEE
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now