Attacks on stream ciphers