Skip to content

Commit

Permalink
Create .js
Browse files Browse the repository at this point in the history
  • Loading branch information
soshimee authored Nov 2, 2019
1 parent 274dd52 commit 2f9f63c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
var encodeStringToBase64 = function(str) {
return(
btoa(
encodeURIComponent(str)
)
);
}

var decodeBase64ToString = function(str) {
return(
decodeURIComponent(
atob(str)
)
);
}

0 comments on commit 2f9f63c

Please sign in to comment.