Programming in C# — Question 132

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: D

Explanation

HMACSHA512 is the correct choice because it combines hashing with a secret key for data integrity and authenticity. ECDsa is for digital signatures, RNGCryptoServiceProvider is for random number generation, and Rfc2898DeriveBytes is used for deriving keys, making them unsuitable for this specific requirement.