Pretty Simple Encryption - C++