C++ cipher program that encrypts and decrypts a user given string based on the key