I would like to ask if there is a standard to store username and password in a Windows Phone application. I am working on a project that validates the user on every request that is called. So, I want to store the username and password. Maybe even give them the possibility to "remember me", so if there isn't a standard for doing that, I will have to write it myself, but I'm guessing that Microsoft has a build-in one.
相关问题
- An error is occur when we use navigation to move o
- binding font-awesome character in XAML to Text
- Windows Phone 7 call ASMX web service
- Can windows phone 7 microphone detect frequencies
- How to show/hide (with animation if possible) a Ch
相关文章
- Working with hmacsha256 in windows store app
- WP7 Alert dialog
- Add Service Reference and Add Web Reference?
- Scrollviewer & SIP Issue (WP7.5 Mango)
- Database for Windows Phone 7 [closed]
- Windows phone 7: how to post tweet to twitter
- How to Play youtube videos in windows phone 7?
- Passing objects between classes in Windows Phone/C
You should encrypt you passwords and other sensitive data using the
ProtectedData
class routines, and manually store them in Isolated Storage for your application.To encrypt
To decrypt
Also, make sure you add a reference to mscorelib extended to your project. I had to learn this the hard way.
A good article on the topic is: http://debugmode.net/2011/10/16/protecting-password-or-any-data-in-windows-phone-7-using-data-protection-api/
Use ProtectedData. I found this example on Kevin D. Wolf's efficientcoder.net :
(Apologies for the cut and paste I had to use a text from image scan)