title: How to Generate RSA Public Key from Modulus and Exponent in Swift 4?
body: <p>I need to generate RSA Public Key from Modulus and Exponent. I am new about Swift so I searched about that. I found these:</p>
  
  <p><a href="https://stackoverflow.com/questions/29669858/generate-rsa-public-key-from-modulus-and-exponent">Generate RSA Public Key from Modulus and Exponent</a></p>
  
  <p><a href="https://stackoverflow.com/questions/40607576/generating-public-key-from-modulus-and-exponent">Generating public key from modulus and exponent</a></p>
  
  <p><a href="https://meniny.cn/posts/RSA_public_key_with_modulus_and_exponent/" rel="nofollow noreferrer">https://meniny.cn/posts/RSA_public_key_with_modulus_and_exponent/</a></p>
  
  <p>But this suggestions are not compiled with Swift 4. there are so much errors. Also I found this : <a href="https://forums.developer.apple.com/thread/4866" rel="nofollow noreferrer">https://forums.developer.apple.com/thread/4866</a></p>
  
  <p>it said "iOS does not provide any public APIs for this". so how can I do this ?</p>