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