Implementation of RC4 stream cipher