<p>Canada’s planned surveillance law is the latest grim step in a series of threats to encryption that are spreading around the world.</p>