Andrea,
probably worth trying this. Syntax: GLib.compute_hmac_for_string (ChecksumType digest_type, String key, guint64 key_len, String str, gint64 length) : String var out = GLib.compute_hmac_for_string ( GLib.Checksum.SHA1, 'secret', 'secret'.length, 'the string', 'the string'.length ) The doc's indicate that the last arg can be -1 if a \0 terminated string is passed - I can't remember if that occurs by default though. Otherwise it might be worth messing around with the gir file and changing the key into a utf8 string, rather than an array of chars Regards Alan On Tuesday, April 19, 2016 05:19 PM, Andrea Giammarchi wrote:
|