Checksum.computeChecksumForString

Computes the checksum of a string.

The hexadecimal string returned will be in lower case.

class Checksum
static
string
computeChecksumForString

Parameters

checksumType GChecksumType
str string

the string to compute the checksum of

length ptrdiff_t

the length of the string, or -1 if the string is null-terminated.

Return Value

Type: string

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

Meta

Since

2.16