[Python-Dev] Base-96 (original) (raw)
Kless jonas.esp at googlemail.com
Sat Aug 2 01:06:01 CEST 2008
- Previous message: [Python-Dev] Matrix product
- Next message: [Python-Dev] Base-96
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I think that would be very interesting thay Python would have a module for working on base 96 too. [1]
It could be converted to base 96 the digests from hashlib module, and random bytes used on crypto (to create the salt, the IV, or a key).
As you can see here [2], the printable ASCII characters are 94 (decimal code range of 33-126). So only left to add another 2 characters more; the space (code 32), and one not-printable char (which doesn't create any problem) by last.
[1] http://svn.python.org/view/python/trunk/Modules/binascii.c [2] http://en.wikipedia.org/wiki/ISO/IEC_8859-1
- Previous message: [Python-Dev] Matrix product
- Next message: [Python-Dev] Base-96
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]