i want to generate HMAC-SHA1 of NSString type variable. I see the post but this method give me error in CCHmac(kCCHmacAlgSHA256, cKey, strlen(cKey), cData, strlen(cData), cHMAC);
and
NSString *hash = [HMAC base64Encoding];
line.
Please suggest how can I generate the HMAC-SHA1 of any string.
Have you got this at the top of your source file?
Regarding the base64 part of your question, this question will show you where to get a base64 encoding library/protocol.