Implementation of the RSA algorithm to encrypt text messages