Skip to content

Instantly share code, notes, and snippets.

View ts-3156's full-sized avatar
🌴
On vacation

ts-3156 ts-3156

🌴
On vacation
View GitHub Profile
var jsBase64 = (function() {
var b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
// public method for encoding
function encode(data) {
var o1, o2, o3, h1, h2, h3, h4, bits, i = 0, ac = 0, enc = "",
tmp_arr = [];
if (!data)