<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Trebuchet MS">I have a need to encrypt a parameter passed
on a URL to another website using Python and MD5 encryption. I tried to
set up a test python script:<br>
<br>
I am running ZOPE and Plone. I have made other Python scripts that work.<br>
*******************<br>
import md5<br>
<br>
print "This is the", script.meta_type, '"%s"' % script.getId(),<br>
if script.title:<br>
&nbsp;&nbsp;&nbsp; print "(%s)" % html_quote(script.title),<br>
print "in", container.absolute_url()<br>
<br>
hash1 = md5.new("Hello world").digest()<br>
print "hash=",hash1<br>
<br>
return printed<br>
**************<br>
When I do this and I attempt to test it - my ZOPE/Plone instance pops
up the login screen (even though I am logged in already). I tried
logging in but it just kept asking for my username/password.<br>
<br>
Suggestions? Anyone got a simple example of a Python script that can be
passed a piece of text and return an encrypted string?<br>
<br>
Thanks,<br>
David<br>
</font>
</body>
</html>