U.S. officials are urging Americans to use encrypted messaging after Chinese hacker threat revealed gaps in security.