NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
How fast can browsers process base64 data? (lemire.me)
danhau 3 days 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 3 days ago [-]
So technically it’s now possible to hide a payload in somewhat human-readable text, as long as it base64-decodes.
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 15:23:05 GMT+0000 (Coordinated Universal Time) with Vercel.