What is ransomware and how does it work?

People around the world, from major companies to schools and hospitals, are being hit by online attackers who encrypt their data and demand money to unlock it again.

Here's how ransomware works.