Skip to content

Instantly share code, notes, and snippets.

@alco
Created June 30, 2014 03:20
Show Gist options
  • Save alco/f177bf4a49b50e676a46 to your computer and use it in GitHub Desktop.
Save alco/f177bf4a49b50e676a46 to your computer and use it in GitHub Desktop.
bo
bmg
bjejg
bdnbbeg
begklgebg
bknjgpgeogg
/* require hashids */
var Hashids = require("../lib/hashids");
/* creating class object */
var hashids = new Hashids("", 0, "abcdefghijklmnop");
console.log(hashids.encrypt(0));
console.log(hashids.encrypt(100));
console.log(hashids.encrypt(10000));
console.log(hashids.encrypt(1000000));
console.log(hashids.encrypt(100000000));
console.log(hashids.encrypt(10000000000));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment