Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encrypt gives a different result using this code then Ruby code #2

Open
ankurp opened this issue Feb 1, 2014 · 3 comments
Open

Encrypt gives a different result using this code then Ruby code #2

ankurp opened this issue Feb 1, 2014 · 3 comments

Comments

@ankurp
Copy link

ankurp commented Feb 1, 2014

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.

@chrisjhill
Copy link

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.

@jofell
Copy link
Owner

jofell commented Aug 31, 2014

Hi @ankurp, would you mind giving me a sample code for this?

Thanks.

@jofell
Copy link
Owner

jofell commented Aug 31, 2014

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.

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

No branches or pull requests

3 participants