3 ms·
> All base64url strings in TJSON MUST NOT include any padding with the '=' character. This seems like it makes a streaming parser's job (slightly) more of a he
by mnarayan01 10y ago
> All base64url strings in TJSON MUST NOT include any padding with the '=' character.
This seems like it makes a streaming parser's job (slightly) more of a headache, without any serious advantage. Which seems particularly odd to me given that this seems heavily focused on binary stuff.
- bascule 10y agoPadding is redundant when base64url is encapsulated in a quoted string. If you're writing a state machine-based parser which is processing a quoted base64url it will, in amortized time, be able to find a close quote token faster than it will be able to find valid close padding.