computeHmacForString

fnstring computeHmacForString(glib.types.ChecksumType digestType, ubyte[] key, string str)

Computes the HMAC for a string.

The hexadecimal string returned will be in lower case.

Parameters

digestTypea #GChecksumType to use for the HMAC
keythe key to use in the HMAC
strthe string to compute the HMAC for

Returns

the HMAC as a hexadecimal string.

The returned string should be freed with [glib.global.gfree] when done using it.