-
On cryptii.com I could do something like this: But now it doesn't work anymore: Blueprint link 🔗 I think the output of the hash function is interpreted as text instead of bytes, but is there an option to change that? (Also on that note: base64url gives me the same output as base64, it seems to be broken) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 Let me know if you have further questions or suggestions! |
Beta Was this translation helpful? Give feedback.
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!