Skip to content

How to get hash encoded in something else than hex? #22

Answered by ffraenz
salixh5 asked this question in Help

You must be logged in to vote

Hi there! The hash function operation outputs text when text is sent to it. When you want to get bytes out of it, send in bytes. This behavior is not documented, yet. This might be changed in the future to make it more intuitive (e.g. by adding a format control). In this blueprint I placed a text encoder operation before the hash function to get bytes out of the latter.

The base64url alphabet only replaces the characters + and / from the original alphabet by - and _. As these don't appear in your output, they appear to be the same.

Let me know if you have further questions or suggestions!

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@salixh5

Answer selected by ffraenz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants