hashids 1.0.0

Cross platform implementation of hashids

Released 2016-03-31.

To install, run:

haxelib install hashids 1.0.0

See using Haxelib in Haxelib documentation for more information.

Maintainerkevinresol
Websitehttps://github.com/kevinresol/hashids
Current version1.0.0
StatisticsInstalled 261 times
LicenseMIT
Tags

README.md

hashids travis

Haxe implementation of hashids

Usage

var hashids = new Hashids("this is my salt");

var encoded = hashids.encode(1);
var number = hashids.decode(encoded)[0];
trace(number); // 1

var encoded = hashids.encode([1, 2, 3]);
var numbers = hashids.decode(encoded);
trace(numbers); // [1, 2, 3]