Open ankurp opened 10 years ago
I have the same problem with this class, however with me PHP and Javascript give the same output and this one gives something completely different. Unusable if you want interoperability.
Hi @ankurp, would you mind giving me a sample code for this?
Thanks.
Hi @chrisjhill, v1.0.0 of the PHP and Javascript versions are coming soon, and we contributors of the Hashids spec should be able to move from the old algorithm (0.3.* still being used by Python and Ruby) to the new one (1.0.0 which is now being used by Javascript, Coffeescript, and PHP). Will let you know as soon as I get to study the new algorithm (it has been a year since I actually touched this repo).
But rest assured that this September that fixes will be coming in.
Sorry for the very late replies.
When I create a hasher with a salt and use the same salt in Ruby using the ruby hash ids code I get complete different results. Is this a bug? I want to be able to get the same hash ids when calling encrypt on Ruby and on Objective C code.