jQuery plugin base64 encode and decode
Reload page to: English – 简体中文 – 繁體中文
Summary
Base64 encoder and decoder write by JavaScript. This script was a plugin of jQeury, so you must load jQuery library first if you want to use this script.
After encode by this script, you can decode it with PHP, and vice versa
Support Unicode library
This script was collected from the network, I just rewrite it as the plugin of jQuery, the copyright belongs to original work(s).
Demo
Download
- jQuery plugin base64 [v1.1 build 20110323 - 873.5 kB - 8940 Hits]
- Bug fixed. When user input an empty sting, it will generate a empty string now.
- NOTE: The unicode library is only support chinese. - Or you can get this code from jQuery.com
Usage
Whether or not to use UNICODE library:
$.base64.is_unicode = false/true;
Encode:
$.base64.encode('$.base64');
Decode:
$.base64.decode('JC5iYXNlNjQ=');
评论列表
any other known bugs?