0

I need to convert UIImage to cipher text and send it to server and again need to convert back the cipher text to UIImage and make sure its the correct one.

Can some one please let me know how to do this? I have no idea. Any documentation provided is also great.

Thanks...

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Kishore
  • 184
  • 1
  • 11

2 Answers2

0

You will first need to convert UIImage to NSData

convert UIImage to NSData

Then you encrypt that NSData

Iphone - How to encrypt NSData with public key and decrypt with private key?

Community
  • 1
  • 1
Hexark
  • 413
  • 6
  • 22
0

Here is an article by Prateek Gianchandani which is about RNCryptor - a library for encrypting images, which uses AES256. It's much more simple and convinient to use it instead of manual NSData encryption.

etolstoy
  • 1,798
  • 21
  • 33