Codec implement of mt.net.Codec
This is the first generation of the Codec used by Motion-Twin to encrypt
client<>server
exchanges in their games.
Note
If you are looking for how to use it, you can look at some examples in the unit tests.
new Codec(key: String)
// The key used for encoding and decoding a string.
private key: Array
// return the encoded or decoded `text` string based on `key`.
public run(text: String): String