Photonic layer security in fiber-optic networks and optical OFDM transmission