\r\n" .
' ' . Strings::base64_encode($n->toBytes()) . "\r\n" .
' ' . Strings::base64_encode($e->toBytes()) . "\r\n" .
' ' . Strings::base64_encode($primes[1]->toBytes()) . "
\r\n" .
' ' . Strings::base64_encode($primes[2]->toBytes()) . "
\r\n" .
' ' . Strings::base64_encode($exponents[1]->toBytes()) . "\r\n" .
' ' . Strings::base64_encode($exponents[2]->toBytes()) . "\r\n" .
' ' . Strings::base64_encode($coefficients[2]->toBytes()) . "\r\n" .
' ' . Strings::base64_encode($d->toBytes()) . "\r\n" .
'';
}
/**
* Convert a public key to the appropriate format
*
* @param \phpseclib3\Math\BigInteger $n
* @param \phpseclib3\Math\BigInteger $e
* @return string
*/
public static function savePublicKey(BigInteger $n, BigInteger $e)
{
return "