hi and hello

few years ago I saw 2 people in 1 channel
"having conversation" with encrypted text

so I wonder how to "make" and "read" such text with mirc scripting ?
I'm on v6.21 and in help file I didn't understand much things
with $encode/decode :P

any possible easy example ?