Skip to content

Instantly share code, notes, and snippets.

@yckart
Last active December 13, 2015 20:19
Show Gist options
  • Select an option

  • Save yckart/4969387 to your computer and use it in GitHub Desktop.

Select an option

Save yckart/4969387 to your computer and use it in GitHub Desktop.
// http://hashify.me/
var B64 = function(){
encode: function (raw) {
return window.btoa( window.unescape( encodeURIComponent(raw) ) );
},
decode: function (b64) {
return decodeURIComponent( window.escape( window.atob(b64) ) );
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment