Math Forum • View topic – RSA algorithm problem

Hi friends,my trying to create implementation of RSA algorithm, when I follow the algorithm I create:random big prime integers – p and qcalculate n = p*qphi = (p-1)*(q-1)also, I calculate, e and dI know that n and e represent the public key, but I have to represent the public key as single string, is there way how to this conversions:n, e —> public_key_as_string_variablepublic_key_as_string -> n and e BigInteger variables n, d —> private_key_as_string_variable private_key_as_string_variable —> n, d

Thanks you very much in advanced for every help