Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# md5 hash file

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

PREVIOUS NEXT
Code Example
Csharp :: c# how to open file explorer 
Csharp :: set decimal point c# 
Csharp :: unity2d click on gameobject 
Csharp :: textbox only numbers c# 
Csharp :: unity detect object with raycast 
Csharp :: c# array remove first element 
Csharp :: c sharp int to string 
Csharp :: c# const string array 
Csharp :: valid url in .net 
Csharp :: unity destroy self 
Csharp :: solution to fizzbuzz c# 
Csharp :: how to check if control key is pressed c# 
Csharp :: change array size in unity 
Csharp :: convert dto to dictionary c# 
Csharp :: best practice c# check if string is null or whitespace 
Csharp :: c# xpath read attribute value 
Csharp :: c# convert string to enum 
Csharp :: c# create file 
Csharp :: c# method summary new line 
Csharp :: c# clear a textbox 
Csharp :: how to change textMesh Pro unity 
Csharp :: unity instantiate with name 
Csharp :: c# stop loop 
Csharp :: unity waituntil coroutine 
Csharp :: unity random range 
Csharp :: round float c# 
Csharp :: how to run code without a gameobject unity 
Csharp :: unity spherecast 
Csharp :: prevent page refresh 
Csharp :: How to create connection string dynamically in C# 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =