Skip to content

jslba/haxe-basecode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm tests GitHub

Allows one to encode / decode String and bytes using a power of two base dictionary.

Note
If you are looking for how to use it, you can look at some examples in the unit tests.

Constructor

new BaseCode(base: Bytes)

Variables

public base: Bytes
public nbits: Int
public tbl: Array

Methods

static decode(s: String, base: String): String
static encode(s: String, base: String): String
public initTable(): void
public encodeBytes(b: Bytes): Bytes
public decodeBytes(b: Bytes): Bytes
public encodeString(s: String): String
public decodeString(s: String): String

About

An implementation of haxe.crypto.BaseCode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published