Python: How to display the calculated MD5 value in my browser?
- by brilliant
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