Answers for "hashing a file in C#"

C#
0

hashing a file in C#

using (var md5 = MD5.Create())
{
    using (var stream = File.OpenRead(filename))
    {
        return md5.ComputeHash(stream);
    }
}
Posted by: Guest on July-02-2021

C# Answers by Framework

Browse Popular Code Answers by Language