The code for the RSA Generator