Skip to content
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

Added Base85 operations (new) #340

Merged
merged 1 commit into from
Aug 23, 2018
Merged

Added Base85 operations (new) #340

merged 1 commit into from
Aug 23, 2018

Conversation

PenguinGeorge
Copy link
Contributor

To resolve #286.

This adds two new operations:

  • To Base85
  • From Base85

Both operations include three common alphabets for Base85:

  • Standard - also known as Ascii85, and is the standard alphabet for base85.
  • Z85 (ZeroMQ) - a "string safe" variant which doesn't use single or double quotes, backslashes, or other problematic characters.
  • IPv6 - alphabet used for encoding IPv6 addresses, as defined by RFC 1924.

The "To Base85" operation also has an "Include delimiter" option, which will add <~ and ~> at the start and end of the output, which is a standard used in Adobe PostScript.

@CLAassistant
Copy link

CLAassistant commented Aug 22, 2018

CLA assistant check
All committers have signed the CLA.

@PenguinGeorge PenguinGeorge mentioned this pull request Aug 22, 2018
@n1474335 n1474335 merged commit 2d9e877 into gchq:master Aug 23, 2018
@n1474335
Copy link
Member

Thanks very much @PenguinGeorge, this is really well written. I updated the alphabets to use ranges in the same way as the Base64 ops. This is much more succinct. I also changed some of your string concatenation to use template strings. Other than that it's as you wrote it.

@PenguinGeorge PenguinGeorge deleted the ascii85-new branch August 24, 2018 21:41
BRAVO68WEB pushed a commit to BRAVO68WEB/CyberChef that referenced this pull request May 29, 2022
Add group and user in dockerfile to run container as unprivileged
Fixes gchq#340
Thank you @Singebob
This pull request was closed.
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.

Feature request: ascii85/base85 support
3 participants