On 4/4/10 5:41 PM, aleu...@inwind.it wrote:
> Hi all,
>I use FilePasswordDB with a small smtp-server (a very small toy), but when
> I use the hash function the authentication doesn't work.
>
> Here few lines of code:
> """
> def _hash(name, clearpsw, hashedpsw):
> # a very simple hash fun
Hi all,
I use FilePasswordDB with a small smtp-server (a very small toy), but when
I use the hash function the authentication doesn't work.
Here few lines of code:
"""
def _hash(name, clearpsw, hashedpsw):
# a very simple hash function ?
return md5.md5(clearpsw).hexdigest()
# retur