Passback encrypt

Another note, is it necessary to do allocation/deallocation of the encoder/decoder every time? I would set those as parameters.