in reply to LFSRs & binary encode / decode functions
out:$x >>= 1; $x |= next_bit();
next_bit($x & 1); $x <<= 1;
Update: Oops, ignore the above. I misunderstood what you wanted because I made some inferences based on what you said, but you don't seem to know what you were talking about either.
You don't feed bits into an LFSR. LFSRs output a long chain of non-repeating numbers. As such, they neither encode nor decode. They also neither encrypt nor decrypt.
You could potentially use the seemingly random sequence generated for encryption, but how you decrypt would depend on how you encrypt.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: LFSRs & binary encode / decode functions
by Anonymous Monk on Jul 03, 2009 at 02:34 UTC | |
by ikegami (Patriarch) on Jul 03, 2009 at 02:37 UTC |