RC4 stream cipher implementation