Forum OpenACS Development: Re: ns_hmac and byte array

3: Re: ns_hmac and byte array (response to 2)
Posted by Dave Bauer on
Thanks Gustaf, your example returns the same result as my Python example.

When I run this code on my Naviserver it returns a different result.
I am not sure if this is a result of a different library I have or some Naviserver encoding setting perhaps. Very curious.

set b [binary format H* "abcd1234"]
set h [ns_hmac string -digest SHA512 $b "This is a test"]

b results in the same value «Í4
but h contains a different result