Checksum.gComputeChecksumForString

Computes the checksum of a string. The hexadecimal string returned will be in lower case. Since 2.16

class Checksum
static
string
gComputeChecksumForString

Parameters

checksumType GChecksumType

a GChecksumType

str string

the string to compute the checksum of

length gssize

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