computeChecksumForData

fnstring computeChecksumForData(glib.types.ChecksumType checksumType, ubyte[] data)

Computes the checksum for a binary data of length. 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

checksumTypea #GChecksumType
databinary blob to compute the digest of

Returns

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.