mtwin-net-codec

0.0.1 • Public • Published

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

/mtwin-net-codec/

    Package Sidebar

    Install

    npm i mtwin-net-codec

    Weekly Downloads

    0

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    4.02 kB

    Total Files

    6

    Last publish

    Collaborators

    • angelisium