base-96

Kless jonas.esp at googlemail.com
Sun Aug 3 04:20:56 EDT 2008


On 3 ago, 00:31, Tim Roberts <t... at probo.com> wrote:
> Whether it creates problems depends on how you intend to use it.  The
> biggest use for Base64, for instance, is in translating binary files to a
> form where they can be send via email using only printable characters.  If
> you use a non-printable character, that's a problem for email.
There would be that make tests, it's possible that there isn't problem
for any non-printable chars.
>
> With Base64, 3 bytes becomes 4.  With Base96, 5 bytes becomes 6.  So, you
> would reduce the conversion penalty from 1.33 down to 1.17.

> It's not hard to write modules to translate from binary to Base96 and back
> again, and doing so would be a great exercise to explore the issues in this
> kind of encoding.
Yes, it's easy in python, but the ideal would be make the arithmetic
in C as it's implemented for base 64.



More information about the Python-list mailing list