Monthly Archives: April 2012
How to create a file checksum
Great post on how to create a file checksum.
http://msdn.microsoft.com/en-us/library/system.security.cryptography.hashalgorithm.aspx
VB.NET File Integrity Checksum Hash
Imports System.Security.Cryptography
Imports System.IO
Public Class FileChecksum
Private Const BUF_SIZE As Integer = 65536
'''
''' Returns the file integrity checksum hash, otherwise an empty string.
'''
Public Shared Function IntegrityCheck(ByVal filePath As String) As String
Dim dataBuffer(BUF_SIZE - 1) As Byte
Dim dataBufferDummy(BUF_SIZE - 1) As Byte
Dim...
Read more