A multi-focus image fusion and robust encryption scheme based on CS is proposed. The source images are fused based on wavelet decomposition. The fused image is firstly sampled by CS and re-encrypted by the intra-block operation and inter-block operation. The proposed scheme is effective, robust and secure with good fusion performance.