# compute_for_data

## Description:

[ CCode ( cname = "g_compute_checksum_for_data" ) ]

public static string

public static string

**compute_for_data**(ChecksumType checksum_type, uchar[] data)Computes the checksum for a binary `data`

of `data.length`

.

This is a convenience wrapper for Checksum,
get_string and `g_checksum_free`

.

The hexadecimal string returned will be in lower case.

## Parameters:

checksum_type | |

data |
binary blob to compute the digest of |

length |
length of |

## Returns:

the digest of the binary data as a string in hexadecimal. The returned string should be freed with g_free when done using it. |