Base64.js provides some functions like "atob" and "btoa".
Creates a base64 encoded ASCII string from a string of binary data.
In most browsers, calling window.btoa on a Unicode string will cause a Character Out Of Range exception, so it has taken measures to avoid the exception.
Please see here for more details.
Decodes a string of data which has been encoded using base64 encoding.
Creates a web safe base64 encoded ASCII string from a string of binary data.
Decodes a string of data which has been encoded using base64.encodeSafe().
Base64.js is available under the terms of the MIT license.