in reply to I need some simple encryption.

As others, far more experienced than I, have mentioned; I'm not convinced that this approach will add security but this Crypt::Tea (not to be confused with Crypt::TEA) is described as "The Tiny Encryption Algorithm in Perl and JavaScript".

Regards,
Dom.