public static GetHash ( string IsoFile ) : String | ||
IsoFile | string | |
return | String |
public static String GetHash(string IsoFile)
{
var IsoFileInfo = new FileInfo(IsoFile);
return BitConverter.ToString(SHA1.Create().ComputeHash(Encoding.UTF8.GetBytes(IsoFileInfo.FullName + "_" + IsoFileInfo.Length))).Replace("-", "");
}