In this paper we present an encoding/decoding device for OCDMA communications. The device uses a single reflecting element to perform both the encoding of outgoing signal and the decoding of incoming signal. A directional optical assembly allows differentiating the origin of the signals to forward the outgoing signals after encoding to the network and the incoming signals after decoding to a receiver.