Showing posts with label base64. Show all posts
Showing posts with label base64. Show all posts

Monday, January 12, 2009

FireFox base64 encode/decode

If you want to encode a string using base64 in JavaScript under FireFox you can use the (somewhat undocumented method) btoa().

If you want to decode a base64 encoded string in JavaScript under FireFox you can use the (somewhat undocumented method) atob().