Click here to Skip to main content
15,891,607 members
Everything / Checksum

Checksum

checksum

Great Reads

by Paulo Buchsbaum
A simple way to generate checksum for tables and databases.
by Pascal Ganaye
Provides a couple of hash functions (string to int) that will return the same value in C# and T-SQL
by Uzi Granot
This project will give you the tools needed to compress and decompress files using the Deflate method of compression, and to read and write standard Zip files.
by Enes Yıldız
I have prepared a project for my lecture. In this project I decide two string value is same or not as checsum algorithm... I used 2 language to explain the codes.

Latest Articles

by Enes Yıldız
I have prepared a project for my lecture. In this project I decide two string value is same or not as checsum algorithm... I used 2 language to explain the codes.
by Uzi Granot
This project will give you the tools needed to compress and decompress files using the Deflate method of compression, and to read and write standard Zip files.
by Paulo Buchsbaum
A simple way to generate checksum for tables and databases.
by Pascal Ganaye
Provides a couple of hash functions (string to int) that will return the same value in C# and T-SQL

All Articles

Sort by Score

Checksum 

28 Jun 2012 by Tim Corey
If you are new int programming, this is not the place to start. Beyond that, I'm not sure I really see the point. However, if you wanted to do something like this, there is an open source application that does this. You could look at the code to see how and see what else they...
28 Jun 2012 by Sergey Alexandrovich Kryukov
This is not just feasible, this is trivial with .NET.You did not explain how do you want to use MD5 and SHA1 except performance testing, so I want to start with the following warning: both MD5 and SHA1 were developer as the cryptographic hash functions, but both were found broken. None of...
27 Nov 2012 by Paulo Buchsbaum
A simple way to generate checksum for tables and databases.
26 Oct 2011 by Pascal Ganaye
Provides a couple of hash functions (string to int) that will return the same value in C# and T-SQL
27 Mar 2017 by Garth J Lancaster
Quote:Can you give me any clue why it's not working for the 2nd message?look where you have 'total' defined .. do you reset the value of total before you get the checksum for your second message ? I would break out this code, to get the checksum message = message.Replace('|',...
30 Aug 2017 by OriginalGriff
Quote: If the file is being used by another process, would this cause an issue? Well ... this code: On Error GoTo ErrorHandler ... ErrorHandler: Return False Would mean that if the file was in use, it would return false - so anything which means it can't complete the task would...
18 Jun 2012 by Giggsey73
Hi all. I have been searching the Net for an online checksum calculator/tools that can check the efficiency of both md5 and sha1 e.g. speed, accuracy, etc but couldn't find any reliable one. Any suggestions? Many thanks.
18 Jun 2012 by Sergey Alexandrovich Kryukov
…And if you want to implement such tool by yourself, as a Web or desktop application, this is quite easy, in particular, with .NET. Please see:http://msdn.microsoft.com/en-us/library/system.security.cryptography.hashalgorithm.aspx[^].Besides, if you want to publish a checksum by...
28 Jun 2012 by Giggsey73
Hi guys. I'm a newbie. I came across this on the Web. Basically u need to compare and test the general performance of hash algorithms i.e MD5 and SHA1 using .NET Framework 4.0.Here's how it goes:1. Write a a method that accepts the path to a file as a parameter.2. A stream is opened to...
6 Aug 2012 by lewax00
First, there's no reason hashing a dummy file would be unsafe, nor would it be impractical for testing purposes. As for the difference in time, it's hard to say. If the hashing algorithm changes it's behavior based on the contents of the file (e.g. if the last bit of a block is 0 do A, if...
13 Sep 2012 by CPallini
Your checksum is wrong (it should be 0x0F) because you forgot the one's complement step.Below a function to test your routine:#include unsigned char chk(unsigned char * buf, size_t size){ unsigned char sum = 0; while (size--) { sum += *buf++; } return...
4 Dec 2012 by Crispanvarro
I have this problem i can't seem to figure out,i'll do my best to explain it here.I have a series of checkboxes each one having a name and a value and a person can choose either one or all of the boxes(it can't be radiobuttons because you can only make a single choice)I want to know if it...
3 Dec 2012 by Orcun Iyigun
You might want to use CheckBoxList[^] for this job. User can select multiple and then you can loop through the selected items and add their value to your total value.Loop through ASP checkboxlist[^]Good luck,OI
12 Sep 2013 by Miztah Raza
I have a 4428472 byte-long file. I want my program to be able to figure out the Sum32 checksum for all the bytes from offset 28 onwards.The code I'm using to read the file is:System.IO.File.ReadAllBytes(filename)This is a winforms application.Thanks.EDIT: This program is basically...
12 Sep 2013 by CPallini
Basically you have two options.(the lucky one) if you can get relevant info on the exact algorithm used for the checksum then find its source code or implement it yourself.(the not-so-lucky-one) Try (that is obtain or code yourself) different 'checksum 32' algorithms (e.g. the Fletcher-32) and...
7 Dec 2016 by CPallini
public static byte [] chk( byte [] buffer){ int sum = 0; foreach ( var b in buffer) sum += b; sum %= 0x100; byte [] ch = new byte[2]; ch[0] = (byte) ((sum >> 4) + 0x30); ch[1] = (byte) ((sum & 0xF) + 0x30); return ch;}
23 Dec 2016 by EssenceGold
// Full data : D BI|1234ABC5678|30500000|?7// Data to be calculated = D BI|1234ABC5678|30500000|// Result = ?7public string ConvertToHex(string asciiString) { string hex = ""; foreach (char c in asciiString) {...
27 Mar 2017 by Viswash Manik
The following code is getting successful LOGON messages, but when i send quote-request in the 2nd message, its not replying & sending me a heartbeat after 30 seconds.Someone told me i'm not correctly calculating checksum, so that's why Fix-server ignoring the price-request message.Can you give...
30 Aug 2017 by theskiguy
I have this code that I originally found in the VB Cookbook that checks 2 files for equality. The solution generates a checksum on each file and then compares the checksums. Everything has been working fine in my original app so I recently decided to use the same logic in another app. The...
11 Feb 2014 by Uzi Granot
This project will give you the tools needed to compress and decompress files using the Deflate method of compression, and to read and write standard Zip files.
16 Mar 2016 by Enes Yıldız
I have prepared a project for my lecture. In this project I decide two string value is same or not as checsum algorithm... I used 2 language to explain the codes.
13 Sep 2012 by Tarun Batra
I have got the following packet format to be send to machine:- byte byte byte byte 2 2 1 1+---------+-------+-------------+----------+| CM | 00 | check sum | CR |+---------+-------+-------------+----------+I...
5 Sep 2018 by EssenceGold
Hii guys. I have a problem. Can you help me. There is an article on the elimination. According to this article I can not find Checksum. Here are a few examples and articles;Articles:2.1 Framing Each data transfer takes place within a frame. Each data packet has the following...
5 Sep 2018 by Ztibi
private string Pruefsumme(string buffer) { int i; int sum; sum = 256; for (i = 0; i
6 Aug 2012 by Giggsey73
Hi All. I have designed my own hash calculator prototype. I need to come up with file type of different sizes eg. 100KB, 10MB, 100MB, 1GB, etc in order to test the prototype. So, I created the dummy files for these sizes using Dummy File Creator. I tested hashing the real file and hashing the...