encode is to put something into code to make it unreadable to someone who does not know the code. Decode is to work out the code or unscramble the code. So encoder would be something to code the article, while a decoder unscrambles the code and gives you back the article.