Hi,<div><br></div><div>I'm trying to generate a SHA1 hash using a private key and a given string, like so:</div><div><br></div><div>(define a-hash (HMAC-SHA1 (string->bytes/locale "foo") (string->bytes/locale "bar")))</div>
<div><br></div><div>This returns bytes, but when I try to turn those bytes into a string with:</div><div><br></div><div>(bytes->string/locale a-hash)</div><div><br></div><div>I get:</div><div><br></div><div>bytes->string/locale: string is not a well-formed UTF-8 encoding: #"F\264\354Xa\27\25M\254\324\235fN]c\375\310\216\373Q"</div>
<div><br></div><div>As I have no clue how to diagnose this, I'd appreciate any suggestions or help.</div><div><br></div><div>Thanks,<br>Shawn</div>