[cse491] HW #11 posted

C. Titus Brown ctb at msu.edu
Sun Nov 9 20:34:24 PST 2008


On Sun, Nov 09, 2008 at 05:12:56PM -0500, Eric Henry wrote:
-> crypt is not available for windows.... md5?

That's deprecated in 2.5 -- perhaps hashlib,

http://www.python.org/doc/2.5.2/lib/module-hashlib.html

?  You should be able to replace 'crypt' with

m = hashlib.md5()
m.update(secret)
m.update(rand)
return m.digest()

what do you think?  One advantage -- the 'secret' can be longer than 2
characters!

--titus



More information about the cse491-fall-2008 mailing list