Encryption with c++