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 10.1 – Test your knowledge
Answer the following questions:
- Of the encryption algorithms provided by .NET, which is the best choice for symmetric encryption?
- Of the encryption algorithms provided by .NET, which is the best choice for asymmetric encryption?
- What is a rainbow attack?
- For encryption algorithms, is it better to have a larger or smaller block size?
- What is a hash?
- What is a signature?
- What is the difference between symmetric and asymmetric encryption?
- What does RSA stand for?
- Why should passwords be salted before being stored?
- SHA1 is a hashing algorithm designed by the United States National Security Agency. Why should you never use it?
Exercise 10.2 – Practice protecting data with encryption and hashing
Create a console application named Exercise02
that protects an XML file, such as the following...