MSDN has released an interesting article on “Defending Your Apps and Critical User Info with Defensive Coding Techniques”.
The article discusses securing user credentials and logon
information, how to protect client and server data using encryption and
how to defend COM clients/servers. It covers a large gambit of
information, including examples in C# and C++. It is not particularly
long in length, but still a good read for the material presented.