You can't encrypt an NSString. You must encrypt bytes. How are you converting the NSString to bytes? And what do you expect for the encrypted & encoded result string -- it will be minimum of about 2x as long as the source string.
–
Hot LicksMar 28 '12 at 16:39

I've been working around with it myself. Note that, the createkey function, creates a EDE key, which states that the first 8 bytes of the key is exactly equal to the 8 last bytes. It could also be created in a way that all 3 blocks of 8 bytes are the same, or completely different. You should check which one your server processes.

Thanks for this! If possible, could you confirm if the above snippet of code is complete? I tried it and it worked but a confirmation would b great as encryption/decryption is currently way over my head (yet to try decrypting to check if the result is proper)
–
HeiosenbergMar 28 '13 at 12:31