Code from John Bass
Type "encrypt" or "decrypt" to encrypt or decyrpt something. The key is a number you keep secret. Decrypting something with the wrong key will not decrpyt it incorrectly.