jokecamp / jokecamp.com

personal blog and website
https://www.jokecamp.com
84 stars 40 forks source link

shell code is wrong #33

Open ingconti opened 1 year ago

ingconti commented 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

ingconti commented 1 year ago

see correct hashes here:

https://apps.apple.com/it/app/hmac-sha256generator/id6448465719?l=en

I can give you my code.