Skip to content

kevinresol/hashids

Repository files navigation

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]

About

Haxe implementation of hashids

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages