I liked how you simplified the whole process splitting it into small steps, but why would we convert text into base64? are there any applicable uses of that?
Microsoft MVP. Power Platform form Developer and White Hacker. Passion for RPA and all things LowCode, back story in shadow IT through VBA. Creates Chrome Extensions and Web Apps (badly)
That's not base64, it's base64url. Confusing both leads to trouble for everyone. The (deprecated) function btoa encodes to base64 with + and / instead of base64url with - and _.
Yes, you are right. btoa is not deprecated, actually it will probably stay forever. It's just my IDE that mislead me recently by annotating it that way.
Wonderful, thanks for the write up, Vivek! I've had to do this recently at work.
Nice explanation, Vivek. Now I know what goes on behind in the encoding and decoding part.
Since you mentioned:
One of the third-party tools is ApyHub as well, which supports base64 inputs for certain APIs like file conversions.
Sharing as a resource. :)
Thanks for sharing
I liked how you simplified the whole process splitting it into small steps, but why would we convert text into base64? are there any applicable uses of that?
Nice!! I also have a post explaining how base64 works and its use cases: dev.to/godinhojoao/base64-encoding...
Nice
That's not base64, it's base64url. Confusing both leads to trouble for everyone. The (deprecated) function
btoaencodes to base64 with+and/instead of base64url with-and_.btoaisn't deprecated anymore afaik, it just comes with documentation warning against use with Unicode.Yes, you are right. btoa is not deprecated, actually it will probably stay forever. It's just my IDE that mislead me recently by annotating it that way.
Good
Good