added encryption functionality to RC4