Password protect sqlite db

1,314 views
Skip to first unread message

Baliga

unread,
Aug 16, 2012, 9:24:54 AM8/16/12
to ormlite...@googlegroups.com
Hi All,

  Is there a standard way by which I could put a password protection to the sqlite db when it gets created in ORM lite?

Regards
Baliga

David Fire

unread,
Aug 16, 2012, 9:49:34 AM8/16/12
to ormlite...@googlegroups.com
i think no...
but probably you don't need it...
what are you trying to do?
if it is like for a game, where you want to encrypt the amount of gold for example, you can generate an md5 for each item (or for the relevant items) instead, i saw that in a game...
The only way anyone can have access to the DB in android is if the phone is rooted or if it is installed in an emulator. (and if the stole your signing file)
Any way if you insist in encrypt the DB, you should encrypt the DATA in the db and not the DB itself. because ormlite depends on Android library to open and read the DB.





2012/8/16 Baliga <bnba...@gmail.com>



--
 (\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.

Baliga, Narasimha

unread,
Aug 16, 2012, 1:01:21 PM8/16/12
to ormlite...@googlegroups.com
Well, the DB is created in a folder on a SD card thus is accessible to users - this is an enterprise app which gets installed (not thru the android market) on various users (out clients) and we wanted to keep the db and other files on SD card so that if some one uninstalls the app, atleast the data is accessible...

Thanks for the information, I will think about it...
--
Cheers
Narasimha Baliga Bantwal
 
Microsoft Certified Technical Specialist (MCTS)
.NET Framework 2.0, Windows Applications

Your friendly nextdoor IT Solution Provider
http://baligaworld.blogspot.com/
Message has been deleted

Ahsan Kamal

unread,
Dec 30, 2013, 10:16:29 AM12/30/13
to ormlite...@googlegroups.com
jampola writes "The Hacker News is reporting that Android password data is being stored as plain text in its SQlite database. Hackers News says that 'The password for email accounts is stored into the SQLite DB which in turn stores it on the phone's file system in plain text. Encrypting or at least transforming the password would be desirable.' I'm sure most would agree encrypted password data in at least SHA or MD5 would be kind of a good idea!" http://www.flyttebyråbillig.no/index.html
Reply all
Reply to author
Forward
0 new messages