Skip to content

Instantly share code, notes, and snippets.

@fredley
Created February 23, 2015 17:19
Show Gist options
  • Save fredley/c5e034147c250bbfcd36 to your computer and use it in GitHub Desktop.
Save fredley/c5e034147c250bbfcd36 to your computer and use it in GitHub Desktop.
var decode = function(save){
return LZString.decompressFromBase64(save.split("|")[1].substring(16));
}
var encode = function(json){
return btoa("1.0.19") + "|" + btoa("SAVE HAX0R3D") + LZString.compressToBase64(json);
}
@welp21
Copy link

welp21 commented Sep 27, 2018

uh.. whats this do xd

@mistermaltedmilkmaster
Copy link

?????

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment