computeChecksumForString

fnstring computeChecksumForString(glib.types.ChecksumType checksumType, string str)

Computes the checksum of a string.

The hexadecimal string returned will be in lower case.

Parameters

checksumTypea #GChecksumType
strthe string to compute the checksum of

Returns

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.