Hmac.computeHmacForString

Computes the HMAC for a string.

The hexadecimal string returned will be in lower case.

class Hmac
static
string
computeHmacForString

Parameters

digestType GChecksumType

a GChecksumType to use for the HMAC

key char[]

the key to use in the HMAC

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

Since

2.30