top | item 46087869

(no title)

kichik | 3 months ago

You can save the expected string to a file, save your string to a file, and run diff on a hexdump of both. Even without hexdump, you should see the difference between "\n" and "\\n" in properly escaped output.

discuss

order

lillesvin|3 months ago

But the returned signed string will be an HMAC-SHA256 hash, won't it? Then there's not going to be any '\n' or '\\n's in there. Only thing you'll be able to tell is if it matches your hash or not, in which case 'OK' or 'not OK' will work just as well.

Or am I misunderstanding you?

kichik|3 months ago

You are indeed misunderstanding me. I am talking about returning the entire string to be signed. Not the result of the signature.