Forum OpenACS Development: Re: ns_hmac and byte array
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