Practicing and exploring

Test your knowledge and understanding by answering some questions, get some hands-on practice, and explore the topics covered in this chapter with deeper research.

Exercise 11.1 - test your knowledge

Answer the following questions:

  1. Of the encryption algorithms provided by .NET, which is the best choice for symmetric encryption?
  2. Of the encryption algorithms provided by .NET, which is the best choice for asymmetric encryption?
  3. For encryption algorithms, is it better to have a larger or smaller block size?

Exercise 11.2 - practice protecting data with encryption and hashing

Create a console application named Ch11_Exercise02 that protects an XML file, such as the following example. Note that the customer's credit card number and ...

Get C# 7 and .NET Core: Modern Cross-Platform Development - Second Edition 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.