It seems security is becoming more and more of a focus at Microsoft. This of course is a very good thing and interests me a lot since I focus on security issues as one of my top priorities. The
MSDN Channel9 Security Wiki has introduced a set of .NET code examples to do common security tasks. These tasks are separated into different categories according to what function they perform.
The categories for the code samples are:
* Authentication
* Cookies
* Cryptography
* Data Access
* I/O
* Input Validation
* Registry
* Viewstate
* Web Services
These contributed articles have both C# and VB.NET versions available and are very useful as a day to day reference on security issues within your code. There are a few topics I'd like to see added to this list, but that will come with time.