RC4 is a stream cipher created in 1987. It was initially a trade secret but was later posted online. RC4 is fast and simple to implement, making it popular despite weaknesses in its key scheduling algorithm. RC4 has a large key space but around 1 in 256 keys are weak. Attacks exist against RC4's KSA that can help determine parts of the encryption key. While RC4 remains in common use, its weaknesses have led experts to recommend moving away from its use where possible.