We present a numerical and experimental evaluation of message encryption by phase modulation, using a chaotic optical carrier generated by a laser subject to delayed optical feedback. This method offers better security than the conventional amplitude masking, where the signal is simply added to the chaotic waveform.