Chapter 12. Writing Secure Code and Debugging in Visual Studio

In this chapter, we will have a look at some examples of being more efficient as a developer when it comes to debugging your code. We will also be looking at how to write secure code. Writing secure code can be a challenge, but consider the following: if part of your code security involves making sure that passwords are securely stored, why write that code over and over between projects? Write the code once and implement it in every new project you create. The concepts we will be looking at are as follows:

  • Encrypting and storing passwords correctly
  • Using SecureString in code
  • Securing sensitive parts of App.config/web.config
  • Preventing SQL injection attacks
  • Using Diagnostic Tools and Historical ...

Get C# Programming Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.