Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

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

Open
thmarti opened this issue Mar 11, 2014 · 1 comment
Open

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

thmarti opened this issue Mar 11, 2014 · 1 comment

Comments

@thmarti
Copy link

thmarti commented Mar 11, 2014

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

@peet
Copy link
Owner

peet commented Aug 14, 2014

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants