2.2 Binary Encoding
JSON does not natively support binary data, so a number of string encodings are used to represent binary data, depending on the context.
| BASE64URL |
A base64 encoding that uses a URL-safe alphabet, as described in RFC 4648 section 5, with trailing padding characters (“=”) removed. This encoding is used by the JOSE standards and appears in the JWS, JWK and JWE objects, as documented in RFC 7515 section 2. This encoding is also used in a few other non-JOSE members to maintain consistency. |
| HEX | In some cases, short binary values are expressed as lowercase hex strings. This is to match convention with how these values are typically seen and worked with. |
