0.0.1 • Published 1 year ago

mtwin-net-codec v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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.

Constructor

new Codec(key: String)

Variables

// The key used for encoding and decoding a string.
private key: Array

Methods

// return the encoded or decoded `text` string based on `key`.
public run(text: String): String
0.0.1

1 year ago