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

2010-04-05 Thread aleu...@inwind.it
First of all, thanks for your answer :-) >Can't say for sure without a full example, but it looks like you are Here the full source code: from twisted.mail import mail, relaymanager from twisted.cred import checkers from twisted.python import log from twisted.application import internet from twi

[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