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 codeSecuring sensitive parts of
App.config
/web.config
Preventing SQL injection attacks
Using Diagnostic Tools and Historical Debugging
Setting conditional breakpoints
Using PerfTips to identify bottlenecks in code