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

Line width option in To Base64 #1965

Open
p-leriche opened this issue Jan 22, 2025 · 0 comments
Open

Line width option in To Base64 #1965

p-leriche opened this issue Jan 22, 2025 · 0 comments
Labels

Comments

@p-leriche
Copy link

To Base64 produces a single unwrapped line of output, which isn't always very convenient to work with, particularly by naive uses who may not fully understand the output box display options. (Sometimes the output is displayed as a single unwrapped overflowing line.)

A great enhancement would be to add a width option, functionally like the -w option on the Linux base64 command.

The same comment may apply to other To Base operations, provided the corresponding From Base operations accept wrapped input.

As an alternative, I looked for an additional recipe I could add in order to linewrap the output of To Base64 but couldn't find one. But since not all Base encodings may allow line wrapping, this is better implemented in the individual To Base operations where valid.

Context:
I was wanting to Base64 encode some .jpg files used in steganography exercises in order to load them into Google Classroom, because Classroom was re-encoding and compressing the .jpg files, destroying hidden flags. A single line up to a few MB long probably would have confused my students and possibly Google Classroom as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant