Twice in the space of six weeks, the world has suffered major attacks of ransomware—malicious software that locks up photos and other files stored on your computer, then demands money to release them. It’s clear that the world needs better defenses, and fortunately those are starting to emerge, if slowly and in patchwork fashion. When…