Practicing and exploring
Test your knowledge and understanding by answering some questions, getting some hands-on practice, and exploring the topics covered in this chapter with deeper research.
Exercise 8.1 – Online-only material
Use the following link to review Microsoft recommendations and best practices for using encryption. The document is based on Microsoft’s internal standards for their Security Development Lifecycle (SDL): https://learn.microsoft.com/en-us/security/sdl/cryptographic-recommendations.
Exercise 8.2 – Practice exercises
In the Chapter08
solution, add a console app named Ch08Ex02_EncryptData
that protects sensitive data like credit card numbers or passwords stored in an XML file, such as the following example:
<?xml version="1.0" encoding="utf-8" ?>
<customers>
<customer>
<name>Bob Smith</name>
<creditcard>1234-5678-9012-3456</creditcard>
<password...