Encrypt nsdata in iphone and decrypt it in php
Posted
by Gaurav Arora
on Stack Overflow
See other posts from Stack Overflow
or by Gaurav Arora
Published on 2010-02-20T07:37:40Z
Indexed on
2010/05/09
14:58 UTC
Read the original article
Hit count: 581
Hi All,
I am new to Iphone development , I want to create an application in which I have to upload some data on php server using my Iphone application. For this I have an file on the Iphone whose content I have to upload on php server. For this I have converted the content of the file in NSData and now I want to encrypt this nsdata object and then pass it to the php server and on php server firstly I have to decrypt the nsdata object then I have to upload it on the server.
But I am not able to find any way by which I can encrypt some data in Iphone app and then decrypt it in php.
And also I want to compress the encrypted data before transferring it to php and then uncompress that data on php.
The complete flow of my application is
IPhone
NSData --> Encrypted NsData --> Compressed Encrypted Data
php
Compressed Encrypted Data --> uncompressed encrypted data --> decrypted (original) NSData.
Can some one help me how can I develop such application?
Thanks in advance.
Gaurav
© Stack Overflow or respective owner