Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WinRT SQLite Encryption

I'm building a Windows Store application that uses SQLite for data storage. I have found out, that the database is easily accessible through User's local folder (actually all apps have all data publicly exposed). Is there a way to at least weakly protect the database from access?

like image 409
Martin Zikmund Avatar asked Oct 21 '22 16:10

Martin Zikmund


1 Answers

you need to look at ProtectedData class

http://msdn.microsoft.com/en-us/library/windows/apps/windows.security.cryptography.dataprotection.dataprotectionprovider.aspx

It exposes easy to use Protect / Unprotect methods that can be used to encrypt / decrypt that at app level. Encrypt data before writing to db and unencrypt before consuming

like image 164
Hermit Dave Avatar answered Oct 27 '22 10:10

Hermit Dave