Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# calculate checksum of file

using System.IO;
using System.Security.Cryptography;

public string checkMD5(string filename)
{
    using (var md5 = MD5.Create())
    {
        using (var stream = File.OpenRead(filename))
        {
            return Encoding.Default.GetString(md5.ComputeHash(stream));
        }
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: int model property shows 0 in textbox .net core 
Csharp :: global variables unity 
Csharp :: how to get relative path in c# 
Csharp :: how to pause a console.writeline in C# 
Csharp :: unity unhide object 
Csharp :: c# int to string date conversion 
Csharp :: unity gun clipping through walls 
Csharp :: invalidoperationexception c# ui thread 
Csharp :: c# split quotation 
Csharp :: unity find all scriptable objects of a type 
Csharp :: unity mouse button names 
Csharp :: c# xunit theory classdata model 
Csharp :: #grid 
Csharp :: c# trimend substring 
Csharp :: c# multiple inheritance 
Csharp :: c# array to label 
Csharp :: .net core copy file in folder to root 
Csharp :: c# httpclient post no content 
Csharp :: unity script template folder 
Csharp :: select from list where not in other list c# 
Csharp :: unity how to check index of enum 
Csharp :: c# return two values 
Csharp :: Using Linq to get the last N elements of a collection? C# 
Csharp :: how to make a cast in c# 
Csharp :: excel rows count 
Csharp :: out c# 
Csharp :: unity trygetcomponent 
Csharp :: linq while loop in c# 
Csharp :: how to make diagonal movement not double the speed of the player in unity 
Csharp :: unity hexmapping 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =