Recommendation from Microsoft on this is to use the DPAPI to store keys.
Look at the pdf file 'Building Secure ASP.Net Applications' on the MSDN Security Developer Centre. The 'How To' section near the end gives all of the code that you need.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.