-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base85 z85 variant encoding #75299
Comments
Issue bpo-17618 introduced base85 options into the base64 module including b85 and a85/adobe variants. There has since been introduced a variant that is easier to work with specifically as it avoids " ' \ characters which avoids quoting/escaping issues when working with base85 literals in python, json, xml, etc. https://rfc.zeromq.org/spec:32/Z85/ there is a reference implementation in c for which an extension could easily be built. alternately it would be very easy to add a _z85alphabet etc. to the base64 module to mirror what has been done with a/b85.
|
base64.b85encode does not use ", ' or \ as well. That's the _b85alphabet _b85alphabet = (b"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
b"abcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~") |
z85 avoids all of: ` \ " ' _ , ; Backtick and semicolon increase the number of places that z85 can be used
On Fri, Feb 14, 2020, 09:18 Dobatymo <report@bugs.python.org> wrote:
|
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: