Simple ARC4 encoding/decoding.
