Jquery中文网 www.jquerycn.cn
Jquery中文网 >  jQuery  >  jQuery 插件  >  正文 Base64 functions

Base64 functions

发布时间:2014-08-08   编辑:www.jquerycn.cn
Encodes and Decodes the given data in base64. This encoding is designed to make binary data survive transport through transport layers that are not 8-bit clean, such as mail bodies. Base64-encoded data takes about 33% more space than the original data. Th
Encodes and Decodes the given data in base64.This encoding is designed to make binary data survive transport through transport layers that are not 8-bit clean, such as mail bodies.Base64-encoded data takes about 33% more space than the original data.This javascript code is used to encode / decode data using base64 (this encoding is designed to make binary data survive transport through transport layers that are not 8-bit clean). Script is fully compatible with UTF-8 encoding. You can use base64 encoded data as simple encryption mechanism.If you plan using UTF-8 encoding in your project don't forget to set the page encoding to UTF-8 (Content-Type meta tag).Example$.base64Encode("I'm Persian."); // return "SSdtIFBlcnNpYW4u"
$.base64Decode("SSdtIFBlcnNpYW4u"); // return "I'm Persian."

您可能感兴趣的文章:
js实现显示base64编码的二进制流图片
Golang Base64编码解码
PHP中data/base64数据流转图片文件输出例子
解决Base64.encodeBase64String换行回车问题
html5实现把上传的图片转成base64编码在显示(代码实例)
Java8 Base64
golang中图片转base64_Base64编码原理概要
jsp Base64编码传输网络图片的方法
mysql加密函数aes_encrypt()和aes_decrypt()使用教程
php利用file_get_contents批量采集网站内容

[关闭]