Although some cryptosystems based on error correction code have been presented, the security and efficiency must be overcome before it can be realized. In this paper, a novel method of combined encryption and error correction based on hyperchaotic system and lower-density parity check (LDPC) code is proposed to provide both of the security and efficiency. The proposed system adopts a pseudorandom sequence generator based on hyperchaotic system for scrambling the plaintext and constructing the dynamic permutation box. The message is encoded by the LDPC encoder after it was scrambled and then encrypted by the permutation box. Different permutation patterns generated for different message blocks help to provide high security, while the encoder helps to provide capacity of error correction. MATLAB simulations reveal that the proposed scheme is more secure and effective than the existing joint encryption and error correction coding scheme. Moreover, the full error correction ability of LDPC is kept without confliction. So, the proposed scheme is suitable for secure communication system.