National-security experts and politicians have a message for America: A significant portion of the sensitive data we have today is going to be cracked by foreign powers in the not-too-distant future, and there is nothing anyone can do about it.

But we might be able to stop them from decoding the data we produce down the road, if we act quickly enough.

The...