A base64encoder with padding, what shall i say more? This version now includes the amazing improvements made by Jonas Magazinius and LeverOne, for more details visit the "sla.ckers"-forum @ http://sla.ckers.org/forum/read.php?24,36342
If you are looking for a decoder give https://gist.github.com/atk/1020396 a try.
var
sigma ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
, sample = "140bytes rocks!"
, encoded = (function(...){...})(sample, sigma);
Any idea what I should change to make it work for IE7 and older ? In my company everyone is using IE<=9 BUT with IE7 compatibility mode (blocked by I/T), and this code doesn't work in that case :-/
Thanks.