Open ingconti opened 1 year ago
I did try on macOS:
MESSAGE="Message" SECRET="secret"
echo -n $MESSAGE | openssl dgst -sha256 -hmac $SECRET -binary | base64
and even: echo -n $MESSAGE | openssl sha256 -hmac $SECRET -binary | base64
I got: a74X0vtyUNoaQ246L1U+xD0Q6gHlJVyCKa7OacllXeE=
and not: qnR8UCqJggD55PohusaBNviGoOJ67HC6Btry4qXLVZc
as previous examples
see correct hashes here:
https://apps.apple.com/it/app/hmac-sha256generator/id6448465719?l=en
I can give you my code.
I did try on macOS:
MESSAGE="Message" SECRET="secret"
echo -n $MESSAGE | openssl dgst -sha256 -hmac $SECRET -binary | base64
and even: echo -n $MESSAGE | openssl sha256 -hmac $SECRET -binary | base64
I got: a74X0vtyUNoaQ246L1U+xD0Q6gHlJVyCKa7OacllXeE=
and not: qnR8UCqJggD55PohusaBNviGoOJ67HC6Btry4qXLVZc
as previous examples