When you call encrypt method for Long values (greater than Integer.MAX_VALUE for example: 1234567890123L) method throwed Exception. Reason of this was that in hash & unhash methods calculations was performed in int variable.
I've doubt that maybe you do it intentionally but I had real world case when i needed long enough values and had to edit your source code.
When you call encrypt method for Long values (greater than Integer.MAX_VALUE for example: 1234567890123L) method throwed Exception. Reason of this was that in hash & unhash methods calculations was performed in int variable.
I've doubt that maybe you do it intentionally but I had real world case when i needed long enough values and had to edit your source code.
Also, In JavaScript project (http://www.hashids.org/javascript/) it works for big numbers why shouldn't it work in Java ...