RSA method for getting password