I need something encrypt text so it can be decrypted only when you know the right code that is used to encrypt it. this needs to be CGI so it can be printed out. Can someone tell me how to -
A) Encrypt the text by a code I want to use.
B) Decrypt the encrypted text by using the code to encrypt it by.
It needs to be secure, but for what I need it for, it doesnt have to be 100% unbrakable (nothing is).