computeChecksumForString

Computes the checksum of a string.

The hexadecimal string returned will be in lower case.

string
computeChecksumForString

Parameters

checksumType glib.types.ChecksumType

a #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, or null if glib.checksum.Checksum.new_ fails for checksum_type. The returned string should be freed with glib.global.gfree when done using it.