G
Guest
Is there any way to get progress from FileStream or MD5CryptoServiceProvider
while generating MD5 Hashes on large files (>4GB).
Or can I use a byte buffer to generate MD5 hashs that combine to create a
final hash?
StringBuilder sb = new StringBuilder();
MD5 md5 = new MD5CryptoServiceProvider();
byte[] hash = md5.ComputeHash(fs);
fs.Close();
foreach (byte hex in hash)
sb.Append(hex.ToString("x2"));
return sb.ToString();
Thanks,
Mike S
while generating MD5 Hashes on large files (>4GB).
Or can I use a byte buffer to generate MD5 hashs that combine to create a
final hash?
StringBuilder sb = new StringBuilder();
MD5 md5 = new MD5CryptoServiceProvider();
byte[] hash = md5.ComputeHash(fs);
fs.Close();
foreach (byte hex in hash)
sb.Append(hex.ToString("x2"));
return sb.ToString();
Thanks,
Mike S