As the title says. Using the iPhone SDK, I want to RSA encrypt some (small) plaintext using an existing key and exponent I am given from a server for authentication. Surely this is a trivial task that requires one library import and a couple of lines of code? If not, why not?
Share
Unfortunately the only way to work with RSA keys on the iPhone is by importing them in the KeyChain. If you don’t mind to use a third-party library then you can go around this. For example by using libcrypto from OpenSSL.