Search code examples
iosencodingrsansdatadecoding

How to decode NSData on iOS with RSA key?


I like to know how to decrypt (and encrypt) NSData with an RSA key? I have know idea how to do this. Is there already a build in methode in the normal iOS Frameworks?


Solution

  • Include this in your project: <CommonCrypto/CommonCryptor.h> and try the function CCCrypt. You can find tha man page here