Join Slack
Powered by
Is there a reason the Base64 support in 1.8.20 doe...
# stdlib
n
Niels van Velzen
04/03/2023, 12:54 PM
Is there a reason the Base64 support in 1.8.20 doesn't have an option to omit padding? The RFC allows it (
https://www.rfc-editor.org/rfc/rfc4648#section-3.2
) and some other specifications like OAuth PKCE require it (
https://www.rfc-editor.org/rfc/rfc7636#section-3
).
👀 1
n
nkiesel
04/03/2023, 4:26 PM
Where is the stdlib API doc for this?
n
Niels van Velzen
04/03/2023, 5:25 PM
It's in the "What's new" page,
https://kotlinlang.org/docs/whatsnew1820.html#support-for-base64-encoding
l
louiscad
06/08/2023, 8:47 PM
Do you need the no-padding way?
a
Abduqodiri Qurbonzoda [JB]
08/13/2024, 2:43 PM
I am pleased to inform you that in Kotlin 2.0.20, Base64 padding can be configured:
https://github.com/Kotlin/KEEP/blob/base64/proposals/stdlib/base64.md#padding-options
6
Views
Open in Slack
Previous
Next