2

I need to generate RSA Public Key from Modulus and Exponent. I am new about Swift so I searched about that. I found these:

Generate RSA Public Key from Modulus and Exponent

Generating public key from modulus and exponent

https://meniny.cn/posts/RSA_public_key_with_modulus_and_exponent/

But this suggestions are not compiled with Swift 4. there are so much errors. Also I found this : https://forums.developer.apple.com/thread/4866

it said "iOS does not provide any public APIs for this". so how can I do this ?

utarid
  • 1,642
  • 4
  • 24
  • 38
  • Possible duplicate of [Generating public key from modulus and exponent](https://stackoverflow.com/questions/40607576/generating-public-key-from-modulus-and-exponent) – Enea Dume Jul 28 '18 at 13:43
  • @EneaDume, you can find this url in my question. the answer is not compiled in Swift 4 – utarid Jul 28 '18 at 13:44
  • 1
    you're a developer, man. If the solution was in swift 3 it doesn't make a lot of difference in swift 4. you must try something yourself – Enea Dume Jul 28 '18 at 13:56
  • @EneaDume can you please show me Swift 3 solution ? – utarid Jul 28 '18 at 13:59
  • Which class or struct do you use to store the modulus, same question for the exponent? Which class or struct do you want to store the public key? Last question: can you please give some code you wrote to answer the question and tell which part doesn't work or return an error. – Alexandre Fenyo Jul 28 '18 at 14:25

0 Answers0