070-559 Free Dumps Study Materials
Question 5: You have just graduated from college, now you are serving the internship as the software
developer in an international company. According to the requirements of the company CIO, you're
developing a server. You are developing a method to hash data with the Secure Hash Algorithm. The
data is passed to your method as a byte array named message. You have to use SHA1 to compute the
hash of the incoming parameter. Besides this, you have to place the result into a byte array named
hash. In the options below, which code segment should you use?
A. Dim objSHA As New SHA1CryptoServiceProviderDim hash() As Byte =
NothingobjSHA.TransformBlock(message, 0, message.Length, hash, 0)
B. Dim objSHA As New SHA1CryptoServiceProviderDim hash() As Byte =
BitConverter.GetBytes(objSHA.GetHashCode)
C. Dim objSHA As New SHA1CryptoServiceProviderobjSHA.GetHashCode()Dim hash() As Byte =
objSHA.Hash
D. Dim objSHA As New SHA1CryptoServiceProviderDim hash() As Byte =
objSHA.ComputeHash(message)
Correct Answer: D