Python: How to display the calculated MD5 value in my browser?

Posted by brilliant on Stack Overflow See other posts from Stack Overflow or by brilliant
Published on 2010-04-05T05:19:20Z Indexed on 2010/04/05 5:23 UTC
Read the original article Hit count: 674

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about python

Related posts about print