solemnwarning / rehex

Reverse Engineers' Hex Editor
https://rehex.solemnwarning.net/
GNU General Public License v2.0
2.3k stars 113 forks source link

Calculate checksum from selection #219

Closed selurvedu closed 9 months ago

solemnwarning commented 10 months ago

Any particular algorithms you think would be useful here?

selurvedu commented 9 months ago

Definitely CRC32 for me. Here are some other popular options:

https://github.com/WerWolv/ImHex/blob/b71a77677058b545d3b17104453ce3d61cd10865/plugins/builtin/source/content/hashes.cpp#L170 https://www.sweetscape.com/010editor/manual/CheckSum.htm

Generally I'm more interested in algorithms that produce shorter checksums (e.g. Adler-32 and other CRCs) as I see them being used more often in things I'm reverse engineering.

solemnwarning commented 9 months ago

Merged to master.

selurvedu commented 9 months ago

Sweet potatoes! That was really fast! Thank you!