Programming in C# — Question 104

You are developing an application that will transmit large amounts of data between a client computer and a server.
You need to ensure the validity of the data by using a cryptographic hashing algorithm.
Which algorithm should you use?

Answer options

Correct answer: B

Explanation

The correct answer is B, HMACSHA2S6, as it is a cryptographic hashing algorithm that ensures data integrity through hashing. Options A (RSA) and C (Aes) are encryption algorithms, not hashing algorithms, while D (RNGCryptoServiceProvider) is used for generating random numbers, not for hashing.