Revision 72174cd5 trunk/Pithos.Network/Signature.cs
b/trunk/Pithos.Network/Signature.cs | ||
---|---|---|
79 | 79 |
|
80 | 80 |
string hash; |
81 | 81 |
using (var hasher = MD5.Create()) |
82 |
using (var stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 4096, true))
|
|
82 |
using (var stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 65536, true))
|
|
83 | 83 |
{ |
84 | 84 |
var hashBytes = hasher.ComputeHash(stream); |
85 | 85 |
hash = hashBytes.ToHashString(); |
Also available in: Unified diff