Question:You are developing a method to hash data for later verification by using the MD5 algorithm. The data is passed to your method as a byte array named message. You need to compute the hash of the incoming parameter by using MD5. You also need to place the result into a byte array. Which code segment should you use? 

A Dim objAlgo As HashAlgorithm = HashAlgorithm.Create("MD5") Dim hash() As Byte = BitConverter. GetBytes(objAlgo.GetHashCode) 

B Dim objAlgo As HashAlgorithm
objAlgo = HashAlgorithm.Create(message.ToString)
Dim hash() As Byte = objAlgo.Hash 

C Dim objAlgo As HashAlgorithm = HashAlgorithm.Create("MD5") Dim hash() As Byte = objAlgo. ComputeHash(message) 

D Dim objAlgo As HashAlgorithm = HashAlgorithm.Create("MD5") Dim hash() As Byte objAlgo.TransformBlock(message, 0, message.Length, hash, 0) 

+ Answer
+ Report
Total Preview: 771

Copyright © 2024. Powered by Intellect Software Ltd