This program will encrypt a string of text using a key function.