Modularizing the RSA