Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
How to generate oauth signature using HMAC-SHA1 in Symbian C++
This code snippet shows how to generate an OAUTH signature using HMAC-SHA1 in Symbian C++. The oauth_signature is a signature computed from the base URL and a secret key, so before generating signature you must know about the key and base URL.
keyVal.Copy(_L8("Place your key value here"));
//example base string (GET&http%3A%2F%2Fabc.com%2Frequest_token&oauth_consumer_key%3Deffe)
baseString.Copy(_L8("Add your base string for which the signature need to be generated"));
HBufC8* buf = HBufC8::NewL(hashedSig.Length() * 2);
// encode your signature into base64 or encoding scheme required