C++ Encryption program