You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// From https://developer.mozilla.org/en-US/docs/Glossary/Base64#Solution_2_%E2%80%93_rewrite_the_DOMs_atob()_and_btoa()_using_JavaScript's_TypedArrays_and_UTF-8
485
+
// From https://developer.mozilla.org/en-US/docs/Glossary/Base64
// From https://developer.mozilla.org/en-US/docs/Glossary/Base64#Solution_2_%E2%80%93_rewrite_the_DOMs_atob()_and_btoa()_using_JavaScript's_TypedArrays_and_UTF-8
515
-
functionuint6ToB64(nUint6){
516
-
returnnUint6<26
517
-
? nUint6+65
518
-
: nUint6<52
519
-
? nUint6+71
520
-
: nUint6<62
521
-
? nUint6-4
522
-
: nUint6===62
523
-
? 43
524
-
: nUint6===63
525
-
? 47
526
-
: 65;
527
-
}
528
-
529
-
// From https://developer.mozilla.org/en-US/docs/Glossary/Base64#Solution_2_%E2%80%93_rewrite_the_DOMs_atob()_and_btoa()_using_JavaScript's_TypedArrays_and_UTF-8
530
-
functionb64ToUint6(nChr){
531
-
returnnChr>64&&nChr<91
532
-
? nChr-65
533
-
: nChr>96&&nChr<123
534
-
? nChr-71
535
-
: nChr>47&&nChr<58
536
-
? nChr+4
537
-
: nChr===43
538
-
? 62
539
-
: nChr===47
540
-
? 63
541
-
: 0;
542
-
}
543
-
544
-
// From https://developer.mozilla.org/en-US/docs/Glossary/Base64#Solution_2_%E2%80%93_rewrite_the_DOMs_atob()_and_btoa()_using_JavaScript's_TypedArrays_and_UTF-8
491
+
// From https://developer.mozilla.org/en-US/docs/Glossary/Base64
0 commit comments