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
- 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
UsageWhether or not to use UNICODE library:
$.base64.is_unicode = false/true;Encode:
$.base64.encode('$.base64');Decode:
$.base64.decode('JC5iYXNlNjQ=');
from:http://go.cxweb.com.cn/gv84o
页:
[1]