How do password managers work?

We live in an era where our mobiles and computers have access to sensitive information. Our social networks and email may contain personal or work data that we should not share with anyone else....