Attacks:
Brute force: There are only 26 candidate secret keys.
Known-plaintext attack: For the example pair (shift, BQROC), K = B - s = (1 - 18) mod 26 = 9.
A shift register whose input bit is a linear function of its previous state.
Example 1: A shift register satisfying xm+3โ=xm+1โ+xmโ, a linear relationship.
Example 2: Given initial values x1โ=0,x2โ=1,x3โ=0,x4โ=0 and x5โ=0, the sequence generated using the linear relationship xm+5โ=xmโ+xm+2โmod2 is 0100010100110111100011.