Hello,

I'm writing a security related application in .NET 1.1
and I wonder how I compute hashes from very large files (up to 1 GB).

Does anybody know a good pattern of how to create a stream from a binary
file
and compute the hash of it?


I appriciate your comments.
Thanks in advance, Sebastain Dau.

Re: Hash File Stream? by Bill

Bill
Mon Jun 06 14:24:35 CDT 2005

FileStream fs = new FileStream(...);

HashAlgorithm ha = (HashAlgorithm) CryptoConfig.CreateFromName("MD5");
byte[] Hash = ha.ComputerHash(fs);



"Sebastian Dau" <sebastian.dau@gmx.de> wrote in message
news:42a48fe4$0$304$4d4ebb8e@read-nat.news.de.uu.net...
> Hello,
>
> I'm writing a security related application in .NET 1.1
> and I wonder how I compute hashes from very large files (up to 1 GB).
>
> Does anybody know a good pattern of how to create a stream from a binary
> file
> and compute the hash of it?
>
>
> I appriciate your comments.
> Thanks in advance, Sebastain Dau.
>
>