# Checksum

## Recommended Posts

Hi all,

I was wondering how can I calculate using AutoIt the checksum of the code below? Is there a way?

0000: 2222 4432 0000 4499 0000 0000 1234 0002

0008: 1234 1241 AAAA 6666 3333 2222 1111 CCCC

0010: 1234 1241 AAAA 6666 3333 2222 1111 CCCC

0018: 1234 1241 AAAA BBBB 3333 2222 1111 CCCC

0020: 1234 1241 AAAA 6666 3333 2222 1111 CCCC

0028: 1234 1241 AAAA 6666 3333 2222 1111 CCCC

0030: 1234 1241 AAAA 6666 BBBB 2222 1111 CCCC

0038: 1234 1241 AAAA 6666 3333 2222 1111 CCCC

0040: 3333 1241 AAAA 6666 3333 2222 1111 CCCC

0048: 1234 1241 AAAA 6666 BBBB 2222 1111 CCCC

0050: 1234 1241 AAAA 6666 3333 AAAA 1111 CCCC

Regards and thanks,

##### Share on other sites

I made a script of checking checksums..

```#include <string.au3>
HotKeySet("!{F4}", "_Exit")
HotKeySet("{ESC}", "_Checksum")
\$a="";Put in checksum here
\$b=" ";Put in checksum here
\$c=" ";Put in checksum here
\$d="";Put in checksum here
MsgBox(0, \$a&\$b&\$c&\$d, "Press ESC to checksum")
Func _Checksum()
\$checksum = PixelChecksum(\$a,\$b,\$c,\$d)
ClipPut(\$checksum)
MsgBox(0, \$a&\$b&\$c&\$d, \$checksum)
EndFunc
Func _Exit()
Exit
EndFunc```
Edited by Azu

##### Share on other sites

Thanks, Azu,

I cannot see how I can use PixelChecksum for calculating the CheckSum of the posed sample code...

Edited by BlueScreen

##### Share on other sites

It will give you the checksum of the area you put in

##### Share on other sites

there are lots of checksums

what kind do you want ?

do you just want to 'add' the dwords to eachother ?

or do you want some kind of algoritm ?

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

##### Share on other sites

Thanks, wOuter,

The issues is that Im not sure, but refer to the code below. The checksum should be DB98 on the last word. If you put this value there the Checksum will be ZERO.

My purpose is to find this checksum

Thanks,

0000: 1234 1234 0000 0000 0000 0000 0000 0000

Edited by BlueScreen

## Create an account

Register a new account