To put meaning into a carrying form — writing a thing so it can travel and be read back true.
English en- plus code, from Latin codex (a book of laws), from caudex (the trunk of a tree, later a block of wood written on).
The putting of meaning into a form built to carry and be read back true. To encode is to trust the form to hold the meaning until someone is ready to open it again.