Base64 encode and decode
After encode by this script, you can decode it with PHP, and vice versa.
Support Unicode library.
This code was collected from the network, I just rewrite it as the plugin of jQuery, the copyright belongs to original work(s).
Usage
Whether or not to use UNICODE library:$.base64.is_unicode = false/true;
Encode:$.base64.encode('$.base64');
Decode:$.base64.decode('JC5iYXNlNjQ=');
Demo
http://www.hpyer.cn/codes/jquery-plugin-base64-encode-and-decode
评论