Horje
C# get md5 of file Code Example
c# checksum
private static string GetMD5HashFromFile(string fileName)
{
	using (var md5 = MD5.Create())
	{
    	using (var stream = File.OpenRead(fileName))
        {
        	return BitConverter.ToString(md5.ComputeHash(stream)).Replace("-", string.Empty);
       	}
	}
}
C# get md5 of file
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
visual studio console clear Code Example visual studio console clear Code Example
godot Duplicate 'global::System.Runtime.Versioning.TargetFrameworkAttribute' Code Example godot Duplicate 'global::System.Runtime.Versioning.TargetFrameworkAttribute' Code Example
c# xor byte array Code Example c# xor byte array Code Example
c# create list with range Code Example c# create list with range Code Example
how to deactivate an object unity Code Example how to deactivate an object unity Code Example

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