JavaScript: base64url as per RFC4648
I'm looking for a (fast) standard implementation for base64url as per RFC4648 in JavaScript.
So far I have come up with:
var base64url = window.btoa(url).replace(/\//g, '_').replace(/\+/g, '-').replace(/=/g, '');
Anything faster?
+3
Dunken
source
to share
No one has answered this question yet
Check out similar questions:
7649
7494
7432
7287
5722
5670
5101
4829
4380
3842