Skip to content

Line width option in To Base64 #1965

@p-leriche

Description

@p-leriche

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions