I'm trying to use OpenSSL to generate a checksum in CMD, as per the top answer here.
However, using the provided example I get an unexpected result:
C:\>echo -n "value" | openssl dgst -sha1 -hmac "key"
(stdin)= 8c5b4c3a9cee7bc9020a43f1c396f9e13c2bae4a
The expected result as shown in the original question, which I also get with other HMAC SHA1 generators is:
57443a4c052350a44638835d64fd66822f813319
Curiously, I get a third result in PowerShell:
PS C:\> echo -n "value" | openssl sha1 -hmac "key"
(stdin)= 56d96e5393d98eb5e189ab189e02b1832af727b5
As might be self evident, I'm a bit out of my comfort zone here, so forgive me for any obvious mistakes or shortcomings in my explanation.