RC4 encryption A simple implementation of RC4 encryption Why you are not setting the key on the constructor? By setting the key on a method I can reset it for a decryption later without creating a new object and paying the burden of initialization