Optical Encryption and Authentication Based on Phase Retrieval and Sparsity Constraints