digitalbazaar / forge

A native implementation of TLS in Javascript and tools to write crypto-based and network-heavy webapps
https://digitalbazaar.com/
Other
5.06k stars 781 forks source link

Add support for base64url #216

Open thoka opened 9 years ago

thoka commented 9 years ago

URL variant of base64 uses "-" and "_" instead of "+" and "/" and optionally the padding "="

http://en.wikipedia.org/wiki/Base64#URL_applications

ysangkok commented 8 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.

dlongley commented 8 years ago

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.