Base64 functions 介绍
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."
Base64 functions 官网
http://plugins.jquery.com/project/base64
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。