I need to calculate a MD5 hash from a bufferd stream (BinaryReader).
I can calculate the MD5 hash for the buffer (bytes), but how to calculate the MD5 hash for the complete stream ?
Can't load whole data into memory !
Asked
Active
Viewed 133 times
0

John Doe
- 9,843
- 13
- 42
- 73
-
1Unless you require your code to be non-blocking, you could just use [`HashAlgorithm.ComputeHash(Stream)`](http://msdn.microsoft.com/en-us/library/xa627k19.aspx) method overload. – Douglas Feb 23 '13 at 09:36
-
I'll give give them both a try – John Doe Feb 23 '13 at 10:57