Hello,
I was given this Python code that would calculate an MD5 value for any phrase:
import md5
md5.new("Nobody inspects the spammish repetition").digest()
(The phrase here is: "Nobody inspects the spammish repetition")
What I want to do is display this value in my browser. How do I do it in Python?
I tried all these variants, none of them worked:
import md5
show = md5.new("Nobody inspects the spammish repetition").digest()
print show
import md5
print md5.new("Nobody inspects the spammish repetition").digest()
import md5
md5.new("Nobody inspects the spammish repetition").digest()
print md5
import md5
md5.new("Nobody inspects the spammish repetition").digest()
print md5.new
update A:
By now (Monday, 5 April 2010, 07:19:35 GMT) I have received two answers from Ignacio Vazquez-Abrams and from Ji. Both have suggested pretty much the same thing. I have tried Ji's code, but it didn't work. Here is the screen shot of the error lines I received:
(I believe you need to right click on the image and choose "View the Image" to see it in a bigger size)