in reply to how to encrypt a string...
The cpan search Crypt gives a long list of methods and modules to choose from. It would probably be as easy to use real crypto as some crackable cypher. Look at RSA and Rijndael.
After Compline,Zaxo