A simple two-way function to encrypt or decrypt a string