Re: [Twisted-Python] smtp-server: issue with checkers.FilePasswordDB and hash

2010-04-04 Thread Lucas Taylor
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

[Twisted-Python] smtp-server: issue with checkers.FilePasswordDB and hash

2010-04-04 Thread aleu...@inwind.it
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