WHY IS THIS SO HARD TO FIND?!

Original answer comes from the blessed stackoverflow: http://stackoverflow.com/questions/246801/how-can-you-encode-to-base64-using-javascript/247261#247261

The “btoa(…)” and “atob(…)” functions are the answer.  The names are as bad as they come these days, and impossible to find.  When dealing with extension development, this sure beats having to include a stupid Base64Encode script to do the job with worse performance.

Tagged with:
 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>