-1

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?

David Gölzhäuser
  • 3,525
  • 8
  • 50
  • 98

1 Answers1

1

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

Levi
  • 7,313
  • 2
  • 32
  • 44
  • OK, I worked it out, I can encrypt and decrypt the NSData on one idevice, but when I create a QR code with the encrypted NSData and read it on another iOS device and encrypt it with the same key I get an invalide NSData. The encrypted string is the same, but I cant decode it, do you know any fix? – David Gölzhäuser Dec 16 '13 at 21:02