Hmac.computeHmacForString

Computes the HMAC for a string. The hexadecimal string returned will be in lower case. Since 2.30

class Hmac
static
string
computeHmacForString

Parameters

digestType GChecksumType

a GChecksumType to use for the HMAC

key char[]

the key to use in the HMAC. [array length=key_len]

str string

the string to compute the HMAC for

Return Value

Type: string

the HMAC as a hexadecimal string. The returned string should be freed with g_free() when done using it.

Meta