标题: jQuery plugin base64 encode and decode [打印本页] 作者: luinstein 时间: 2012-12-13 23:00 标题: jQuery plugin base64 encode and decode SummaryBase64 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).
Download
jQuery plugin base64 [v1.1 build 20110323 - 873.5 kB - 5974 Hits]
- Bug fixed. When user input an empty sting, it will generate a empty string now.
- NOTE: The unicode library is only support chinese.
UsageWhether or not to use UNICODE library:
$.base64.is_unicode = false/true;Encode:
$.base64.encode('$.base64');Decode:
$.base64.decode('JC5iYXNlNjQ=');