|
Post by Kelly Ethridge on Nov 2, 2006 2:37:31 GMT -5
Computing a hash value for an entire file can be done very quickly. Every hash class supports the same interface, so they all are used the same. We will use the SHA512Managed hash algorithm for this example.
Dim Hasher As New SHA512Managed Dim Hash() As Byte Hash = Hasher.ComputeHash(File.OpenFile("MyFile.txt", OpenExisting))
This will compute the hash on the specified file using the SHA-512 hash algorithm.
|
|