computeHmacForString

Computes the HMAC for a string.

The hexadecimal string returned will be in lower case.

string
computeHmacForString

Parameters

digestType glib.types.ChecksumType

a #GChecksumType to use for the HMAC

key ubyte[]

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 glib.global.gfree when done using it.