diff --git a/.js b/.js new file mode 100644 index 0000000..254a7c6 --- /dev/null +++ b/.js @@ -0,0 +1,15 @@ +var encodeStringToBase64 = function(str) { + return( + btoa( + encodeURIComponent(str) + ) + ); +} + +var decodeBase64ToString = function(str) { + return( + decodeURIComponent( + atob(str) + ) + ); +}