Cryptanalysis and design of stream ciphers by