0% found this document useful (0 votes)
836 views1 page

FBC

This document contains code for encoding and decoding Base64 in JavaScript. It defines functions for stringifying and parsing Base64 representations. Stringifying converts words of bytes to a string of Base64 characters. Parsing converts a Base64 string back to words of bytes. The Base64 mapping character set is also defined for the encoding and decoding translations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
836 views1 page

FBC

This document contains code for encoding and decoding Base64 in JavaScript. It defines functions for stringifying and parsing Base64 representations. Stringifying converts words of bytes to a string of Base64 characters. Parsing converts a Base64 string back to words of bytes. The Base64 mapping character set is also defined for the encoding and decoding translations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

/*

CryptoJS v3.1.2
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
*/
(function(){var h=CryptoJS,j=h.lib.WordArray;h.enc.Base64={stringify:function(b)
{var e=b.words,f=b.sigBytes,c=this._map;b.clamp();b=[];for(var a=0;a<f;a+=3)for(var
d=(e[a>>>2]>>>24-8*(a%4)&255)<<16|(e[a+1>>>2]>>>24-8*((a+1)%4)&255)<<8|
e[a+2>>>2]>>>24-8*((a+2)%4)&255,g=0;4>g&&a+0.75*g<f;g++)b.push(c.charAt(d>>>6*(3-
g)&63));if(e=c.charAt(64))for(;b.length%4;)b.push(e);return
b.join("")},parse:function(b){var
e=b.length,f=this._map,c=f.charAt(64);c&&(c=b.indexOf(c),-1!=c&&(e=c));for(var
c=[],a=0,d=0;d<
e;d++)if(d%4){var g=f.indexOf(b.charAt(d-1))<<2*(d%4),h=f.indexOf(b.charAt(d))>>>6-
2*(d%4);c[a>>>2]|=(g|h)<<24-8*(a%4);a++}return
j.create(c,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
+/="}})();

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy