Scalable Techniques For Security And Anonymity In Distributed Systems