v.24.6New Feature

Introduced base64 URL encoding and decoding functions

Introduced new functions base64URLEncode, base64URLDecode and tryBase64URLDecode. #64991 (Mikhail Gorshkov).
Introduced new functions base64URLEncode, base64URLDecode, and tryBase64URLDecode for encoding and decoding Base64 URL-safe strings.

Why it matters

These functions enable users to efficiently encode data into Base64 URL-safe format and decode from it. This solves issues related to encoding data for URLs and web applications where standard Base64 characters can cause problems, improving data interoperability and safety.

How to use it

Use base64URLEncode to encode raw bytes or strings into Base64 URL-safe format. Use base64URLDecode to decode a Base64 URL-safe encoded string back to its original form. Use tryBase64URLDecode to safely attempt decoding without throwing errors on invalid input.