Is there a standard to store username and password in WP7 applications?

前端 未结 2 1372
执笔经年
执笔经年 2021-02-01 20:48

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 tha

2条回答
  •  萌比男神i
    2021-02-01 21:34

    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 enter image description here

    To decrypt enter image description here

    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/

提交回复
热议问题