XOR on string
snacktime
snacktime at gmail.com
Wed Jan 26 16:54:08 EST 2005
> lrc == Linear Redundancy Check? or Longitudinal? Note that
> such terms are not precisely defined... generally just acronyms
> people make up and stick in their user manuals for stuff. :-)
>
Longitudinal
> import operator
> lrc = reduce(operator.xor, [ord(c) for c in string])
That's better than what I had, which as it turned out was working I
was just calculating the lrc on one extra digit that I should have
been.
Chris
More information about the Python-list
mailing list