Skip to content

Conversation

@jentfoo
Copy link
Member

@jentfoo jentfoo commented Dec 29, 2025

This implementation provides a Base85 implementation with an API similar to encoding/base64 so that custom alphabets and paddings can be provided. Using this we provide RFC1924 as a standard alphabet.

This is being provided because the standard ascii85 implementation does not allow custom character sets that would enable use of RFC1924 or other denser encodings (compared to Base64 which is the most dense built-in encoding) provided in standard go.

Also included in this PR is the testing, CI, Dependabot config, and docs for the repo + base85 functionality.

This implementation provides a Base85 implementation with an API similar to encoding/base64 so that custom alphabets and paddings can be provided.
Using this we provide RFC1924 as a standard alphabet.

This is being provided because the standard `ascii85` implementation does not allow custom character sets that would enable use of RFC1924 or other denser encodings (compared to Base64 which is the most dense built-in encoding) provided in standard go.
@jentfoo jentfoo self-assigned this Dec 29, 2025
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

This improves performance, but overall still lacks compared to ascii85, in part because of the need for the alphabet character map lookup vs being able to use the continious range in ascii85.
@jentfoo jentfoo merged commit e7e5c8d into main Dec 29, 2025
11 checks passed
@jentfoo jentfoo deleted the feat/base85 branch December 29, 2025 02:15
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