mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 01:53:51 +01:00
RFC4648 specifies an alternate alphabet for base64 encoding / decoding where '+' and '/' are exchanged for '-' and '-' to make the resulting string safe to use in filenames and URLs. This adds a base64url_encode() function that uses the alternate alphabet. The base64_decode() function is extended to accept both alphabets.