Horje
C# Calculate MD5 Checksum For A File Code Example
C# Calculate MD5 Checksum For A File
using System.IO;
using System.Security.Cryptography.MD5;

static string CalculateMD5(string filename)
{
    using (var md5 = MD5.Create())
    {
        using (var stream = File.OpenRead(filename))
        {
            var hash = md5.ComputeHash(stream);
            return BitConverter.ToString(hash).Replace("-", "").ToLowerInvariant();
        }
    }
}




Csharp

Related
monogame button Code Example monogame button Code Example
custom player spawner mirror Code Example custom player spawner mirror Code Example
visual studio import excel get document created date Code Example visual studio import excel get document created date Code Example
c# error CS0515 Code Example c# error CS0515 Code Example
remove last character from stringbuilder c# Code Example remove last character from stringbuilder c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10