473,385 Members | 1,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How can I encode something in base32 preferably very fast?

I want to encode a plaindigest or a hexdigest in base 32. Any hints?

Elmo
Jul 25 '05 #1
3 5962
On Mon, 2005-07-25 at 17:23 +0300, Elmo Mäntynen wrote:
I want to encode a plaindigest or a hexdigest in base 32. Any hints?


Search Google for "python base32" isn't as hard...

First result are the original python lib documentation:
http://docs.python.org/lib/module-base64.html

I think you need to convert to a String before encoding...

Have fun,
--
Johannes Findeisen
http://hanez.org/

Jul 25 '05 #2
On Mon, 25 Jul 2005 16:51:05 +0200, Johannes Findeisen wrote:
On Mon, 2005-07-25 at 17:23 +0300, Elmo Mäntynen wrote:
I want to encode a plaindigest or a hexdigest in base 32. Any hints?


Search Google for "python base32" isn't as hard...

First result are the original python lib documentation:
http://docs.python.org/lib/module-base64.html

I think you need to convert to a String before encoding...

Have fun,


I thought I had looked at that particular module:). Thanks for pointing it
out.

Elmo
Jul 25 '05 #3
On Mon, 25 Jul 2005 21:15:36 +0300, Elmo Mäntynen wrote:
On Mon, 25 Jul 2005 16:51:05 +0200, Johannes Findeisen wrote:
On Mon, 2005-07-25 at 17:23 +0300, Elmo Mäntynen wrote:
I want to encode a plaindigest or a hexdigest in base 32. Any hints?


Search Google for "python base32" isn't as hard...

First result are the original python lib documentation:
http://docs.python.org/lib/module-base64.html

I think you need to convert to a String before encoding...

Have fun,


I thought I had looked at that particular module:). Thanks for pointing it
out.

Elmo


I'm using python2.3(because of my distro of choise, debian) and did a
help(base64) and of course didn't see anything about base32:). Now i have
good reason to change to 2.4:) Thanks

Elmo

Jul 25 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bob Bedford | last post by:
I've to give the client ID to my customers. As this number will be used in a third part app, and I only rely on this number for checking the user's existence (I can't change the third part app),...
4
by: Marc | last post by:
Hello, Does anyone know where I can find some sample code for encoding a string into Base32? And when I say "code" I'm not talking about some MS VC++ project... I'm talking about real C or C++...
2
by: Elmo Mäntynen | last post by:
I know how to make a hash(using mhash), but instead of encoded as hex I want it in base32 for use with the bitzi catalog. python-bitzi is useful but way too slow for just getting the hash of a...
1
by: Jon Paskett | last post by:
I need to convert a Base32 string to Base10 integer. Cold Fusion does it with InputBaseN. I need this same functionality in VB .Net so I can migrate to ASP .Net. Please Help! <!-- Example -->...
7
by: jtfaulk | last post by:
I need to encode some information on the server side using ASP.NET with C#; sending via HTTP to a client side application, that needs to be decoded in an MFC C++ application. I'm not sure if I...
7
by: erikcw | last post by:
Hi, I'm trying to build a SQL string sql = """INSERT INTO ag ('cid', 'ag', 'test') VALUES(%i, %s, %d)""", (cid, ag, self.data) It raises this error: AttributeError: 'tuple' object has no...
4
by: J Peyret | last post by:
Well, as usual I am confused by unicode encoding errors. I have a string with problematic characters in it which I'd like to put into a postgresql table. That results in a postgresql error so I...
1
by: samslists | last post by:
Anyone know of a Python implementation of this: http://www.crockford.com/wrmg/base32.html Google shows a Perl library. I'm sure someone must have a Python library somewhere? :) Thanks
1
by: anonymous | last post by:
1 Objective to write little programs to help me learn German. See code after numbered comments. //Thanks in advance for any direction or suggestions. tk 2 Want keyboard answer input, for...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.