hashing a file in C#

62

hashing a file in C# -

using (var md5 = MD5.Create())
{
    using (var stream = File.OpenRead(filename))
    {
        return md5.ComputeHash(stream);
    }
}

Comments

Submit
0 Comments