[Tutor] CGI problem.

Mark Kels mark.kels at gmail.com
Sun Nov 7 20:31:26 CET 2004


On Sun, 07 Nov 2004 12:14:45 -0500, Kent Johnson
<kent_johnson at skillsoft.com> wrote:
> At 06:22 PM 11/7/2004 +0200, Mark Kels wrote:
> >The problem is that I cant hash the password that the user inputs, so
> >there is no need to break the problem in two (the first part is
> >working with no problems).
> 
> OK, I misunderstood.
> 
> >Is the input in CGI different from the input in normal programs?
> >Can it be that the md5 module has a problem with that kind of input?
> 
> No, they are just strings like any other.
> 
> >Is there another module like md5 that I can use instead?
> 
> Can you post an example of a clear-text password and the hash you expect to
> see from it?
> How are you generating the hashes you are comparing against?
> 
> Kent
> 
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
> 

The password is 124 (as a string), and the hash is
\xc8\xff\xe9\xa5\x87\xb1&\xf1R\xed=\x89\xa1F\xb4E .
I generated the hash that is in the file with IDLE (using the md5 module).


More information about the Tutor mailing list