Search code examples
iphoneencryptionrsaencryption-asymmetric

RSA encryption library or Classes


I want to implement RSA encrytion/decryption in my App.I googled around the net to find any Library or Classes which perform the RSA encryption/decryption algorithm,but was not able to find any suitable link.I know i can use the SecKeyGeneratePair provided by Apple to generate the private public key pair.But it is a necessity for me to use the RSA algorithm as i want to implement it over client-server network.So the Algorithm needs to common amongst the parties.

Please provide some valuable info.

Thanks

Aditya


Solution

  • Isn't that what SecKeyEncrypt and SecKeyDecrypt functions do?

    The functions SecKeyEncrypt and SecKeyDecrypt uses the RSA keys you got from SecKeyGeneratePair.