Encodes the given data with base64.
String $.base64Encode ( String str )
Decodes a base64 encoded data.
String $.base64Decode ( String str )
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.
This function orginally get from the WebToolkit and rewrite for using as the jQuery plugin.
$.base64Encode("I'm Persian.");
"SSdtIFBlcnNpYW4u"
$.base64Decode("SSdtIFBlcnNpYW4u");
"I'm Persian."