BEIJING—A rocket that shot skyward from the Gobi Desert early Tuesday is expected to propel China to the forefront of one of science’s most challenging fields.

It also is set to launch Beijing far ahead of its global rivals in the drive to acquire a highly coveted asset in the age of cyberespionage: hack-proof communications.

State media...