Created
June 30, 2014 03:20
-
-
Save alco/f177bf4a49b50e676a46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bo | |
bmg | |
bjejg | |
bdnbbeg | |
begklgebg | |
bknjgpgeogg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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