jcul / b64

Simple python script to encode / decode files to / from base64.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] Options "Line breaks" and "urlsafe"

Arno-Enslin opened this issue · comments

A line break option (no line breaks, line breaks after each 64th character, line breaks after each 76th character) would be useful. And an urlsafe option.

I was able to modify two copies of b64.py with regard to the 76 characters (import email, base64MIME) and the urlsafe mode (urlsafe_b64encode). But I don't know anything about Python.