[Zope] Password storage

Chris McDonough chrism@zope.com
Thu, 25 Apr 2002 20:41:23 -0400


Hi Todd,

An external method that looks something like this should do the trick:


import md5

def obfuscate(aPassword):
     m = md5.new()
     m.update(aPassword)
     return m.digest()


Todd Loomis, DMSO (SAIC) wrote:
> All:
> 
> I want to take a plain password and use MD5 hash on it before storing in 
> my MySQL database. Can this be done with zope and if so how?
> 
> Thanks,
> Todd
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )


-- 
Chris McDonough                    Zope Corporation
http://www.zope.org             http://www.zope.com
"Killing hundreds of birds with thousands of stones"