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

HMAC-SHA256 - Erroneous results #40

Closed
mtsiakiris opened this issue Mar 20, 2019 · 1 comment
Closed

HMAC-SHA256 - Erroneous results #40

mtsiakiris opened this issue Mar 20, 2019 · 1 comment

Comments

@mtsiakiris
Copy link

The procedure to calculate a HMAC-SHA256 (using flow: TEXT->HMAC/SHA-256->HASH) hash is invalid.

Test data

TEXT: 12345;78910
KEY: 12345
CORRECT HASH: 12476f110137a6c8243aa1ec839a4a09e7232ad682e407cc987ad3d1e2a91aef

INVALID!: bff8836fb60ed93f10677334fb04315776e381f82b72c8ab9b6a0373d2fdbd69

Check the screenshot.
image

@ffraenz
Copy link
Member

ffraenz commented Mar 20, 2019

Hi @mtsiakiris, the key setting is currently requested in hexadecimal format. Thus your key input 12345 is interpreted as hexadecimals instead of text. The result is correct. I understand that the UI may be misleading here, so I added the issue to the backlog. Thank's for reporting!

@ffraenz ffraenz closed this as completed Mar 20, 2019
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

2 participants