M
Michael H
Hi all,
I guess I don't fully understand how a SHA1 hash value is calculated
in C# / .NET for a large file... I'm trying to calculate SHA1 values
for large files that are much larger than my physical main memory. It
seems the way to derive a SHA1 value involves opening a file stream to
the large file, passing it to a byte array, and passing the byte array
to the .NET hash method.
Does this load the entire file into main memory (within the byte[] )
??? I see hash values for DVD isos all the time and feel that there
must be a way to derive a hash value via passing a file stream to the
hash method whereas very low main memory consumption occurs.
Any help or pointers to documentation that addresses this would be
super great.
Thanks,
Mike.
I guess I don't fully understand how a SHA1 hash value is calculated
in C# / .NET for a large file... I'm trying to calculate SHA1 values
for large files that are much larger than my physical main memory. It
seems the way to derive a SHA1 value involves opening a file stream to
the large file, passing it to a byte array, and passing the byte array
to the .NET hash method.
Does this load the entire file into main memory (within the byte[] )
??? I see hash values for DVD isos all the time and feel that there
must be a way to derive a hash value via passing a file stream to the
hash method whereas very low main memory consumption occurs.
Any help or pointers to documentation that addresses this would be
super great.
Thanks,
Mike.