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 shou开发者_如何学编程ld I use a light database? Someone has experience with this?
thx, Stefan
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
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.
精彩评论