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

bin/base64: add command line options for decoding #135

Closed
aklomp opened this issue Jan 15, 2024 · 0 comments
Closed

bin/base64: add command line options for decoding #135

aklomp opened this issue Jan 15, 2024 · 0 comments
Assignees

Comments

@aklomp
Copy link
Owner

aklomp commented Jan 15, 2024

Add the following command line options to the bin/base64 demo utility that affect decoding:

  • --no-strip-newlines|-n: turn off the recently introduced check for newlines in the input. This speeds up decoding for any inputs that are guaranteed not to have newlines in them.
  • --ignore-garbage|-i: taken from GNU base64, this option ignores any characters in the input which are not part of the base64 alphabet. This turns out to be fairly easy to implement on top of the newline detection code, so might as well add it.
@aklomp aklomp self-assigned this Jan 15, 2024
@aklomp aklomp closed this as completed in 8f3212f Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant