The base64 format is that of RFC 2045 Section 6.8. As per the RFC, encoded lines are broken at 76 characters
> By the way, this is a very poor design decision.
So far as I can tell, that RFC's requirement for line breaks has not been removed by any later RFC. So you're complaining to the wrong people.
Stating direct RFC4648 compliance would require us to drop the line breaks that are only being added due to using MIME rules which ideally our general encoding function would not do. Greenfield we probably would want base64 to be general RFC4648 and add something like base64-mime which performs the line breaking for the user per RFC 2045, base64-pem which would use that specific environments RFC rules. Now, maybe we can add "base64-4648" or "base64-general" while leaving "base64" alone and using the MIME version of the rules?