Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
generating md5-hashes in modpython fails
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nikolaus Schlemm  
View profile  
 More options Jun 27 2006, 8:55 am
From: Nikolaus Schlemm <n...@nikl.net>
Date: Tue, 27 Jun 2006 14:55:23 +0200
Local: Tues, Jun 27 2006 8:55 am
Subject: generating md5-hashes in modpython fails

hi all,

for some (up to now) unknown reasons the generation of md5-hashes fails in
modpython (for me and at least one other user on irc). I discovered this bug
while switching a django-setup from the builtin dev-server to modpython: it
complained that I had tampered with the session cookies - which I didn't ;)

the session ids looked a little unusual: all hashes started with 16 leading
zeros. So next, I tried generating md5-hashes in django and they also had the
leading zeros PLUS when generating a couple of hashes for different strings
in one request the resulting hashes were all the same. After that I tested
md5 hash generation in "plain" modpy - which had the same problems. the odd
thing is: using the md5-module in "regular" python works totally fine! since
this clearly seems to be a modpy issue, there's a thread on the modpy
mailinglist:
        http://modpython.org/pipermail/mod_python/2006-June/021482.html
note that, there already have been confirmations that this is not a general
modpython issue.

the first workaround was to replace md5 with sha - but since that can hardly
be called a solution, I propose that the use of hashing algorithms should
be "uncoupled" from the actual implementation used. the appended diff might
be a start of into that direction, but certainly might need some clean up ;)
--
cheers,

        Nikl

  svn.diff
4K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nikolaus Schlemm  
View profile  
 More options Jun 27 2006, 9:04 am
From: Nikolaus Schlemm <n...@nikl.net>
Date: Tue, 27 Jun 2006 15:04:25 +0200
Local: Tues, Jun 27 2006 9:04 am
Subject: Re: generating md5-hashes in modpython fails

I forgot to append this file...
--
cheers,

        Nikl

  hashes.py
1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nikolaus Schlemm  
View profile  
 More options Jul 5 2006, 10:59 am
From: Nikolaus Schlemm <n...@nikl.net>
Date: Wed, 5 Jul 2006 16:59:55 +0200
Local: Wed, Jul 5 2006 10:59 am
Subject: Re: generating md5-hashes in modpython fails
for anybody who's also experiencing this problem, Alain Tesio mentioned
another odd factor and its workaround on the modpy-mailinglist:

        http://modpython.org/pipermail/mod_python/2006-July/021544.html
--
cheers,

        Nikl


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »