01-19-2015, 03:36 PM
Dll that may be usefull for c# developers . It Include Some Function about the Checksum of client files 2015.
I did it for a friend and now releasing , maybe someone will need it , it's open source dll .
Download: 2
[/hide]
How To Use :
right click on your project References -> Add Reference... -> Browse and find Checksum.dll path , double click on dll and it will be imported , than check it and press OK .
If all goes fine you should see Checksum in your References .
Include it by : using Checksum;
now you have access to my .dll functions , list below :
int Checksum.DoWork.CalculateSum(string filepath, int filesize); //Will Calculate File checksum and return it as int.
int Checksum.DoWork.GetFileSize(string filepath); //Will Calculate File Size and return it as int.
int Checksum.DoWork.GetCurrentSum(string filepath); //Will Calculate current checksum of the file and return it as int.
bool Checksum.DoWork.CheckSumExist(string filepath); //Will Check if File Have checksum or not , If file have checksum will return true else will return fail.
bool Checksum.DoWork.EncodeFile(string filepath); //Will apply the Checksum to the file, if all go fine it will return true else it will return false .
Example of usage :
Checksum.DoWork.EncodeFile("itemname_usa.lod");

