|-
| valign='top' | '''Summary'''
|Creates a message authentication code via a cryptographic hash function and a secret key. <br/>$encoding must either be <code>hex</code>, <code>base64</code> or the empty string (default is <code>base64</code>) and specifies the encoding of the returned authentication code.
|-
| valign='top' | '''Errors'''
|<b>?</b>
|}