Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shell code is wrong #33

Open
ingconti opened this issue Apr 26, 2023 · 1 comment
Open

shell code is wrong #33

ingconti opened this issue Apr 26, 2023 · 1 comment

Comments

@ingconti
Copy link

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
Copy link
Author

ingconti commented Apr 27, 2023

see correct hashes here:

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

I can give you my code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant