I am using twisted's Perspective Broker for a network application. I encountered the problem that it automatically uses an MD5 challenge-response scheme for authentication. Ideally I would prefer not to store MD5 hashes on the server-side due to a number of security vulnerabilities. Alternatively, scrypt, bcrypt or pbkdf2 provide more secure algorithms.
However, while these algorithms are readily available in python, I don't quite see, whether it is possible to implement a custom authentication scheme using the Perspective Broker. Judging from the source, it looks like MD5 is very tightly integrated within the system.
So my question goes to more experienced twisted users: is there a way to use a custom authentication scheme without having to rewrite the whole thing?
(Also, please correct me, if any of my assumptions about twisted or cryptography are wrong. I am quite new to both.)