1

Possible Duplicate:
Any base64 library on iphone-sdk?

I've the following php script that encrypted a string, now i need to decrypt the encrypted string in Obj-c

function encrypt($message, $initialVector, $secretKey) {
return base64_encode(
    mcrypt_encrypt(
        MCRYPT_RIJNDAEL_128,
        md5($secretKey),
        $message,
        MCRYPT_MODE_CFB,
        $initialVector
    )
 );
}

Thanks in advance for any help

Community
  • 1
  • 1
Walid Hossain
  • 2,724
  • 2
  • 28
  • 39
  • look http://blog.objectgraph.com/index.php/2010/04/20/encrypting-decrypting-base64-encode-decode-in-iphone-objective-c/ – Haim Evgi Aug 02 '11 at 07:02
  • already asked... try: http://stackoverflow.com/questions/392464/any-base64-library-on-iphone-sdk – kviksilver Aug 02 '11 at 07:02
  • You could have issues with approval approving encryption - please use it wisely. Your best bet would be to simply use SSL/HTTPS if you want end-to-end security over the network. – Jamie Chapman Aug 02 '11 at 08:21

0 Answers0