Add RC4 encryption/decryption function