How fast can browsers process base64 data?

(lemire.me)

6 points | by mfiguiere 13 hours ago ago

2 comments

  • danhau 10 hours ago

    > However, when decoding, we must handle errors and skip spaces.

    This had me scratching my head. Why would a base64 decoder need to skip spaces? But indeed, MDN documents this behavior:

    > Note that: The whitespace in the space is ignored.

    JS never ceases to surprise. Also, check out that typo :D

    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

    • cluckindan 7 hours ago

      So technically it’s now possible to hide a payload in somewhat human-readable text, as long as it base64-decodes.