Page 1 of 1

More checksum options

Posted: 08 Oct 2014 20:31
by bupbupbup
The option to keep a running 8/16/32-bit total is already there, but those options still operate on individual bytes. e.g: 86 FE B7 21 52 BD 4F 58 is always calculated by adding up the individual bytes ( 86+FE+B7+21+52+BD+4F+58) regardless of whether the final checksum is 8, 16, or 32 bits.

Being able to calculate checksums by word (or dword) would be nice. i.e: 86 FE B7 21 52 BD 4F 58 = 86FE+B721+52BD+4F58

Re: More checksum options

Posted: 06 Feb 2019 22:15
by Maƫl
Add Xor-8 as described in "CheckSum8 Xor" on https://www.scadacore.com/tools/program ... alculator/

Add similar Xor-16 and Xor-32, once the exact algorithm is clear, and there is a reference implementation/algorithm.

Re: More checksum options

Posted: 18 Dec 2021 01:05
by fzabkar
I often need to compute XOR-8 and XOR-16 checksums over an entire file. The algorithms are as follows:

XOR-8 = byte1 xor byte2 xor byte3 xor ... byteN.

XOR-16 = word1 xor word2 xor word3 xor ... wordN

Would it be possible to add this feature?