Last active
December 13, 2015 20:19
-
-
Save yckart/4969387 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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