09/22/2015 Update: A bug was found in the code. The code block has been updated with the fixed code.

Description
RC4 is one of the most widely used ciphers in the world. It is used in WEP, WPA, SSL, BitTorrent, PDF, etc. It is one of the simplest to understand and implement. It is also one of the fastest algorithms available.

What is RC4
It is a stream cipher, which means that it encrypts a stream of data byte...