tiny-b64.js [765b] - tiny-b64-min.js.gz [329b]
The t.b64-Codec requires only tiny.js. Other scripts are not necessary.
The Methods .enc and .dec take a string as argument and return the Base64 en- re decoded string.
(function() { function test() { var data=t('#testinput').v(), to=t.b64.enc(data); t('#to').h(to); t('#re').h(t.b64.dec(to)); } t('#test').e('mousedown', test); })();
© 2010 Alex Kloss