设为首页收藏本站
开启辅助访问
切换到宽版

创星网络[分享知识 传递快乐]

 找回密码
 立即注册

QQ登录

只需一步,快速开始

用新浪微博登录

只需一步,快速搞定

搜索
查看: 4304|回复: 0
打印 上一主题 下一主题

[JQuery] jQuery plugin base64 encode and decode

[复制链接]

我玩的应用:

跳转到指定楼层
楼主
发表于 2012-12-13 23:00:27 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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.
  • 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
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 转播转播 分享分享 分享淘帖
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|创星网络 ( 苏ICP备11027519号|网站地图  

GMT+8, 2024-9-22 06:40 , Processed in 0.094537 second(s), 29 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表