A basic implementation of an RSA Generator