Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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

PREVIOUS NEXT
Code Example
Csharp :: c# open file 
Csharp :: stopwatch c# 
Csharp :: get the current directory in unity 
Csharp :: c# get binary array from int 
Csharp :: car controller script unity 
Csharp :: no move arrows unity 
Csharp :: c# get files of type in directory 
Csharp :: how to check file path is valid in c# 
Csharp :: unity 2d looka tt mouse 
Csharp :: how to destroy an object in unity 
Csharp :: c# dynamic object get value 
Csharp :: c# request run as administrator 
Csharp :: console writeline unity c# 
Csharp :: visual studio run multiple forms at once 
Csharp :: unity change material 
Csharp :: c# console play sound 
Csharp :: c# @ before string 
Csharp :: dictionary to string c# 
Csharp :: c# mongodb connection 
Csharp :: json get request c# 
Csharp :: get directory of file c# 
Csharp :: how to play animation with code in unity 
Csharp :: unity deactivate all colliders of a gameobject 
Csharp :: SAVE FLOAT UNITY 
Csharp :: if char is upper csharp 
Csharp :: c# create file if not exists 
Csharp :: c# make first letter uppercase 
Csharp :: unity ignore collision between two objects 
Csharp :: c# datagridview search filter 
Csharp :: unity keycode for f 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =