Open thoka opened 9 years ago
I am not sure general byte encodings belong in forge. Standard base64 is provided because there was previously no standard bytestring in JavaScript. Base64url can be implemented by other packages.
I think it would be a useful addition -- particularly because it's used by, for example, the JOSE stack. We'll likely be adding more support for things related to JOSE over time, so I'm going to keep this open.
URL variant of base64 uses "-" and "_" instead of "+" and "/" and optionally the padding "="
http://en.wikipedia.org/wiki/Base64#URL_applications