GLib.compute_checksum_for_string
function compute_checksum_for_string(checksum_type: GLib.ChecksumType, str: String, length: Number(gssize)): String {
// Gjs wrapper for g_compute_checksum_for_string()
}
Computes the checksum of a string.
The hexadecimal string returned will be in lower case.
Since 2.16
- checksum_type
- str
the string to compute the checksum of
- length
the length of the string, or -1 if the string is null-terminated.
- Returns
the checksum as a hexadecimal string. The returned string should be freed with GLib.free when done using it.