Haxe implementation of hashids
Haxe
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/hashids
tests
.gitignore
.travis.yml
LICENSE.md
README.md
haxelib.json
tests.hxml

README.md

hashids Build Status

Haxe implementation of hashids (http://hashids.org/)

Tested for the following targets:

  • Neko
  • Python
  • (Node)JS
  • Flash
  • Java
  • C++
  • C#
  • PHP

Install

haxelib install hashids

Usage

import hashids.Hashids;

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]