Security issues relating to password in p2p?

Hello,
I am aware that user names and passwords provide some level of security in p2p systems. However increasingly I have heard of security breaches in p2p systems. I am new to this and would like some information about how to provide additional security relating to password in p2p systems.
Thanks
