https://github.com/knowledgecode/base64.js
functions like "atob" and "btoa"
https://github.com/knowledgecode/base64.js
Last synced: 9 months ago
JSON representation
functions like "atob" and "btoa"
- Host: GitHub
- URL: https://github.com/knowledgecode/base64.js
- Owner: knowledgecode
- License: mit
- Created: 2013-01-06T12:12:23.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-01-07T15:44:31.000Z (almost 13 years ago)
- Last Synced: 2025-01-30T19:52:29.523Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 141 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Base64.js
Base64.js provides some functions like "atob" and "btoa".
## Methods
### base64.encode
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.](https://developer.mozilla.org/en-US/docs/DOM/window.btoa#Unicode_Strings)
### base64.decode
Decodes a string of data which has been encoded using base64 encoding.
### base64.encodeSafe
Creates a web safe base64 encoded ASCII string from a string of binary data.
### base64.decodeSafe
Decodes a string of data which has been encoded using base64.encodeSafe().
## License
Base64.js is available under the terms of the MIT license.