We don't bite newbies here... much | |
PerlMonks |
Re: XOR'ing to calculate a hex checksumby thospel (Hermit) |
on Jan 28, 2008 at 23:28 UTC ( [id://664812]=note: print w/replies, xml ) | Need Help?? |
Unpack has the little known property to be able to calculate sums in several bit widths. In this case first convert the hexadecimal representation to a character string, sum over that in 8 bits and invert:
In Section
Seekers of Perl Wisdom
|
|