What is cryptocurrency and how does it work?

What is cryptocurrency and how does it work?