After a massive hacking campaign believed to come from China, federal officials recommended using encrypted messaging apps.