3 ms·
So you pass in a 1gig binary you want a very, very long line of text that many text editors would choke on? The purpose of base64 is to turn binary into text t
by oniony 3y ago
So you pass in a 1gig binary you want a very, very long line of text that many text editors would choke on?
The purpose of base64 is to turn binary into text that can be embedded in normal text messages such as email and Usenet. A right margin of about 80 characters is very much what one should expect such a tool to default to.
- scrollaway 3y agoIf you're passing a 1GB binary to base64 you're ... incredibly unlikely to be dealing with the resulting base64 manually (copypaste, text editor, whatever). So, yes, the expected default would still be no linebreaks. The primary purpose of these tools have changed over time as the environment has changed. You know nobody uses usenet anymore, and nobody copypastes base64 into emails anymore, right?
- blueflow 3y agoThe default will not be changed because it breaks the original use cases. Which some people still have even if you do not.