AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Protecting SQLite Database

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Icarus



Joined: 24 Nov 2005
Posts: 851

PostPosted: Thu Sep 17, 2009 2:20 pm    Post subject: Protecting SQLite Database Reply with quote

Hey everybody,

I am considering developing some AHK application that uses SQLite (the EXE, not DLL).

I was wondering if anyone has experience with protecting the database file with encryption.

I thought this would be built in in SQLite, but as far as I could understand, it requires purchasing an expensive license for the SQLite Eencryption Extension (SEE).

My second alternative, is to use my own encryption - either using a command line tool to do the job, or the AHK TEA library - but before I do it, I would love to hear if someone has a better suggestion.

Thanks in advance.
_________________
Sector-Seven - Freeware tools built with AutoHotkey
Back to top
View user's profile Send private message Visit poster's website
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Thu Sep 17, 2009 7:28 pm    Post subject: Reply with quote

Why not garble the data and keep the database "unprotected" Question
_________________
AHK Wiki FAQ
TF : Text files & strings lib, TF Forum
Back to top
View user's profile Send private message
Icarus



Joined: 24 Nov 2005
Posts: 851

PostPosted: Thu Sep 17, 2009 7:33 pm    Post subject: Reply with quote

I would like to use a sufficiently strong encryption, as I am building a password holder.
but yeah, one option I have is use the AHK TEA library (which is working on text only) and encrypt data prior to putting it in the db.

I just feel it is a little more prone to data corruption.
_________________
Sector-Seven - Freeware tools built with AutoHotkey
Back to top
View user's profile Send private message Visit poster's website
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Thu Sep 17, 2009 7:41 pm    Post subject: Reply with quote

RC4? http://www.autohotkey.com/forum/viewtopic.php?t=6804 (don't know anything about it)
_________________
AHK Wiki FAQ
TF : Text files & strings lib, TF Forum
Back to top
View user's profile Send private message
Icarus



Joined: 24 Nov 2005
Posts: 851

PostPosted: Thu Sep 17, 2009 7:54 pm    Post subject: Reply with quote

Thanks Hugo,
RC4 seems (at first glance) to also not handle binary data.
Laszlo is referring people back to TEA threads.

Maybe I will just use some command line TEA encryptor - I found one somewhere, guessing it will deal with binary data.
_________________
Sector-Seven - Freeware tools built with AutoHotkey
Back to top
View user's profile Send private message Visit poster's website
TodWulff



Joined: 29 Dec 2007
Posts: 139

PostPosted: Fri Dec 11, 2009 11:11 pm    Post subject: Reply with quote

Icarus,

HugoV pointed me to this thread, from this thread.

Have you made any headway with encrypting a SQLite DB?

Please reply to advise.

Thanks.

-t
_________________
When replying, please feel free to address me as Tod. My AHK.net site...
Back to top
View user's profile Send private message
TLM



Joined: 21 Aug 2006
Posts: 2926
Location: The Shell

PostPosted: Sat Dec 12, 2009 12:55 am    Post subject: Reply with quote

Read this pdf from the root.labs guys

http://root.org/talks/WhenCryptoAttacks_Yahoo2009.pdf

Very good info!
_________________
paradigm.shift:=(•_•)┌П┐RTFM||^.*∞
Back to top
View user's profile Send private message
Icarus



Joined: 24 Nov 2005
Posts: 851

PostPosted: Sat Dec 12, 2009 8:39 am    Post subject: Reply with quote

TodWulff,

I decided to implement my SQLite encryption using a third party encryption tool that I am using regularly.

So, if you are planning on distributing your AHK script to many people, my solution is probably not a good one for you.

If you do want to examine it, take a look at AxCrypt.

Its a small install that lets you encrypt files from Windows Explorer, and it supports command line arguments, so you can encrypt/decrypt files from within AHK.

This is the only reliable solution I could trust.
_________________
Sector-Seven - Freeware tools built with AutoHotkey
Back to top
View user's profile Send private message Visit poster's website
TodWulff!
Guest





PostPosted: Sun Dec 13, 2009 6:14 pm    Post subject: Thanks a bunch. Reply with quote

I appreciate you taking the time to reply.

I'll check it out. I'll also advise if I figure out a way to do what I am wanting.

This has promise. Temp01 was kind enuf to point me to it.

Take care. Happy Holidays!

-t
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group