You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This encoding is designed to make binary data survive transport through transport layers that are not 8-bit clean, such as mail bodies.
15
+
* Base64-encoded data takes about 33% more space than the original data.
16
+
* 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.
17
+
* 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).
18
+
* This function orginally get from the WebToolkit and rewrite for using as the jQuery plugin.
19
+
*
20
+
* Example
21
+
* Code
22
+
* <code>
23
+
* $.base64Encode("I'm Persian.");
24
+
* </code>
25
+
* Result
26
+
* <code>
27
+
* "SSdtIFBlcnNpYW4u"
28
+
* </code>
29
+
* Code
30
+
* <code>
31
+
* $.base64Decode("SSdtIFBlcnNpYW4u");
32
+
* </code>
33
+
* Result
34
+
* <code>
35
+
* "I'm Persian."
36
+
* </code>
37
+
*
38
+
* @alias Muhammad Hussein Fattahizadeh < muhammad [AT] semnanweb [DOT] com >
0 commit comments