I read solution for MD5 below, but I could not quite get it.
get back a string representation from computeDigest(algorithm, value) byte[]
I'd like to create API signature with HMAC-SHA256 hash.
var date = new Date();
var nonce = Math.floor(date.getTime()/1000);
var url = "https://mysweet.com/api/accounts"
var secret = "my_secret";
var signature = Utilities.computeHmacSha256Signature(nonce+url, secret);
but it returns byte array [42, -8, -47, -21, ..], and it cannot be used as API signature directly. Is there a simple way to get a Hex value from the method? or conversion?