C++ implements RAS algorithm, encryption and decryption, and generation of key pair