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.
computeChecksumForData
fn
string 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
checksumType | a #GChecksumType |
data | binary blob to compute the digest of |
Returns
the digest of the binary data as a