computeChecksumForBytes

Computes the checksum for a binary data. This is a convenience wrapper for glib.checksum.Checksum.new_, glib.checksum.Checksum.getString and glib.checksum.Checksum.free.

The hexadecimal string returned will be in lower case.

Parameters

checksumType glib.types.ChecksumType

a #GChecksumType

data glib.bytes.Bytes

binary blob to compute the digest of

Return Value

Type: string

the digest of the binary data as a string in hexadecimal, 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.