I have generated an RSA Key Pair, a public and a private key. They are both Strings.
I see sources showing that, the private key are always saved in the keychain and then retrieved as SecKeyRef/KeyRef.
After it is saved, it is then retrieved, used and then deleted.
My question is, is it possible to use the RSA Private Key as an NSString to decrypt, without saving it in the keychain first?
NSString(string: <#PrivateKey#>). Whether this can be used to decrypt or not depends on whether you are writing the RSA code and your function can accept a string as a key or whether it is a third-party library that does this for you. - Todd