Perl implementation of the RC4 encryption algorithm