Reputation: 83
I need some help developing my mobile app. I have to store user data permant (name, password), so what is the best way to do that? I dont know a special API for it, so where to store persistent data's on a windows phone?
Maybe in the win mobile registry or inside a file? Or should I use a light database? Someone has experience with this?
thx, Stefan
Upvotes: 1
Views: 759
Reputation: 7843
When Microsoft stores credentials (i.e. for WiFi, or something) it stores them in the registry. Access is relatively fast and, with encryption, it is relatively secure.
The Windows Mobile OS has some encryption built in. You can use the Cryptography API; particularly the ::CryptProtectData() function with the CRYPTPROTECT_SYSTEM flag.
-PaulH
Upvotes: 2
Reputation: 11644
Well I would suggest you to use XML file with encryption. As the performance is very much critical for mobile applications, you should avoid light database as it will consume more processor and memory compared to a simple XML file. XML file with encryption will help in performance as well as security of the data.
Upvotes: 0