Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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();
        }
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: OnMousedown unity ui 
Csharp :: System command c# 
Csharp :: Unity Destroy gameObject upon collision 
Csharp :: how to use the mouse scroll wheel to move the camera in unity 
Csharp :: unity rotate direction by angle 
Csharp :: No Entity Framework provider found for the ADO.NET provider with invariant name 
Csharp :: c# new dictionary linq 
Csharp :: arrays in c# 
Csharp :: make http request c# 
Csharp :: contains c# 
Csharp :: unity ui get the canvas 
Csharp :: unity cast int to float 
Csharp :: unity joystick movement 
Csharp :: how to start a webpage from a button c# 
Csharp :: c# get last 3 characters of string 
Csharp :: c# select oracle database 
Csharp :: NET Framework 4.7.1 or a later update is already installed on this computer. 
Csharp :: c# mongodb update multiple fields 
Csharp :: array sort c# 
Csharp :: event trigger by code unity 
Csharp :: Gameobject.Find in unityC# 
Csharp :: c# decimal vs double 
Csharp :: C# loop through array of objet 
Csharp :: system linq c# 
Csharp :: aspx import namespace 
Csharp :: on collision enter by layer 2d unity 
Csharp :: minimize maximize restore wpf buttons 
Csharp :: c# round number up 
Csharp :: methods c# 
Csharp :: c# how to set string list 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =