Skip to content

Conversation

austinderek
Copy link

Base64 encoding and decoding will now use a constant-time function rather than a map look-up by default.

New functions:

  • WithDecodeMappingFunc and WithEncodeMappingFunc allowsdevelopers to specify their own constant-time mapping functions for their own base64 alphabets.
  • Several mapping functions are provided in encoding/base64/mapping.go.

Fixes golang#73901


🔄 This is a mirror of upstream PR #73909

@austinderek austinderek force-pushed the master branch 29 times, most recently from 121e5bb to 7a1679d Compare August 5, 2025 07:04
@austinderek austinderek force-pushed the master branch 30 times, most recently from 8bcda6c to d50240b Compare August 30, 2025 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants