In general, to encode means to convert input information to a code useful to digital circuitry.
In general, to decode means to translate from one code to another.
In common use, a decoder would be a logic device that translates from an encrypted code into a code that is more understandable.
An example of decoding would be to translate from binary to decimal.