Generating HMAC in Nav 2016 using DotNet

Hi everyone, I am still a newbie when it comes to using DotNet functions in CAL, I would like to Generate an HMAC to use in consuming a webservice, may you help me on how I can achieve this, or propose a link.

Thank you