I believe that sqlite is not a fundamentally a java application, but
one running in the embedded linux with some android java wrappers
around it.  As a result, inserting encryption into its file operations
would probably have to be handled with a linux kernel module (or at
best a userspace filesystem driver), which is not something you can do
on a retail phone as root permission is requried.

You might look and see how big sqlite acutally is... perhaps its small
enough that you could build your own custom version with encryption
and ship that with your application using your own jni or sockets
wrapper.

On Sep 2, 3:18 pm, JavaNut <[email protected]> wrote:

> We have a need to encrypt the data stored within SQLite.  The obvious
> approach would be to encrypt individual records before storing them in
> the table, but that will melt down.  For example, if we want to search
> for a string...

> I know that SQLite stores all the data in a single flat file.  I
> assume that it accesses that file by MemoryMappedFile or something
> like that.  My idea is to create a sub-class of MemoryMappedFile that
> does block encryption / decryption on write / read.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to