I need an algorithm to encode & decode 20 bits. I think LFSRs look promising. If I setup an LFSR with multiple taps, seed it with a known value, then feed in the 20 bits to be encoded, I end up with an encoded number. The algorithm is to be proven in perl (because it is sooooo convenient!), but the runtime target is a microcontroller with limited RAM & Flash.
The question is, how do I decode the "encoded form" to retrieve the orignal number, given the seed & LFSR taps are known?
The following link is instructive, but not directly applicable:
http://www.perlmonks.org/?node_id=78666
Actually, given one comment in the link, it would be ideal to setup TWO LFSRs, again with known taps & seeds...
Thanks,
R.