I am converting a UIImage to NSData. Now I need to encrypt that NSData using a public key and I need to decrypt using a private key. Please provide a step by step procedure. Which algorithm do I need to use? Is there any good library for encryption and decryption? Also provide some code snippet for encryption and decryption.
Share
I have tried RSA Encryption and Decryption for NSString and you may well modify it and make it work for NSData
Add Security.Framework to your project bundle.
ViewController.h code is as follows:
ViewController.m file code is as follows:
Let me know if you need more help.
Hope this helps.