S
snacktime
I need to calculate the lrc of a string using an exclusive or on each
byte in the string. How would I do this in python?
Chris
byte in the string. How would I do this in python?
Chris
snacktime said:I need to calculate the lrc of a string using an exclusive or on each
byte in the string. How would I do this in python?
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])
Peter Hansen said:snacktime said:I need to calculate the lrc of a string using an exclusive or on each
byte in the string. How would I do this in python?
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.
import operator
lrc = reduce(operator.xor, [ord(c) for c in string])
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.