An RC4 implementation to encrypt raw data