You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where the correct answer should be "917ca2bb41787aadb5384038f2790b6e0a02e058593e37e1297f970be269e583" using other methods.. (ref:https://www.freeformatter.com/hmac-generator.html)
julia version v1.4.1, tried other strings and found the result incorrect.. @staticfloat
The text was updated successfully, but these errors were encountered:
The correct answer to this particular example is ce0006ef9b02c5c710b8bfcb47e6f5177b44323992e2918dfbdb087a03ec6f4f. The issue here is that you are not feeding tmp_key to the other tools you're checking against, you're feeding bytes2hex(tmp_key), they're not the same thing. The online tool that you posted is not interpreting the key as hex, it's reading the UTF-8 input bytes and using those binary representations.
If you want to do that, use hmac_sha256(collect(codeunits(tmp_key)), str) instead of hmac_sha256(tmp_key, str).
where the correct answer should be "917ca2bb41787aadb5384038f2790b6e0a02e058593e37e1297f970be269e583" using other methods.. (ref:https://www.freeformatter.com/hmac-generator.html)
julia version v1.4.1, tried other strings and found the result incorrect..
@staticfloat
The text was updated successfully, but these errors were encountered: