Compute hash of a file
Computing the hash value of a file is quite strait forward. I use the routine below. It opens the file, specifies the hash-algorithm to use and returns the hash of the file. If you rather use MD5 hashes, just change hashAlgorithm into MD5CryptoServiceProvider.
Public Function ComputeFileHash(ByVal fileName As String) As String
Dim hashAlgorithm As New System.Security.Cryptography.SHA1CryptoServiceProvider()
[...]
More »
I am a .NET programmer first and foremost. But in my spare time I like to play around with PHP, Erlang, Haskell, F#,