hashids.java icon indicating copy to clipboard operation
hashids.java copied to clipboard

Hashes of java implementation don't match output of hashids.js

Open thmarti opened this issue 11 years ago • 1 comments

I'd say it renders this library pretty much useless!

Java

Hashids hashids = new Hashids("this is my salt"); String hash = hashids.encrypt(12345); => hash: ryBo

JavaScript

var hashids = new Hashids("this is my salt"), hash = hashids.encrypt(12345), => hash: NkK9

thmarti avatar Mar 11 '14 16:03 thmarti

Yeah, unfortunately an incompatible change was made to the JavaScript version after I ported it to Java. Re-porting is on my todo list, but it might not be for a little while yet.

peet avatar Aug 14 '14 14:08 peet